9 Feb
2009
9 Feb
'09
7:03 p.m.
xset needs to connect to the X server, so it needs both for the DISPLAY to be specified and also to have access to the XAuthority cookie for the X server. Otherwise it will not work - can't connect to the X server.
Since acpid runs as a sytem service it ussually doesn't have access to that information.
Hmm, so, so far, everything seems to be working fine... One can play "DISPLAY=:0" before "xset dpms force off", but how does one grant it access to the XAuthority cookie?