Adam wrote: > When I first bought this box late last year, pressing and releasing the > power switch seemed to invoke the equivalent of 'sudo poweroff', which I > liked. Since about last week, that doesn't do anything. I don't think > I've changed anything that would affect it, and I don't see any BIOS > setting for this. Where should I look? Been running Mandriva 2008.0 > all along, if that matters. Thanks! >
There's a couple of things that I would look at: first off, are you running acpid? acpid watches for harware events and runs scripts in userspace in response. You can tail the logfile for it (/var/log/acpid on ubuntu) and see if you're getting an event from the power button and (to some extent) see what acpid is doing in response to it. It probably should be running a script like /etc/acpi/events/powerbtn which might have changed its function for some reason and you might want to just replace it with "sudo poweroff". That failing, I would run dmesg after pressing the power button - is the system logging anything? On my work laptop, the acpi scripts check for gnome-power-manager or KDE: if either is running and the DCOP server (desktop communication protocol) is running it sends a dcop message and lets the session layer deal with it. If those are not running it just does a shutdown. IIRC, A prior version of this sent an event to X which then got translated to a dbus event which was picked up by gnome-power-manager which then initiated the action - very annoying. In addition to the Rue Goldberg design of the whole thing, the fact that the event was dispatched through X prevented the sleep button from working when the screenlock was on. Hope this helps. > Adam > > _______________________________________________ > Mid-Hudson Valley Linux Users Group http://mhvlug.org > > http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug > Upcoming Meetings (6pm - 8pm) MHVLS Auditorium > > Jun 4 - Sqeak! and eToys > Jul 2 - KVM (Tenative) > Aug 6 - Zenos > Sep 3 - TBD > ============================================================================= michaelMuller = [EMAIL PROTECTED] | http://www.mindhog.net/~mmuller ----------------------------------------------------------------------------- We are the music-makers, and we are the dreamers of dreams - Arthur O'Shaughnessy ============================================================================= _______________________________________________ Mid-Hudson Valley Linux Users Group http://mhvlug.org http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug Upcoming Meetings (6pm - 8pm) MHVLS Auditorium Jun 4 - Sqeak! and eToys Jul 2 - KVM (Tenative) Aug 6 - Zenos Sep 3 - TBD
