autorandr icon indicating copy to clipboard operation
autorandr copied to clipboard

CentOS 8 Cannot find mode Error

Open jasi110 opened this issue 6 years ago • 2 comments
trafficstars

I am trying to use autorandr with CentOS 8 and it saved my profile, but when I try to use it, the following occurs: [dglick@dgcentos8 ~]$ autorandr --change workstation (detected) xrandr: cannot find mode 1920x1080_60.00 Failed to apply profile 'workstation' (line 762; /usr/local/lib/python3.6/site-packages/autorandr.py): Command failed: xrandr --fb 1920x1080 --output Virtual-1 --gamma 1.0:1.0:1.0 --mode 1920x1080_60.00 --pos 0x0 --primary --rate 59.96 --reflect normal --rotate normal (line 762; /usr/local/lib/python3.6/site-packages/autorandr.py) [dglick@dgcentos8 ~]$

jasi110 avatar Oct 25 '19 12:10 jasi110

Sorry it took me a while to respond. If this is still an issue: Apparently you have a manually configured mode that is added using xrandr's --addmode command. Try doing that manually before loading the profile and see whether it works then. If it does, add the commands to a preswitch script for your profile.

phillipberndt avatar Dec 31 '19 10:12 phillipberndt

I'm using autorandr successfully on Centos-8.1

But - there are some 'kinks' of this app:

In the dock - my HP Elitebook 840 G6 - is connected via DisplayPort. Whenever I boot/connect it - in 'xrandr' the 'port'-name is kinda random. so one time it's 'DP-2-1' - turn off the monitor, turn on again - and it's now DP-4 ...sometimes DP-5 - I couldn't figure out what the logic here is.

some reading suggests - that this is due to MST - and no portname-consistency is guaranteed.

SO - I just keep creating for each case profiles ... :-) --- REALLY WORKS! - but it's ugly.

I think it could be possible - to base profiles stronger on the detected EDID info. (maybe combine it with monitor serial-num) So that if the obviously SAME monitor shows up on different ports - it's still the same monitor - so use a profile - based on that .... MAYBE :-)

Overall: this 'autorandr' hack is to me so important - that without it - gnome is quite useless. (I would have reverted to Centos-7 - if this wouldn't fix things on Centos-8 ) without autorandr - whenever I power off/on the external monitor - gnome 'forgets' the display-config and starts with the internal panel ... Compared to that - WITH autorandr - IF I just saved every imaginable profile the laptop can come up with - this WORKS as expected :-) - but could be made more 'robust' ...

So again: a very important piece of software - WORKS (nearly) as intended - and most importantly - better than any alternative I've tried so far :-) (( my old Dell-laptop was hooked up via USB-C - ran Centos-7.7 - never had these issues))

wszoecs avatar Feb 24 '20 09:02 wszoecs