Public bug reported: Binary package hint: xorg
I use a small script called by udev (as root user) whenever I place my laptop on the docking station or remove it again. This script uses xrandr to turn off the laptop display and switch on my primary monitor (or vice versa): DISPLAY=:0.0 xrandr --output HDMI1 --auto DISPLAY=:0.0 xrandr --output LVDS1 --off It used to work fine in lucid, but in maverick both commands fail: No protocol specified Can't open display :0.0 I've discovered two possible workarounds: - add XAUTHORITY=/var/run/gdm/auth-for-[...]/database to the commands - call xhost +si:localuser:root on login (as default user) At the moment, I use the second workaround as it is easier to implement. I can't see any reason why root should have no access, after all root has the power to take the required rights at any time. Therefore, I suggest to give root access by default, so scripts like these run without problems and this regression in comparison to lucid is fixed. ProblemType: Bug DistroRelease: Ubuntu 10.10 Package: xorg 1:7.5+6ubuntu3 ProcVersionSignature: Ubuntu 2.6.35-22.34-generic 2.6.35.4 Uname: Linux 2.6.35-22-generic x86_64 Architecture: amd64 DRM.card0.DisplayPort.1: status: disconnected enabled: disabled dpms: Off modes: edid-base64: DRM.card0.DisplayPort.2: status: disconnected enabled: disabled dpms: Off modes: edid-base64: DRM.card0.HDMI_Type_A.1: status: connected enabled: enabled dpms: On modes: 1920x1200 1600x1200 1280x1024 1280x1024 1152x864 1024x768 1024x768 800x600 800x600 640x480 640x480 720x400 edid-base64: AP///////wAQrBPQU0IxNSIRAQOAOiR47t5Qo1RMmyYPUFSlSwBxT4GAqUABAQEBAQEBAQEBKDyAoHCwI0AwIDYARmwhAAAaAAAA/wBSSjQ5MDc4TTUxQlMKAAAA/QA4TB5REQAKICAgICAgAAAA/ABERUxMIDI3MDdXRlAKACY= DRM.card0.HDMI_Type_A.2: status: disconnected enabled: disabled dpms: Off modes: edid-base64: DRM.card0.LVDS.1: status: connected enabled: enabled dpms: Off modes: 1366x768 edid-base64: DRM.card0.VGA.1: status: disconnected enabled: disabled dpms: Off modes: edid-base64: Date: Fri Oct 15 03:11:56 2010 DkmsStatus: vhba, 20100822, 2.6.32-24-generic, x86_64: installed vhba, 20100822, 2.6.32-25-generic, x86_64: installed vhba, 20100822, 2.6.35-22-generic, x86_64: installed InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100427.1) MachineType: Sony Corporation VGN-TT11VN_X PccardctlIdent: Socket 0: no product info available PccardctlStatus: Socket 0: no card ProcCmdLine: BOOT_IMAGE=/vmlinuz-2.6.35-22-generic root=/dev/mapper/ssd-root ro quiet splash ProcEnviron: LANG=de_DE.utf8 SHELL=/bin/bash SourcePackage: xorg Symptom: display dmi.bios.date: 03/11/2009 dmi.bios.vendor: INSYDE dmi.bios.version: R2020M4 dmi.board.asset.tag: N/A dmi.board.name: VAIO dmi.board.vendor: Sony Corporation dmi.board.version: N/A dmi.chassis.asset.tag: N/A dmi.chassis.type: 10 dmi.chassis.vendor: Sony Corporation dmi.chassis.version: N/A dmi.modalias: dmi:bvnINSYDE:bvrR2020M4:bd03/11/2009:svnSonyCorporation:pnVGN-TT11VN_X:pvrJ0034ZNW:rvnSonyCorporation:rnVAIO:rvrN/A:cvnSonyCorporation:ct10:cvrN/A: dmi.product.name: VGN-TT11VN_X dmi.product.version: J0034ZNW dmi.sys.vendor: Sony Corporation glxinfo: Error: [Errno 2] No such file or directory system: distro: Ubuntu codename: maverick architecture: x86_64 kernel: 2.6.35-22-generic ** Affects: xorg (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug maverick -- udev scripts running as root cannot use xrandr https://bugs.launchpad.net/bugs/660901 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs