sampsonf
(Sampson Fung)
October 2, 2022, 3:38pm
1
Using Fedora 36 workstation.
I cannot find the setting to only lock te desktop but not suspend.
How to I do that? Say after 15 minutes of no activity, the desktop should lock automatically.
it will be nice if Gnome knows I am playing a video, then it will pause the count down.
The gnome settings panel → privacy → screen lock
gives you the ability to change the screen lock and screen blank settings.
I don’t know exactly what criteria gnome uses to determine activity or inactive as far as playing a video.
2 Likes
qulogic
(Elliott Sales de Andrade)
October 3, 2022, 10:22pm
3
It already does that, but it may depend on applications inhibiting the screensaver. For example, the builtin video player does inhibit the screensaver. Also, playing Twitch in Firefox inhibits the screensaver.
1 Like
grumpey
(Joe)
October 4, 2022, 12:03am
4
If you’re using mpv you’ll want to start with gnome-session-inhibit.
1 Like
sampsonf
(Sampson Fung)
October 4, 2022, 1:44am
5
@grumpey @qulogic
Another related question - which tools I can use to find out if any apps are inhibiting the screensaver timer?
It seems when I am running DosBox Staging, the screensaver is not activating even the machine is idle overnight.
sampsonf
(Sampson Fung)
October 4, 2022, 1:43pm
7
$ systemd-inhibit --list
WHO UID USER PID COMM WHAT WHY MODE
ModemManager 0 root 1024 ModemManager sleep ModemManager needs to reset devices delay
NetworkManager 0 root 1059 NetworkManager sleep NetworkManager needs to turn off networks delay
UPower 0 root 932 upowerd sleep Pause device polling delay
GNOME Shell 1000 fcc 48372 gnome-shell sleep GNOME needs to lock the screen delay
fcc 1000 fcc 48701 gsd-media-keys handle-power-key:handle-suspend-key:handle-hibernate-key GNOME handling keypresses block
fcc 1000 fcc 48701 gsd-media-keys sleep GNOME handling keypresses delay
fcc 1000 fcc 48704 gsd-power sleep GNOME needs to lock the screen delay
kaka 1006 kaka 36469 gsd-media-keys handle-power-key:handle-suspend-key:handle-hibernate-key GNOME handling keypresses block
kaka 1006 kaka 36469 gsd-media-keys sleep GNOME handling keypresses delay
kaka 1006 kaka 36472 gsd-power sleep GNOME needs to lock the screen delay
This is the output of systemd-inhibit --list
. My Gnome do not lock after idle for a few hours.
Which application is responsible?
grumpey
(Joe)
October 5, 2022, 1:56am
8
can you look at:
~/.config/dosbox/dosbox-staging.conf
and change screesaver from auto to allowed
1 Like
sampsonf
(Sampson Fung)
October 6, 2022, 2:33pm
9
Changing screensaver to allowed works.
Thank you very much for your kind assistance!
1 Like