You are not logged in.

#1 2016-06-20 11:41:01

guagno333
Member
Registered: 2016-06-20
Posts: 32

Problem with xrandr on HDMI

Hello everyone.

I'm a linux newbie, and even a more newbie with Arch. I just changed laptop and installed Arch on the new one. I'm having a few problems with m external monitor.

On the old laptop, I could jast execute (with the right monitor)

xrandr --output HDMI-1 --mode 1920x1080 --left-of eDP-1

to put the HDMI monitor on the left of my laptop monitor.

On the new laptop, the same command causes both screen to go black, and if I start Arch with the HDMI monitor plugged in, it will start with both monitor blacks, thus preventing me any form of interaction. I tried to use a MiniDisplay port on VGA, and it works fine. It also starts with the second monitor already set up and on the right of the laptop monitor if the DisplayPort adapter is connected at startup.

I know that the PC is still working after xrandr command, since I tried the following

xrandr --output HDMI-1 --mode 1920x1080 --left-of eDP-1; sleep 15; poweroff

and the pc powers off, so it just seems an output problem.

How can I solve this? xrandr -q output is the following (with MiniDisplay port and dual monitor working):

Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 16384 x 16384
eDP-1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1920x1080     60.02*+  47.99  
   1680x1050     59.95  
   1400x1050     59.98    59.98  
   1280x1024     59.89    60.02  
   1280x960      60.00    59.94  
   1152x864      59.96  
   1024x768      60.04    60.00    59.92  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   800x600       60.00    60.32    59.86    56.25  
   700x525       59.98  
   640x512       60.02  
   640x480       60.00    59.94    59.38  
   720x400       59.55  
   640x400       59.95  
   640x350       59.77  
   512x384       60.00  
   400x300       60.32    56.34  
   320x240       60.05  
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 299mm
   1920x1080     60.00*+
   1400x1050     74.76    59.98  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1152x864      75.00  
   1024x768      75.05    60.04    75.03    70.07    60.00  
   960x720       75.00    60.00  
   928x696       75.00    60.05  
   896x672       75.05    60.01  
   832x624       74.55  
   800x600       75.00    70.00    65.00    60.00    72.19    75.00    60.32    56.25  
   700x525       74.76    59.98  
   640x512       75.02    60.02  
   640x480       60.00    75.00    72.81    75.00    59.94  
   720x400       70.08  
   576x432       75.00  
   512x384       75.03    70.07    60.00  
   416x312       74.66  
   400x300       72.19    75.12    60.32    56.34  
   320x240       72.81    75.00    60.05  

As a reference, this is the output with the HDMI plugged in (but not working, as I would have both screen black smile )

Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 16384 x 16384
eDP-1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1920x1080     60.02*+  47.99  
   1680x1050     59.95  
   1400x1050     59.98    59.98  
   1280x1024     59.89    60.02  
   1280x960      60.00    59.94  
   1152x864      59.96  
   1024x768      60.04    60.00    59.92  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   800x600       60.00    60.32    59.86    56.25  
   700x525       59.98  
   640x512       60.02  
   640x480       60.00    59.94    59.38  
   720x400       59.55  
   640x400       59.95  
   640x350       59.77  
   512x384       60.00  
   400x300       60.32    56.34  
   320x240       60.05  
HDMI-1 connected (normal left inverted right x axis y axis)
   1920x1080     60.00 +  50.00    59.94  
   1920x1080i    60.00    50.00    59.94  
   1400x1050     74.76    59.98  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.05    60.04    75.03    70.07    60.00  
   960x720       75.00    60.00  
   928x696       75.00    60.05  
   896x672       75.05    60.01  
   832x624       74.55  
   800x600       75.00    70.00    65.00    60.00    72.19    75.00    60.32    56.25  
   720x576       50.00  
   700x525       74.76    59.98  
   720x480       60.00    59.94  
   640x512       75.02    60.02  
   640x480       60.00    75.00    72.81    75.00    60.00    59.94  
   720x400       70.08  
   576x432       75.00  
   512x384       75.03    70.07    60.00  
   416x312       74.66  
   400x300       72.19    75.12    60.32    56.34  
   320x240       72.81    75.00    60.05  
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm 

Thanks in advance for any help!

Last edited by guagno333 (2016-06-20 11:44:54)

Offline

#2 2016-06-20 12:18:42

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Problem with xrandr on HDMI

Post some more information like the graphics card where you are connecting it, if it is a muxless dual card setup (in case of a laptop), which drivers you are using, if you are using a login manager and if so which one, and which DE you are using.

This reminds me of this thread [1], the problem looks somewhat similar but the cause could be completely different.

[1] https://bbs.archlinux.org/viewtopic.php?id=213426


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#3 2016-06-20 12:40:10

hradecek
Member
From: Slovakia
Registered: 2014-01-23
Posts: 15

Re: Problem with xrandr on HDMI

@guagno333 - I've noticed, that with plugged in HDMI, xrandr didn't choose any mode (the "*" symbol - it indicates current mode, "+" is prefered mode).
You could try to run it with --auto option.


$ perl -wle '$_ = 1; (1 x $_) !~ /^(11+)\1+$/ && print while $_++'

Offline

#4 2016-06-20 13:24:56

guagno333
Member
Registered: 2016-06-20
Posts: 32

Re: Problem with xrandr on HDMI

Thanks in advance to both of you!

R00KIE wrote:

Post some more information like the graphics card where you are connecting it, if it is a muxless dual card setup (in case of a laptop), which drivers you are using, if you are using a login manager and if so which one, and which DE you are using.

This reminds me of this thread [1], the problem looks somewhat similar but the cause could be completely different.

[1] https://bbs.archlinux.org/viewtopic.php?id=213426

I'll check that link this evening! In the meantime, the laptop is a Clevo P651RE-6 and I'm not using any login manager. If it can help, I'm logging using the terminal, and with the MiniDisplay port there's no problem at all even during the login, the terminal is just mirrored on both monitors. However, I'm afraid I need help also on giving you those information. I have no idea which driver I'm currently using and which Desktop Enviroment. I just use the "startx" command to start the gui, and the Window Manager is Awesome.

hradecek wrote:

@guagno333 - I've noticed, that with plugged in HDMI, xrandr didn't choose any mode (the "*" symbol - it indicates current mode, "+" is prefered mode).
You could try to run it with --auto option.

I'm pretty sure that the first time I used xrandr it was with the auto option, so I'm afraid in wont help. Anyway, I'm goin to try this evening and report any success or failure smile

Offline

#5 2016-06-20 20:36:46

guagno333
Member
Registered: 2016-06-20
Posts: 32

Re: Problem with xrandr on HDMI

So, I got home, and after connecting the monitor I noticed a few slowdowns, so I used dmesg to find this:

