Is there any way to configure Ubuntu to set default "first-try" monitor resolution whenever a (or two) monitor plugged in. Regardless of what graphic cards or graphic driver that being used.
For example, when I plug HDMI monitor which support 1920x1080, ubuntu plays well by automatically set the screen resolution to FullHD. That's good.
But what I need is simple 1024x768 resolution, over HDMI. To solve this, I can easily go to system settings - display and set it, ubuntu also remember my setup. Or using xrandr command.
But everytime I change monitor, I need to go to system settings (or run another xrandr command again).
So, is there anyway to tell ubuntu, something like
"for every monitor that plugged in, no matter it is via D-SUB or HDMI or whatever, try to check if it can support 1024x768, and if it does, use that resolution"
I'm thinking of
- Generate something like generic monitors.xml for all monitor vendor and models
- Run custom xrandr script everytime a monitor is plugged/unplugged, but may be this will cause screen flicker.
But I still have no idea how to implement those.
As information, the system is configured to use lightdm, if that matters. I've reading about xrandr, monitors.xml, but still can't find the solutions. Thanks in advance.