[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#497523: patch for documentation about hal stuff



Hi,

> A patch for that would certainly be appreciated.  Note that there's
> already a NEWS entry about this in git, for which suggestions are also
> welcome.

A quick patch I could come up with.

Alex
diff --git a/debian/NEWS b/debian/NEWS
index dfa879b..c11f47d 100644
--- a/debian/NEWS
+++ b/debian/NEWS
@@ -3,7 +3,7 @@ xserver-xorg-input-synaptics (1.1.0-2) unstable; urgency=low
  * Tapping has been disabled by default on many touchpads by upstream. If
    you want to re-enable it, you can do so explicitly by adding the
    following to your xorg.conf:
-   
+
         Section "InputDevice"
                 Identifier "synaptics"
                 Driver "synaptics"
@@ -16,4 +16,35 @@ xserver-xorg-input-synaptics (1.1.0-2) unstable; urgency=low
    configuration. For more details see synaptics(4) and
    http://who-t.blogspot.com/2009/04/synaptics-11-and-what-your-touchpad-can.html
 
+   Another option is to configure it through hal. An exemple hal policy file is
+   available : /usr/share/hal/fdi/policy/20thirdparty/11-x11-synaptics.fdi
+   In order to re-enable tapping, you can put the following contents in
+   /etc/hal/fdi/policy/11-x11-synaptics.fdi :
+
+        <?xml version="1.0" encoding="ISO-8859-1"?>
+        <deviceinfo version="0.2">
+          <device>
+            <match key="info.capabilities" contains="input.touchpad">
+              <match key="input.x11_driver" contains="synaptics">
+                <merge key="input.x11_options.TapButton1"
+                       type="string">1</merge>
+                <merge key="input.x11_options.TapButton2"
+                       type="string">2</merge>
+                <merge key="input.x11_options.TapButton3"
+                       type="string">3</merge>
+              </match>
+            </match>
+          </device>
+        </deviceinfo>
+
+    For the changes to be taken into account, restart hal :
+
+        # /etc/init.d/hal restart
+
+  * On a more general note, the defaults have changed in this version. To
+    restore the defaults to the old ones, just drop
+    /usr/share/doc/xserver-xorg-input-synaptics/examples/prehal-defaults.fdi
+    into
+    /etc/hal/fdi/policy/11-x11-synaptics.fdi
+
  -- David Nusinow <dnusinow@debian.org>  Sat, 11 Apr 2009 16:23:11 -0400
diff --git a/debian/examples/prehal-defaults.fdi b/debian/examples/prehal-defaults.fdi
new file mode 100644
index 0000000..bc401f1
--- /dev/null
+++ b/debian/examples/prehal-defaults.fdi
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<deviceinfo version="0.2">
+  <device>
+    <match key="info.capabilities" contains="input.touchpad">
+      <merge key="input.x11_driver" type="string">synaptics</merge>
+      <merge key="input.x11_options.VertEdgeScroll" type="string">true</merge>
+      <merge key="input.x11_options.HorizEdgeScroll" type="string">true</merge>
+      <merge key="input.x11_options.TapButton1" type="string">1</merge>
+      <merge key="input.x11_options.TapButton2" type="string">2</merge>
+      <merge key="input.x11_options.TapButton3" type="string">3</merge>
+    </match>
+  </device>
+</deviceinfo>
diff --git a/debian/xserver-xorg-input-synaptics.docs b/debian/xserver-xorg-input-synaptics.docs
index 07e6c68..64cb5a5 100644
--- a/debian/xserver-xorg-input-synaptics.docs
+++ b/debian/xserver-xorg-input-synaptics.docs
@@ -3,3 +3,4 @@ docs/README.alps
 TODO
 NEWS
 docs/trouble-shooting.txt
+debian/examples/

Reply to: