Xfce post screensaver desktop resolution changes

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

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.

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.

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

Those with a asterisk are recommend/default Resolution.

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.

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.

@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

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

1 Like

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.

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.

1 Like

@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 :slight_smile:

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

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

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

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.

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.

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?

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

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)

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