Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
searching commands like 'poweroff' in portage / no poweroff
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
f.kater
Guru
Guru


Joined: 23 May 2002
Posts: 330
Location: Berlin

PostPosted: Sat May 25, 2002 5:05 pm    Post subject: searching commands like 'poweroff' in portage / no poweroff Reply with quote

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
View user's profile Send private message
fghellar
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 856
Location: Porto Alegre, BR

PostPosted: Sat May 25, 2002 5:45 pm    Post subject: Reply with quote

You can use halt instead of poweroff.
_________________
| www.gentoo.org | www.tldp.org | www.google.com |
Back to top
View user's profile Send private message
f.kater
Guru
Guru


Joined: 23 May 2002
Posts: 330
Location: Berlin

PostPosted: Sat May 25, 2002 6:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 16090
Location: Colorado

PostPosted: Sat May 25, 2002 7:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
FyreFiend
n00b
n00b


Joined: 24 May 2002
Posts: 17

PostPosted: Sun May 26, 2002 8:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
craftyc
Guru
Guru


Joined: 23 May 2002
Posts: 443
Location: Behind You.

PostPosted: Sun May 26, 2002 9:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
f.kater
Guru
Guru


Joined: 23 May 2002
Posts: 330
Location: Berlin

PostPosted: Mon May 27, 2002 9:47 am    Post subject: Reply with quote

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
View user's profile Send private message
fghellar
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 856
Location: Porto Alegre, BR

PostPosted: Mon May 27, 2002 3:25 pm    Post subject: Reply with quote

Maybe this can help...
_________________
| www.gentoo.org | www.tldp.org | www.google.com |
Back to top
View user's profile Send private message
craftyc
Guru
Guru


Joined: 23 May 2002
Posts: 443
Location: Behind You.

PostPosted: Mon May 27, 2002 4:56 pm    Post subject: Reply with quote

How about using the .config file from your SuSe system?
_________________
Postcount ++
Back to top
View user's profile Send private message
f.kater
Guru
Guru


Joined: 23 May 2002
Posts: 330
Location: Berlin

PostPosted: Mon May 27, 2002 6:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
fghellar
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 856
Location: Porto Alegre, BR

PostPosted: Tue May 28, 2002 2:29 am    Post subject: Reply with quote

As Autobot's sig says, "One is glad to be of service." :)
_________________
| www.gentoo.org | www.tldp.org | www.google.com |
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum