Giter VIP home page Giter VIP logo

Comments (13)

phillipberndt avatar phillipberndt commented on May 25, 2024 1

Explicitly enabling DP-2-1 (even though it claims to already be enabled) makes the external monitor work.

Then perhaps you can build a predetect script based on that? I'm sorry, adding hardware and configuration specific fixes to autorandr isn't really an option, I fear it'd be a maintenance hell. (..as only people who have affected hardware can test the fixes.) If you can come up with a way to detect this situation that is independent of the actual driver that'd be something we could implement though.

Another weirdness is that I have to enable DP-2-1 first, then in a 2nd call to xrandr, disable eDP-1. Trying to do it all in 1 command doesn't enable the monitor.

That, on the other hand, is a very common issue. autorandr tries to be semi-intelligent about this and splits the changes into multiple xrandr calls.

from autorandr.

phillipberndt avatar phillipberndt commented on May 25, 2024

Please attach the output of xrandr --verbose from a time when autorandr fails with this error message. I'd suspect that the EDID is actually missing. Does it help to run xrandr -q, and then rerun autorandr?

from autorandr.

cycomanic avatar cycomanic commented on May 25, 2024

I'm running into the same issue, also on a Lenovo Carbon X1. See below for the relevant output from xrandr --verbose

DP-2-1 connected primary 2880x1800+0+0 (0x4f) normal (normal left inverted right x axis y axis) 518mm x 324mm
Identifier: 0x47
Timestamp: 15757635
Subpixel: unknown
Gamma: 1.0:1.0:1.0
Brightness: 1.0
Clones:
CRTC: 0
CRTCs: 1 0 2
Transform: 1.500000 0.000000 0.000000
0.000000 1.500000 0.000000
0.000000 0.000000 1.000000
filter: bilinear
EDID:
00ffffffffffff004c2d860c564a5a5a
191a0103803420782a01f1a257529f27
0a505423080081c0810081809500a9c0
b300d1c00101283c80a070b023403020
360006442100001a000000fd00383c1e
5111000a202020202020000000fc0053
3234453635300a2020202020000000ff
0048345a483630353139390a20200165
02010400023a80d072382d40102c4580
06442100001e011d007251d01e206e28
550006442100001e011d00bc52d01e20
b828554006442100001e8c0ad0902040
31200c4055000644210000188c0ad08a
20e02d10103e96000644210000180000
00000000000000000000000000000000
000000000000000000000000000000d2
link-status: Good
supported: Good, Bad

from autorandr.

cycomanic avatar cycomanic commented on May 25, 2024

After some debugging, I think I found the error at least in my case. It seems somehow, in the undocked configuration (laptop above) DP-2-1 was still shown as connected. I think this is a problem with the X1 and the docking station. It seems like sometimes the disconnect from the docking station is not detected by xrandr (or at least there is significant delay). So I believe this is not an autorandr issue. @nolanl check if your laptop profile config file shows DP-2-1 as connected.

from autorandr.

phillipberndt avatar phillipberndt commented on May 25, 2024

Adding a predetect hook might help then. I've made good experience with some repeated xrandr -q personally, but that was with a Dell docking station, not a Lenovo one. Or maybe you'll need to touch some file in the /sys/ interface.

from autorandr.

nolanl avatar nolanl commented on May 25, 2024

Running "xrandr -q" a few times does not help. Here is the "xrandr --verbose" output:

