public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: PowerBook5,8 - TrackPad update
@ 2005-11-16 15:43 Parag Warudkar
  2005-11-16 15:49 ` Johannes Berg
  0 siblings, 1 reply; 33+ messages in thread
From: Parag Warudkar @ 2005-11-16 15:43 UTC (permalink / raw)
  To: Johannes Berg; +Cc: debian-powerpc, linux-kernel

Ah and yes I forgot about the dual finger scrolling function - newer trackpads allow you to use 2 fingers to slide up and down to achieve scrolling. I don't see any code in current appletouch.c which handles this. We might be able to live without it for some time but maybe we can't as it might screw up the reporting if not handled. (PPC assembly is fun to work with :)


Parag


> > Parag Warudkar wrote:
> > > Just a heads up - After some lame hacking I finally have got the trackpad
> > > on the PB5,8  (15" Late Oct 2005) to work.
> > 
> > Can you tell us what's different? I'd like to work that into my page that
> > documents the protocol.
> > 
> > johannes
> 
> Sure but I haven't worked out the details of the changes yet. All I am fairly 
> certain at this point is that 
> 
> 1) New Trackpad sends in more data than the old one. ATP_DATASIZE has to be 
> increased from 81 to 256. (The original code was dying with EOVERFLOW from the 
> URB complete routine. 256 is the minimum value it is happy with.)
> 
> 2) The 15" also has 26 x 16 sensors - not sure how many the 17" has - most 
> likely same
> 
> 3) The FUZZ, PRESSURE, XFACT and YFACT, along with the button reporting all 
> needs to be reworked - this is my preliminary opinion, might be wrong but with 
> the original code, the mouse moves erratically and the button events don't seem 
> to be delivered right.
> 
> Will post complete details once I have it working.
> 
> Thanks
> 
> Parag 
> 
> 
> 

^ permalink raw reply	[flat|nested] 33+ messages in thread
* Re: PowerBook5,8 - TrackPad update
@ 2005-12-02 17:02 Parag Warudkar
  0 siblings, 0 replies; 33+ messages in thread
From: Parag Warudkar @ 2005-12-02 17:02 UTC (permalink / raw)
  To: Stelian Pop, Michael Hanselmann
  Cc: debian-powerpc, linux-kernel, linuxppc-dev, johannes

My original patch is still work in progress and was intended as a starting point if someone was already adept with the trackpad stuff and was willing to help. 
(Basically it was a call for help - nothing for end users ;)

Things that remained to be done -

Either
1) Support for all PowerBooks in one code base (> Feb 2005)
Or
1) Create different versions for each one or two of them

Depending upon whether or not widely varying algorithms are needed for each variety.

2) Major part - reliably working code for finger movement detection for all Oct 2005 PowerBooks (15" itself seems to come with trackpads having entirely different characteristics.) 

3) Possibly Dual Finger Detection for scrolling - this is optional but would be good to have.

I am working on it as time and urges permit and it will speed up only if Johannes doesn't get his PowerBook or the one he gets is 0x0216 !!

Parag




^ permalink raw reply	[flat|nested] 33+ messages in thread
* Re: PowerBook5,8 - TrackPad update
@ 2005-11-29  6:17 Parag Warudkar
  0 siblings, 0 replies; 33+ messages in thread
From: Parag Warudkar @ 2005-11-29  6:17 UTC (permalink / raw)
  To: linux-kernel

On Nov 28, 2005, at 7:06 PM, Michael Hanselmann wrote:

> The product ID I have, 0x0215, was in none of the
> available drivers and the data format is somewhat different

Hi Michael

Is yours the 15" model or the 17"? Mine is 15" and the product id is  
0x0214.

> You find my hacked version attached -- be aware that in its current  
> form
> it will not work with any touchpad except 0x0215.

I haven't looked at your changes completely yet but are you saying it  
works? Meaning mouse
moves properly?

Also I find it strange that your model requires 80 bytes ATP_DATASIZE  
- mine isn't happy
at all with anything less than 256. The less number of sensors you  
defined is again a puzzle.

> As far as I see it, all methods can be built into one driver. Is there
> already someone working on combining them?

If the format of the data is same (which looks like it is with your  
model) then yes, but in my case
the data arrives is 64 byte blocks - there are 4 of them in one  
transfer, each a reading on it's own.

Hmm. More confusion.

Thanks

Parag

^ permalink raw reply	[flat|nested] 33+ messages in thread
* Re: PowerBook5,8 - TrackPad update
@ 2005-11-16 16:07 Parag Warudkar
  2005-11-16 16:13 ` Johannes Berg
  0 siblings, 1 reply; 33+ messages in thread
From: Parag Warudkar @ 2005-11-16 16:07 UTC (permalink / raw)
  To: Johannes Berg; +Cc: debian-powerpc, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 690 bytes --]


