LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-24-2005, 08:36 AM   #16
chocobanana
Member
 
Registered: Jun 2004
Location: Vice City
Distribution: Suse 10.1
Posts: 30

Original Poster
Rep: Reputation: 15

Hi

My computer is now properly shuting down.

However, it began doing so in a bizarre way. I didn't understand very well your last post, and since I was already fed up with this, I decided to just paste your code in my rc.M which didn't have anything like it. I pasted it before the network inicialization stuff.

Then I rebooted my pc and during the boot up it reported an error about unrecognizing two lines of the code I pasted from you. After the boot, it also didn't have internet working, so I edited rc.M and removed your code. Then I shuted down the machine from kde just to see if it was working and voilá!, it sure was, but I thought that if I removed your code, it wouldn't shutdown again. But in hope it would, I rebooted and then shutdown again and it was still working and with internet back to work!

So, my question now is, why is it still working even without your code in rc.M?

Thanks!!

Last edited by chocobanana; 03-24-2005 at 08:38 AM.
 
Old 03-24-2005, 08:41 AM   #17
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
We could look at a lot of stuff, but as my grandfather used to say,
Don't look a gift horse in the mouth...
 
Old 03-24-2005, 08:46 AM   #18
Bebo
Member
 
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 31
I think what happened is that the apm module was (at last ) properly loaded, and thus able to power off your system. The module is of course not unloaded just because you remove those lines in rc.M.

But, I'm probably (at least somewhat) wrong, since you say you just copied the script snippet into rc.M, and you don't say anything about uncommenting the apm lines. So, it might be that you have a /etc/rc.d/rc.acpid script, which did something good (as well as something bad, since there were some error messages).

A question: what's the output if you do modprobe apm ? If there is no output, is apm listed when you do lsmod ? If so, then there is no problem really, except for making the apm module load during boot.
 
Old 03-24-2005, 08:50 AM   #19
kevinatkins
Member
 
Registered: Jan 2004
Location: cheshire, uk
Distribution: Ubuntu Hoary
Posts: 605

Rep: Reputation: 33
hello,

try modifying your lilo.conf file -

Quote:
# Partition 2: Vector_Linux
image = /boot/vmlinuz
root = /dev/hda7
label = vector_linux
append = ""
read-only
change the line' append=""' to 'append="acpi=force"'; this worked for me.
 
Old 03-24-2005, 09:15 AM   #20
chocobanana
Member
 
Registered: Jun 2004
Location: Vice City
Distribution: Suse 10.1
Posts: 30

Original Poster
Rep: Reputation: 15
Hi

I tryed lsmod but it doesn't show anything about apm.

As for the modprobe apm output:

Code:
/lib/modules/2.4.29/kernel/arch/i386/kernel/apm.o.gz: init_module: No such device
/lib/modules/2.4.29/kernel/arch/i386/kernel/apm.o.gz: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
      You may find more information in syslog or the output from dmesg
/lib/modules/2.4.29/kernel/arch/i386/kernel/apm.o.gz: insmod /lib/modules/2.4.29/kernel/arch/i386/kernel/apm.o.gz failed
/lib/modules/2.4.29/kernel/arch/i386/kernel/apm.o.gz: insmod apm failed
Don't really understand it...

I also tryed "dmesg | grep ACPI":
Code:
apm: overridden by ACPI.
apm: overridden by ACPI.
Looks like acpi was somehow activated instead of APM. If one looks carefully at Chinaman's code, the apm code in commented but the acpi isn't. But I still don't get it, since I had that error at the first boot up.

BTW, I suspect that apm or acpi are only loaded before shutdown, so is there a script for the shutdown process? It's because right before the computer shutdown, I get the same output of "modprobe apm"...

Thanks

Last edited by chocobanana; 03-24-2005 at 09:32 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Computer doesn't turn off after shut down... figfighter Mandriva 3 07-22-2005 02:04 AM
Can't get the computer to shut off automatically KezzerDrix Mandriva 12 03-30-2005 08:07 AM
can't shut down computer - now I'm localhost? muzza Linux - Newbie 3 03-28-2005 07:15 AM
Computer Won't Shut Down djabbot Linux - General 3 01-11-2005 01:07 AM
power off the computer after shut down gary.chan Linux - Software 1 01-05-2003 10:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration