# Xfce post screensaver desktop resolution changes

**URL:** <https://forum.endeavouros.com/t/xfce-post-screensaver-desktop-resolution-changes/57225>\
**Category:** XFCE\
**Created:** [June 25, 2024, 6:09pm UTC](https://forum.endeavouros.com/t/xfce-post-screensaver-desktop-resolution-changes/57225 "2024-06-25T18:09:31Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![vogg](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/v/ac8455/32.png) [@vogg](https://forum.endeavouros.com/u/vogg)\
**Post date:** [June 25, 2024, 6:09pm UTC](https://forum.endeavouros.com/t/xfce-post-screensaver-desktop-resolution-changes/57225/1 "2024-06-25T18:09:31Z")

</div>

i have created a profile under advanced in display and set resolution to what i want it to be. there is no mention of any other desktop resolution in ~/.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml. however, when i run xrandr --verbose --query it shows the resolution that xfce defaults to - 3840x1080 (ox1c2) preferred. same as what i see in display settings, there is an asterisk next to 3840x1080 – it is not keeping the 5120x1440 which i have associated with the display profile.

i have looked all over the system – /etc/X11 , usr/share/X11 , i see no mention of 3840x1080 anywhere (nor any other display resolutions or anything which resembles a xorg display configuration).

any ideas?

dell precision 7810, 24x e5-2620 xeon cpu, 64g ram, nvidia rtx 2070 super, samsung odyssey 49" g9 display (native 5120x1440), 10gbit x540 intel nic

---

<div class="post-metadata">

**Author:** ![drunkenvicar](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/drunkenvicar/32/112222_2.png) [@drunkenvicar](https://forum.endeavouros.com/u/drunkenvicar)\
**Post date:** [June 25, 2024, 9:59pm UTC](https://forum.endeavouros.com/t/xfce-post-screensaver-desktop-resolution-changes/57225/2 "2024-06-25T21:59:12Z")

</div>

xfce settings are soooo spread out…wild guess…hail mary here…is XFCE’s built-in compositior (forget name) possibly one of the keyholders to this info? I see someone typing as I’m typing so they probably have the solution.

---

<div class="post-metadata">

**Author:** ![eso](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/eso/32/36767_2.png) [@eso](https://forum.endeavouros.com/u/eso)\
**Post date:** [June 25, 2024, 10:20pm UTC](https://forum.endeavouros.com/t/xfce-post-screensaver-desktop-resolution-changes/57225/3 "2024-06-25T22:20:53Z")

</div>

Welcome to the forum @vogg  
In my experience primarily  
`xfce4-display-settings`  
serves for such settings. You commit with ‘Apply’ and confirm it with ‘Keep…’  
Although these settings are written to  
~/.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml  
I failed to modify the actual resolution by editing it.  
`xrandr --verbose --query`  
lists the possible and the preferred settings only.  
If the above method is not sufficient use from AUR  
`arandr`  
Ctrl+Return Applies and Files/Save as writes a xrandr command line you can  
use as monitor.sh  
`chmod +x ~/.screenlayout/monitor.sh`  
Put it into Startup  
I’m not convinced of the necessity of this second method.

---

<div class="post-metadata">

**Author:** ![vogg](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/v/ac8455/32.png) [@vogg](https://forum.endeavouros.com/u/vogg)\
**Post date:** [June 25, 2024, 11:01pm UTC](https://forum.endeavouros.com/t/xfce-post-screensaver-desktop-resolution-changes/57225/4 "2024-06-25T23:01:16Z")

</div>

I just tried all of this - even added the +x monitor.sh to startup. should this be triggered ‘on login’? I even used nvidia settings and outputted a config i have in /etc/X11/xorg.conf.d/10-monitor.conf

rebooted system , logged in – locked screen - waited 2 or 3 minutes, log in and im back at 3840x1080 (instead of 5120x1440).

xfce4-display-settings , apply – keep. looks good but still shows the asterisk next to the 3840x1080.

user@dell7810 /e/X/xorg.conf.d\> xrandr --verbose --query|grep preferred  
3840x1080 (0x1c2) 549.000MHz +HSync -VSync +preferred  
user@dell7810 /e/X/xorg.conf.d\> xrandr --verbose --query|grep 5120x1440  
DP-4 connected 5120x1440+0+0 (0x1c3) normal (normal left inverted right x axis y axis) 1mm x 1mm  
5120x1440 (0x1c3) 965.600MHz +HSync -VSync \*current  
5120x1440 (0x1c4) 469.000MHz +HSync -VSync

---

<div class="post-metadata">

**Author:** ![banjo](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/banjo/32/86837_2.png) [@banjo](https://forum.endeavouros.com/u/banjo)\
**Post date:** [June 25, 2024, 11:59pm UTC](https://forum.endeavouros.com/t/xfce-post-screensaver-desktop-resolution-changes/57225/5 "2024-06-25T23:59:32Z")

</div>

> [@vogg](#):
>
> . looks good but still shows the asterisk next to the 3840x1080.

Those with a asterisk are recommend/default Resolution.

---

<div class="post-metadata">

**Author:** ![vogg](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/v/ac8455/32.png) [@vogg](https://forum.endeavouros.com/u/vogg)\
**Post date:** [June 26, 2024, 12:40am UTC](https://forum.endeavouros.com/t/xfce-post-screensaver-desktop-resolution-changes/57225/6 "2024-06-26T00:40:09Z")

</div>

where would that info be coming from? what would try to push the 3840x1080 as a default resolution vs the monitor manufacturer’s recommendation of 5120x1440. if i could somehow override that and set it instead to what i would prefer it to be, this would remedy itself.

---

<div class="post-metadata">

**Author:** ![vogg](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/v/ac8455/32.png) [@vogg](https://forum.endeavouros.com/u/vogg)\
**Post date:** [June 26, 2024, 2:52am UTC](https://forum.endeavouros.com/t/xfce-post-screensaver-desktop-resolution-changes/57225/7 "2024-06-26T02:52:30Z")

</div>

if someone has a suggestion on how to correct this that would be great. in the meantime, i have created a keyboard shortcut , ctrl-alt-z , that runs the monitor.sh script from a few messages ago which sets it to the correct resolution. i was trying to find a trigger for screen unlock/login that i could use to run that script, but not seeing anything.

---

<div class="post-metadata">

**Author:** ![eso](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/eso/32/36767_2.png) [@eso](https://forum.endeavouros.com/u/eso)\
**Post date:** [June 26, 2024, 8:39am UTC](https://forum.endeavouros.com/t/xfce-post-screensaver-desktop-resolution-changes/57225/8 "2024-06-26T08:39:26Z")

</div>

@vogg  
Let me repeat step by step. With arandr you can produce a monitor.sh  
ls -al .screenlayout/monitor.sh  
`-rwx------ 1 a a 146 Jun 26 10:15 .screenlayout/monitor.sh`  
add executable so that to be able to run user as well  
`chmod +x .screenlayout/monitor.sh`  
[a@a-81w8 ~]$ ls -al .screenlayout/monitor.sh  
`-rwx--x--x 1 a a 146 Jun 26 10:15 .screenlayout/monitor.sh`  
re Login:  
 ![sorrybeingtautological](https://forum.endeavouros.com/uploads/default/original/3X/3/8/38b65085de9d88587288de50dce9d445fd6dfe34.png)

---

<div class="post-metadata">

**Author:** ![fred666](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/f/f17d59/32.png) [@fred666](https://forum.endeavouros.com/u/fred666)\
**Post date:** [June 26, 2024, 9:21am UTC](https://forum.endeavouros.com/t/xfce-post-screensaver-desktop-resolution-changes/57225/9 "2024-06-26T09:21:16Z")

</div>

This is what helped in my case, refreshrate of my monitor keeps resetting to default after reboot. Not sure it will help with yours though.

Remove xfce4-screensaver and xfce4-powermanager (no need as the power is regulated by dpms  
inside the monitor settings menu (the menu from your screen itself) disable DDC/CI  
remove home/.config/xfce4/xfconf/xfce-perchannel-xml/ display.xml  
Reboot  
Go to settings/display and set the right refreshrate  
Remove settings/keyboard/application shortcuts anything display related  
run in terminal:  
`sudo xset -dpms`  
and:  
`sudo xset dpms`  
Reboot  
After this the refreshrate should stay at what you have set in display settings.

If this does not help (enough), set a profile in display settings advanced tab with the same settings as in the general tab.  
Set connecting display to show dialog and set automatically enable profile to on.  
Reboot

---

<div class="post-metadata">

**Author:** ![petsam](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/petsam/32/41308_2.png) [@petsam](https://forum.endeavouros.com/u/petsam)\
**Post date:** [June 26, 2024, 9:33am UTC](https://forum.endeavouros.com/t/xfce-post-screensaver-desktop-resolution-changes/57225/10 "2024-06-26T09:33:01Z")

</div>

> [@banjo](#):
>
> Those with a asterisk are recommend/default Resolution.

Not by `man xrandr`

> If invoked without any option, it will dump the state of the outputs, showing the existing modes for each of them, with a ‘+’ after the preferred modes and a ‘\*’ after the current mode.

> [@vogg](#):
>
> if someone has a suggestion on how to correct this that would be great.

The usual/recommended method is by configuring the Display Manager (LightDM/SDDM) Xsetup script.

It would be more productive if you had posted full info instead of parts. I mean xrandr, inxi, xfce files, etc.  
Also, a link to the monitor’s and GPU User Manual would help as well.

---

<div class="post-metadata">

**Author:** ![vogg](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/v/ac8455/32.png) [@vogg](https://forum.endeavouros.com/u/vogg)\
**Post date:** [June 26, 2024, 2:12pm UTC](https://forum.endeavouros.com/t/xfce-post-screensaver-desktop-resolution-changes/57225/11 "2024-06-26T14:12:13Z")

</div>

> @vogg  
> Let me repeat step by step. With arandr you can produce a monitor.sh  
> ls -al .screenlayout/monitor.sh  
> `-rwx------ 1 a a 146 Jun 26 10:15 .screenlayout/monitor.sh`  
> add executable so that to be able to run user as well  
> `chmod +x .screenlayout/monitor.sh`  
> [a@a-81w8 ~]$ ls -al .screenlayout/monitor.sh  
> `-rwx--x--x 1 a a 146 Jun 26 10:15 .screenlayout/monitor.sh`

Yes, this is exactly what I have done - did not forget the chmod +x — been using unix variants since the 1980s going back to sco unix i used to install from tape drives and slackware from the early 90s installed from floppy 🙂

---

<div class="post-metadata">

**Author:** ![eso](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/eso/32/36767_2.png) [@eso](https://forum.endeavouros.com/u/eso)\
**Post date:** [June 26, 2024, 2:39pm UTC](https://forum.endeavouros.com/t/xfce-post-screensaver-desktop-resolution-changes/57225/12 "2024-06-26T14:39:45Z")

</div>

My apologies Sir. I can’t even recall my first linux journey. Worked with tape readers with PDP-8 like machines in cca '76.

---

<div class="post-metadata">

**Author:** ![vogg](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/v/ac8455/32.png) [@vogg](https://forum.endeavouros.com/u/vogg)\
**Post date:** [June 26, 2024, 3:03pm UTC](https://forum.endeavouros.com/t/xfce-post-screensaver-desktop-resolution-changes/57225/13 "2024-06-26T15:03:12Z")

</div>

> My apologies Sir. I can’t even recall my first linux journey. Worked with tape readers with PDP-8 like machines in cca '76.

🙂 all good! going to move on to trying out the dpms suggestion.

---

<div class="post-metadata">

**Author:** ![vogg](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/v/ac8455/32.png) [@vogg](https://forum.endeavouros.com/u/vogg)\
**Post date:** [June 26, 2024, 3:23pm UTC](https://forum.endeavouros.com/t/xfce-post-screensaver-desktop-resolution-changes/57225/14 "2024-06-26T15:23:38Z")

</div>

> The usual/recommended method is by configuring the Display Manager (LightDM/SDDM) Xsetup script.  
> It would be more productive if you had posted full info instead of parts. I mean xrandr, inxi, xfce files, etc.  
> Also, a link to the monitor’s and GPU User Manual would help as well.

```auto
inxi - 
CPU: 2x 6-core Intel Xeon E5-2620 v3 (-MT MCP SMP-)
speed/min/max: 1498/1200/3200 MHz Kernel: 6.9.6-arch1-1 x86_64 Up: 16h 21m
Mem: 2.75/62.81 GiB (4.4%) Storage: 2.29 TiB (1.4% used) Procs: 372
Shell: fish inxi: 3.3.35

xrandr -

Screen 0: minimum 8 x 8, current 5120 x 1440, maximum 32767 x 32767
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 connected 5120x1440+0+0 (normal left inverted right x axis y axis) 1mm x 1mm
   3840x1080 119.97 + 59.97  
   5120x1440 120.00* 59.98  
   2560x1440 120.00 59.95  
   2560x1080 119.88 60.00 59.94  
   1920x1080 119.88 60.00 59.94  
   1680x1050 59.95  
   1600x900 60.00  
   1440x900 59.89  
   1280x1024 75.02 60.02  
   1280x800 59.81  
   1280x720 60.00  
   1152x864 75.00  
   1024x768 75.03 70.07 60.00  
   800x600 75.00 72.19 60.32 56.25  
   640x480 75.00 72.81 59.94  
DP-5 disconnected (normal left inverted right x axis y axis)

displays.xml --

<?xml version="1.0" encoding="UTF-8"?>

<channel name="displays" version="1.0">
  <property name="ActiveProfile" type="string" value="Default"/>
  <property name="Default" type="empty">
    <property name="DP-4" type="string" value="Samsung Electric Company 49&quot;">
      <property name="Active" type="bool" value="true"/>
      <property name="EDID" type="string" value="d91251199d310a37ac83dbe38d7b36d3d7607652"/>
      <property name="Resolution" type="string" value="5120x1440"/>
      <property name="RefreshRate" type="double" value="119.99920464487394"/>
      <property name="Rotation" type="int" value="0"/>
      <property name="Reflection" type="string" value="0"/>
      <property name="Primary" type="bool" value="false"/>
      <property name="Scale" type="empty">
        <property name="X" type="double" value="1"/>
        <property name="Y" type="double" value="1"/>
      </property>
      <property name="Position" type="empty">
        <property name="X" type="int" value="0"/>
        <property name="Y" type="int" value="0"/>
      </property>
    </property>
  </property>
  <property name="Fallback" type="empty">
    <property name="DP-4" type="string" value="Samsung Electric Company 49&quot;">
      <property name="Active" type="bool" value="true"/>
      <property name="EDID" type="string" value="d91251199d310a37ac83dbe38d7b36d3d7607652"/>
      <property name="Resolution" type="string" value="5120x1440"/>
      <property name="RefreshRate" type="double" value="119.99920464487394"/>
      <property name="Rotation" type="int" value="0"/>
      <property name="Reflection" type="string" value="0"/>
      <property name="Primary" type="bool" value="false"/>
      <property name="Scale" type="empty">
        <property name="X" type="double" value="1"/>
        <property name="Y" type="double" value="1"/>
      </property>
      <property name="Position" type="empty">
        <property name="X" type="int" value="0"/>
        <property name="Y" type="int" value="0"/>
      </property>
    </property>
  </property>
  <property name="Notify" type="int" value="0"/>
  <property name="6814d1ecf17749282b9f8b55969c375512e6aa30" type="string" value="profile1">
    <property name="DP-4" type="string" value="Samsung Electric Company 49&quot;">
      <property name="Active" type="bool" value="true"/>
      <property name="EDID" type="string" value="d91251199d310a37ac83dbe38d7b36d3d7607652"/>
      <property name="Resolution" type="string" value="5120x1440"/>
      <property name="RefreshRate" type="double" value="119.99920464487394"/>
      <property name="Rotation" type="int" value="0"/>
      <property name="Reflection" type="string" value="0"/>
      <property name="Primary" type="bool" value="false"/>
      <property name="Scale" type="empty">
        <property name="X" type="double" value="1"/>
        <property name="Y" type="double" value="1"/>
      </property>
      <property name="Position" type="empty">
        <property name="X" type="int" value="0"/>
        <property name="Y" type="int" value="0"/>
      </property>
    </property>
  </property>
</channel>

xorg.conf.d/10-monitor.conf

user@dell7810 ~/.c/x/x/xfce-perchannel-xml [1]> cat /etc/X11/xorg.conf.d/10-monitor.conf 
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 550.78

Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0" 0 0
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0" "CorePointer"
    Option "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "Module"
    Load "dbe"
    Load "extmod"
    Load "type1"
    Load "freetype"
    Load "glx"
EndSection

Section "InputDevice"
    # generated from default
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "no"
    Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier "Keyboard0"
    Driver "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier "Monitor0"
    VendorName "Unknown"
    ModelName "Samsung LC49G95T"
    HorizSync 30.0 - 183.0
    VertRefresh 50.0 - 120.0
    Option "DPMS"
EndSection

Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "NVIDIA GeForce RTX 2070 SUPER"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    Option "Stereo" "0"
    Option "nvidiaXineramaInfoOrder" "DP-4"
    Option "metamodes" "5120x1440 +0+0"
    Option "SLI" "Off"
    Option "MultiGPU" "Off"
    Option "BaseMosaic" "off"
    SubSection "Display"
        Depth 24
    EndSubSection
EndSection

```

I dont believe the xorg 10-monitor.conf config i dumped from nvidia-settings is doing anything, but it did pull hardware details about video card and monitor.

---

<div class="post-metadata">

**Author:** ![vogg](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/v/ac8455/32.png) [@vogg](https://forum.endeavouros.com/u/vogg)\
**Post date:** [June 26, 2024, 3:45pm UTC](https://forum.endeavouros.com/t/xfce-post-screensaver-desktop-resolution-changes/57225/15 "2024-06-26T15:45:41Z")

</div>

looking at all of this here and also reading with fred666 mentioned - set the right refreshrate. perhaps its not liking the 119.97 vs 120.00 refresh rate?

---

<div class="post-metadata">

**Author:** ![vogg](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/v/ac8455/32.png) [@vogg](https://forum.endeavouros.com/u/vogg)\
**Post date:** [June 26, 2024, 4:01pm UTC](https://forum.endeavouros.com/t/xfce-post-screensaver-desktop-resolution-changes/57225/16 "2024-06-26T16:01:08Z")

</div>

> Remove xfce4-screensaver and xfce4-powermanager (no need as the power is regulated by dpms  
> inside the monitor settings menu (the menu from your screen itself) disable DDC/CI  
> remove home/.config/xfce4/xfconf/xfce-perchannel-xml/ display.xml  
> Reboot  
> Go to settings/display and set the right refreshrate  
> Remove settings/keyboard/application shortcuts anything display related  
> run in terminal:  
> `sudo xset -dpms`  
> and:  
> `sudo xset dpms`  
> Reboot  
> After this the refreshrate should stay at what you have set in display settings.

When i run xrandr now it shows a refresh rate of 120.00 for 5120x1440 , and it is now booting with the correct resolution. I think this may have fixed the issue from what i can tell. Thank you fred666

```auto
user@dell7810 ~> xrandr
Screen 0: minimum 8 x 8, current 5120 x 1440, maximum 32767 x 32767
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 connected primary 5120x1440+0+0 (normal left inverted right x axis y axis) 1mm x 1mm
   3840x1080 119.97 + 59.97  
   5120x1440 120.00* 59.98  
   2560x1440 120.00 59.95  
   2560x1080 119.88 60.00 59.94  
   1920x1080 119.88 60.00 59.94  
   1680x1050 59.95  
   1600x900 60.00  
   1440x900 59.89  
   1280x1024 75.02 60.02  
   1280x800 59.81  
   1280x720 60.00  
   1152x864 75.00  
   1024x768 75.03 70.07 60.00  
   800x600 75.00 72.19 60.32 56.25  
   640x480 75.00 72.81 59.94  
DP-5 disconnected (normal left inverted right x axis y axis)

```

---

<div class="post-metadata">

**Author:** ![system](https://forum.endeavouros.com/uploads/default/original/2X/9/9ea52f9fd5ef8e609e593c362d61a36295f48be8.png) [@system](https://forum.endeavouros.com/u/system)\
**Post date:** [June 28, 2024, 4:01pm UTC](https://forum.endeavouros.com/t/xfce-post-screensaver-desktop-resolution-changes/57225/17 "2024-06-28T16:01:43Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
