ports/178090: [patch] x11-wm/xfce4-session: xflock4 patch

Tijl Coosemans tijl at coosemans.org
Tue Apr 23 19:10:01 UTC 2013


>Number:         178090
>Category:       ports
>Synopsis:       [patch] x11-wm/xfce4-session: xflock4 patch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 23 19:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Tijl Coosemans
>Release:        FreeBSD 10.0-CURRENT i386
>Organization:
>Environment:
>Description:
I have a keyboard shortcut that runs xflock4. It runs slock (x11/slock)
and then switches off the display with xset.

The problem is that the display is switched off too soon, before I've
released the keys. So when I release the keys the xorg server switches
the screen back on.

The attached patch adds a short delay.
>How-To-Repeat:
>Fix:

--- xfce4-session.patch begins here ---
Index: x11-wm/xfce4-session/files/patch-scripts_xflock4
===================================================================
--- x11-wm/xfce4-session/files/patch-scripts_xflock4	(revision 316384)
+++ x11-wm/xfce4-session/files/patch-scripts_xflock4	(working copy)
@@ -9,3 +9,11 @@
  export PATH
  
  # Lock by xscreensaver or gnome-screensaver, if a respective daemon is running
+@@ -41,6 +41,7 @@
+     if command -v -- $1 >/dev/null 2>&1; then
+         $lock_cmd >/dev/null 2>&1 &
+ 	# turn off display backlight:
++	sleep 1
+ 	xset dpms force off
+         exit
+     fi
--- xfce4-session.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list