[Pkg-acpi-devel] Bug#649562: acpi-support: Fails to lock screen
Kevin Goodsell
kevin-dated-1337385285.3088d7 at omegacrash.net
Tue Nov 22 06:52:54 UTC 2011
Package: acpi-support
Version: 0.138-9
Severity: important
Dear Maintainer,
I have encountered two problems with the built-in screen locking functionality:
1) /usr/share/acpi-support/screenblank invokes su with $user as the username.
Presumably this was supposed to use the variable set by getXuser, but that
function exports $XUSER, not $user. Note that this mistake occurs several times
in the file.
2) In my case, getXuser set $XAUTHORITY to the wrong value. It seems to get this
value by searching /proc/$pid/environ and taking the first $XAUTHORITY it finds.
In my case, it found an mpd process that had been started in an earlier session.
The XAUTHORITY value was no longer valid. This may seem like a fluke, but it
looks like older processes (or at least lower PIDs) are checked first, making
this somewhat likely if the user happens to have processes from an older
session. Perhaps the ps call in getXuser could be modified to sort newest
processes first.
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing')
Architecture: i386 (i686)
Kernel: Linux 3.0.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages acpi-support depends on:
ii acpi-fakekey 0.138-9
ii acpi-support-base 0.138-9
ii acpid 1:2.0.12-1
ii lsb-base 3.2-28
ii pm-utils 1.4.1-8
ii x11-xserver-utils 7.6+3
Versions of packages acpi-support recommends:
ii dbus 1.4.16-1
ii gnome-screensaver 3.0.1-3
ii radeontool <none>
ii vbetool 1.1-2
ii xscreensaver 5.15-2
Versions of packages acpi-support suggests:
ii rfkill 0.4-1
ii xinput 1.5.3-1
-- no debconf information
More information about the Pkg-acpi-devel
mailing list