Screen 0: minimum 320 x 200, current 3840 x 2160, maximum 8192 x 8192
eDP-1 connected primary (normal left inverted right x axis y axis)
Identifier: 0x42
Timestamp: 329243348
Subpixel: unknown
Clones:
CRTCs: 0 1 2
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
EDID:
00ffffffffffff0034a9a29600000000
ff190104a51f1178026b65a4514b9b27
0f505400000001010101010101010101
0101010101019a6400f0a0a05d505820
c50435ad1000001e976400f0a0a0dc51
5820c50435ad1000001e000000fd002e
3e595e1a010a202020202020000000fe
005656583134543035384a30300a000a
scaling mode: Full aspect
supported: None, Full, Center, Full aspect
Broadcast RGB: Automatic
supported: Automatic, Full, Limited 16:235
audio: auto
supported: force-dvi, off, auto, on
link-status: Good
supported: Good, Bad
2560x1440 (0x48) 257.540MHz +HSync +VSync +preferred
h: width 2560 start 2648 end 2680 total 2800 skew 0 clock 91.98KHz
v: height 1440 start 1468 end 1473 total 1533 clock 60.00Hz
2560x1440 (0x49) 257.510MHz +HSync +VSync
h: width 2560 start 2648 end 2680 total 2800 skew 0 clock 91.97KHz
v: height 1440 start 1468 end 1473 total 1916 clock 48.00Hz
1920x1440 (0x4a) 234.000MHz -HSync +VSync
h: width 1920 start 2048 end 2256 total 2600 skew 0 clock 90.00KHz
v: height 1440 start 1441 end 1444 total 1500 clock 60.00Hz
1856x1392 (0x4b) 218.300MHz -HSync +VSync
h: width 1856 start 1952 end 2176 total 2528 skew 0 clock 86.35KHz
v: height 1392 start 1393 end 1396 total 1439 clock 60.01Hz
1792x1344 (0x4c) 204.800MHz -HSync +VSync
h: width 1792 start 1920 end 2120 total 2448 skew 0 clock 83.66KHz
v: height 1344 start 1345 end 1348 total 1394 clock 60.01Hz
1920x1200 (0x4d) 154.000MHz +HSync -VSync
h: width 1920 start 1968 end 2000 total 2080 skew 0 clock 74.04KHz
v: height 1200 start 1203 end 1209 total 1235 clock 59.95Hz
1920x1080 (0x4e) 138.500MHz +HSync -VSync
h: width 1920 start 1968 end 2000 total 2080 skew 0 clock 66.59KHz
v: height 1080 start 1083 end 1088 total 1111 clock 59.93Hz
1600x1200 (0x4f) 162.000MHz +HSync +VSync
h: width 1600 start 1664 end 1856 total 2160 skew 0 clock 75.00KHz
v: height 1200 start 1201 end 1204 total 1250 clock 60.00Hz
1680x1050 (0x50) 146.250MHz -HSync +VSync
h: width 1680 start 1784 end 1960 total 2240 skew 0 clock 65.29KHz
v: height 1050 start 1053 end 1059 total 1089 clock 59.95Hz
1680x1050 (0x51) 119.000MHz +HSync -VSync
h: width 1680 start 1728 end 1760 total 1840 skew 0 clock 64.67KHz
v: height 1050 start 1053 end 1059 total 1080 clock 59.88Hz
1600x1024 (0x52) 103.125MHz +HSync +VSync
h: width 1600 start 1600 end 1656 total 1664 skew 0 clock 61.97KHz
v: height 1024 start 1024 end 1029 total 1030 clock 60.17Hz
1400x1050 (0x53) 122.000MHz +HSync +VSync
h: width 1400 start 1488 end 1640 total 1880 skew 0 clock 64.89KHz
v: height 1050 start 1052 end 1064 total 1082 clock 59.98Hz
1280x1024 (0x54) 108.000MHz +HSync +VSync
h: width 1280 start 1328 end 1440 total 1688 skew 0 clock 63.98KHz
v: height 1024 start 1025 end 1028 total 1066 clock 60.02Hz
1440x900 (0x55) 106.500MHz -HSync +VSync
h: width 1440 start 1520 end 1672 total 1904 skew 0 clock 55.93KHz
v: height 900 start 903 end 909 total 934 clock 59.89Hz
1280x960 (0x56) 108.000MHz +HSync +VSync
h: width 1280 start 1376 end 1488 total 1800 skew 0 clock 60.00KHz
v: height 960 start 961 end 964 total 1000 clock 60.00Hz
1360x768 (0x57) 84.750MHz -HSync +VSync
h: width 1360 start 1432 end 1568 total 1776 skew 0 clock 47.72KHz
v: height 768 start 771 end 781 total 798 clock 59.80Hz
1360x768 (0x58) 72.000MHz +HSync -VSync
h: width 1360 start 1408 end 1440 total 1520 skew 0 clock 47.37KHz
v: height 768 start 771 end 781 total 790 clock 59.96Hz
1152x864 (0x59) 81.620MHz -HSync +VSync
h: width 1152 start 1216 end 1336 total 1520 skew 0 clock 53.70KHz
v: height 864 start 865 end 868 total 895 clock 60.00Hz
1024x768 (0x5a) 133.475MHz -HSync +VSync DoubleScan
h: width 1024 start 1100 end 1212 total 1400 skew 0 clock 95.34KHz
v: height 768 start 768 end 770 total 794 clock 60.04Hz
1024x768 (0x5b) 65.000MHz -HSync -VSync
h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.36KHz
v: height 768 start 771 end 777 total 806 clock 60.00Hz
960x720 (0x5c) 117.000MHz -HSync +VSync DoubleScan
h: width 960 start 1024 end 1128 total 1300 skew 0 clock 90.00KHz
v: height 720 start 720 end 722 total 750 clock 60.00Hz
928x696 (0x5d) 109.150MHz -HSync +VSync DoubleScan
h: width 928 start 976 end 1088 total 1264 skew 0 clock 86.35KHz
v: height 696 start 696 end 698 total 719 clock 60.05Hz
896x672 (0x5e) 102.400MHz -HSync +VSync DoubleScan
h: width 896 start 960 end 1060 total 1224 skew 0 clock 83.66KHz
v: height 672 start 672 end 674 total 697 clock 60.01Hz
960x600 (0x5f) 77.000MHz +HSync -VSync DoubleScan
h: width 960 start 984 end 1000 total 1040 skew 0 clock 74.04KHz
v: height 600 start 601 end 604 total 617 clock 60.00Hz
960x540 (0x60) 69.250MHz +HSync -VSync DoubleScan
h: width 960 start 984 end 1000 total 1040 skew 0 clock 66.59KHz
v: height 540 start 541 end 544 total 555 clock 59.99Hz
800x600 (0x61) 81.000MHz +HSync +VSync DoubleScan
h: width 800 start 832 end 928 total 1080 skew 0 clock 75.00KHz
v: height 600 start 600 end 602 total 625 clock 60.00Hz
800x600 (0x62) 40.000MHz +HSync +VSync
h: width 800 start 840 end 968 total 1056 skew 0 clock 37.88KHz
v: height 600 start 601 end 605 total 628 clock 60.32Hz
800x600 (0x63) 36.000MHz +HSync +VSync
h: width 800 start 824 end 896 total 1024 skew 0 clock 35.16KHz
v: height 600 start 601 end 603 total 625 clock 56.25Hz
840x525 (0x64) 73.125MHz -HSync +VSync DoubleScan
h: width 840 start 892 end 980 total 1120 skew 0 clock 65.29KHz
v: height 525 start 526 end 529 total 544 clock 60.01Hz
840x525 (0x65) 59.500MHz +HSync -VSync DoubleScan
h: width 840 start 864 end 880 total 920 skew 0 clock 64.67KHz
v: height 525 start 526 end 529 total 540 clock 59.88Hz
800x512 (0x66) 51.562MHz +HSync +VSync DoubleScan
h: width 800 start 800 end 828 total 832 skew 0 clock 61.97KHz
v: height 512 start 512 end 514 total 515 clock 60.17Hz
700x525 (0x67) 61.000MHz +HSync +VSync DoubleScan
h: width 700 start 744 end 820 total 940 skew 0 clock 64.89KHz
v: height 525 start 526 end 532 total 541 clock 59.98Hz
640x512 (0x68) 54.000MHz +HSync +VSync DoubleScan
h: width 640 start 664 end 720 total 844 skew 0 clock 63.98KHz
v: height 512 start 512 end 514 total 533 clock 60.02Hz
720x450 (0x69) 53.250MHz -HSync +VSync DoubleScan
h: width 720 start 760 end 836 total 952 skew 0 clock 55.93KHz
v: height 450 start 451 end 454 total 467 clock 59.89Hz
640x480 (0x6a) 54.000MHz +HSync +VSync DoubleScan
h: width 640 start 688 end 744 total 900 skew 0 clock 60.00KHz
v: height 480 start 480 end 482 total 500 clock 60.00Hz
640x480 (0x6b) 25.175MHz -HSync -VSync
h: width 640 start 656 end 752 total 800 skew 0 clock 31.47KHz
v: height 480 start 490 end 492 total 525 clock 59.94Hz
680x384 (0x6c) 42.375MHz -HSync +VSync DoubleScan
h: width 680 start 716 end 784 total 888 skew 0 clock 47.72KHz
v: height 384 start 385 end 390 total 399 clock 59.80Hz
680x384 (0x6d) 36.000MHz +HSync -VSync DoubleScan
h: width 680 start 704 end 720 total 760 skew 0 clock 47.37KHz
v: height 384 start 385 end 390 total 395 clock 59.96Hz
576x432 (0x6e) 40.810MHz -HSync +VSync DoubleScan
h: width 576 start 608 end 668 total 760 skew 0 clock 53.70KHz
v: height 432 start 432 end 434 total 447 clock 60.06Hz
512x384 (0x6f) 32.500MHz -HSync -VSync DoubleScan
h: width 512 start 524 end 592 total 672 skew 0 clock 48.36KHz
v: height 384 start 385 end 388 total 403 clock 60.00Hz
400x300 (0x70) 20.000MHz +HSync +VSync DoubleScan
h: width 400 start 420 end 484 total 528 skew 0 clock 37.88KHz
v: height 300 start 300 end 302 total 314 clock 60.32Hz
400x300 (0x71) 18.000MHz +HSync +VSync DoubleScan
h: width 400 start 412 end 448 total 512 skew 0 clock 35.16KHz
v: height 300 start 300 end 301 total 312 clock 56.34Hz
320x240 (0x72) 12.587MHz -HSync -VSync DoubleScan
h: width 320 start 328 end 376 total 400 skew 0 clock 31.47KHz
v: height 240 start 245 end 246 total 262 clock 60.05Hz
DP-1 disconnected (normal left inverted right x axis y axis)
Identifier: 0x43
Timestamp: 329243348
Subpixel: unknown
Clones: HDMI-1
CRTCs: 0 1 2
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
Broadcast RGB: Automatic
supported: Automatic, Full, Limited 16:235
audio: auto
supported: force-dvi, off, auto, on
link-status: Good
supported: Good, Bad
HDMI-1 disconnected (normal left inverted right x axis y axis)
Identifier: 0x44
Timestamp: 329243348
Subpixel: unknown
Clones: DP-1
CRTCs: 0 1 2
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
aspect ratio: Automatic
supported: Automatic, 4:3, 16:9
Broadcast RGB: Automatic
supported: Automatic, Full, Limited 16:235
audio: auto
supported: force-dvi, off, auto, on
link-status: Good
supported: Good, Bad
DP-2 disconnected (normal left inverted right x axis y axis)
Identifier: 0x45
Timestamp: 329243348
Subpixel: unknown
Clones: HDMI-2
CRTCs: 0 1 2
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
Broadcast RGB: Automatic
supported: Automatic, Full, Limited 16:235
audio: auto
supported: force-dvi, off, auto, on
link-status: Good
supported: Good, Bad
HDMI-2 disconnected (normal left inverted right x axis y axis)
Identifier: 0x46
Timestamp: 329243348
Subpixel: unknown
Clones: DP-2
CRTCs: 0 1 2
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
aspect ratio: Automatic
supported: Automatic, 4:3, 16:9
Broadcast RGB: Automatic
supported: Automatic, Full, Limited 16:235
audio: auto
supported: force-dvi, off, auto, on
link-status: Good
supported: Good, Bad
DP-2-1 connected 3840x2160+0+0 (0x171) normal (normal left inverted right x axis y axis) 698mm x 393mm
Identifier: 0x16e
Timestamp: 329243348
Subpixel: unknown
Gamma: 1.0:1.1:1.2
Brightness: 1.0
Clones:
CRTC: 1
CRTCs: 0 1 2
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
EDID:
00ffffffffffff0010acc14050373831
191b0104b54628783aef95a35435b526
0f5054a54b00d100d1c0b300a9408180
8100714fe1c04dd000a0f0703e803020
3500ba892100001a000000ff00365846
304437364d313837500a000000fc0044
454c4c20555033323136510a000000fd
001d4b1f8c36010a2020202020200148
02031df150101f200514041312110302
161507060123091f0783010000a36600
a0f0701f8030203500ba892100001a56
5e00a0a0a0295030203500ba89210000
1a023a801871382d40582c4500ba8921
00001e011d007251d01e206e285500ba
892100001e0000000000000000000000
0000000000000000000000000000009b
3840x2160 (0x171) 533.250MHz +HSync -VSync *current +preferred
h: width 3840 start 3888 end 3920 total 4000 skew 0 clock 133.31KHz
v: height 2160 start 2163 end 2168 total 2222 clock 60.00Hz
3840x2160 (0x172) 262.750MHz +HSync -VSync
h: width 3840 start 3888 end 3920 total 4000 skew 0 clock 65.69KHz
v: height 2160 start 2163 end 2168 total 2191 clock 29.98Hz
2560x1440 (0x173) 241.500MHz +HSync -VSync
h: width 2560 start 2608 end 2640 total 2720 skew 0 clock 88.79KHz
v: height 1440 start 1443 end 1448 total 1481 clock 59.95Hz
2048x1152 (0x174) 162.000MHz +HSync +VSync
h: width 2048 start 2074 end 2154 total 2250 skew 0 clock 72.00KHz
v: height 1152 start 1153 end 1156 total 1200 clock 60.00Hz
1920x1200 (0x175) 193.250MHz -HSync +VSync
h: width 1920 start 2056 end 2256 total 2592 skew 0 clock 74.56KHz
v: height 1200 start 1203 end 1209 total 1245 clock 59.88Hz
1920x1080 (0x176) 148.500MHz +HSync +VSync
h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 67.50KHz
v: height 1080 start 1084 end 1089 total 1125 clock 60.00Hz
1920x1080 (0x177) 148.500MHz +HSync +VSync
h: width 1920 start 2448 end 2492 total 2640 skew 0 clock 56.25KHz
v: height 1080 start 1084 end 1089 total 1125 clock 50.00Hz
1920x1080 (0x178) 148.352MHz +HSync +VSync
h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 67.43KHz
v: height 1080 start 1084 end 1089 total 1125 clock 59.94Hz
1920x1080 (0x179) 74.250MHz +HSync +VSync
h: width 1920 start 2558 end 2602 total 2750 skew 0 clock 27.00KHz
v: height 1080 start 1084 end 1089 total 1125 clock 24.00Hz
1920x1080 (0x17a) 74.176MHz +HSync +VSync
h: width 1920 start 2558 end 2602 total 2750 skew 0 clock 26.97KHz
v: height 1080 start 1084 end 1089 total 1125 clock 23.98Hz
1600x1200 (0x4f) 162.000MHz +HSync +VSync
h: width 1600 start 1664 end 1856 total 2160 skew 0 clock 75.00KHz
v: height 1200 start 1201 end 1204 total 1250 clock 60.00Hz
1680x1050 (0x50) 146.250MHz -HSync +VSync
h: width 1680 start 1784 end 1960 total 2240 skew 0 clock 65.29KHz
v: height 1050 start 1053 end 1059 total 1089 clock 59.95Hz
1280x1024 (0x17b) 135.000MHz +HSync +VSync
h: width 1280 start 1296 end 1440 total 1688 skew 0 clock 79.98KHz
v: height 1024 start 1025 end 1028 total 1066 clock 75.02Hz
1280x1024 (0x54) 108.000MHz +HSync +VSync
h: width 1280 start 1328 end 1440 total 1688 skew 0 clock 63.98KHz
v: height 1024 start 1025 end 1028 total 1066 clock 60.02Hz
1280x800 (0x17c) 83.500MHz -HSync +VSync
h: width 1280 start 1352 end 1480 total 1680 skew 0 clock 49.70KHz
v: height 800 start 803 end 809 total 831 clock 59.81Hz
1152x864 (0x17d) 108.000MHz +HSync +VSync
h: width 1152 start 1216 end 1344 total 1600 skew 0 clock 67.50KHz
v: height 864 start 865 end 868 total 900 clock 75.00Hz
1280x720 (0x17e) 74.250MHz +HSync +VSync
h: width 1280 start 1390 end 1430 total 1650 skew 0 clock 45.00KHz
v: height 720 start 725 end 730 total 750 clock 60.00Hz
1280x720 (0x17f) 74.250MHz +HSync +VSync
h: width 1280 start 1720 end 1760 total 1980 skew 0 clock 37.50KHz
v: height 720 start 725 end 730 total 750 clock 50.00Hz
1280x720 (0x180) 74.176MHz +HSync +VSync
h: width 1280 start 1390 end 1430 total 1650 skew 0 clock 44.96KHz
v: height 720 start 725 end 730 total 750 clock 59.94Hz
1024x768 (0x181) 78.750MHz +HSync +VSync
h: width 1024 start 1040 end 1136 total 1312 skew 0 clock 60.02KHz
v: height 768 start 769 end 772 total 800 clock 75.03Hz
1024x768 (0x5b) 65.000MHz -HSync -VSync
h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.36KHz
v: height 768 start 771 end 777 total 806 clock 60.00Hz
800x600 (0x182) 49.500MHz +HSync +VSync
h: width 800 start 816 end 896 total 1056 skew 0 clock 46.88KHz
v: height 600 start 601 end 604 total 625 clock 75.00Hz
800x600 (0x62) 40.000MHz +HSync +VSync
h: width 800 start 840 end 968 total 1056 skew 0 clock 37.88KHz
v: height 600 start 601 end 605 total 628 clock 60.32Hz
720x576 (0x183) 27.000MHz -HSync -VSync
h: width 720 start 732 end 796 total 864 skew 0 clock 31.25KHz
v: height 576 start 581 end 586 total 625 clock 50.00Hz
720x480 (0x184) 27.027MHz -HSync -VSync
h: width 720 start 736 end 798 total 858 skew 0 clock 31.50KHz
v: height 480 start 489 end 495 total 525 clock 60.00Hz
720x480 (0x185) 27.000MHz -HSync -VSync
h: width 720 start 736 end 798 total 858 skew 0 clock 31.47KHz
v: height 480 start 489 end 495 total 525 clock 59.94Hz
640x480 (0x186) 31.500MHz -HSync -VSync
h: width 640 start 656 end 720 total 840 skew 0 clock 37.50KHz
v: height 480 start 481 end 484 total 500 clock 75.00Hz
640x480 (0x187) 25.200MHz -HSync -VSync
h: width 640 start 656 end 752 total 800 skew 0 clock 31.50KHz
v: height 480 start 490 end 492 total 525 clock 60.00Hz
640x480 (0x6b) 25.175MHz -HSync -VSync
h: width 640 start 656 end 752 total 800 skew 0 clock 31.47KHz
v: height 480 start 490 end 492 total 525 clock 59.94Hz
720x400 (0x188) 28.320MHz -HSync +VSync
h: width 720 start 738 end 846 total 900 skew 0 clock 31.47KHz
v: height 400 start 412 end 414 total 449 clock 70.08Hz
DP-2-2 disconnected (normal left inverted right x axis y axis)
Identifier: 0x16f
Timestamp: 329243348
Subpixel: unknown
Clones:
CRTCs: 0 1 2
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
DP-2-3 disconnected (normal left inverted right x axis y axis)
Identifier: 0x170
Timestamp: 329243348
Subpixel: unknown
Clones:
CRTCs: 0 1 2
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:

