On Sat, Oct 07, 2006 at 12:30:23AM +0200, Wolf Wiegand wrote:
> However, sometimes (sorry, cannot be more specific) lid.sh just does not
> work at all. I close the lid, and s2ram (or screenblank, for that
> matter) just is not executed. I put some debugging statements into the
> script. The problem is that '[ x"$XAUTHORITY" != x"" ]' (around line
> 17) returns False, which results in nothing being executed.

I have noticed the same on my end, and in my case it is the call
                user=`finger| grep -m1 ":$displaynum" | awk '{print $1}'`
in /usr/share/acpi-support/power-funcs that returns nothing. I checked
the output of 'finger' and it returns the line

Login     Name                  Tty      Idle  Login Time   Office     Office 
Phone
chn       Christian Haggstrom  *tty1       3d  May  3 08:32

There is no :0 here, which I believe is because I started my X session
using 'startx' command from tty1.

The getXuser subroutine should be fixed to handle these cases.

> To have this fixed for my needs, I just replaced the whole 'for x in
> /tmp/.X11-unix/*; do .... done' stuff with /usr/sbin/s2ram, but it'd be
> neat if this could be fixed for real. If you need any more information
> or tests, feel free to contact me.

I also believe that the call to 'radeontool light off' should be
outside the 'for x in /tmp/.X11-unix/*; do .... done' loop, as it
doesn't need X running. I want to turn off the backlight even
in console mode.

/ Christian


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to