xrandr fails to set display using Thinkpad dock
When attempting to configure displays on a Lenovo Thinkpad (x240) & Thinkpad dock (40A10090US) Xrandr fails.
The monitors show up:
$ xrandr
Screen 0: minimum 8 x 8, current 1366 x 768, maximum 32767 x 32767
eDP1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 280mm x 160mm
1366x768 60.00*+
1280x720 59.86 60.00 59.74
1024x768 60.00
1024x576 60.00 59.90 59.82
960x540 60.00 59.63 59.82
800x600 60.32 56.25
864x486 60.00 59.92 59.57
640x480 59.94
720x405 59.51 60.00 58.99
680x384 60.00
640x360 59.84 59.32 60.00
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
DP2-1 disconnected (normal left inverted right x axis y axis)
DP2-2 connected (normal left inverted right x axis y axis)
3840x2160 30.00
2560x1600 59.97
2560x1440 59.95
1920x1080 60.00 60.00 50.00 59.94
1680x1050 59.88
1280x1024 75.02 60.02
1440x900 59.90
1280x960 60.00
1152x864 75.00
1280x720 60.00 50.00 59.94
1440x576 50.00
1024x768 75.03 70.07 60.00
1440x480 60.00 59.94
832x624 74.55
800x600 72.19 75.00 60.32 56.25
720x576 50.00
720x480 60.00 59.94
640x480 75.00 72.81 66.67 60.00 59.94
720x400 70.08
DP2-3 connected (normal left inverted right x axis y axis)
1680x1050 59.95 +
1280x1024 75.02 60.02
1440x900 59.89
1280x800 59.81
1152x864 75.00
1280x720 60.00
1024x768 75.03 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
640x480 75.00 72.81 66.67 59.94
720x400 70.08
However, when setting the display settings:
$ xrandr --output eDP1 --primary --mode 1366x768 --pos 0x0 --rotate normal --output DP1 --off --output DP2-1 --off --output DP2-2 --mode 2560x1600 --pos 1366x0 --rotate normal --output DP2-3 --mode 1680x1050 --pos 3926x0 --rotate normal
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: 46
Current serial number in output stream: 46
Different flags also fail:
$ xrandr --auto
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: 47
Current serial number in output stream: 47
Version information:
$ xrandr --version
xrandr program version 1.5.0
Server reports RandR version 1.5
Here's some dmesg output too:
[Thu Feb 28 23:14:22 2019] thinkpad_acpi: docked into hotplug port replicator
[Thu Feb 28 23:14:23 2019] usb 3-3: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[Thu Feb 28 23:14:23 2019] usb 3-3: New USB device found, idVendor=17ef, idProduct=1012, bcdDevice=50.31
[Thu Feb 28 23:14:23 2019] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[Thu Feb 28 23:14:23 2019] usb 3-3: Product: Lenovo ThinkPad Dock
[Thu Feb 28 23:14:23 2019] usb 3-3: Manufacturer: LENOVO
[Thu Feb 28 23:14:23 2019] hub 3-3:1.0: USB hub found
[Thu Feb 28 23:14:23 2019] hub 3-3:1.0: 4 ports detected
[Thu Feb 28 23:14:23 2019] usb 1-3: new high-speed USB device number 5 using xhci_hcd
[Thu Feb 28 23:14:23 2019] usb 1-3: New USB device found, idVendor=17ef, idProduct=1012, bcdDevice=50.30
[Thu Feb 28 23:14:23 2019] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[Thu Feb 28 23:14:23 2019] usb 1-3: Product: Lenovo ThinkPad Dock
[Thu Feb 28 23:14:23 2019] usb 1-3: Manufacturer: LENOVO
[Thu Feb 28 23:14:23 2019] hub 1-3:1.0: USB hub found
[Thu Feb 28 23:14:23 2019] hub 1-3:1.0: 4 ports detected
[Thu Feb 28 23:14:24 2019] usb 1-3.1: new full-speed USB device number 6 using xhci_hcd
[Thu Feb 28 23:14:24 2019] usb 1-3.1: New USB device found, idVendor=046d, idProduct=c52b, bcdDevice=12.03
[Thu Feb 28 23:14:24 2019] usb 1-3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[Thu Feb 28 23:14:24 2019] usb 1-3.1: Product: USB Receiver
[Thu Feb 28 23:14:24 2019] usb 1-3.1: Manufacturer: Logitech
[Thu Feb 28 23:14:24 2019] usb 1-3.2: new full-speed USB device number 7 using xhci_hcd
[Thu Feb 28 23:14:24 2019] usb 1-3.2: New USB device found, idVendor=1532, idProduct=011a, bcdDevice= 2.00
[Thu Feb 28 23:14:24 2019] usb 1-3.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[Thu Feb 28 23:14:24 2019] usb 1-3.2: Product: Razer BlackWidow Ultimate
[Thu Feb 28 23:14:24 2019] usb 1-3.2: Manufacturer: Razer
[Thu Feb 28 23:14:24 2019] usb 1-3.4: new high-speed USB device number 8 using xhci_hcd
[Thu Feb 28 23:14:24 2019] usb 1-3.4: New USB device found, idVendor=17ef, idProduct=1011, bcdDevice= 0.01
[Thu Feb 28 23:14:24 2019] usb 1-3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[Thu Feb 28 23:14:24 2019] usb 1-3.4: Product: Lenovo ThinkPad Dock
[Thu Feb 28 23:14:24 2019] usb 1-3.4: Manufacturer: Lenovo
[Thu Feb 28 23:14:24 2019] usb 1-3.4: SerialNumber: Rev1.2
[Thu Feb 28 23:14:24 2019] hub 1-3.4:1.0: USB hub found
[Thu Feb 28 23:14:24 2019] hub 1-3.4:1.0: 3 ports detected
[Thu Feb 28 23:14:24 2019] hidraw: raw HID events driver (C) Jiri Kosina
[Thu Feb 28 23:14:24 2019] usbcore: registered new interface driver usbhid
[Thu Feb 28 23:14:24 2019] usbhid: USB HID core driver
[Thu Feb 28 23:14:24 2019] input: Razer Razer BlackWidow Ultimate as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.2/1-3.2:1.0/0003:1532:011A.0004/input/input23
[Thu Feb 28 23:14:24 2019] hid-generic 0003:1532:011A.0004: input,hidraw0: USB HID v1.11 Keyboard [Razer Razer BlackWidow Ultimate] on usb-0000:00:14.0-3.2/input0
[Thu Feb 28 23:14:24 2019] input: Razer Razer BlackWidow Ultimate Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.2/1-3.2:1.1/0003:1532:011A.0005/input/input24
[Thu Feb 28 23:14:24 2019] input: Razer Razer BlackWidow Ultimate Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.2/1-3.2:1.1/0003:1532:011A.0005/input/input25
[Thu Feb 28 23:14:24 2019] input: Razer Razer BlackWidow Ultimate System Control as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.2/1-3.2:1.1/0003:1532:011A.0005/input/input26
[Thu Feb 28 23:14:24 2019] input: Razer Razer BlackWidow Ultimate as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.2/1-3.2:1.1/0003:1532:011A.0005/input/input27
[Thu Feb 28 23:14:24 2019] hid-generic 0003:1532:011A.0005: input,hidraw1: USB HID v1.11 Keyboard [Razer Razer BlackWidow Ultimate] on usb-0000:00:14.0-3.2/input1
[Thu Feb 28 23:14:24 2019] input: Razer Razer BlackWidow Ultimate as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.2/1-3.2:1.2/0003:1532:011A.0006/input/input28
[Thu Feb 28 23:14:24 2019] hid-generic 0003:1532:011A.0006: input,hidraw2: USB HID v1.11 Mouse [Razer Razer BlackWidow Ultimate] on usb-0000:00:14.0-3.2/input2
[Thu Feb 28 23:14:24 2019] logitech-djreceiver 0003:046D:C52B.0003: hiddev0,hidraw3: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:14.0-3.1/input2
[Thu Feb 28 23:14:25 2019] usb 1-3.4.1: new full-speed USB device number 9 using xhci_hcd
[Thu Feb 28 23:14:25 2019] input: Logitech Unifying Device. Wireless PID:101b Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.1/1-3.1:1.2/0003:046D:C52B.0003/0003:046D:101B.0007/input/input29
[Thu Feb 28 23:14:25 2019] hid-generic 0003:046D:101B.0007: input,hidraw4: USB HID v1.11 Mouse [Logitech Unifying Device. Wireless PID:101b] on usb-0000:00:14.0-3.1:1
[Thu Feb 28 23:14:25 2019] input: Logitech M705 as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.1/1-3.1:1.2/0003:046D:C52B.0003/0003:046D:101B.0007/input/input33
[Thu Feb 28 23:14:25 2019] logitech-hidpp-device 0003:046D:101B.0007: input,hidraw4: USB HID v1.11 Mouse [Logitech M705] on usb-0000:00:14.0-3.1:1
[Thu Feb 28 23:14:25 2019] usb 1-3.4.1: New USB device found, idVendor=1532, idProduct=0050, bcdDevice= 2.00
[Thu Feb 28 23:14:25 2019] usb 1-3.4.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[Thu Feb 28 23:14:25 2019] usb 1-3.4.1: Product: Razer Naga Hex V2
[Thu Feb 28 23:14:25 2019] usb 1-3.4.1: Manufacturer: Razer
[Thu Feb 28 23:14:25 2019] input: Razer Razer Naga Hex V2 as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.1/1-3.4.1:1.0/0003:1532:0050.0008/input/input34
[Thu Feb 28 23:14:25 2019] hid-generic 0003:1532:0050.0008: input,hidraw5: USB HID v1.11 Mouse [Razer Razer Naga Hex V2] on usb-0000:00:14.0-3.4.1/input0
[Thu Feb 28 23:14:25 2019] input: Razer Razer Naga Hex V2 Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.1/1-3.4.1:1.1/0003:1532:0050.0009/input/input35
[Thu Feb 28 23:14:25 2019] input: Razer Razer Naga Hex V2 Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.1/1-3.4.1:1.1/0003:1532:0050.0009/input/input36
[Thu Feb 28 23:14:25 2019] input: Razer Razer Naga Hex V2 System Control as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.1/1-3.4.1:1.1/0003:1532:0050.0009/input/input37
[Thu Feb 28 23:14:25 2019] input: Razer Razer Naga Hex V2 as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.1/1-3.4.1:1.1/0003:1532:0050.0009/input/input38
[Thu Feb 28 23:14:25 2019] hid-generic 0003:1532:0050.0009: input,hidraw6: USB HID v1.11 Keyboard [Razer Razer Naga Hex V2] on usb-0000:00:14.0-3.4.1/input1
[Thu Feb 28 23:14:25 2019] input: Razer Razer Naga Hex V2 as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.1/1-3.4.1:1.2/0003:1532:0050.000A/input/input39
[Thu Feb 28 23:14:25 2019] hid-generic 0003:1532:0050.000A: input,hidraw7: USB HID v1.11 Keyboard [Razer Razer Naga Hex V2] on usb-0000:00:14.0-3.4.1/input2
[Thu Feb 28 23:15:53 2019] audit: type=1130 audit(1551413753.790:42): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=udisks2 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
I'll help any way I can.