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

Michael Meskes meskes at debian.org
Mon Aug 16 14:11:22 UTC 2010


> 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
> or
> # xrandr --output LVDS --off
> it works; if I run

It doesn't for me, so this may depend on your settings.

> # su $user -c "xset dpms force off"
> or
> # 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"

This seems to work for me without a problem.

Michael
-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
ICQ 179140304, AIM/Yahoo/Skype michaelmeskes, Jabber meskes at jabber.org
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL





More information about the Pkg-acpi-devel mailing list