[   33.324626] [drm:drm_edid_block_valid [drm]] *ERROR* EDID checksum is invalid, remainder is 238
[   33.324628] Raw EDID:
[   33.324629]  	00 ff ff ff ff ff ff 00 1e 6d b9 57 41 01 01 01
[   33.324630]  	01 14 01 03 80 30 1b 78 0a 95 35 a1 59 57 9f 27
[   33.324630]  	0e 50 54 a5 6f 00 81 80 91 8f 71 40 b3 00 81 4f
[   33.324631]  	71 4f 09 21 01 01 02 3a 80 18 71 38 2d 50 d8 2c
[   33.324632]  	45 00 dd 8c 11 00 00 1a 21 39 90 30 62 1a 27 40
[   33.324632]  	68 b0 36 00 56 50 21 00 00 1c 00 00 40 ff 00 bf
[   33.324633]  	7f de d3 1d a8 1b 63 3a f0 a3 23 fe d0 83 3f fd
[   33.324633]  	08 4f 3e f3 3d 3e f4 1a 67 78 60 3f 3c f9 a1 6f
[   33.356927] Raw EDID:
[   33.356927]  	3f ff ff ff ff ff e0 5f 7f f9 57 7f f9 91 8f 27
[   33.356928]  	fe f9 a3 9f 7e ff 7f 7f f7 f7 fd ff ff 9f 2f fe
[   33.356929]  	f0 d7 bf ff a3 af f8 a9 9f 7f ff b3 0f fb cf f3
[   33.356929]  	7f fd e3 7d fb c3 3f bf fd f5 3b ff ff f8 ff ff
[   33.356930]  	f3 df ff f3 f2 4f 7f fb ff b1 7f e3 fb 67 7f fc
[   33.356930]  	b1 ff 08 56 51 21 00 00 1c 10 00 40 ff 08 38 cb
[   33.356931]  	1e 53 71 00 0a 20 a0 20 20 60 a2 04 10 20 fc 00
[   33.356931]  	4f 3a f6 38 70 46 4a 22 22 24 30 21 24 19 ec 02
[   33.389521] Raw EDID:
[   33.389522]  	03 ff ff ff ff ff 40 1e 7f f9 f7 09 23 e1 83 01
[   33.389522]  	3c c1 83 81 31 1f 78 4a 97 3d e1 d9 57 bf ff 2e
[   33.389523]  	70 df a5 6f 01 95 a0 81 9f 75 40 b3 8a 91 4f 77
[   33.389523]  	5f 43 05 39 f3 12 7b c0 18 71 3c 2d c2 7a 3c c7
[   33.389524]  	0e dd cc 11 18 6c 3a 2d 3d d0 30 63 3e 27 50 69
[   33.389525]  	b0 76 81 5e f8 23 04 58 5c 82 0e 10 fd 02 78 4b
[   33.389525]  	1f 57 d1 41 0a 68 20 21 3c f0 61 0e 30 08 ff 44
[   33.389526]  	ef 32 32 3a 74 54 0b 36 70 a1 20 e0 28 03 ec 22
[   33.421512] [drm:drm_edid_block_valid [drm]] *ERROR* EDID has major version 161, instead of 1
[   33.421512] Raw EDID:
[   33.421513]  	00 ff ff ff ff ff ff 00 1f ed b9 5f 23 e7 c1 01
[   33.421513]  	87 5c a1 87 a0 f6 db 78 3e bd 75 a7 79 f7 9f 2f
[   33.421514]  	8e 50 f4 a5 7f 7e 81 82 d7 8f 73 df fb e0 8f 5f
[   33.421514]  	7f 6f 53 83 e9 07 7f fa 84 1e 7f 38 af 7c d8 2f
[   33.421515]  	7d f6 dd 8e 3f f9 44 3f 75 f9 93 38 fe 1a 6f 74
[   33.421516]  	e8 f7 3e c3 56 5f 3f f8 80 1f ae fa a0 ff 1f ba
[   33.421516]  	4b 7f fb 51 82 0b 2f fc a1 24 bf f0 91 b7 ff ff
[   33.421517]  	ff ff ff ff ff fc 44 0a 3b f0 e1 23 ad 3f f1 ec
[   33.421518] nouveau 0000:01:00.0: HDMI-A-1: EDID block 0 invalid.
[   33.421519] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[   33.441474] i2c i2c-9: sendbytes: NAK bailout.
[   34.299353] i2c i2c-9: sendbytes: NAK bailout.
[   36.334897] i2c i2c-9: sendbytes: NAK bailout.
[   37.141056] i2c i2c-9: sendbytes: NAK bailout.
[   38.508884] i2c i2c-9: sendbytes: NAK bailout.
[   39.157386] i2c i2c-9: sendbytes: NAK bailout.
[   39.280127] i2c i2c-9: sendbytes: NAK bailout.
[   40.970395] i2c i2c-9: sendbytes: NAK bailout.
[   42.780696] i2c i2c-9: sendbytes: NAK bailout.
[   43.339264] i2c i2c-9: sendbytes: NAK bailout.
[   45.746742] i2c i2c-9: sendbytes: NAK bailout.
[   46.629934] i2c i2c-9: sendbytes: NAK bailout.
[   47.248896] i2c i2c-9: sendbytes: NAK bailout.
[   47.373043] i2c i2c-9: sendbytes: NAK bailout.
[   47.868969] i2c i2c-9: sendbytes: NAK bailout.
[   48.305219] i2c i2c-9: sendbytes: NAK bailout.
[   48.307881] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[   48.805731] i2c i2c-9: sendbytes: NAK bailout.
[   49.117190] i2c i2c-9: sendbytes: NAK bailout.
[   49.118717] i2c i2c-9: sendbytes: NAK bailout.
[   49.120159] i2c i2c-9: sendbytes: NAK bailout.
[   49.121394] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[   49.654782] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[   49.671961] i2c i2c-9: sendbytes: NAK bailout.
[   51.625726] i2c i2c-9: sendbytes: NAK bailout.
[   51.937353] i2c i2c-9: sendbytes: NAK bailout.
[   52.469779] i2c i2c-9: sendbytes: NAK bailout.
[   52.471015] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[   53.689882] i2c i2c-9: sendbytes: NAK bailout.
[   53.813422] i2c i2c-9: sendbytes: NAK bailout.
[   54.125118] i2c i2c-9: sendbytes: NAK bailout.
[   54.125671] i2c i2c-9: sendbytes: NAK bailout.
[   54.126211] i2c i2c-9: sendbytes: NAK bailout.
[   54.127654] i2c i2c-9: sendbytes: NAK bailout.
[   54.128546] i2c i2c-9: sendbytes: NAK bailout.
[   54.128581] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[   54.252415] i2c i2c-9: sendbytes: NAK bailout.
[   54.696212] i2c i2c-9: sendbytes: NAK bailout.
[   54.872590] i2c i2c-9: sendbytes: NAK bailout.
[   55.508705] i2c i2c-9: sendbytes: NAK bailout.
[   55.574648] i2c i2c-9: sendbytes: NAK bailout.
[   55.575545] i2c i2c-9: sendbytes: NAK bailout.
[   55.609833] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[   56.316343] i2c i2c-9: sendbytes: NAK bailout.
[   56.316939] i2c i2c-9: sendbytes: NAK bailout.
[   56.351790] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[   56.459246] i2c i2c-9: sendbytes: NAK bailout.
[   57.127011] xrandr[829]: segfault at 38 ip 0000000000402f8d sp 00007ffebaae8f70 error 4 in xrandr[400000+e000]
[   57.267190] i2c i2c-9: sendbytes: NAK bailout.
[   57.886776] i2c i2c-9: sendbytes: NAK bailout.
[   58.198853] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[   58.699647] i2c i2c-9: sendbytes: NAK bailout.
[   59.513720] i2c i2c-9: sendbytes: NAK bailout.
[   59.514261] i2c i2c-9: sendbytes: NAK bailout.
[   59.516502] i2c i2c-9: sendbytes: NAK bailout.
[   59.517343] i2c i2c-9: sendbytes: NAK bailout.
[   59.518630] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[   61.361283] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[   61.381035] i2c i2c-9: sendbytes: NAK bailout.
[   61.381576] i2c i2c-9: sendbytes: NAK bailout.
[   61.382750] i2c i2c-9: sendbytes: NAK bailout.
[   61.383290] i2c i2c-9: sendbytes: NAK bailout.
[   61.385046] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[   62.299916] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[   63.367909] i2c i2c-9: sendbytes: NAK bailout.
[   64.179136] i2c i2c-9: sendbytes: NAK bailout.
[   65.185913] i2c i2c-9: sendbytes: NAK bailout.
[   65.742548] i2c i2c-9: sendbytes: NAK bailout.
[   66.053796] i2c i2c-9: sendbytes: NAK bailout.
[   67.406198] i2c i2c-9: sendbytes: NAK bailout.
[   67.408789] i2c i2c-9: sendbytes: NAK bailout.
[   67.409659] i2c i2c-9: sendbytes: NAK bailout.
[   67.410218] i2c i2c-9: sendbytes: NAK bailout.
[   67.411087] i2c i2c-9: sendbytes: NAK bailout.
[   67.413216] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[   67.536722] i2c i2c-9: sendbytes: NAK bailout.
[   68.413330] i2c i2c-9: sendbytes: NAK bailout.
[   68.536742] i2c i2c-9: sendbytes: NAK bailout.
[   69.032746] i2c i2c-9: sendbytes: NAK bailout.
[   69.157149] i2c i2c-9: sendbytes: NAK bailout.
[   69.652815] i2c i2c-9: sendbytes: NAK bailout.
[   70.522115] i2c i2c-9: sendbytes: NAK bailout.
[   70.522656] i2c i2c-9: sendbytes: NAK bailout.
[   70.525348] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[   71.261179] i2c i2c-9: sendbytes: NAK bailout.
[   71.383434] i2c i2c-9: sendbytes: NAK bailout.
[   72.393451] i2c i2c-9: sendbytes: NAK bailout.
[   72.704912] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[   72.826075] i2c i2c-9: sendbytes: NAK bailout.
[   73.140086] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[   73.891182] [drm:drm_edid_block_valid [drm]] *ERROR* EDID checksum is invalid, remainder is 233
[   73.911067] nouveau 0000:01:00.0: DRM: DDC responded, but no EDID for HDMI-A-1
[   80.156534] i2c i2c-9: sendbytes: NAK bailout.
[   80.280477] i2c i2c-9: sendbytes: NAK bailout.

