Bug 47090 - Disable screen-saver during installer
Disable screen-saver during installer
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UCS Installer - DVD
UCS 4.3
Other Linux
: P5 normal (vote)
: UCS 4.3-1-errata
Assigned To: Philipp Hahn
Erik Damrose
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-05-28 10:43 CEST by Philipp Hahn
Modified: 2018-06-27 14:37 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2018-05-28 10:43:19 CEST
The screen saver kicks in after 600s (10min) and blanks the screen. This is annoying while long task run in the background like "installing additional software" or while unievntion-system-setup is running - this happens each time I setup the UCS technical training environment as I have to perform the setup on 6 systems in parallel and have to wait until some steps are done. There is no longer a visual feedback when the screen-saver kicks in.

We should disable the screensaver by default during installation. This is already supported by passing the option "dpms=false" on the kernel command line to the installer: <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695270>

This also regularly breaks our Jenkins installer tests as the virtual screen also goes blank and the VNC-do-tool is no longer able to get the state - even when there is progress the screen stays black.
Comment 1 Erik Damrose univentionstaff 2018-05-28 10:53:34 CEST
During system-setup we currently deactivate the screensaver via 'xset s off -dpms' in usr/share/univention-system-setup/startxwithfirefox.
Does that not work anymore?
Comment 2 Philipp Hahn univentionstaff 2018-05-28 11:50:35 CEST
(In reply to Philipp Hahn from comment #0)
> We should disable the screensaver by default during installation. This is
> already supported by passing the option "dpms=false" on the kernel command
> line to the installer:
> <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695270>

This does not work with QEMU/kvm: <https://bugzilla.redhat.com/show_bug.cgi?id=679868>.
Doing a "chroot /target xset -display :0 -dpms" on the other hand disabled the screen-saver in my test. "xset s off"+"xset s reset" on the other hand was not enough.

(In reply to Erik Damrose from comment #1)
> During system-setup we currently deactivate the screensaver via 'xset s off
> -dpms' in usr/share/univention-system-setup/startxwithfirefox.
> Does that not work anymore?

At least the screen-saver is still activated for d-i before uss.
Comment 3 Philipp Hahn univentionstaff 2018-06-12 17:44:20 CEST
(In reply to Philipp Hahn from comment #2)
> (In reply to Philipp Hahn from comment #0)
> > We should disable the screensaver by default during installation. This is
> > already supported by passing the option "dpms=false" on the kernel command
> > line to the installer:
> > <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695270>
> 
> This does not work with QEMU/kvm:
> <https://bugzilla.redhat.com/show_bug.cgi?id=679868>.
> Doing a "chroot /target xset -display :0 -dpms" on the other hand disabled
> the screen-saver in my test. "xset s off"+"xset s reset" on the other hand
> was not enough.

I have added 'dpms=false' to the Linux kernel command line:
r18169 | Bug #47090: Disable screensaver

But it does not disable the blanking. The X-server is running on the Linux frame buffer, which does not support DPMS:
 # grep FBIO /var/log/Xorg.0.log 
 [     2.182] (II) FBDEV(0): FBIOBLANK: Invalid argument (Screen blanking not supported by kernel - disabling)

Instead the following seems to work:
 xset -display :0 s reset # to disable any current blaning
 xset -display :0 s off # to disable any further blanking

This is confirmed by "xset q" and verified by setting a short blanking time with "xset s 10 20".

According to <https://wiki.archlinux.org/index.php/Display_Power_Management_Signaling#Setting_up_DPMS_in_X> this can be configured permanently by adding a <file:/etc/X11/xorg.conf.d/10-blanking> with
  Section "ServerFlags"
    Option "BlankTime"   "0"
  EndSection
Comment 4 Philipp Hahn univentionstaff 2018-06-12 19:04:43 CEST
r18172 | Bug #47090: disable screen blanking

Package: rootskel-gtk
Version: 1.36A~4.3.0.201806121805
Branch: ucs_4.3-0
Scope: errata4.3-1

QA:
virsh -c utby start phahn_installer # use isotests/ucs_4.3-1-latest-amd64.iso
sleep 15m  # > 10m which was the old default
virsh -c utby screenshot --domain phahn_installer --file 47090.png
display 47090.png

After QA I can backport it to UCS-4.2, too.
This needs to be put on the DVD: either we re-release the DVDs with that modified package or we have to wait until the next patch-level release. Therefore no YAML.

changelog.xml for next release:
  <listitem><simpara>The screen-saver has been disabled while the installer is running <u:bug>47090</u:bug>.</simpara></listitem>
Comment 5 Erik Damrose univentionstaff 2018-06-25 15:07:55 CEST
OK: No screensaver in debian installer with latest ucs4.3-1 dvd
OK: yaml 
Backport currently not necessary

Verified
Comment 6 Erik Damrose univentionstaff 2018-06-27 14:37:26 CEST
<http://errata.software-univention.de/ucs/4.3/119.html>