View previous topic :: View next topic |
Author |
Message |
f.kater Guru
Joined: 23 May 2002 Posts: 342 Location: Berlin
|
Posted: Sat May 25, 2002 5:05 pm Post subject: searching commands like 'poweroff' in portage / no poweroff |
|
|
Hi,
since I have changed from SuSE 7.3 to gentoo my system does not power off (after executing shutdown -h 0)... That's my main problem right now... (I have tried several kernels now with APM and with or without ACPI...)
My second problem is: 'poweroff' is an unknown command to my system. I'd like to install it - but which package in portage is to install?emerge -s "poweroff" doesn't find anything. Is poweroff only a synonym to shutdown -h 0 ?
How can I make it to find the right package in general?
Thank you for any help
Felix |
|
Back to top |
|
|
fghellar Bodhisattva
Joined: 10 Apr 2002 Posts: 856 Location: Porto Alegre, BR
|
|
Back to top |
|
|
f.kater Guru
Joined: 23 May 2002 Posts: 342 Location: Berlin
|
Posted: Sat May 25, 2002 6:21 pm Post subject: |
|
|
Thank you.
The problem remains
halt -p / shutdow -h 0 do not power off the system. The last lines on my screen are:
... Unmounting filesystems ... Remounting remaining filesystems readonly ... Power off ... /sbin/rc: return: can only 'return'from a function or sourced script.
Do you have any idea?
Felix |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20581
|
Posted: Sat May 25, 2002 7:12 pm Post subject: |
|
|
Did you compile power management into the kernel? Someone correct me, but I thought the actual power off part would only work with power managment (APM or ACPI) enabled. |
|
Back to top |
|
|
FyreFiend n00b
Joined: 24 May 2002 Posts: 17
|
Posted: Sun May 26, 2002 8:36 pm Post subject: |
|
|
I think kanuslupus is right. There should be something in the kernel config around powering off with a busted BIOS (I check the helps in the power management section). My box wouldn't power it's self down until I add that to the kernel. |
|
Back to top |
|
|
craftyc Guru
Joined: 23 May 2002 Posts: 443 Location: Behind You.
|
Posted: Sun May 26, 2002 9:57 pm Post subject: |
|
|
If you compile the Advanced Power Management BIOS Support, under General setup, then it should work. (Well it works for me anyway ) _________________ Postcount ++ |
|
Back to top |
|
|
f.kater Guru
Joined: 23 May 2002 Posts: 342 Location: Berlin
|
Posted: Mon May 27, 2002 9:47 am Post subject: |
|
|
Yes, I've now compiled a lot of kernels with nearly any existing combination of ACPI on /off, APM on/off but the system still doesn't power off
halt -p, shutdown -h 0, ... do not work.
the system goes down, it says "power off", then the hard disk is switched off (but not the computer itself) and at the end of the shutdown tasks there is this strange message (I've mentionend above):
/sbin/rc: return: can only 'return'from a function or sourced script
What the hell does this stand for?
further information:
- I tried emerging and unmerging acpid and / or apmd
- I tried switching off ACPI in BIOS - not possible
- the computer was powerd off fine with SuSE7.3 and Windows
Any further idea, guys? |
|
Back to top |
|
|
fghellar Bodhisattva
Joined: 10 Apr 2002 Posts: 856 Location: Porto Alegre, BR
|
|
Back to top |
|
|
craftyc Guru
Joined: 23 May 2002 Posts: 443 Location: Behind You.
|
Posted: Mon May 27, 2002 4:56 pm Post subject: |
|
|
How about using the .config file from your SuSe system? _________________ Postcount ++ |
|
Back to top |
|
|
f.kater Guru
Joined: 23 May 2002 Posts: 342 Location: Berlin
|
Posted: Mon May 27, 2002 6:51 pm Post subject: |
|
|
fghellar wrote: | Maybe this can help... |
hidee hidee hidee heeee
houdee houdee houdee hooo
THIS was the solution! Thanks to all of the 80 readers and writers of these postings and especially to fghellar!
Here a short summary in my words to everybody with the same problem:
A mainboard supports ether ACPI or APM. Figure out what's the right for your board (the newer it is the more likely it is ACPI) and so don't compile your kernel with both options on but only the right one.
Felix |
|
Back to top |
|
|
fghellar Bodhisattva
Joined: 10 Apr 2002 Posts: 856 Location: Porto Alegre, BR
|
|
Back to top |
|
|
|