> That's a pure driver function, and we didn't implement it because we
> emulate synaptics. I think your erratically moving thing might be caused
> by a relayout of the order, maybe you should try to observe the
> interrupt transfers the device gives you in a systematic way like I did
> with my python scripts? Those display the levels of each byte. Maybe
> they changed to transmitting not bytes but words for each level?
> 
> johannes
> 

Yep the data layout/ordering is cetainly changed. I was thinking of writing something to relayfs and then use scripts to parse and interpret. But now I think I will be better off using your driver+scripts to sample the data.  

Thanks!

Parag





[-- Attachment #2: Type: message/rfc822, Size: 747 bytes --]

[-- Attachment #2.1.1: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread
* Re: PowerBook5,8 - TrackPad update
@ 2005-11-16 15:40 Parag Warudkar
  0 siblings, 0 replies; 33+ messages in thread
From: Parag Warudkar @ 2005-11-16 15:40 UTC (permalink / raw)
  To: Johannes Berg; +Cc: debian-powerpc, linux-kernel

> Parag Warudkar wrote:
> > Just a heads up - After some lame hacking I finally have got the trackpad
> > on the PB5,8  (15" Late Oct 2005) to work.
> 
> Can you tell us what's different? I'd like to work that into my page that
> documents the protocol.
> 
> johannes

Sure but I haven't worked out the details of the changes yet. All I am fairly certain at this point is that 

1) New Trackpad sends in more data than the old one. ATP_DATASIZE has to be increased from 81 to 256. (The original code was dying with EOVERFLOW from the URB complete routine. 256 is the minimum value it is happy with.)

2) The 15" also has 26 x 16 sensors - not sure how many the 17" has - most likely same

3) The FUZZ, PRESSURE, XFACT and YFACT, along with the button reporting all needs to be reworked - this is my preliminary opinion, might be wrong but with the original code, the mouse moves erratically and the button events don't seem to be delivered right.

Will post complete details once I have it working.

Thanks

Parag 




^ permalink raw reply	[flat|nested] 33+ messages in thread
* PowerBook5,8 - TrackPad update
@ 2005-11-15 21:43 Parag Warudkar
  2005-11-15 23:06 ` Benjamin Herrenschmidt
                   ` (2 more replies)
  0 siblings, 3 replies; 33+ messages in thread
From: Parag Warudkar @ 2005-11-15 21:43 UTC (permalink / raw)
  To: debian-powerpc; +Cc: linux-kernel

Just a heads up - After some lame hacking I finally have got the trackpad on the PB5,8  (15" Late Oct 2005) to work. 

Ok, here is the current definition of working - mouse moves but for that you have to roll over on the trackpad ;)!

Currently negotiating with it so that it's happy with the fingers!! :D

Will post the modified source once for appletouch once it starts working acceptably.

Parag

^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2005-12-25  0:52 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-16 15:43 PowerBook5,8 - TrackPad update Parag Warudkar
2005-11-16 15:49 ` Johannes Berg
  -- strict thread matches above, loose matches on Subject: below --
2005-12-02 17:02 Parag Warudkar
2005-11-29  6:17 Parag Warudkar
2005-11-16 16:07 Parag Warudkar
2005-11-16 16:13 ` Johannes Berg
2005-11-16 15:40 Parag Warudkar
2005-11-15 21:43 Parag Warudkar
2005-11-15 23:06 ` Benjamin Herrenschmidt
2005-11-15 23:12   ` Parag Warudkar
     [not found] ` <111520052143.16540.437A5680000BE8A60000409C220076369200009A9B9CD3040A 029D0A05@comcast.net>
2005-11-16 12:02   ` Johannes Berg
2005-11-21 23:57 ` Parag Warudkar
2005-11-22  0:08   ` Parag Warudkar
2005-11-22 12:51   ` Johannes Berg
2005-11-29  0:06   ` Michael Hanselmann
     [not found]     ` <68465DDA-053F-4A85-9204-549E830B2269@comcast.net>
2005-11-29  7:50       ` Michael Hanselmann
2005-11-29 10:38         ` Johannes Berg
2005-11-29 16:11         ` Parag Warudkar
2005-11-30 11:17           ` Johannes Berg
2005-11-30 22:39     ` Michael Hanselmann
2005-11-30 23:46       ` Michael Hanselmann
2005-12-02 14:28         ` Stelian Pop
2005-12-04 22:42           ` Michael Hanselmann
2005-12-06  3:38             ` Andy Botting
2005-12-06 21:12               ` Michael Hanselmann
2005-12-09 23:33               ` Michael Hanselmann
2005-12-23 23:59             ` Benjamin Herrenschmidt
2005-12-24 11:52               ` René Nussbaumer
2005-12-24 20:17               ` Pavel Machek
2005-12-24 22:27                 ` Benjamin Herrenschmidt
2005-12-24 23:19                   ` Pavel Machek
2005-12-25  0:33                     ` Benjamin Herrenschmidt
2005-12-25  0:52                       ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox