sony-vaio-z-series team mailing list archive
-
sony-vaio-z-series team
-
Mailing list archive
-
Message #01363
Re: VPCZ11Z9E - screen does not light up on resume
On 24.06.2010 13:49, Xavier Hallade wrote:
> Maybe you have to execute "cp /home/you/.Xauthority /root/" too.
You are right, if the script is executed as user root, it needs access
permission. However, I would prefer something like
export DISPLAYUSER=`ps --no-heading -o user -C startkde`
xauth add `sudo -u $DISPLAYUSER -s xauth list :0.0`
over copying the whole .Xauthority file. But kde experts might even know
better ways (e.g. like su does it in an X terminal...)
Regards,
Bernd
Follow ups