QubesOS / qubes-issues

The Qubes OS Project issue tracker
https://www.qubes-os.org/doc/issue-tracking/
526 stars 46 forks source link

xfce4-screensaver lockout timing and Presentation mode inconsistent #8778

Open UndeadDevel opened 6 months ago

UndeadDevel commented 6 months ago

Qubes OS release

4.2rc5

Brief summary

This might be a non-Qubes issue, but I don't have a separate xfce system to test on and I don't know how much the Qubes screensaver diverges from the standard one; it's also relatively minor.

So basically I'm trying to have the screen blank before it locks, which can be achieved by activating the "Lock screen after x minutes" option in the XScreensaver Settings app. However, while this works some of the time, I've been able to reproduce an inconsistency in four cases (where it will immediately lock the screen after blanking - see "Steps to Reproduce").

Steps to reproduce

  1. With the following XScreensaver settings (in PowerManager turn display power management off):
    • Blank after x minutes (x != 0)
    • Lock screen after 1 minute
    • In Advanced tab either leave power management disabled or set at x+1 minutes
    • optionally activate display power management as well as "Quick Power-off in Blank Only Mode" to test that aspect
  2. Wait for x minutes
  3. Observe that in the following cases the screen will lock immediately after blanking:
    • the first time it blanks after booting the machine
    • if "Presentation mode" was activated and then deactivated again in the Power Manager (even when immediately switching it off again)
    • if the laptop is switched from A/C to battery power (power cord disconnected)
    • if "Quick Power-off in Blank Only Mode" is active (only if display power management is off in the power manager, but on in xscreensaver settings)

Locking and unlocking the screen manually after a) boot or b) Presentation Mode switching will "fix" this, however, such that the lock delay will be applied the next time the timeouts are reached.

Expected behavior

If set, the "Lock screen after x minutes" will always delay the locking of the screen after blanking by the specified amount of time.

Actual behavior

Under the above listed circumstances the screen is instead locked immediately when blanking.

UndeadDevel commented 6 months ago

I've also discovered that Presentation mode will actually be deactivated when the screen is locked, despite it still being shown as active (after unlocking). I could open a separate issue but this seems very much related to the above phenomena which are all about display power management and how it interacts with the xscreensaver.