Fair enough. The next best situation for Hardy, would be to perfect my workaround script /etc/acpi/local/lid.sh.pre ( https://bugs.launchpad.net/ubuntu/+source/gnome-power- manager/+bug/41994/comments/21 )
Currently the script detects the XAUTHORITY and DISPLAY environment variables in this manner: export XAUTHORITY=`ls -1 /home/*/.Xauthority` export DISPLAY=:0 This is unreliable as I understand things (which may be wrong), since with multiple concurrent logged-on desktop users ("switch users"), there may be more than one .Xauthority file and more than one display. How, in a shell script or similar, can I detect the currently active console .Xauthority and currently active console display, even if there are multiple concurrent desktop users logged in? -- closed Laptop Lid to reliably keep Backlight off https://bugs.launchpad.net/bugs/41994 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs