You are not logged in.
I have a single monitor for my PC (the primary monitor) and use my TV as a second monitor. I configure my displays so that the TV extends the desktop to the right at a much higher resolution to take advantage of the UHD and whatnot. Everything works fine, but whenever the TV is turned off my preferences seem to be forgotten. When I turn the TV back on, I basically have two options:
1) Allow the default behaviour of screen mirroring, which means that I can then only see a small portion of the screen on my primary monitor which frustratingly doesn't include my gnome panel at the bottom.
2) Check the "Configure new displays when connected" button in xfce4 display settings. This means that whenever a new monitor is connected, I still get the wrong layout but at least there is now a window that pops up to help me choose the correct one. Fortunately, the corner of that window is just in view of my primary monitor so it kind of works.
Whilst the second option is good enough, what I'd really like is for the system to remember my preferences for next time the monitor is connected, so that I can use option 1) but it will default to the correct layout. Is there any way to do that?
Offline
You could write a small bash script that utilizes the xrandr command and is called by an udev rule whenever the tv is connected or disconnected.
As an alternative to the udev rule you could also link it to a keyboard shortcut.
Offline