Can not turn off computer

Please post any bugs you have found
Post Reply
Message
Author
User avatar
phantrongnghia
Posts: 205
Joined: Mon 24 Apr 2006, 14:11
Location: Hanoi,Vietnam
Contact:

Can not turn off computer

#1 Post by phantrongnghia »

I am using puppy 2.01

I can't turn off computer, when I choose poweroff, it always startx


How to fix ?

Thanks

marksouth2000
Posts: 622
Joined: Wed 05 Apr 2006, 20:43

#2 Post by marksouth2000 »

At the boot prompt, try experimenting with some different choices:

Code: Select all

puppy acpi=on
puppy acpi=off
puppy acpi=force
At least one of these should allow you to shutdown the machine by selecting "poweroff" from the menu.

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#3 Post by Dougal »

Try running in a terminal

Code: Select all

modprobe apm
then shutting down. If it does the job you can add that line into /etc/rc.d/rc.local.
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#4 Post by Flash »

If you figure it out, please edit your original post to add "(Solved)" to the subject line. :)
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=69321][color=blue]Puppy Help 101 - an interactive tutorial for Lupu 5.25[/color][/url]

gw
Posts: 89
Joined: Sat 22 Apr 2006, 20:19
Location: Suisse
Contact:

#5 Post by gw »

Hello,

I have also problems to shutdown with puppy 2.00 and 2.01 but only on a Toshiba Tecra. I've tried the following :

Boot options :
puppy acpi=on : I must remove the battery to shutdown
puppy acpi =off : I can shutdown, but..only with the switch ON/OF button
puppy acpi = force : I can only shutdown by removing the battery (switch ON/OFF does nothing)

I've also tried the command "modprobe apm" but I receive the message :
FATAL:Error inserting apm (/lib/modules/2.6.16.7/arch/apm.ko) : No such device).

With puppy 1.08 and 1.09 I had no problem with the Toshiba.
I have no problem with my other machines, and with these machines, the command "modprobe apm" does not give an error message.

If you have any idea.....

Amicalement
-- gw

Billcnz
Posts: 215
Joined: Fri 30 Jun 2006, 23:07
Location: Wellington New Zealand

#6 Post by Billcnz »

as per Dougle's post above, I found I also had to add a "modprobe apm" line to the /etc/rc.d/rc.local to get my Toshiba laptop to automatically power off after shutdown, but are we missing the point of the original question here? I think he is saying that X is restarting after he logs out?

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#7 Post by MU »

Bill, right :oops:

It might help to see the last lines in the file
/root/.xinitrc

And the section for reboot/poweroff in /root.jwmrc

Maybe the translation caused a problem?

In my Puppy 2.01 it looks like this, how looks yours, phantrongnghia ?

Code: Select all

  <Menu label="Shut Down" icon="shutdown24.xpm" height="16">
   <Exit confirm="false" label="Exit to prompt" icon="prompt16.xpm" />
   <Program label="Reboot computer" icon="mini-turn.xpm">exec /usr/X11R6/bin/wmreboot</Program>
   <Program label="Power-off computer" icon="mini-stop.xpm">exec /usr/X11R6/bin/wmpoweroff</Program>
   <Restart label="JWM restart" icon="mini-windows.xpm"/>
<!--   <Program label="xxx restart" icon="mini-windows.xpm">restartwm jwm</Program> -->
<!--   <Program label="Fvwm95 restart" icon="mini-windows.xpm">restartwm fvwm95</Program> -->
<!--   <Program label="iceWM restart" icon="mini-windows.xpm">restartwm icewm</Program> -->
   <Program label="X restart" icon="mini-x.xpm">restartwm</Program>
  </Menu>
Mark

Post Reply