On 2010-11-28 12:40 +0100, Michael Meskes wrote: > 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?
I don't have an X power manager, the system shuts down right away. > 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. ,---- | # ps wt tty $(fgconsole) --no-headers | 1726 tty1 Ss 0:00 /bin/login -- | 1919 tty1 S 0:00 -bash | 1952 tty1 R+ 0:00 ps wt tty1 --no-headers `---- > 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. May be debatable, yes. All that I want is that the system shuts down cleanly when I press the power button, that comes in handy when GPU or keyboard is locked up and no sshd running to come to the rescue. Cheers, Sven -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org