-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(configurable) lock screen on wake up from suspend #84
Comments
Oh I was already going to file this request myself 😄 Yes, I think this should be configurable. Not sure which app should actually handle this though. In Cinnamon, @clefebvre @flexiondotorg @raveit65 |
Either power manager or screensaver. |
I prefer m-s itself in gui and as gsettings key, so users don't have to search in m-p-m. |
+1 for 1.14 or as bug-fix to 1.12.x. In the code, that belongs to MPM. Visually that setting could be in the lockscreen or power management.. either way. |
@gsgatlin: the offending commit has been reverted. We'll work more on this in the future (e.g. correct enabling/disabling of locking, possible reorganization of gsettings keys to make things simpler, etc.) - so I'll leave this issue open as a reminder. |
I add my note here. I want to only enable lock when resuming from suspend/hibernate, not when my screensaver activates, nor when I close my laptop lid which causes a blank screen. Currently this can only be done through gsettings and it's not very intuitive (I'm very glad it works though). You have to put screensaver/lock-enabled to false and set these keys in power-manager section:
As stated by @raveit65, it would be nice to control this stuff from UI. In my opinion, the whole locking settings should be presented to the user through a single window, not from separate screensaver/powermanager settings. From my user point of view, I would like to see a "Lock Screen" entry in mate control center. From
|
For the benefit of the next poor bastard who
hopefully the following # find relevant `gsettings` keys
date
for SCHEMA in $(gsettings list-schemas | fgrep -e 'mate' | grep -e 'screensaver\|power-manager') ; do
echo "schema=${SCHEMA} keys:"
gsettings list-keys "${SCHEMA}" | fgrep -e 'lock' | sort
echo # newline
done should produce console spew like
# query writability and state of relevant `gsettings` keys
date
for SCHEMA in $(gsettings list-schemas | fgrep -e 'mate' | grep -e 'screensaver\|power-manager') ; do
echo "schema=${SCHEMA} keys:"
for KEY in $(gsettings list-keys "${SCHEMA}" | fgrep -e 'lock' | sort) ; do
KEY_V="$(gsettings get "${SCHEMA}" "${KEY}")"
KEY_W="$(gsettings writable "${SCHEMA}" "${KEY}")"
echo " value(${KEY})=${KEY_V}"
echo "writable(${KEY})=${KEY_W}"
done
echo # newline
done should produce console spew like
# set relevant `gsettings` keys
date
gsettings set org.mate.screensaver lock-enabled false
gsettings set org.mate.power-manager lock-blank-screen false
gsettings set org.mate.power-manager lock-use-screensaver false
gsettings set org.mate.power-manager lock-suspend true
gsettings set org.mate.power-manager lock-hibernate true should produce almost no console spew (just the date) # requery values (only)
date
for SCHEMA in $(gsettings list-schemas | fgrep -e 'mate' | grep -e 'screensaver\|power-manager') ; do
echo "schema=${SCHEMA} keys:"
for KEY in $(gsettings list-keys "${SCHEMA}" | fgrep -e 'lock' | sort) ; do
KEY_V="$(gsettings get "${SCHEMA}" "${KEY}")"
# KEY_W="$(gsettings writable "${SCHEMA}" "${KEY}")"
echo " value(${KEY})=${KEY_V}"
# echo "writable(${KEY})=${KEY_W}"
done
echo # newline
done should produce console spew like
At which point, you should be able to
... at least, it WFM :-) |
Tom, I may be the next poor bastard of which you speak! I am experiencing an issue from a fresh install of 20.04.1 yesterday, where I do not receive a password prompt when waking from suspend if I have suspended from the power menu, or with systemctl suspend, although a password is requested when waking if I suspend by closing the lid. My current enabled settings are:
I tried the scripts but this did not help:
Is there anything else I could try? |
This is probably a different issue - related to ayatana-indicator-session - see AyatanaIndicators/ayatana-indicator-session#101. The 'Suspend' item in the power menu calls systemd-logind to handle the suspend operation. Which - as you have noticed - also does not lock the session. A workaround is to create a system service that locks (the session) whenever systemd suspends, e.g. https://ubuntu-mate.community/t/how-to-lock-screen-on-suspend/16836/7 |
Any chance you guys will implement a setting so that the screen won't always lock when you wake up from suspend on systemd distros like fedora?
I tried running dconf-editor and changing:
org -> mate -> power-manager
lock-blank-screen (unchecked)
lock-hibernate (unchecked)
lock-keyring-hibernate (unchecked)
lock-keyring-suspend (unchecked)
lock-suspend (unchecked)
lock-use-screensaver (unchecked)
and also
org -> mate -> screensaver
lock-enabled (unchecked)
and changing these settings has no effect. It still always locks the screen when it wakes from suspend.
Cheers.
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27420903-configurable-lock-screen-on-wake-up-from-suspend?utm_campaign=plugin&utm_content=tracker%2F1635706&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1635706&utm_medium=issues&utm_source=github).The text was updated successfully, but these errors were encountered: