autorandr icon indicating copy to clipboard operation
autorandr copied to clipboard

autorandr doesn't set correct resolution

Open fn-ix opened this issue 6 years ago • 8 comments

Hello!

I run a 2-profile setup where I use my laptop's native screen when not at home, and plug it into a desktop monitor and have that replace the laptop's screen at home. The native screen has a resolution of 1920x1080 while the external monitor is 1680x1050.

When I connect the external monitor, everything works smoothly and autorandr switches to it with the correct resolution. The problem is that when I disconnect the external monitor, autorandr still correctly turns that output off and reactivates the internal screen, however it keeps the resolution at 1680x1050, so that my desktop only takes up that part of the entire laptop screen. Running xrandr --output eDP1 --auto fixes the issue, so it seems to be something particular to autorandr.

I'd appreciate any help! :)

The profiles are: Internal:

output DP1
off
output HDMI1
off
output HDMI2
off
output VIRTUAL1
off
output eDP1
gamma 0.769:0.588:0.435
mode 1920x1080
pos 0x0
primary
rate 60.00

External:

output DP1
off
output HDMI1
off
output VIRTUAL1
off
output eDP1
off
output HDMI2
gamma 0.769:0.588:0.435
mode 1680x1050
pos 0x0
rate 59.88

fn-ix avatar May 27 '19 16:05 fn-ix

Looks like for some reason the mode isn't applied correctly - either your driver is at fault, or autorandr.

Please disable any automation for autorandr you have in place, disconnect the external monitor, and then paste the outputs of xrandr --verbose and autorandr --debug --dry-run -cf / autorandr --debug -cf.

phillipberndt avatar May 28 '19 07:05 phillipberndt

Alright, I plugged the external monitor in and out, then ran the commands, here are the outputs (not quite sure what you meant by disabling the automation; I use the systemd service which I kept running throughout, since otherwise autorandr wouldn't do anything):

$ xrandr --verbose
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
eDP1 connected primary 1920x1080+0+0 (0x49) normal (normal left inverted right x axis y axis) 280mm x 160mm
	Identifier: 0x43
	Timestamp:  2962035
	Subpixel:   unknown
	Gamma:      1.3:1.3:1.4
	Brightness: 1.0
	Clones:    
	CRTC:       0
	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: 
		00ffffffffffff0009e5910600000000
		01190104a51c107802f6a0995951942d
		1f505400000001010101010101010101
		010101010101c93680cd703814403020
		360018a51000001ad42b80cd70381440
		6464440518a51000001a000000000000
		00000000000000000000000000000002
		000c43f90b3c6e1e16286f00000000eb
	BACKLIGHT: 3542 
		range: (0, 7500)
	Backlight: 3542 
		range: (0, 7500)
	scaling mode: Full aspect 
		supported: Full, Center, Full aspect
	max bpc: 12 
		range: (6, 12)
	Broadcast RGB: Automatic 
		supported: Automatic, Full, Limited 16:235
	link-status: Good 
		supported: Good, Bad
	non-desktop: 0 
		range: (0, 1)
  1920x1080 (0x49) 140.250MHz +HSync -VSync *current +preferred
        h: width  1920 start 1968 end 2000 total 2125 skew    0 clock  66.00KHz
        v: height 1080 start 1083 end 1089 total 1100           clock  60.00Hz
  1920x1080 (0x183) 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
  1920x1080 (0x184) 112.200MHz +HSync -VSync
        h: width  1920 start 2020 end 2120 total 2125 skew    0 clock  52.80KHz
        v: height 1080 start 1100 end 1120 total 1121           clock  47.10Hz
  1680x1050 (0x185) 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
  1400x1050 (0x186) 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
  1600x900 (0x187) 118.997MHz -HSync +VSync
        h: width  1600 start 1696 end 1864 total 2128 skew    0 clock  55.92KHz
        v: height  900 start  901 end  904 total  932           clock  60.00Hz
  1600x900 (0x188) 118.250MHz -HSync +VSync
        h: width  1600 start 1696 end 1856 total 2112 skew    0 clock  55.99KHz
        v: height  900 start  903 end  908 total  934           clock  59.95Hz
  1600x900 (0x189) 97.500MHz +HSync -VSync
        h: width  1600 start 1648 end 1680 total 1760 skew    0 clock  55.40KHz
        v: height  900 start  903 end  908 total  926           clock  59.82Hz
  1280x1024 (0x18a) 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
  1400x900 (0x18b) 103.500MHz -HSync +VSync
        h: width  1400 start 1480 end 1624 total 1848 skew    0 clock  56.01KHz
        v: height  900 start  903 end  913 total  934           clock  59.96Hz
  1400x900 (0x18c) 86.500MHz +HSync -VSync
        h: width  1400 start 1448 end 1480 total 1560 skew    0 clock  55.45KHz
        v: height  900 start  903 end  913 total  926           clock  59.88Hz
  1280x960 (0x18d) 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
  1368x768 (0x18e) 85.860MHz -HSync +VSync
        h: width  1368 start 1440 end 1584 total 1800 skew    0 clock  47.70KHz
        v: height  768 start  769 end  772 total  795           clock  60.00Hz
  1368x768 (0x18f) 85.250MHz -HSync +VSync
        h: width  1368 start 1440 end 1576 total 1784 skew    0 clock  47.79KHz
        v: height  768 start  771 end  781 total  798           clock  59.88Hz
  1368x768 (0x190) 72.250MHz +HSync -VSync
        h: width  1368 start 1416 end 1448 total 1528 skew    0 clock  47.28KHz
        v: height  768 start  771 end  781 total  790           clock  59.85Hz
  1280x800 (0x191) 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
  1280x800 (0x192) 71.000MHz +HSync -VSync
        h: width  1280 start 1328 end 1360 total 1440 skew    0 clock  49.31KHz
        v: height  800 start  803 end  809 total  823           clock  59.91Hz
  1280x720 (0x193) 74.500MHz -HSync +VSync
        h: width  1280 start 1344 end 1472 total 1664 skew    0 clock  44.77KHz
        v: height  720 start  723 end  728 total  748           clock  59.86Hz
  1280x720 (0x194) 74.480MHz -HSync +VSync
        h: width  1280 start 1336 end 1472 total 1664 skew    0 clock  44.76KHz
        v: height  720 start  721 end  724 total  746           clock  60.00Hz
  1280x720 (0x195) 63.750MHz +HSync -VSync
        h: width  1280 start 1328 end 1360 total 1440 skew    0 clock  44.27KHz
        v: height  720 start  723 end  728 total  741           clock  59.74Hz
  1024x768 (0x196) 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
  1024x576 (0x197) 46.995MHz -HSync +VSync
        h: width  1024 start 1064 end 1168 total 1312 skew    0 clock  35.82KHz
        v: height  576 start  577 end  580 total  597           clock  60.00Hz
  1024x576 (0x198) 46.500MHz -HSync +VSync
        h: width  1024 start 1064 end 1160 total 1296 skew    0 clock  35.88KHz
        v: height  576 start  579 end  584 total  599           clock  59.90Hz
  1024x576 (0x199) 42.000MHz +HSync -VSync
        h: width  1024 start 1072 end 1104 total 1184 skew    0 clock  35.47KHz
        v: height  576 start  579 end  584 total  593           clock  59.82Hz
  960x540 (0x19a) 40.784MHz -HSync +VSync
        h: width   960 start  992 end 1088 total 1216 skew    0 clock  33.54KHz
        v: height  540 start  541 end  544 total  559           clock  60.00Hz
  960x540 (0x19b) 40.750MHz -HSync +VSync
        h: width   960 start  992 end 1088 total 1216 skew    0 clock  33.51KHz
        v: height  540 start  543 end  548 total  562           clock  59.63Hz
  960x540 (0x19c) 37.250MHz +HSync -VSync
        h: width   960 start 1008 end 1040 total 1120 skew    0 clock  33.26KHz
        v: height  540 start  543 end  548 total  556           clock  59.82Hz
  800x600 (0x19d) 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 (0x19e) 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
  864x486 (0x19f) 32.901MHz -HSync +VSync
        h: width   864 start  888 end  976 total 1088 skew    0 clock  30.24KHz
        v: height  486 start  487 end  490 total  504           clock  60.00Hz
  864x486 (0x1a0) 32.500MHz -HSync +VSync
        h: width   864 start  888 end  968 total 1072 skew    0 clock  30.32KHz
        v: height  486 start  489 end  494 total  506           clock  59.92Hz
  864x486 (0x1a1) 30.500MHz +HSync -VSync
        h: width   864 start  912 end  944 total 1024 skew    0 clock  29.79KHz
        v: height  486 start  489 end  494 total  500           clock  59.57Hz
  640x480 (0x1a2) 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
  720x405 (0x1a3) 22.500MHz -HSync +VSync
        h: width   720 start  744 end  808 total  896 skew    0 clock  25.11KHz
        v: height  405 start  408 end  413 total  422           clock  59.51Hz
  720x405 (0x1a4) 22.176MHz -HSync +VSync
        h: width   720 start  728 end  800 total  880 skew    0 clock  25.20KHz
        v: height  405 start  406 end  409 total  420           clock  60.00Hz
  720x405 (0x1a5) 21.750MHz +HSync -VSync
        h: width   720 start  768 end  800 total  880 skew    0 clock  24.72KHz
        v: height  405 start  408 end  413 total  419           clock  58.99Hz
  640x360 (0x1a6) 18.000MHz -HSync +VSync
        h: width   640 start  664 end  720 total  800 skew    0 clock  22.50KHz
        v: height  360 start  363 end  368 total  376           clock  59.84Hz
  640x360 (0x1a7) 17.750MHz +HSync -VSync
        h: width   640 start  688 end  720 total  800 skew    0 clock  22.19KHz
        v: height  360 start  363 end  368 total  374           clock  59.32Hz
  640x360 (0x1a8) 17.187MHz -HSync +VSync
        h: width   640 start  640 end  704 total  768 skew    0 clock  22.38KHz
        v: height  360 start  361 end  364 total  373           clock  60.00Hz
DP1 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x44
	Timestamp:  2962035
	Subpixel:   unknown
	Clones:     HDMI1
	CRTCs:      0 1 2
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	Content Protection: Undesired 
		supported: Undesired, Desired, Enabled
	max bpc: 12 
		range: (6, 12)
	Broadcast RGB: Automatic 
		supported: Automatic, Full, Limited 16:235
	audio: auto 
		supported: force-dvi, off, auto, on
	link-status: Good 
		supported: Good, Bad
	non-desktop: 0 
		range: (0, 1)
HDMI1 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x45
	Timestamp:  2962035
	Subpixel:   unknown
	Clones:     DP1
	CRTCs:      0 1 2
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	Content Protection: Undesired 
		supported: Undesired, Desired, Enabled
	max bpc: 12 
		range: (8, 12)
	content type: No Data 
		supported: No Data, Graphics, Photo, Cinema, Game
	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
	non-desktop: 0 
		range: (0, 1)
HDMI2 disconnected 1680x1050+0+0 (0x185) normal (normal left inverted right x axis y axis) 0mm x 0mm
	Identifier: 0x46
	Timestamp:  2962035
	Subpixel:   unknown
	Gamma:      1.3:1.3:1.4
	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: 
	Content Protection: Undesired 
		supported: Undesired, Desired, Enabled
	max bpc: 12 
		range: (8, 12)
	content type: No Data 
		supported: No Data, Graphics, Photo, Cinema, Game
	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
	non-desktop: 0 
		range: (0, 1)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x47
	Timestamp:  2962035
	Subpixel:   no subpixels
	Clones:    
	CRTCs:      3
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	non-desktop: 0 
		supported: 0, 1
$ autorandr --debug --dry-run -cf
internal (detected) (current)
| Differences between the two profiles:
\-
external
xrandr --fb 1920x1080 --output eDP1 --gamma 0.769:0.769:0.714 --mode 1920x1080 --pos 0x0 --primary --rate 60.00 --reflect normal --rotate normal

fn-ix avatar May 28 '19 09:05 fn-ix

outputs (not quite sure what you meant by disabling the automation; I use the systemd service which I kept running throughout, since otherwise autorandr wouldn't do anything

That's the point. I'd like to see the output of xrandr before and of the first autorandr run after the monitor has been detached. With the systemd service running, autorandr already ran once by the time you executed the commands.

phillipberndt avatar May 29 '19 09:05 phillipberndt

Alright, I'll get back on this in 2 weeks as I'm currently on vacation.

Kontakt Phillip Berndt ([email protected]) kirjutas kuupäeval K, 29. mai 2019 kell 11:37:

outputs (not quite sure what you meant by disabling the automation; I use the systemd service which I kept running throughout, since otherwise autorandr wouldn't do anything

That's the point. I'd like to see the output of xrandr before and of the first autorandr run after the monitor has been detached. With the systemd service running, autorandr already ran once by the time you executed the commands.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/phillipberndt/autorandr/issues/156?email_source=notifications&email_token=AEAS4QSW7RWU5KKQCJBNE5TPXZFENA5CNFSM4HP5ODIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWOYMAI#issuecomment-496862721, or mute the thread https://github.com/notifications/unsubscribe-auth/AEAS4QVZDVVOR5QLIILX6MTPXZFENANCNFSM4HP5ODIA .

fn-ix avatar May 29 '19 19:05 fn-ix

I'm back again, sorry for the slightly longer delay.

In the meantime, I've changed desktop monitors, but the issue remains and even seems to have gotten worse, as autorandr doesn't do anything when I disconnect the monitor: I have to use xrandr to get the correct setup (even just running xrandr --verbose reactivates the laptop screen), and then after I've done that at least once, sometimes autorandr starts working again on both plugging & unplugging, and sometimes it only works when connecting the external monitor. All the while though the issue with the incorrect resolution upon disconnecting the external screen remains as well (as the new monitor is also 1680x1050).

I also tried to get the requested outputs, so I turned off the only automation I am aware of, the systemd service, but autorandr seems to have kept on working as upon connecting the external monitor something at least switched profiles.

Here are the outputs anyway if they are of use, right after disconnecting the external monitor with the systemd service off.

$ autorandr --debug --dry-run -cf
external
internal (detected) (current)
xrandr --fb 1920x1080 --output eDP1 --gamma 0.769:0.588:0.435 --mode 1920x1080 --pos 0x0 --primary --rate 60.00 --reflect normal --rotate normal
xrandr --verbose
$ xrandr --verbose
Screen 0: minimum 8 x 8, current 1680 x 1050, maximum 32767 x 32767
eDP1 connected primary (normal left inverted right x axis y axis)
	Identifier: 0x43
	Timestamp:  8479
	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: 
		00ffffffffffff0009e5910600000000
		01190104a51c107802f6a0995951942d
		1f505400000001010101010101010101
		010101010101c93680cd703814403020
		360018a51000001ad42b80cd70381440
		6464440518a51000001a000000000000
		00000000000000000000000000000002
		000c43f90b3c6e1e16286f00000000eb
	BACKLIGHT: 1884 
		range: (0, 7500)
	Backlight: 1884 
		range: (0, 7500)
	scaling mode: Full aspect 
		supported: Full, Center, Full aspect
	max bpc: 12 
		range: (6, 12)
	Broadcast RGB: Automatic 
		supported: Automatic, Full, Limited 16:235
	link-status: Good 
		supported: Good, Bad
	non-desktop: 0 
		range: (0, 1)
  1920x1080 (0x49) 140.250MHz +HSync -VSync +preferred
        h: width  1920 start 1968 end 2000 total 2125 skew    0 clock  66.00KHz
        v: height 1080 start 1083 end 1089 total 1100           clock  60.00Hz
  1920x1080 (0x184) 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
  1920x1080 (0x185) 112.200MHz +HSync -VSync
        h: width  1920 start 2020 end 2120 total 2125 skew    0 clock  52.80KHz
        v: height 1080 start 1100 end 1120 total 1121           clock  47.10Hz
  1680x1050 (0x186) 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
  1400x1050 (0x187) 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
  1600x900 (0x188) 118.997MHz -HSync +VSync
        h: width  1600 start 1696 end 1864 total 2128 skew    0 clock  55.92KHz
        v: height  900 start  901 end  904 total  932           clock  60.00Hz
  1600x900 (0x189) 118.250MHz -HSync +VSync
        h: width  1600 start 1696 end 1856 total 2112 skew    0 clock  55.99KHz
        v: height  900 start  903 end  908 total  934           clock  59.95Hz
  1600x900 (0x18a) 97.500MHz +HSync -VSync
        h: width  1600 start 1648 end 1680 total 1760 skew    0 clock  55.40KHz
        v: height  900 start  903 end  908 total  926           clock  59.82Hz
  1280x1024 (0x18b) 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
  1400x900 (0x18c) 103.500MHz -HSync +VSync
        h: width  1400 start 1480 end 1624 total 1848 skew    0 clock  56.01KHz
        v: height  900 start  903 end  913 total  934           clock  59.96Hz
  1400x900 (0x18d) 86.500MHz +HSync -VSync
        h: width  1400 start 1448 end 1480 total 1560 skew    0 clock  55.45KHz
        v: height  900 start  903 end  913 total  926           clock  59.88Hz
  1280x960 (0x18e) 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
  1368x768 (0x18f) 85.860MHz -HSync +VSync
        h: width  1368 start 1440 end 1584 total 1800 skew    0 clock  47.70KHz
        v: height  768 start  769 end  772 total  795           clock  60.00Hz
  1368x768 (0x190) 85.250MHz -HSync +VSync
        h: width  1368 start 1440 end 1576 total 1784 skew    0 clock  47.79KHz
        v: height  768 start  771 end  781 total  798           clock  59.88Hz
  1368x768 (0x191) 72.250MHz +HSync -VSync
        h: width  1368 start 1416 end 1448 total 1528 skew    0 clock  47.28KHz
        v: height  768 start  771 end  781 total  790           clock  59.85Hz
  1280x800 (0x192) 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
  1280x800 (0x193) 71.000MHz +HSync -VSync
        h: width  1280 start 1328 end 1360 total 1440 skew    0 clock  49.31KHz
        v: height  800 start  803 end  809 total  823           clock  59.91Hz
  1280x720 (0x194) 74.500MHz -HSync +VSync
        h: width  1280 start 1344 end 1472 total 1664 skew    0 clock  44.77KHz
        v: height  720 start  723 end  728 total  748           clock  59.86Hz
  1280x720 (0x195) 74.480MHz -HSync +VSync
        h: width  1280 start 1336 end 1472 total 1664 skew    0 clock  44.76KHz
        v: height  720 start  721 end  724 total  746           clock  60.00Hz
  1280x720 (0x196) 63.750MHz +HSync -VSync
        h: width  1280 start 1328 end 1360 total 1440 skew    0 clock  44.27KHz
        v: height  720 start  723 end  728 total  741           clock  59.74Hz
  1024x768 (0x197) 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
  1024x576 (0x198) 46.995MHz -HSync +VSync
        h: width  1024 start 1064 end 1168 total 1312 skew    0 clock  35.82KHz
        v: height  576 start  577 end  580 total  597           clock  60.00Hz
  1024x576 (0x199) 46.500MHz -HSync +VSync
        h: width  1024 start 1064 end 1160 total 1296 skew    0 clock  35.88KHz
        v: height  576 start  579 end  584 total  599           clock  59.90Hz
  1024x576 (0x19a) 42.000MHz +HSync -VSync
        h: width  1024 start 1072 end 1104 total 1184 skew    0 clock  35.47KHz
        v: height  576 start  579 end  584 total  593           clock  59.82Hz
  960x540 (0x19b) 40.784MHz -HSync +VSync
        h: width   960 start  992 end 1088 total 1216 skew    0 clock  33.54KHz
        v: height  540 start  541 end  544 total  559           clock  60.00Hz
  960x540 (0x19c) 40.750MHz -HSync +VSync
        h: width   960 start  992 end 1088 total 1216 skew    0 clock  33.51KHz
        v: height  540 start  543 end  548 total  562           clock  59.63Hz
  960x540 (0x19d) 37.250MHz +HSync -VSync
        h: width   960 start 1008 end 1040 total 1120 skew    0 clock  33.26KHz
        v: height  540 start  543 end  548 total  556           clock  59.82Hz
  800x600 (0x19e) 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 (0x19f) 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
  864x486 (0x1a0) 32.901MHz -HSync +VSync
        h: width   864 start  888 end  976 total 1088 skew    0 clock  30.24KHz
        v: height  486 start  487 end  490 total  504           clock  60.00Hz
  864x486 (0x1a1) 32.500MHz -HSync +VSync
        h: width   864 start  888 end  968 total 1072 skew    0 clock  30.32KHz
        v: height  486 start  489 end  494 total  506           clock  59.92Hz
  864x486 (0x1a2) 30.500MHz +HSync -VSync
        h: width   864 start  912 end  944 total 1024 skew    0 clock  29.79KHz
        v: height  486 start  489 end  494 total  500           clock  59.57Hz
  640x480 (0x1a3) 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
  720x405 (0x1a4) 22.500MHz -HSync +VSync
        h: width   720 start  744 end  808 total  896 skew    0 clock  25.11KHz
        v: height  405 start  408 end  413 total  422           clock  59.51Hz
  720x405 (0x1a5) 22.176MHz -HSync +VSync
        h: width   720 start  728 end  800 total  880 skew    0 clock  25.20KHz
        v: height  405 start  406 end  409 total  420           clock  60.00Hz
  720x405 (0x1a6) 21.750MHz +HSync -VSync
        h: width   720 start  768 end  800 total  880 skew    0 clock  24.72KHz
        v: height  405 start  408 end  413 total  419           clock  58.99Hz
  640x360 (0x1a7) 18.000MHz -HSync +VSync
        h: width   640 start  664 end  720 total  800 skew    0 clock  22.50KHz
        v: height  360 start  363 end  368 total  376           clock  59.84Hz
  640x360 (0x1a8) 17.750MHz +HSync -VSync
        h: width   640 start  688 end  720 total  800 skew    0 clock  22.19KHz
        v: height  360 start  363 end  368 total  374           clock  59.32Hz
  640x360 (0x1a9) 17.187MHz -HSync +VSync
        h: width   640 start  640 end  704 total  768 skew    0 clock  22.38KHz
        v: height  360 start  361 end  364 total  373           clock  60.00Hz
DP1 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x44
	Timestamp:  8479
	Subpixel:   unknown
	Clones:     HDMI1
	CRTCs:      0 1 2
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	Content Protection: Undesired 
		supported: Undesired, Desired, Enabled
	max bpc: 12 
		range: (6, 12)
	Broadcast RGB: Automatic 
		supported: Automatic, Full, Limited 16:235
	audio: auto 
		supported: force-dvi, off, auto, on
	link-status: Good 
		supported: Good, Bad
	non-desktop: 0 
		range: (0, 1)
HDMI1 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x45
	Timestamp:  8479
	Subpixel:   unknown
	Clones:     DP1
	CRTCs:      0 1 2
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	Content Protection: Undesired 
		supported: Undesired, Desired, Enabled
	max bpc: 12 
		range: (8, 12)
	content type: No Data 
		supported: No Data, Graphics, Photo, Cinema, Game
	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
	non-desktop: 0 
		range: (0, 1)
HDMI2 disconnected 1680x1050+0+0 (0x1ae) normal (normal left inverted right x axis y axis) 0mm x 0mm
	Identifier: 0x46
	Timestamp:  8479
	Subpixel:   unknown
	Gamma:      1.3:1.7:2.3
	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: 
	Content Protection: Undesired 
		supported: Undesired, Desired, Enabled
	max bpc: 12 
		range: (8, 12)
	content type: No Data 
		supported: No Data, Graphics, Photo, Cinema, Game
	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
	non-desktop: 0 
		range: (0, 1)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x47
	Timestamp:  8479
	Subpixel:   no subpixels
	Clones:    
	CRTCs:      3
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	non-desktop: 0 
		supported: 0, 1
  1680x1050 (0x1ae) 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

UPDATE:

Now this is even more curious. I was playing around a bit, and it seems that sometimes, after disconnecting, when I run autorandr --debug --dry-run -cf I get no change whatsoever with autorandr thinking the external monitor is still connected:

$ autorandr --debug --dry-run -cf
external (detected) (current)
| Differences between the two profiles:
\-
internal
xrandr --fb 1680x1050 --output HDMI2 --gamma 0.769:0.588:0.435 --mode 1680x1050 --pos 0x0 --rate 59.95 --reflect normal --rotate normal

Whilst at other times, upon executing the command, it seems to switch to the internal profile:

$ autorandr --debug --dry-run -cf
external
internal (detected)
| Differences between the two profiles:
| [Output eDP1] The output is disabled currently, but active in the new configuration
\-
Loading profile 'internal'
| Differences between the two profiles:
| [Output eDP1] The output is disabled currently, but active in the new configuration
\-
xrandr --fb 1920x1080 --output eDP1 --gamma 0.769:0.588:0.435 --mode 1920x1080 --pos 0x0 --primary --rate 60.00 --reflect normal --rotate normal

fn-ix avatar Jul 06 '19 23:07 fn-ix

but autorandr seems to have kept on working as upon connecting the external monitor something at least switched profiles

Do you maybe have a Window Manager that does this automatically for you?

Also, just to clarify, what's your autorandr --version? Do you run the latest version from this repository?

phillipberndt avatar Jul 08 '19 06:07 phillipberndt

I'm using the Arch package, so 1.8.1. My WM is i3 so there shouldn't be any mechanism for that. However, when I got back I had problems running autorandr; a reinstall fixed it, so maybe there is some kind of leftover instance somewhere....

fn-ix avatar Jul 08 '19 11:07 fn-ix

I uninstalled autorandr and this behavior stopped, so it must be somehow caused by autorandr. Nothing showed up on htop or on the list of systemd services so I have no idea where to look.

fn-ix avatar Jul 10 '19 09:07 fn-ix