[Bug 3904] Re: sceenblank ignores $SCREEN_LOCK in /etc/default/acpi-support
Slavik
3904 at bugs.launchpad.net
Sat Mar 14 05:19:41 UTC 2020
** Changed in: acpi-support (Ubuntu)
Assignee: (unassigned) => Slavik (slavikstar)
** Information type changed from Public to Public Security
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to acpi-support in Ubuntu.
https://bugs.launchpad.net/bugs/3904
Title:
sceenblank ignores $SCREEN_LOCK in /etc/default/acpi-support
Status in acpi-support package in Ubuntu:
Fix Released
Bug description:
The screenblank script in /usr/share/acpi-support/ doesn't check the
value of the $LOCK_SCREEN variable as set in /usr/default/acpi-
support. Even if LOCK_SCREEN is false or not set, the screen gets
locked anyway.
Here is a patch to screeblank that checks the value of the
$LOCK_SCREEn variable, and if 'true' then uses the -lock option to
xscreensaver-command.
screenblank.patch:
--- screenblank 2005-11-04 17:09:36.000000000 -0500
+++ screenblank.new 2005-11-04 17:10:05.000000000 -0500
@@ -1,4 +1,7 @@
-su $user -c "(xscreensaver-command -throttle; xscreensaver-command -lock)"
+if [ x$LOCK_SCREEN = xtrue ]; then
+ LOCK='-lock'
+fi
+su $user -c "(xscreensaver-command -throttle; xscreensaver-command $LOCK)"
xset dpms force off
if [ x$RADEON_LIGHT = xtrue ]; then
[ -x /usr/sbin/radeontool ] && radeontool light off
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/3904/+subscriptions
More information about the foundations-bugs
mailing list