[Pkg-acpi-devel] Bug#605219: Bug#605219: acpi-support-base: power button stopped working

Michael Meskes meskes at debian.org
Sun Nov 28 11:40:13 UTC 2010


On Sun, Nov 28, 2010 at 10:11:39AM +0100, Sven Joachim wrote:
> > Since the upgrade to version 0.138-1, my system no longer shuts down
> > when I press the power button.  Note that I'm not using a desktop
> > environment.
> 
> Additionally, I switched to the console before pressing the power
> button.  This caused the following message to appear in the syslog:
> 
> ,----
> | Nov 27 23:28:32 turtle powerbtn-acpi-support.sh: power-funcs: mismatch, */X or */Xorg expected
> `----
> 
> Shutting down still works under X, though.  I'm not sure that it is a
> very good idea that pwf_error() exits when anything unexpected happens,
> canceling the shutdown.

Let me recap, if you are under X your X power manager comes up and enables you
to shutdown the system right?

If not you get that error message in syslog and no reaction. Could you please
check which value $1 has in that case statement in
/usr/share/acpi-support/power-funcs? Or as root run 
ps wt tty`fgconsole` --no-headers
and tell us the output. 

I'd like to figure out why getXconsole() doesn't work for you, it certainly
does for me. 

One last point concerning pwf_error, if it did not exit, the system would
shutdown even if the GUI power manager was running. I'm not sure if this is
better.

Michael

-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
Jabber: michael.meskes at googlemail dot com
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL





More information about the Pkg-acpi-devel mailing list