How to set persistent display resolution setting in Red Hat Enterprise Linux 6 ?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 6
  • control-center
  • gdm

Issue

  • I want to set display resolution for the user and also of gdm login screen.
  • The resolution settings should remain persistent upon reboot.
  • How do I set display resolution for user and login screen to stay persistent upon reboot.

Resolution

  • Use System -> Preferences -> Display menu option or gnome-display-properties tool to configure desired display resolution for user.
  • This tool will create '~/.config/monitors.xml' file which will be referred each time upon user login.
  • The same file can be copied to /var/lib/gdm/.config/ directory for gdm to have that display resolution upon reboot.
# cp ~/.config/monitors.xml /var/lib/gdm/.config/ 

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

6 Comments

Tried this with Red Hat 6.8 and get an error message on the log in screen.

   Could not apply the stored configuration for monitors.
   Could not find a suitable configuration of screens.

Doesn't work for RHEL 8 unfortunately. Although the file is created and the target folder exists.

on RHEL 8.3 it worked for me.

does not work for me in RHEL8.3

Tried this method and other methods, e.g. forced using of Xorg on my VMware run RHEL 8.3 and none of them worked. Wondering the Gnome on the new RHEL8 release must be using a different configuration file? Hope someone can find a solution to this.

typing in "cp ~/.config/monitors.xml /var/lib/gdm/.config/ " to the terminal from the root as root user on Virtualbox RHEL 8 (latest as of March 17, 2022) yields the following error

[root@mycomputer/]# cp ~/.config/monitors.xml /var/lib/gdm/.config/ cp: cannot stat '/root/.config/monitors.xml': No such file or directory

As a Newbie, it might help if the "~" was explained. I've done a straight copy and paste. I'm not sure what the tilde does from within the directory structure.