Display settings are not saved

10,831

If you use NVIDIA drivers you must change your settings from there.I would recommend using xrand command to change your settings, you can make auto run script or a key combination to switch between settings using xrand command.

Edit: To fix it set IgnoreLid=true in /etc/UPower/UPower.conf file!

Share:
10,831

Related videos on Youtube

alexander.tkachuk
Author by

alexander.tkachuk

Updated on September 18, 2022

Comments

  • alexander.tkachuk
    alexander.tkachuk over 1 year

    I just installed Ubuntu 17.10 on my Asus n56vz laptop with two external displays connected and found that display settings (primary display, positions, etc.) are not saved (are not kept after reboot). Also, I faced with a problem editing display positions (drag and drop doesn't work well).

    Possibly, it happens because of two configurations in monitors.xml file. The first one is active when laptop lid is closed and has two external displays. The second one is active when laptop lid is opened and has three displays (internal and external ones).

    Update, I tried to update 'monitors.xml' manually, it looks like that it is not used at all.

    Update, I was able to fix it, and to enable my laptop to remember display settings by disabling laptop lid opening handling setting 'IgnoreLid=true' in '/etc/UPower/UPower.conf' file.

    There are several similar questions on askubuntu, but no clear answers.

  • alexander.tkachuk
    alexander.tkachuk over 6 years
    Thank you! I tried to use NVidia control panel with the same result (display settings are not saved). And, I am thinking about creating of xrandr script for my display settings. Though, I hoped that such simple issue can be solved without scripting:)
  • alexander.tkachuk
    alexander.tkachuk over 6 years
    Just in case if it is interesting for somebody, xrandr line for my display settings (one display above another) "xrandr --output VGA-1-1 --auto --primary --output HDMI-0 --auto --above VGA-1-1"
  • AsenM
    AsenM over 6 years
    this can be solved without script, but it will take more time to find where the problem is and solving it.
  • alexander.tkachuk
    alexander.tkachuk over 6 years
    I did it without scripting by setting 'IgnoreLid=true' in '/etc/UPower/UPower.conf' file!
  • AsenM
    AsenM over 6 years
    Thats great to hear, I will edit my answer with your comment so people can benefit from it, is that okay?
  • Chaim Eliyah
    Chaim Eliyah almost 3 years
    xrandr (not xrand; X11 Resize and Rotate) does not save settings. It is a sandbox for playing with the settings, the same as the Displays plugin for the Settings tool. I feel this is not a canonical answer.