Found a neat util - works flawlessly on Ubuntu 22.04…
autorandr…
I’ve got two configs - one’s for work - where my rightmost 32" QHD monitor is connected to my work MacBook via HDM. The 2nd one’s for “play” i.e. when ALL my monitors are for my Linux desktop - the main three (including the rightmost) are all QHD 32" curved - and I have a HDMI connected FHD 27" above for watching TV (free to air from my TVHeadend on a Pi3B).
“sudo apt install autorandr
” (available in default Ubuntu repos)
then I made two configs :
workfuckery
playfuckery
╭─x@titan ~/MPZ/Blacnk/2022-NugatoryII-FLAC
╰─➤ autorandr
/usr/bin/autorandr:42: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils.version import LooseVersion as Version
playfuckery (detected) (1st match) (current)
workdrudgery (detected) (2nd match)
play (detected) (3rd match) (current)
work (detected) (4th match)
Not sure about that DeprecationWarning message - looks harmless… Might sort it next week - best not tackled when on my 2nd glass of red (Merlot O’Clock, not “Beer O’Clock” for me)…
It’s now Friday beer o’clock in sunny (winter) Perth West Oz and :
autorandr playfuckery
And my computer re-enables the rightmost monitor! Like f–king MAGIC! It’s almost like plug and play!
and it just keeps getting better… There’s a “condition” (an affliction even?) that affects my Ubuntu 22,04 system - happened before it was 22.04.1 too… I don’t power off - so I just manually power off my monitors - e.g. when going to bed…
Get up in the morning to do some computer stuff - power them on again (the monitors).
The affliction : sometimes my leftmost monitor goes into some HUUUGE chunky lofi mode when I power it on - like 800x600, and my geometry arrangement gets screwed, e.g. left becomes right, up becomes down… And when I try to fix it with the “Screen Display” component of Gnome Settings - it just crashes out (gnome settings)… Previously I’d end up having to reboot (I’m guessing a bit of assiduous playing with randr and xrandr might have fixed it - but - who’s got time for that - a reboot’s quicker)…
Happened to me just now - but I just fired up a terminal (or found one conveniently already running) and :
autorandr playfuckery
and I’m once again cooking with gas!