Date: Tue, 13 Jun 2006 14:07:20 -0600 (MDT) From: Brad Huntting <huntting@studious.glarp.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/98918: kdm fails to 'Turn Off Computer' as advertized Message-ID: <200606132007.k5DK7KAP002040@studious.glarp.com> Resent-Message-ID: <200606140120.k5E1KDck062770@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 98918 >Category: ports >Synopsis: kdm fails to 'Turn Off Computer' as advertized >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jun 14 01:20:12 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Brad Huntting >Release: FreeBSD 6.1-RELEASE i386 >Organization: >Environment: System: FreeBSD studious.glarp.com 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:32:43 UTC 2006 root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: kdm's 'Turn Off Computer' button halts the machine, but does not power down. There was a time (before portupgrade) when this bug seemed only a minor anoyance. But with the magic of 'portupgrade -a', and the increasing age of my brain, I now get burned every time the kdebase port changes. >How-To-Repeat: run kdm (on laptop) press 'Turn Off Computer' unplug power cord board airplane deplane to find dead battery >Fix: The fix would appear to be trivial: diff -NPru /usr/ports/x11/kdebase3/files/patch-kdm-config.def kdebase3/files/patch-kdm-config.def --- /usr/ports/x11/kdebase3/files/patch-kdm-config.def Wed Dec 31 17:00:00 1969 +++ kdebase3/files/patch-kdm-config.def Tue Jun 13 14:00:15 2006 @@ -0,0 +1,12 @@ +--- kdm/config.def.orig Mon Oct 10 09:04:31 2005 ++++ kdm/config.def Tue Jun 13 13:59:59 2006 +@@ -35,6 +35,9 @@ + #ifdef _AIX + # define HALT_CMD "/usr/sbin/shutdown -h now" + # define REBOOT_CMD "/usr/sbin/shutdown -r now" ++#elif defined(__FreeBSD__) ++# define HALT_CMD "/sbin/shutdown -p now" ++# define REBOOT_CMD "/sbin/shutdown -r now" + #elif defined(BSD) + # define HALT_CMD "/sbin/shutdown -h now" + # define REBOOT_CMD "/sbin/shutdown -r now" >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606132007.k5DK7KAP002040>