[Debian-eeepc-devel] Bug#598097: eeepc-acpi-scripts: `gdm3` uses different `XAUTHORITY` file (was: vga toggling not working: `xrandr -q`: No protocol specified)
Paul Menzel
pm.debian at googlemail.com
Sat Nov 13 09:06:47 UTC 2010
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:
>
> synrg at shade:~$ su -
> Password:
> root at shade:~# xeyes # a nice quick test if display works :)
> root at shade:~# xauth
> Using authority file /var/run/gdm3/auth-for-synrg-MXsbdM/database
> xauth> exit
> root at shade:~# export XAUTHORITY=/dev/null
> root at shade:~# xauth
> Using authority file /dev/null
> xauth> exit
> root at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/debian-eeepc-devel/attachments/20101113/869784e1/attachment.pgp>
More information about the Debian-eeepc-devel
mailing list