Bug 15436

Summary: Xserver screensaver blanking enabled on qemu images
Product: [Runtime] General Runtime Reporter: Richard Purdie <richard.purdie>
Component: General RuntimeAssignee: K Sanjay Nayak <nayakksanjay>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: nayakksanjay, randy.macleod, ross.burton, william.lyu, yoann.congal
Version: unspecified   
Target Milestone: 5.99   
Hardware: x86   
OS: Multiple   
Whiteboard: NEWCOMER
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Richard Purdie 2024-03-07 15:21:07 UTC
Currently our qemu images blank the screen after 10 minutes which is the X default. 

See https://www.x.org/archive/X11R6.8.0/doc/xorg.conf.5.html BlankTime StandbyTime SuspendTime OffTime.

Some xorg.conf files enale DPMS but don't disable the screen blanking:
https://git.yoctoproject.org/poky/tree/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemuarm/xorg.conf

We should consider disabling screen blanking and poweroff.

"xset q" in an image shows the current config (which is 600s for everything despite what the man page says).
Comment 1 Richard Purdie 2024-03-07 17:36:24 UTC
https://shallowsky.com/linux/x-screen-blanking.html
Comment 2 K Sanjay Nayak 2024-03-16 17:24:24 UTC
Hi Richard

I intrested to work on the issue.

I have built the core-image-x11 image and able to reproduce the blankscreen issue as well. 

Thanks for the initial analysis will update the xorg.conf and update shortly here.

Thank you
Sanjay :)
Comment 3 K Sanjay Nayak 2024-03-16 17:26:30 UTC
+ corrected typo
** I am interested to work on the issue.
Comment 4 K Sanjay Nayak 2024-03-17 14:59:45 UTC
Hi Richard

I made the below modification in xorg.conf. Below is diff output.

diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemux86/xorg.conf b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemux86/xorg.conf
index c12d92c201..30b098ef52 100644
--- a/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemux86/xorg.conf
+++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemux86/xorg.conf
@@ -30,4 +30,6 @@ Section "ServerLayout"
     Identifier    "Default Layout"
     Screen        "Default Screen"
     Option         "AllowEmptyInput" "no"
+    Option        "BlankTime" "0"
+    Option        "StandbyTime" "0"
 EndSection


With this i dont see the screen blank after 10 mins.

Note : I have verified for qemux86 target.


Below is the output of "xset q"


$-5.2# xset q
Keyboard Control:
  auto repeat: on    key click percent: 0    LED mask: 00000000
  auto repeating keys: 00ffffffdffffbbf
                        fadfffefffedffff
                        9fffffffffffffff
                        fff7ffffffffffff
  bell percent: 50    bell pitch: 400    bell duration: 100
Pointer Control:
  acceleration: 2/1    threshold:4 
Screen Saver:
   prefer blanking: yes   allow exposures: yes 
   timeout :0     cycle :600 
Colors:
   default colormap :0x20     BlackPixel :0x0     WhitePixel :0xffffff 
Font Path:
   built-ins 
DPMS (Display Power Management Signaling):
   Standby :0     Suspend :0     Off :0 
DPMS is Enabled
Monitor is On


Below request & query : 
- Can you please review "xset q" output and xorg.conf ?
- Do we need to add this changes to all the qemu target ? 
emuarm  qemuppc  qemush4  qemux86  qemux86-64

Thanks 
Sanjay :)
Comment 5 Randy MacLeod 2024-03-18 14:20:49 UTC
Thanks Sanjay!

Can you fix the reset of the qemu configs:
✦ ❯ fd xorg.conf
meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemuarm/xorg.conf
meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemuppc/xorg.conf
meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemush4/xorg.conf
meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemux86/xorg.conf
meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemux86-64/xorg.conf
meta/recipes-graphics/xorg-xserver/xserver-xf86-config/xorg.conf

and send a patch to the oe-core list?

../Randy
Comment 6 K Sanjay Nayak 2024-03-21 12:22:19 UTC
ok sure Randy
Comment 7 K Sanjay Nayak 2024-04-09 08:43:37 UTC
Hi Randy

I have pushed the changes to openembedded-core 
https://lists.openembedded.org/g/openembedded-core/message/198056

by refering the https://docs.yoctoproject.org/next/contributor-guide/submit-changes.html

Thanks
Sanjay :)
Comment 8 Ross Burton 2025-02-27 16:04:03 UTC
Merged in oe-core 173fb4247fdb2b7b5e6a1a604ddbbc8727b3d3bb.