Any idea?

EDIT: I tried to switch to nvidia drivers, since right now I have nouveau, but I almost fucked up my whole system. Everything on screen was scaled, and xrandr -q returned only a resolution of 1920x1080 for my internal monitor. Uninstalling them I almost fucked up everything, so if anyone is willing to help... smile

Last edited by guagno333 (2016-06-20 21:45:05)

Offline

#6 2016-06-20 21:45:57

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Problem with xrandr on HDMI

Those messages don't look promising, I have never dealt with a monitor that causes that, there might be a way to deal with it but I can't be of help there.

I would try linux-lts and see if it works or makes any difference. One thing that catches my eye, it is nouveau that complains, you should try to figure out to which gpu each output is connected. You should probably read this wiki page [1] and any other that might be related to multiple gpus.

[1] https://wiki.archlinux.org/index.php/PRIME


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#7 2016-06-20 21:52:43

guagno333
Member
Registered: 2016-06-20
Posts: 32

Re: Problem with xrandr on HDMI

Thanks, tomorrow I'll read without any rush and try to figure out what to do. Thing is, with minidisplay port this afternoon everything was work (and I hope it will tomorrow, since I can't try right now). It was a VGA->MiniDisplay adapter, but I think that that's not relevant. And moreover, the HDMI port works fine, since I'm using it also with Windows. Well, I'll try to stick with the adapter, even if I hate them when I have an HDMI port smile

