[kde-freebsd] rebooting laptop when KDE4 is down

Schaich Alonso alonsoschaich at fastmail.fm
Mon Nov 4 08:42:42 UTC 2013


On Mon, 4 Nov 2013 08:28:37 +0100
Matthias Apitz <guru at unixarea.de> wrote:

> 
> Hello,
> 
> Due to a bug/problem in the new Xorg wit KMS, the X-server does not
> switch back to alpha console on termination. To power-down the laptop
> you only can user the power-off button to initiate with a short press
> the shutdown sequence. Ofc you do not see any messages of it and you
> have to hope that the machine goes to power-off state. Last day it
> happened that it did not went down and was sitting around two hours in
> my backpack in run level until the battery was finally empty :-(
> 
> In short, is there a way to reboot the machine after
> /usr/local/kde4/bin/startkde terminates, something like in .xinitrc:
> 
> ...
> /usr/local/kde4/bin/startkde
> /sbin/reboot
> 
> but as a normal user, not as root. /sbin/reboot only works as root. Such
> a reboot would bring the machine down, reset it and you may power-off
> while going through the boot menue screen.
> 
> Any ideas?
> 
> Thanks
> 
> 	matthias
> 

Hi,

This isn't even KDE specific, at least XFCE will also __sometimes__ cause the
shutdown sequence to hang/crash/abort. I workaround this by using the kdm
service instead of startx to start kde, and also logging out of the kdesktop
session before shutting down the box (i.e. using kdm's shutdown option
instead of kdesktop launcher's).

Alternatively, of cause, you can install sysutils/sudo,
configure a password-free /sbin/reboot policy for your user and prefix sudo
to the reboot call in your .xinitrc.

Alonso


More information about the kde-freebsd mailing list