Bug 30732

Summary: Xfce Display settings window appears after system comes out of suspend/sleep/screensaver
Product: Mageia Reporter: Edward <epp>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: Normal    
Version: 8   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: xfce4-settings-4.16.0-2.mga8.src.rpm CVE:
Status comment:
Attachments: Xfce Keyboard Applications Shortcut with "DIsplay" deleted

Description Edward 2022-08-11 00:49:43 CEST
Description of problem:

Display resolution is set to 1680x1050. If there is no activity for ~10 minutes, xscreensaver starts up. When logging back into the desktop through xscreensaver, the display resolution automatically switches to 1920x1080 each time, using the Xfce desktop. On-board video is connected to the monitor via a DVI-to-HDMI cable (DVI output from video, HDMI input on monitor).

Version-Release number of selected component (if applicable):

5.45.1


Additional information:

Video (from lspci):

01:05.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RS780L [Radeon 3000] (prog-if 00 [VGA controller])
	Subsystem: Hewlett-Packard Company Device 2ab7
	Flags: bus master, fast devsel, latency 0, IRQ 18, NUMA node 0
	Memory at d0000000 (32-bit, prefetchable) [size=256M]
	I/O ports at c000 [size=256]
	Memory at fe9f0000 (32-bit, non-prefetchable) [size=64K]
	Memory at fe800000 (32-bit, non-prefetchable) [size=1M]
	Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: radeon
	Kernel modules: radeon


Output of xrandr:

Screen 0: minimum 320 x 200, current 1680 x 1050, maximum 8192 x 8192
VGA-0 disconnected (normal left inverted right x axis y axis)
DVI-0 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 480mm x 270mm
   1920x1080     60.00 +  50.00    59.94  
   1680x1050     59.88* 
   1400x1050     59.95  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1440x900      59.90  
   1280x800      59.91  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    60.00    59.94  
   720x400       70.08
Comment 1 sturmvogel 2022-08-11 06:21:07 CEST
Many search results show up that this is a common Xfce problem, that the resolution wont stick until you properly set up your xrandr (arandr is a GUI for it).

- properly setup your monitor via built in tools: https://docs.xfce.org/xfce/xfce4-settings/display

- properly setup xrandr/xorg
https://bbs.archlinux.org/viewtopic.php?id=246123
https://unix.stackexchange.com/questions/274506/how-to-set-persistent-resolution-in-xfce-on-debian
https://forum.manjaro.org/t/resolution-sometimes-gets-set-t

 https://www.google.com/search?q=xfce+switches+resolution
Comment 2 Edward 2022-08-11 12:54:27 CEST
I originally set the monitor resolution using the Xfce GUI at first, which is the same as on the Xfce link you provided.

I just installed arandr, it was already set to 1680x1050, saved it anyway, but it made no difference. The resolution flipped back to 1920x1080 when I logged back in through xscreensaver.

The only other option I can think of, is to add an xrandr command to autostart, but there's no guarantee that will stick once/if xscreensaver is launched/exited.

As /etc/X11/xorg.conf is autogenerated by XFdrake, I do not want to manually touch that.
Comment 3 Edward 2022-08-11 12:56:32 CEST
I just ran arandr as root, changed the resolution back to 1680x1050 and applied it. Will check to see if that sticks. If not, then I'll have to try xrandr in autostart.
Comment 4 Edward 2022-08-12 21:30:32 CEST
https://forum.xfce.org/viewtopic.php?id=15985

One suggestion upstream was to edit xorg.conf. MCC was able to do this, now with the desired display resolution holding, but Xfce itself is now displaying a Display settings window when the system comes out of suspend/sleep/black screen. Xscreensaver had since been turned off, now displaying a blank screen in its place. Desktop reappears once the mouse is moved.

Another suggestion upstream to delete the Keyboard Applications Shortcut referring to "Display", did not work (screenshot attached).

Summary: Monitor switches to higher resolution automatically after unlocking screen with xscreensaver using Xfce desktop => Xfce Display settings window appears after system comes out of suspend/sleep/screensaver
Source RPM: xscreensaver-5.45-1.mga8.src.rpm => xfce4-settings-4.16.0-2.mga8.src.rpm

Comment 5 Edward 2022-08-12 21:31:17 CEST
Created attachment 13357 [details]
Xfce Keyboard Applications Shortcut with "DIsplay" deleted
Comment 6 Edward 2022-08-14 01:41:15 CEST
Additional steps were taken, in addition to the modification of xorg.conf (what was required), which resolved this issue. One of the forum admins said there have been some changes made to the display restoration/recognition functions in xfce4-settings, so I believe a new version would eventually be forthcoming.

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 7 sturmvogel 2022-08-14 07:55:21 CEST
As we have done nothing on Mageia side, changing status to WORKSFORME (it is a matter of proper settings).

Resolution: FIXED => WORKSFORME