from autorandr.

nolanl avatar nolanl commented on May 25, 2024

@cycomanic I see something like the opposite. When undocked, there is no DP-2-1. When I dock, both DP-2-1 and eDP-1 show up as connected and enabled, even though DP-2-1 is not actually enabled. Explicitly enabling DP-2-1 (even though it claims to already be enabled) makes the external monitor work.

Another weirdness is that I have to enable DP-2-1 first, then in a 2nd call to xrandr, disable eDP-1. Trying to do it all in 1 command doesn't enable the monitor.

I suspect the behavior mentioned in this comment is just Intel driver MST flakiness, but I am not sure that the original issue I opened is, hence opening the issue here...

from autorandr.

nolanl avatar nolanl commented on May 25, 2024

@phillipberndt I don't think a predetect script can help, since the the "workaround" of explicitly enabling DP-2-1 does the very action I wanted autorandr to do automatically, obviating any need for autorandr.

I'll keep an eye of MST fixes in the Intel driver, and try again later if I see something that looks like it might help. Thanks for taking a look at this.

from autorandr.

cycomanic avatar cycomanic commented on May 25, 2024

@nolanl You might be right that this is intel driver flakyness. I had issues at various points in time as well, they all seem to be fixed with my recent upgrade to Ubuntu 17.10. Another thing that I found (when using my homebuild script before autorandr), was that the desktop settings daemons (I'm not running a full desktop environment) would cause me issues, i.e. my script would make the correct change, but then the settings daemon would change it back again (I think I saw this with unity-settings-daemon, but maybe also with others). Might be worth checking as well.

from autorandr.

phillipberndt avatar phillipberndt commented on May 25, 2024

I've ran into a similar issue on a new notebook recently. What helped me was to create this predetect script:

if [ -n "$AUTORANDR_BATCH_PID" ]; then
    autorandr -l off
    xrandr -q
    sleep 1
fi

(-l off is new. I actually used this initially: eval xrandr $(xrandr | sed -nre "s#(\w+) connected.+[0-9]+x[0-9]+.+#\1#p" | while read O; do echo -n "--output '$O' --off "; done))

from autorandr.

nolanl avatar nolanl commented on May 25, 2024

@phillipberndt Thanks, that fixed it. I didn't even need the xrandr -q, just turning off all the outputs seemed to fix it.

from autorandr.

laur89 avatar laur89 commented on May 25, 2024

@phillipberndt can you please explain why your latest predetect recommendation would work?

from autorandr.

phillipberndt avatar phillipberndt commented on May 25, 2024

I frankly have no idea, sorry. It's to tackle driver flakyness, and pretty much was a random attempt 🤷‍♂️

from autorandr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.