xrandr unable to activate displays after docking

Bug #1585884 reported by Erik Forsberg on 2016-05-26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
xorg (Ubuntu)

Bug Description

I use a Dell Latitude E7440 with an "Dell EURO2 Advanced E-Port II Docking" docking station.

When docking the laptop into the station, it's impossible to enable the two screens I have attached to the DVI outputs of the docking station. I use autorandr, and it reports this:

X Error of failed request: BadMatch (invalid parameter attributes)
  Major opcode of failed request: 140 (RANDR)
  Minor opcode of failed request: 21 (RRSetCrtcConfig)
  Serial number of failed request: 48
  Current serial number in output stream: 48
Failed to apply profile 'dock-with-benq' (line 610):
  Command failed: xrandr --output DP1-1 --gamma 1.0:1.0:1.0 --mode 1920x1200 --panning 0x0 --pos 0x0 --rate 59.95 --reflect normal --rotate normal --output DP1-2 --gamma 1.0:1.0:1.0 --mode 1920x1200 --panning 0x0 --pos 1920x0 --rate 59.95 --reflect normal --rotate normal (line 610)
This appears to be a bug. Please help improving autorandr by reporting it upstream.
Please attach the output of `xrandr --verbose` to your bug report if appropriate.

I'm reporting this as a bug on xserver-xorg-video-intel since the xrandr command works after reboot, so it's not related to autorandr (which is just a wrapper around xrandr).

Attaching output of xrandr --verbose

Please let me know if I can do anything more to help identifying the problem.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: xorg 1:7.7+13ubuntu3
ProcVersionSignature: Ubuntu 4.4.0-22.40-generic 4.4.8
Uname: Linux 4.4.0-22-generic x86_64

ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: None
CurrentDesktop: i3
Date: Thu May 26 07:55:49 2016
DistUpgraded: 2016-03-14 10:12:08,880 DEBUG failed to SystemUnLock() (E:Not locked)
DistroCodename: xenial
DistroVariant: ubuntu
EcryptfsInUse: Yes
ExtraDebuggingInterest: Yes
 Intel Corporation Haswell-ULT Integrated Graphics Controller [8086:0a16] (rev 0b) (prog-if 00 [VGA controller])
   Subsystem: Dell Haswell-ULT Integrated Graphics Controller [1028:05cb]
InstallationDate: Installed on 2014-09-16 (617 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
MachineType: Dell Inc. Latitude E7440
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-22-generic root=UUID=73b1620f-2cae-4ea9-bfc3-26054a69070e ro quiet splash psmouse.resetafter=1 vt.handoff=7
SourcePackage: xorg
Symptom: display
UpgradeStatus: Upgraded to xenial on 2016-03-14 (72 days ago)
dmi.bios.date: 05/19/2015
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A15
dmi.board.name: 0PPXP5
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 9
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA15:bd05/19/2015:svnDellInc.:pnLatitudeE7440:pvr01:rvnDellInc.:rn0PPXP5:rvrA00:cvnDellInc.:ct9:cvr:
dmi.product.name: Latitude E7440
dmi.product.version: 01
dmi.sys.vendor: Dell Inc.
version.compiz: compiz 1:
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.67-1
version.libgl1-mesa-dri: libgl1-mesa-dri 11.2.0-1ubuntu2
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 11.2.0-1ubuntu2
version.xserver-xorg-core: xserver-xorg-core 2:1.18.3-1ubuntu2
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.10.1-1ubuntu2
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.7.0-1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20160325-1ubuntu1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.12-1build2
xserver.bootTime: Thu May 26 07:43:47 2016
xserver.configfile: default

xserver.logfile: /var/log/Xorg.0.log
 product id 4413
 vendor AUO
xserver.version: 2:1.18.3-1ubuntu2

Erik Forsberg (forsberg) wrote :
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xorg (Ubuntu):
status: New → Confirmed
Changed in xorg (Ubuntu):
importance: Undecided → Medium
visnae (visnae) wrote :

I'm not on `autorandr` only plain `xrandr`.

If I boot while in dock, everything works fine. I can even remove my laptop from dock and suspend/resume it outside of dock, dock it again, and everything still works as long as I didn't attach an external monitor during that time.

However, if I attach another monitor while undocked, then detach the monitor and come back to the dock, I will not be able to use my docks monitors because of this bug. I have to reboot my laptop (in dock) to get it to work properly.

Mattias Flodin (mattiasflodin) wrote :

This happens to me when I undock a Lenovo laptop (Intel graphics card) and dock it again, in a docking station with two attached monitors.

Rebooting is not necessary; simply logging out works around the issue. I assume that this is because the X.org server restarts.

Does anyone know if, as a workaround, I can achieve the effect of resetting all the display configuration without restarting X or logging out?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers