Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Apr 2013 21:07:03 +0200 (CEST)
From:      Tijl Coosemans <tijl@coosemans.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/178090: [patch] x11-wm/xfce4-session: xflock4 patch
Message-ID:  <201304231907.r3NJ73dT014083@kalimero.tijl.coosemans.org>
Resent-Message-ID: <201304231910.r3NJA0jr080198@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304231907.r3NJ73dT014083>