Synaptics patch: orientation

Mildred Ki'Lya ml.mildred593 at online.fr
Sat Nov 8 11:53:24 PST 2008


Hi,

I just finished my orientation patch for synaptics. It's not heavily
tested for the moment. If anyone could test ...

I added 4 options to the driver, quoting from the man page:

       Option "Orientation" "integer"
              This option can be used to change the orientation of the  track‐
              pad  and  can  takes  values  from  0  to 3. The default value 0
              implies a normal orientation, other values can be used  to  have
              respectively  an orientation set to the left, an inverted orien‐
              tation, and an orientation set to the right.  This may be useful
              in  combinaison with the orientation option of the XRandR exten‐
              sion. You may notice that the values used are the  same  to  the
              values  used  by  XRandR.   Along with this option, you might be
              interested to enable the DontReportSize option. Read  its  docu‐
              mentation to know why.

       Option "DontReportSize" "boolean"
              This option prevent the synaptics driver from reporting the size
              of the trackpad to  Xorg.  Xorg  can  use  this  information  to
              amplify  the  movements  in  one direction. For example, if your
              trackpad is wider than higher, Xorg will speed up your  vertical
              movements. For example, moving the mouse cursor every two pixels
              when synaptics told Xorg that there was a movement on  one  unit
              along the y axis.  This is particularly useful with the Orienta‐
              tion option which effectively swaps the axis inside  the  synap‐
              tics driver. At that time, Xorg no longer have relevant informa‐
              tion about the size of the x and y axis and might amplifying the
              movements  of the wrong axis. Causing an unusable trackpad, over
              sensitive horizontally and very slow vertically for example.

       Option "VertSpeed" "float"
              Changes the vertical speed. This is a number multiplied  by  the
              input  given  by  the  trackpad. So a value above 1 speed up the
              vertical axis, a value below 1 slows  down  the  vertical  move‐
              ments.   This  option isn't affected by the orientation, so when
              the screen is rotated using XRandR, the movements you have  with
              your  oriented trackpad will be similar to those you have with a
              non oriented trackpad and a non rotated screen.

       Option "HorizSpeed" "float"
              Changes the horizontal speed similarly to VertSpeed.






The patch is licenced under the MIT licence.

The next thing would be to automatically change the orientation of the
trackpad when XRandR rotates the screen.


Mildred

-- 
Mildred Ki'Lya
╭───────── mildred593@online.fr ──────────
│ Jabber, GoogleTalk: <mildred at jabber.fr>
│ Site: <http://ki.lya.online.fr>              GPG ID: 9A7D 2E2B
│ Fingerprint: 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 9A7D 2E2B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: orientation8.patch
Type: text/x-patch
Size: 16315 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20081108/d804df60/attachment.bin>


More information about the xorg mailing list