You are not logged in.

#1 2012-07-07 17:32:00

just-22
Member
From: Milano, Italy
Registered: 2011-05-17
Posts: 3

Yet another "xrandr -display" strange behavior

I'm confident this is expected to work, but it doesn't on my system (Compaq 610, GME965/GLE960 Integrated Graphics Controller, xf86-video-intel-uxa 2.19.0-6).

Well, I've got two X servers running (each of them started by gdm-old, logging a different user) - (Note: all the following commands are issued as root)

root@icarus ~ # ps -C Xorg -f
UID        PID  PPID  C STIME TTY          TIME CMD
root       522   520  0 16:18 tty7     00:00:30 /usr/bin/Xorg :0 -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7
root      3103  3100  2 19:15 tty8     00:00:02 /usr/bin/Xorg :20 -audit 0 -auth /var/lib/gdm/:20.Xauth -nolisten tcp vt8

Now, from vt7 I can control the display ":0" as expected:

root@icarus ~ # export DISPLAY=":0"
root@icarus ~ # export XAUTHORITY="/var/lib/gdm/:0.Xauth"
root@icarus ~ # xrandr --output LVDS1 --mode 1024x768
[resolution changed]

Not the same when I try to execute xrandr on the other display:

root@icarus ~ # export DISPLAY=":20"
root@icarus ~ # export XAUTHORITY="/var/lib/gdm/:20.Xauth"
root@icarus ~ # xrandr --output LVDS1 --mode 1024x768
xrandr: Configure crtc 1 failed

Same behavior using the xauthority files inside the user home directories. And nothing change if I try something like "xhost +" (maybe it doesn't matter at all...)

Any hint? This is a blocking point, because I cannot reliably dock/undock my laptop (the commands above are part of a script that I wish to put in /etc/pm/sleep.d in order to force the right display configuration on resume from suspend/hibernate).

Thanks for your help


Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.
(S. Beckett)

Offline

Board footer

Powered by FluxBB