Page 3 of 39 FirstFirst 1234513 ... LastLast
Results 21 to 30 of 385

Thread: new xf86-input for macbooks and other multitouch-touchpads.

  1. #21
    Join Date
    Apr 2007
    Beans
    7
    Distro
    Ubuntu Development Release

    Re: new xf86-input for macbooks and other multitouch-touchpads.

    Niño,

    I wanted to edit /lib/udev/rules.d/66-xorg-synaptics.rules but it wasn't there, so I created the file with
    Code:
    ENV{x11_driver}="multitouch"
    in it…
    These instructions were for Lucid Lynx only. If you are using Karmic, you need to edit the file 11-x11-synaptics.fdi.

  2. #22
    Join Date
    Feb 2006
    Location
    Viña del mar, Chile
    Beans
    41
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: new xf86-input for macbooks and other multitouch-touchpads.

    Yay, it works!

    I think it just needs a threshold for moving the actual cursor, when I click, sometimes the cursor moves.
    I'll have fun with the code now
    Last edited by NiñoScript; March 10th, 2010 at 06:36 AM.
    NiñoScript.age = new Number(16); //(>^;^<)
    (Wow, I did that signature when I was 16… I'm 20 now… it's sad to see how I'm slowly getting old u.u)

  3. #23
    Join Date
    May 2008
    Beans
    745

    Re: new xf86-input for macbooks and other multitouch-touchpads.

    I am glad to see things are moving forward! Kudos to arturoc for the first gesture patch, bringing us closer to full Macbook support. Perhaps you would be interested in cleaning it up a bit and submitting it for inclusion?
    Last edited by kosumi68; March 10th, 2010 at 01:19 AM.

  4. #24
    Join Date
    Feb 2010
    Beans
    9

    Re: new xf86-input for macbooks and other multitouch-touchpads.

    yeah, sure, i'm going to have some time during the weekend, will give it a try. also if someone test it and want to post some bugs...

    also, i see this commit in git:

    janitor: stick to kernel-style formatting

    With this commit, the whole code base complies with the
    kernel format style, and patches can be checked against
    the kernel-provided ./scripts/checkpatch.pl

    is there any style guide or something similar for the code that i can take a look, or some advice on how to organize it?

  5. #25
    Join Date
    Feb 2010
    Beans
    9

    Re: new xf86-input for macbooks and other multitouch-touchpads.

    here's a new version:

    - basic filter for the movement so the cursor is more stable
    - keep last gesture so the touchpad doesn't move after a scroll if one finger is released slightly before the other
    - horizontal scroll working in the correct direction with 2 fingers


    i'm going to clean the code and send you a patch, meanwhile if someone can test this and find any bug, please post here.
    Attached Files Attached Files

  6. #26
    Join Date
    May 2008
    Beans
    745

    Re: new xf86-input for macbooks and other multitouch-touchpads.

    is there any style guide or something similar for the code that i can take a look, or some advice on how to organize it?
    If you have a kernel git tree available, the perl script to run is in scripts/checkpatch.pl. I have attached a copy of that file here. To test a file, do
    Code:
    ./checkpatch.pl --no-tree --file somefile.c
    To test a patch, do
    Code:
    ./checkpatch.pl --no-tree somepatch.patch
    Cheers!
    Attached Files Attached Files

  7. #27
    Join Date
    Jan 2009
    Beans
    310
    Distro
    Ubuntu Development Release

    Re: new xf86-input for macbooks and other multitouch-touchpads.

    For kernel coding style see the folllowing:

    http://www.kernel.org/doc/Documentation/CodingStyle
    http://www.linuxjournal.com/article/5780

    Since GNOME recommend the same style as well as the kernel their page on coding style also has some more info:

    http://developer.gnome.org/doc/guide...ode-style.html

  8. #28
    Join Date
    Feb 2010
    Location
    Louisville, KY
    Beans
    414
    Distro
    Ubuntu Development Release

    Re: new xf86-input for macbooks and other multitouch-touchpads.

    You might want to take a look at this thread: http://ubuntuforums.org/showthread.php?t=1252492

    It will give you some insight to all the problems were having right now with multi-touch and n-trig devices.

  9. #29
    Join Date
    Feb 2010
    Beans
    9

    Re: new xf86-input for macbooks and other multitouch-touchpads.

    hey

    so everything seems to be working, and the checkpatch script tells there's no errors in the formatting.

    i've used some constants for checking distances and times in defnes, i suppose it can be useful to be able to configure them from outside the code. also don't know if this is going to be used for other touchpads than the macbook, but i suppose some values will change in that case.

    anyway, whats the best way to submit the changes?

  10. #30
    Join Date
    May 2008
    Beans
    745

    Re: new xf86-input for macbooks and other multitouch-touchpads.

    Quote Originally Posted by arturoc View Post
    hey

    so everything seems to be working, and the checkpatch script tells there's no errors in the formatting.

    i've used some constants for checking distances and times in defnes, i suppose it can be useful to be able to configure them from outside the code. also don't know if this is going to be used for other touchpads than the macbook, but i suppose some values will change in that case.

    anyway, whats the best way to submit the changes?
    Great! Just drop a mail to patches@bitmath.org.

Page 3 of 39 FirstFirst 1234513 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •