[Pommed-commits] [SCM] pommed - hotkeys handler for Apple laptops branch, master, updated. 1.35-7-g744c8f4

Julien BLACHE jb at jblache.org
Sat Feb 5 10:29:01 UTC 2011


The following commit has been merged in the master branch:
commit 456fe4d4eef1129615c17470a24365cf87c8a70a
Author: Andrew Engelbrecht <naturaltwig at gmail.com>
Date:   Fri Feb 4 19:06:22 2011 +0100

    Lock/unlock auto keyboard backlight using up/down keys

diff --git a/ChangeLog b/ChangeLog
index 547851f..4cec7f1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@ version 1.36:
 	- pommed: add support for the MacBook7,1 (April 2010).
 	- all: use LDLIBS instead of adding libraries to LDFLAGS.
 	- pommed: fix keyboard backlight fading on pmac.
+	- pommed: lock/unlock auto kbd backlight using up/down keys.
 
 version 1.35:
 	- pommed: fix crash if no fnmode sysfs node found.
diff --git a/pommed/evdev.c b/pommed/evdev.c
index 0d2c2f3..d08da82 100644
--- a/pommed/evdev.c
+++ b/pommed/evdev.c
@@ -170,6 +170,8 @@ evdev_process_events(int fd, uint32_t events)
 	      break;
 
 	    kbd_backlight_step(STEP_DOWN);
+	    if (kbd_bck_info.level == KBD_BACKLIGHT_OFF)
+	      kbd_backlight_inhibit_set(KBD_INHIBIT_USER);
 	    break;
 
 	  case KEY_KBDILLUMUP:
@@ -178,6 +180,7 @@ evdev_process_events(int fd, uint32_t events)
 	    if (!has_kbd_backlight())
 	      break;
 
+	    kbd_backlight_inhibit_clear(KBD_INHIBIT_USER);
 	    kbd_backlight_step(STEP_UP);
 	    break;
 

-- 
pommed - hotkeys handler for Apple laptops



More information about the Pommed-commits mailing list