Cannot disable the dom0 XScreenSaver 5.4.3 locking

Qubes 4.0.3 using fedora-30 in dom0. I have set every possible screensaver and power setting, that I find in the gui menu system to suit my power and screensaver needs. However I am still finding the screensaver locked at times. As my Qubes installation is on my desktop computer and nobody else has physical access to the system, I would like the locking feature disabled. I assume this will need to be done from the dom0 Terminal. Is there a command to accomplish this? Thanks.

I donā€™t know the answer, but since XScreenSaver is not Qubes-specific, you might be able to find a general XScreenSaver solution that also works on Qubes.

xfce menu -> System Tools -> Screensaver

  1. Mode: Disable Screen Saver
    or
  2. Disable ā€œLock Screen After x minutesā€

Another method for this is to check the ā€œpresentation modeā€ option in
the power management applet.

Thanks for the suggestions friends.
Andrew: Following your suggestion, I did a websearch and found an XScreenSaver page, which led me to the dom0 .xscreensaver config file, which I opened with vim. All settings looked fine to me.
Johnboy: I had previously disabled the Screen saver in the xfce menu --> System Tools --> Screensaver
Jarrah: I had also checked the xfce Power Manager option in the Qubes menu system and in the System subsection had made sure the Lock option was unchecked. However I do not see any ā€œpresentation modeā€ option there. Maybe Iā€™m missing it, but it doesnā€™t seem to be present in my system.
I am still finding the XScreenSaver wanting my user password to open the screen after the screen blanks out. Donā€™t see why this is, considering the settings made.

Jarrah: I had also checked the xfce Power Manager option in the Qubes menu system and in the System subsection had made sure the Lock option was unchecked. However I do not see any ā€œpresentation modeā€ option there. Maybe Iā€™m missing it, but it doesnā€™t seem to be present in my system.

Iā€™m on I3, not XFCE, so I canā€™t comment on exactly where it will be, but
Iā€™m talking about the battery/power icon in the tray/task bar. I donā€™t
believe it comes from i3.

Ah, I see I think Jarrah. But Iā€™m on a desktop box and donā€™t have the battery/power button in my tray. Might a removal of the XScreenSaver program in dom0 and then reinstallation of it cure the problem? Or might that break the system, when removed?

xset s off in a dom0 terminal should do it for the current session.

See [1] (xset applies for all X server platforms).

[1] https://askubuntu.com/questions/67355/how-do-i-completely-turn-off-screensaver-and-power-management

Thanks for the suggestion tripleh. I opened the Packages program from the Qubes menu and searched for xscreensaver. That listed the screensaver program as xscreensaver-base-1:5.43-1.fc25 (64bit) . I clicked on Remove to get the critter out of there. A reboot and so far all seems good. I usually manually turn the screen off, when I leave the room anyway. If anyone has any suggestions on a persistent fix, Iā€™ll reinstall xscreensaver to try it out. Otherwise Iā€™ll continue like this for about a week and then probably reinstall xscreensaver, to see if the same behaviour occurs over time. cheers

I donā€™t know if it helps, but I have the same problem. I am currently trying a new workaround, and it seems to do the trick :
Go to the ScreenSaver GUI (System Tools > Screensaver).
Then, go to File > ā€œKill Daemonā€.

Plus, go to the System Tools > Session and Startup and untick ā€œScreensaver (Launch screensaver and locker program)ā€

And I also did the same trick as you did in the Power Manager (untick the Lock option in the Security tab). I am considering also changing the timeouts (blank screen and so on), if the previous measures donā€™t work.

Anyway, I hope it helps, and am currently not sure if itā€™s working for me, but so far, so good on my computer.

Cheers !

1 Like

Thanks fdd. Itā€™s been about a week now with the default installationā€™s screensaver program completely uninstalled and the system has been trouble free. I had been worried, that the XScreensaver program might have somehow been linked to the system Power settings and that removing it might break the system. But that seems not to be the case. As the Qubes installation is on my main desktop computer and nobody else has physical access, turning off the monitor hasnā€™t been a great inconvenience, when the system wonā€™t be used for some time. I will reinstall the screensaver program, as I had intended after a week without it and see if the prior misbehaviour reoccurs. If it does, then I will try to reproduce your fix. Either way I shall report back with the results in a few days. Cheers

Hi again,

Looking forward to reading your feedback, then :slight_smile:

Lately, Iā€™ve found that if I just want to watch a movie or something without the screen locking or turning off, it works to make these two changes:

  1. XScreenSaver Settings -> Display Modes -> Mode -> Disable Screen Saver
  2. XScreenSaver Settings -> Advanced -> (uncheck) Power Management Enabled

I usually leave the XScreenSaver Settings window open in the background so that I donā€™t forget to change the settings back afterward. :slight_smile:

1 Like

adw: Thanks. However I had been using those settings, when I had the default xscreensaver still installed. I expect there was a glitch, maybe (?) from an update and my particular hardware, as the screensaver seemed to be acting up after a week or two of the new Qubes installation.

I am presently trying to reinstall xscreensaver and am having no success. I found this webpage, which has instructions for fedora 30 (my dom0 version):


However in Xfce Terminal the ā€œsudo dnf install xscreensaverā€ command listed results in the error message, ā€œFailed to synchronize cache for repo ā€˜qubes-dom0-cachedā€™ , disablingā€.
Iā€™m at a loss, as to how to resolve the cache problem and reinstall the xscreensaver.

Since youā€™re trying to install it in dom0, youā€™d have to do sudo qubes-dom0-update xscreensaver instead. See:

Thanks so much Andrew. I had missed that dom0 installation method. I now have xscreensaver reinstalled successfully and have set the screen to blank after 60 minutes, recycling in 10 with the ā€œLock screen afterā€ feature disabled. The Xfce Power Manager is still set to not lock the screen when going to sleep. Will report back in a week if there are no further hiccups. Cheers

This is a solution which works for me (ie. the Presentation Mode check box in power manager stops xscreensaver from activating):

Use System Tools > Settings Editor to add a new setting:

Property: /xfce4-power-manager/heartbeat-command
Type: String
Value: xscreensaver-command -deactivate

I assume you could also use xfconf-query to add the setting, but I havenā€™t tried that myself.

See this bug report for details. The heartbeat-command setting doesnā€™t seem to be well documented.

Edited to correct command to xscreensaver-command -deactivate not -disable.

Thanks Rooftop. I used adwā€™s advice again yesterday for xscreensaver with the sudo qubes-dom0-update xscreensaver command. Then I used your suggestions. So far all seems good. No demand for the password to unlock. Iā€™ll give it a week, then report back on the results then. cheers

Another user (rustybird@github) has also suggested running the following command so that presentation mode is automatically disabled if you manually lock your desktop:

xfconf-query -c xfce4-session -p /general/LockCommand -n -t string -s 'eval xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s false & xscreensaver-command -lock'

They also provided this command to set the heartbeat-command setting from the command line instead of using the Settings Editor:

xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/heartbeat-command -n -t string -s 'xscreensaver-command -deactivate'