[Pkg-acpi-devel] Bug#591813: acpi-support: Widespred use of "su $user" is (sometimes?) broken

Luca Niccoli lultimouomo at gmail.com
Thu Aug 5 17:50:37 UTC 2010

Package: acpi-support
Version: 0.137-3
Severity: normal

Hash: SHA1

while testing the lid.sh script I noticed that it didn't blank the screen.
It boils down to this: if from a root shell I set $DISPLAY and run
# xset dpms force off
# xrandr --output LVDS --off
it works; if I run
# su $user -c "xset dpms force off"
# su $user -s /bin/sh -c "xset dpms force off"
with $user set to the user that owns the X session, it does not, saying:
No protocol specified
xset:  unable to open display ":0"
(The same goes for xrandr)
It seems that root can use xset directly, but no via su.
This could be related to the fact that I migrated to gdm3, as I seem to
remember that the su method it used to work (or even be necessary) once upon a


- -- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (995, 'unstable'), (991, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.33 (SMP w/2 CPU cores)
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages acpi-support depends on:
ii  acpi-fakekey                  0.137-3    tool to generate fake key events
ii  acpi-support-base             0.137-3    scripts for handling base ACPI eve
ii  acpid                         1:2.0.6-1  Advanced Configuration and Power I
ii  lsb-base                      3.2-23.1   Linux Standard Base 3.2 init scrip
ii  pm-utils                      1.3.0-2    utilities and scripts for power ma
ii  x11-xserver-utils             7.5+2      X server utilities

Versions of packages acpi-support recommends:
ii  dbus                          1.2.24-3   simple interprocess messaging syst
pn  radeontool                    <none>     (no description available)
ii  vbetool                       1.1-2      run real-mode video BIOS code to a
pn  xscreensaver | gnome-screensa <none>     (no description available)

Versions of packages acpi-support suggests:
ii  rfkill                        0.4-1      tool for enabling and disabling wi
ii  xinput                        1.5.2-1    Runtime configuration and test of 

- -- Configuration Files:
/etc/acpi/lid.sh changed [not included]

- -- no debconf information

Version: GnuPG v1.4.10 (GNU/Linux)


More information about the Pkg-acpi-devel mailing list