[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, debian, updated. debian/0.9.5.9+git20110512-1-44-g2b0bd1a

Denis 'GNUtoo' Carikli GNUtoo at no-log.org
Tue May 15 11:58:56 UTC 2012


The following commit has been merged in the debian branch:
commit f57cf0e8e8442c7079579b2f1d1d6120340b4791
Author: Denis 'GNUtoo' Carikli <GNUtoo at no-log.org>
Date:   Sun Oct 16 19:51:02 2011 +0200

    Add rules.yaml for the crespo machine
    
    Note that since we have no telephony yet only screen brightness is handles.
    
    The power button release that made suspend the phone was not copied
      from the default rules.yaml because it suspended the phone
      when you released the power button:
    After suspending the phone(for instance with apm -s) the phone
      goes in early suspend, and then for resuming it you press the power
      button(fsousaged listens for the power button press)
      but then when you release the button it goes back into suspend
      because of that rule in rules.yaml.
    
    Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at no-log.org>

diff --git a/etc/freesmartphone/oevents/palmpre/rules.yaml b/etc/freesmartphone/oevents/crespo/rules.yaml
similarity index 60%
copy from etc/freesmartphone/oevents/palmpre/rules.yaml
copy to etc/freesmartphone/oevents/crespo/rules.yaml
index da53035..1e16850 100644
--- a/etc/freesmartphone/oevents/palmpre/rules.yaml
+++ b/etc/freesmartphone/oevents/crespo/rules.yaml
@@ -1,3 +1,4 @@
+
 # This file is in YAML format (http://www.yaml.org/)
 # We define a list of rules that will be automatically loaded
 # When we start the oevents module of the framework daemon
@@ -20,28 +21,19 @@
 # - RingTone(cmd)           : cmd can be 'start' or 'stop'
 # - Time(hour, min)         : create a trigger activated at the given time
 # - Debug(msg)              : Action that prints a debug message (only for debuging)
-
-
-# Handle changes to the backlight power (display turns on/off). Here we need to tell our
-# touchscreen management daemon to enable/disable touchscreen access as it will otherwise
-# read invalid values which lets the touchscreen to not work anymore until we restart it
-# completly.
-
-- 
-    trigger: BacklightPower()
-    filters:
-             - HasAttr(status, 0)
-    actions: Command("/usr/bin/tsmd_control disable")
 -
-    trigger: BacklightPower()
-    filters:
-             - HasAttr(status, 1)
-    actions: Command("/usr/bin/tsmd_control enable")
+    #
+    # Idleness Brightness Handling
+    #
+    trigger: IdleState()
+    filters: HasAttr(status, "busy")
+    actions: SetDisplayBrightness("0", 90)
+-
+    trigger: IdleState()
+    filters: HasAttr(status, "idle_dim")
+    actions: SetDisplayBrightness("0", 20)
+-
+    trigger: IdleState()
+    filters: HasAttr(status, "idle_prelock")
+    actions: SetDisplayBrightness("0", 0)
 -
-    trigger: InputEvent()
-    filters:
-             - HasAttr(switch, "POWER")
-             - HasAttr(event, "released")
-             - HasAttr(duration, 0)
-    actions: Command("/usr/bin/phoneui-quick-settings")
-

-- 
FSO frameworkd Debian packaging



More information about the pkg-fso-commits mailing list