Bug 71182 - 'turn off computer' halts machine in stead of shutting it down
Summary: 'turn off computer' halts machine in stead of shutting it down
Status: RESOLVED WORKSFORME
Alias: None
Product: kdm
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdm bugs tracker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-24 16:45 UTC by Dik Takken
Modified: 2008-08-10 09:48 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
My kdmrc file. (1.63 KB, text/plain)
2004-03-12 00:13 UTC, Dik Takken
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dik Takken 2003-12-24 16:45:16 UTC
Version:            (using KDE KDE 3.1.94)
Installed from:    Compiled From Sources
OS:          Linux

When I choose to shut down my computer from the KDE logout menu, the computer is halted, not shut down.
Comment 1 Thiago Macieira 2003-12-24 18:14:01 UTC
Mine is turned off (I think; initscripts never work).
Comment 2 Oswald Buddenhagen 2003-12-24 19:34:21 UTC
you need apm or acpi support in your kernel for this to work. additionally, as thiago mentioned, the initscripts must do the right thing (call 'halt -p' or 'poweroff'). as far as kdm is concerned, halt and poweroff are the same thing (runlevel 0).
Comment 3 Dik Takken 2003-12-29 13:27:49 UTC
Sorry, but I *do* have a KDM problem here. Shutting down from console-login works perfectly, as it always did (using "/sbin/poweroff"). Shutting down from inside KDE also worked perfectly in KDE 3.1.x, but since KDE 3.2.x, Shutting down from inside KDE never works.

Something must have changed since KDE 3.1.x that changes the shutdown behavior on my box.
Comment 4 Oswald Buddenhagen 2003-12-30 13:20:48 UTC
that shutdown does not work entirely might be bug #68844, but that doesn't seem to be the case. your descriptions of the observed failure are overly terse, so i don't know what you're actually seeing at all. anyway, i still don't think you're seeing a kde/kdm bug, at most a kdm-induced one. check if ShutdownCmd in kdmrc is correct.
Comment 5 Dik Takken 2004-03-12 00:12:36 UTC
Today, I upgraded another computer (Redhat 9) from KDE 3.1.5 to KDE 3.2.1 and guess what: On selecting "Shut down Computer" from the KDE logout menu, the computer no longer powers down, but it just halts. Exactly the same problem as I already spotted in the KDE 3.2 beta series. 

I will re-open this bug and attach my kdmrc.
Comment 6 Dik Takken 2004-03-12 00:13:36 UTC
Created attachment 5181 [details]
My kdmrc file.
Comment 7 Oswald Buddenhagen 2004-03-12 00:24:57 UTC
you have no HaltCmd configured - maybe the default is inappropriate for your system. run genkdmconf to get some hints into kdmrc if you don't know where to start.

btw, that you are still seeing the problem does not authorize you to dismiss the INVALID resolution. you can if you present new evidence that it _is_ an actual BUG in kdm.
Comment 8 Dik Takken 2004-03-13 14:56:12 UTC
Ah, the magic word... Executing genkdmconf fixed everything on all Redhat boxes that I upgraded to KDE 3.2. Thank you VERY much.

btw, I dismissed the INVALID resolution because I thought the fact that the same problem showed up on multiple more or less independent KDE 3.2 configurations was enough 'evidence' to do this.
Comment 9 madman 2006-04-27 01:52:36 UTC
Shouldn't /sbin/poweroff be the default command to power off a machine?
The task of /sbin/halt is actually to stop (halt) the machine, not to power it off. So depending on a particular system, it might power it off or not.

So if the desire is to shut the machine down completely, wouldn't poweroff be a better choice?

[KDE 3.5.2, tested on gentoo: halt - halts the machine, poweroff - halts and powers down]
Comment 10 Rick Tee 2008-08-10 06:25:36 UTC
Confirmed this is a bug in as much as the behavior is not the same as GDM or previous versions of KDM. As madman says it should be /usr/bin/poweroff NOT /sbin/halt or the computer may not shutdown which is what happens here. 
Comment 11 Rick Tee 2008-08-10 09:48:18 UTC
Work around: Edit /usr/share/config/kdm/kdmrc
change: HaltCmd=/sbin/halt
to: HaltCmd=/usr/bin/poweroff (or where ever your poweroff command is)