Offline

#8 2016-06-21 14:48:08

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Problem with xrandr on HDMI

Windows is good only to check that you don't have a hardware failure(*). Your first lesson in using linux is, or should be: Linux is not Windows. That said some things will work beautifully out of the box, others still take a bit of effort (but still improving over time).

(*) If it doesn't work with windows then there is a very big chance that it will be also broken with linux.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#9 2016-06-21 15:48:31

guagno333
Member
Registered: 2016-06-20
Posts: 32

Re: Problem with xrandr on HDMI

R00KIE wrote:

Windows is good only to check that you don't have a hardware failure(*). Your first lesson in using linux is, or should be: Linux is not Windows. That said some things will work beautifully out of the box, others still take a bit of effort (but still improving over time).

(*) If it doesn't work with windows then there is a very big chance that it will be also broken with linux.

I am aware of that smile I checked with Windows because the port could actually be broken (even if it is unlikely), so it helps to narrow down the cause of the flaw.

Offline

#10 2016-06-22 11:26:23

guagno333
Member
Registered: 2016-06-20
Posts: 32

Re: Problem with xrandr on HDMI

Update: I tried the monitor on my office, and those errors on EDID doesn't come out, but still I have the same crash with xrandr. I tried different options, like  --auto, --mode [MODE] and also --rate, but no success...

Offline

Board footer

Powered by FluxBB