Your message dated Fri, 12 Oct 2012 12:02:33 +0000
with message-id <[email protected]>
and subject line Bug#686391: fixed in acpi-support 0.141-1
has caused the Debian Bug report #686391,
regarding acpi-support: screen doesn't lock on resume from suspend
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
686391: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=686391
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: acpi-support
Version: 0.140-5
Severity: normal


I have LOCK_SCREEN=true in /etc/default/acpi-support and noticed a while back
that it stopped working. Finally got around to debugging it.

In the script /usr/share/acpi-support/screenblank it loops over the contents of
/tmp/.X11-unix using these to check for displays. In the script it sets the
variable displaynum to the numberic suffix of the X contents of that directory.
On my system it contains 1 file 'X0', so displaynum gets set to '0'.

In getXuser from /usr/share/acpi-support/power-funcs it sets a local variable
display to ":$displaynum" or ":0" in my case.

getXuser gets the uid of the running user via parsing the output of
ck-list-sessions with an awk script. That awk script does an exact match
against the x11-display setting output of ch-list-sessions, which is ':0.0'.
So it compares ':0' against ':0.0' and fails.

So it never gets the uid and thus fails to set XUSER which means the call to
xtrlock (the lock program I use) fails as it doesn't run it as the user.

The fix could be handled in variable places. I'd probably tweak the awk script
to be more generous in what displays it matches. But you'll be a better judge
of what would be best.

Thanks.


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/4 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.140-5
ii  acpi-support-base  0.140-5
ii  acpid              1:2.0.16-1
ii  lsb-base           4.1+Debian7
ii  pm-utils           1.4.1-9
ii  x11-xserver-utils  7.7~3

Versions of packages acpi-support recommends:
ii  dbus                              1.6.0-1
pn  radeontool                        <none>
ii  vbetool                           1.1-2
pn  xscreensaver | gnome-screensaver  <none>

Versions of packages acpi-support suggests:
ii  rfkill  0.4-1
ii  xinput  1.6.0-1

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: acpi-support
Source-Version: 0.141-1

We believe that the bug you reported is fixed in the latest version of
acpi-support, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Meskes <[email protected]> (supplier of updated acpi-support package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 12 Oct 2012 12:11:39 +0200
Source: acpi-support
Binary: acpi-support acpi-support-base acpi-fakekey
Architecture: source all amd64
Version: 0.141-1
Distribution: unstable
Urgency: low
Maintainer: Debian Acpi Team <[email protected]>
Changed-By: Michael Meskes <[email protected]>
Description: 
 acpi-fakekey - tool to generate fake key events
 acpi-support - scripts for handling many ACPI events
 acpi-support-base - scripts for handling base ACPI events such as the power 
button
Closes: 682012 683914 686020 686391
Changes: 
 acpi-support (0.141-1) unstable; urgency=low
 .
   * Imported Upstream version 0.141:
     + drop asus-brightness-{up,down} handlers and asus-brn-{down,up} scripts.
     + asus-touchpad.sh: Don't handle Synaptics devices.
   * Use hardening build options.
   * Also use variable for switching display back on via xrandr.
     Thanks to Guillem Jover <[email protected]> (Closes: #682012)
   * Accept xautolock as screen locker.
     Thanks to gabriel <[email protected]> (Closes: #683914)
   * Downgraded dependency on consolekit to a suggestion because acpi-support
     works well without it in almost all cases and the overhead created for base
     system is huge. (Closes: #686020)
   * Some more cleaning up of dependencies.
   * Allow both, :0 and :0.0, as display information n getXuser().
     (Closes: #686391)
Checksums-Sha1: 
 dc30767a86f028b06ef63cb6c4d1be28ff24152c 1359 acpi-support_0.141-1.dsc
 82f9c3df481ca298b123dd2591390d0fe51cbe2c 21005 acpi-support_0.141.orig.tar.gz
 77bc2d20441c404f1793ac4fbd3610d94591fbe7 49715 acpi-support_0.141-1.diff.gz
 76d48baaeefc35ad1a05a66457fbdab71ae3a1be 53282 acpi-support_0.141-1_all.deb
 23450bc85393f4d36a547e572a3cc4a53bb6a729 22586 
acpi-support-base_0.141-1_all.deb
 2b80a85e65b8aa334da8e42d134f28c9946022e1 25458 acpi-fakekey_0.141-1_amd64.deb
Checksums-Sha256: 
 7e2c5ab3bc871eaf7436c284e25122ef5bd891277bcc56b20248df8c213fb16a 1359 
acpi-support_0.141-1.dsc
 5fe0677a2f4079cd1b9eaaee88c46bac3c65a7b26636702fd7b1294bea88a8a4 21005 
acpi-support_0.141.orig.tar.gz
 2188e01253c7ab1a0acf118428487e91c6f27454e87861d1ea346e3f0dc37ec1 49715 
acpi-support_0.141-1.diff.gz
 e3c5e2c264e41a90798cfef869434d7d3179f0bdb1dbf99d447125f4ebeaa0e3 53282 
acpi-support_0.141-1_all.deb
 f9b3bbf648c02f75190f231f2d75d817fe6f6e463efc0bcee4bc1f00be0bc3ea 22586 
acpi-support-base_0.141-1_all.deb
 01fa5d675cb88413418a3c159382dc8dab13f964c8e3581f6ddf779d0cd3cf62 25458 
acpi-fakekey_0.141-1_amd64.deb
Files: 
 16f2bae6d136430c215945281a67b465 1359 admin optional acpi-support_0.141-1.dsc
 b85c8c8295422124de07838ebfd5d562 21005 admin optional 
acpi-support_0.141.orig.tar.gz
 98dc358559797339fe770fee3e7a0943 49715 admin optional 
acpi-support_0.141-1.diff.gz
 52933dad72b5fae9fe32f7af83538ed3 53282 admin optional 
acpi-support_0.141-1_all.deb
 4c889215f314a34e3b555ced58c2688d 22586 admin optional 
acpi-support-base_0.141-1_all.deb
 8214383061e6d589b3fdf2794882ee72 25458 admin optional 
acpi-fakekey_0.141-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iD8DBQFQeAM9VkEm8inxm9ERAvbRAJ0ZjVQCH65wMzceUg6cERiI0VXRaACbBBLZ
haj4TiRxgwoaMT3p4mpY1fY=
=RrOL
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to