Am Freitag, den 12.11.2010, 12:47 -0400 schrieb Ben Armstrong: > On 12/11/10 12:34 PM, Paul Menzel wrote: > > What display manager and DE are you using? > > gdm3 and LXDE (openbox). > > > It is owned by by my user. > > > > $ ls -l /home/paul/.Xauthority > > -rw------- 1 paul paul 1238 12. Nov 00:15 /home/paul/.Xauthority > > OK. This is very strange: > > sy...@shade:~$ su - > Password: > r...@shade:~# xeyes # a nice quick test if display works :) > r...@shade:~# xauth > Using authority file /var/run/gdm3/auth-for-synrg-MXsbdM/database > xauth> exit > r...@shade:~# export XAUTHORITY=/dev/null > r...@shade:~# xauth > Using authority file /dev/null > xauth> exit > r...@shade:~# xeyes # even after pointing at a > # bogus XAUTHORITY, xeyes still shows! > # say what?
Thank you for your test case. I discovered this works for me too until I run `detect_x_display`. $ sudo su - machine:~# xrandr Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 4096 x 4096 VGA1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 337mm x 270mm 1280x1024 75.0* 60.0 1024x768 75.1 75.0 70.1 60.0 832x624 74.6 800x600 72.2 75.0 60.3 56.2 640x480 72.8 75.0 66.7 60.0 720x405 70.0 720x400 70.1 LVDS1 connected (normal left inverted right x axis y axis) 800x480 60.0 + 640x480 85.0 72.8 75.0 59.9 720x400 85.0 640x400 85.1 640x350 85.1 TV1 disconnected (normal left inverted right x axis y axis) machine:~# . /usr/share/acpi-support/eeepc-acpi-scripts/lib/functions.sh machine:~# xrandr Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 4096 x 4096 VGA1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 337mm x 270mm 1280x1024 75.0* 60.0 1024x768 75.1 75.0 70.1 60.0 832x624 74.6 800x600 72.2 75.0 60.3 56.2 640x480 72.8 75.0 66.7 60.0 720x405 70.0 720x400 70.1 LVDS1 connected (normal left inverted right x axis y axis) 800x480 60.0 + 640x480 85.0 72.8 75.0 59.9 720x400 85.0 640x400 85.1 640x350 85.1 TV1 disconnected (normal left inverted right x axis y axis) machine:~# detect_x_display machine:~# xrandr No protocol specified Can't open display :0 Now I compared the environment variables before and after running `detect_x_display`. `XAUTHORITY` is set to som machine:~# env | grep XAUTHORITY XAUTHORITY=/var/run/gdm3/auth-for-paul-Hwcbtn/database machine:~# detect_x_display machine:~# env | grep XAUTHORITY XAUTHORITY=/home/paul/.Xauthority machine:~# ls -l /var/run/gdm3/auth-for-paul-Hwcbtn/database -rw------- 1 paul paul 52 13. Nov 05:27 /var/run/gdm3/auth-for-paul-Hwcbtn/database # probably created at login time machine:~# ls -l /home/paul/.Xauthority -rw------- 1 paul paul 106 13. Nov 05:29 /home/paul/.Xauthority Thanks, Paul
signature.asc
Description: This is a digitally signed message part