Tobias Lorenz wrote:
Am Mittwoch, 15. August 2007 21:24 schrieben Sie:
On Wed, August 15, 2007 09:10, Bart Samwel wrote:
playing around with the acpi-support scripts, I found something unusual
in /usr/share/acpi-support/power-funcs. The function getXconsole should
return the DISPLAY variable of the local X11 screen. In my case it
returns "0\n0".
Thanks for the report. Could you send us the output of "fgconsole" and
"ps ax" on your machine? That'll help us debug this situation.
As far as I can tell, this can only be caused by the expression
ps ax | grep -e 'X .* vt'$console | grep -v grep | sed -re 's!.*/X
.*:([0-9]+).*!\1!'
returning more than one line. Perhaps the X server has forked / runs
multiple threads, I don't know exactly what "ps ax" shows in these cases.
We may fix it up by adding a simple "| uniq", I guess, but I'd like to
know what causes it. Raphael, what do you think?
You are right. I'm running kdm in almost standard configuration and fglrx. And
that is what fgconsole and the ps ax returns:
------------
[EMAIL PROTECTED]:/home/users/tobias# fgconsole
7
[EMAIL PROTECTED]:/home/users/tobias# ps ax | grep -e 'X .* vt'7 | grep -v grep
3805 tty7 S<Ls+ 8:30 /usr/bin/X -br -nolisten tcp :0 vt7 -auth
/var/run/xauth/A:0-4xjQ0d
3901 tty7 S<L+ 0:00 /usr/bin/X -br -nolisten tcp :0 vt7 -auth
/var/run/xauth/A:0-4xjQ0d
------------
OK, this is probably caused by the frglx then. Adding "uniq" should
cover this situation. I'll take care of it!
Cheers,
Bart
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]