Jump to content

Cypress PS2 Trackpad kext

cypress ps2 touchpad trackpad

  • Please log in to reply
111 replies to this topic

#101
stu_mccudden

stu_mccudden

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts

Good evening all,

 

So Ulysse31, I tried downloading it but when I try to DL the debug kext from mega its giving me either errors or just fails to start. I've tried on three networks and a few browsers to no avail. Is the file hosted elsewhere? 



#102
Ulysse31

Ulysse31

    InsanelyMac Protégé

  • Coders
  • 65 posts
  • Gender:Male

Good evening all,
 
So Ulysse31, I tried downloading it but when I try to DL the debug kext from mega its giving me either errors or just fails to start. I've tried on three networks and a few browsers to no avail. Is the file hosted elsewhere?


Hi again,
Sorry for the inconvenience, it seems that something happend to the last debug link, I have updated the link on the first post, you should now be able to download it.

Cheers,


--
Ulysse31

#103
stu_mccudden

stu_mccudden

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts

So I installed the debug kext and ran the terminal command, but the cypress_dump.txt file has nothing in it, its just a zero byte file. I did attach the crash report from the pref pane, I don't know if that might help any. Suggestions for the dump file?


I checked the console logs and took a screenshot of what happened right after boot for ps2-related stuff, ill attach the pic here. Not sure if any of these will help

Attached Files



#104
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,602 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...

So I installed the debug kext and ran the terminal command, but the cypress_dump.txt file has nothing in it, its just a zero byte file. I did attach the crash report from the pref pane, I don't know if that might help any. Suggestions for the dump file?

I checked the console logs and took a screenshot of what happened right after boot for ps2-related stuff, ill attach the pic here. Not sure if any of these will help

Judging by the log you have 2 PS2 drivers installed...
The "is a duplicate" is a giveaway...
Check your Extensions folder...

#105
Ulysse31

Ulysse31

    InsanelyMac Protégé

  • Coders
  • 65 posts
  • Gender:Male

Thanks AnV,

Was busy until now.

 

stu_mccudden : you should find and REMOVE all other ps2 related kexts.

 

--

Ulysse31



#106
stu_mccudden

stu_mccudden

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts

Guys, 

 

thanks much for your help! i found a ps2 kext in my boot drive that i had missed. OOPS. 

thanks for all your work, trackpads amazing!



#107
Ulysse31

Ulysse31

    InsanelyMac Protégé

  • Coders
  • 65 posts
  • Gender:Male

Guys, 
 
thanks much for your help! i found a ps2 kext in my boot drive that i had missed. OOPS. 
thanks for all your work, trackpads amazing!


You're welcome, :D
Happy to know that it is fine now.

Cheers,


--
Ulysse31

#108
ppgghhgg

ppgghhgg

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts

Hi, good guy,

Thanks a lot !

Mine is XPS12-9Q23 with i7-3537U and have the same problem like 84th floor. The trackpad is always frozen and jumpping with your V7 kext.

If possible, can you say something about how to tranform the linux cypress trackpad driver to OS X driver?

Here is my infos:

Attached Files



#109
Ulysse31

Ulysse31

    InsanelyMac Protégé

  • Coders
  • 65 posts
  • Gender:Male

 

Hi, good guy,

Thanks a lot !

Mine is XPS12-9Q23 with i7-3537U and have the same problem like 84th floor. The trackpad is always frozen and jumpping with your V7 kext.

If possible, can you say something about how to tranform the linux cypress trackpad driver to OS X driver?

Here is my infos:


Hi, good guy,

I have the same problem like 84th floor. The trackpad is always frozen and jumpping with your kexts V7. Here is my infos:

 

Hi,

 

I have been checking your cypress logs, and from what i read, kext is loaded and interprets data received from PS2 as it should, for about 10 mins (at least thats the appearance in the logs it might be "jumping" on screen if other ps2 kext present for example), then something happens that de-sync ps2 protocol (probably here that it freeze). My first guest would be another ps2 related kext (like smoothmouse or other) present that messes up with the kext input/output that leads to a de-sync of ps2 protocol.

Please could you answer to the following questions :

- what type of installation have you used (pre-patched cd/usb image with pre-installed kext ?) ?

- are you 100 % sure there is no other PS2 related kext loaded ?

- it is jumping from start or just sometimes like when you try to use multifinger or so ?

- Could you send me your entire system.log (located in /var/log/) generated while using debug kext  ? Since I'm guessing something external, and the logs you can made with the command on the first post only retreives cypress logs, would need to read the entire system.log => WARNING : I highly recommend you to send this via PM (you do not want the world to read your entire system logfile)

 

For the linux driver "transformation" part, to be short :

- I firstly read the entire cypress ps2 linux driver source code (free and available in the linux kernel source code, if you have a gentoo like me, it is available directly on your system disk)

- with some short cypress sheet docs, analyse it and understood all the functions and their behaviour

- re-implemented same behaviour under the voodoo appleps2controller kext (rehabman's version)

 

The linux driver is the same if you have a XPS 12, 13, or 15z, you have to understand that the linux driver does not care if you are running a XPS 12, 13, 15z or WX42Whatevercomputer, it simply implements a specific PS2 communication protocol between your system and the cypress ps2 chip, and then interprets the data received from that and send it back to the system, and since my work is based on the linux source code, there is no reason that this driver should not work under xps 12 as it works under xps 13 and 15z.

But this is for the "basic" features, like pointer moving, click left/right and two finger scroll. For multifinger (3 to 5 fingers), some cypress firmware where scavenged by cypress himself (I suppose to sell a cheaper version or whatever reason) to only detect up to 3 fingers under windows (only 2 fingers max detected under linux whatever firmware you have ...) : in fact cypress doc specifies up to 5 fingers, and the protocol like specified on the doc works great with firmwares below v34, which means that with firmware below v34 you have up to 5 fingers and 100% compliant with the documentation. the firmware v34 and higher where modified to only respect official doc up to 3 finger, so i had some patches to get it working on those firmwares.

In your case, from the log you sent, you have a v11 firmware, which is the same as me. And that's why my first guess would be an external problem.

if you want further information about PS2 protocol and my implementation, you can read my other post on the developers corner here :

 

http://www.insanelym...ps2-kext-story/

 

 

Cheers,

 

 

--

Ulysse31



#110
ppgghhgg

ppgghhgg

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts

Hi,
 
I have been checking your cypress logs, and from what i read, kext is loaded and interprets data received from PS2 as it should, for about 10 mins (at least thats the appearance in the logs it might be "jumping" on screen if other ps2 kext present for example), then something happens that de-sync ps2 protocol (probably here that it freeze). My first guest would be another ps2 related kext (like smoothmouse or other) present that messes up with the kext input/output that leads to a de-sync of ps2 protocol.
Please could you answer to the following questions :
- what type of installation have you used (pre-patched cd/usb image with pre-installed kext ?) ?
- are you 100 % sure there is no other PS2 related kext loaded ?
- it is jumping from start or just sometimes like when you try to use multifinger or so ?
- Could you send me your entire system.log (located in /var/log/) generated while using debug kext  ? Since I'm guessing something external, and the logs you can made with the command on the first post only retreives cypress logs, would need to read the entire system.log => WARNING : I highly recommend you to send this via PM (you do not want the world to read your entire system logfile)
 
For the linux driver "transformation" part, to be short :
- I firstly read the entire cypress ps2 linux driver source code (free and available in the linux kernel source code, if you have a gentoo like me, it is available directly on your system disk)
- with some short cypress sheet docs, analyse it and understood all the functions and their behaviour
- re-implemented same behaviour under the voodoo appleps2controller kext (rehabman's version)
 
The linux driver is the same if you have a XPS 12, 13, or 15z, you have to understand that the linux driver does not care if you are running a XPS 12, 13, 15z or WX42Whatevercomputer, it simply implements a specific PS2 communication protocol between your system and the cypress ps2 chip, and then interprets the data received from that and send it back to the system, and since my work is based on the linux source code, there is no reason that this driver should not work under xps 12 as it works under xps 13 and 15z.
But this is for the "basic" features, like pointer moving, click left/right and two finger scroll. For multifinger (3 to 5 fingers), some cypress firmware where scavenged by cypress himself (I suppose to sell a cheaper version or whatever reason) to only detect up to 3 fingers under windows (only 2 fingers max detected under linux whatever firmware you have ...) : in fact cypress doc specifies up to 5 fingers, and the protocol like specified on the doc works great with firmwares below v34, which means that with firmware below v34 you have up to 5 fingers and 100% compliant with the documentation. the firmware v34 and higher where modified to only respect official doc up to 3 finger, so i had some patches to get it working on those firmwares.
In your case, from the log you sent, you have a v11 firmware, which is the same as me. And that's why my first guess would be an external problem.
if you want further information about PS2 protocol and my implementation, you can read my other post on the developers corner here :
 
http://www.insanelym...ps2-kext-story/
 
 
Cheers,
 
 
--
Ulysse31

 
OH! Thanks!
 
Here is my answer:
 
- what type of installation have you used (pre-patched cd/usb image with pre-installed kext ?) ?
I use official OS X 10.9.3 InstallESD.dmg file. Load basesystem.dmg and copy all the files into a new dmg file, then extract mach_kernel into it and copy “package” to System/Installation. Boot by clover and put all the two kexts(FakeSMC.kext and VoodooPS2Controller.kext) into clover/kexts/10.9. Then boot by clover without caches but with extra kexts and begin to install and after installation, go into system and install the two kexts by Kext Wizard and rebuild/fix the permission by Kext Utility, then reboot. The system is totally new without other extra kexts for it is installed in GUID 64G TF card only to test the cypress trackpad kext. The PlugIns in FakeSMC.kext has already been deleted.
 
- are you 100 % sure there is no other PS2 related kext loaded ?
Firmly YES.
 
- it is jumping from start or just sometimes like when you try to use multifinger or so ?
Once I use the trackpad frequently, like move here and there with no stop, first it “runs OK” but the freezing will come in one or two minutes no matter how many fingers used even only one finger and then wait a moment, it “runs OK” again, but a few minutes later, it will be frozen again. It circulates again and again. If I use two or more fingers, sometimes the both left buttons in cypress trackpad and the USB mouse will not be recognized by system, only the right button works. All the problems above will not stopped automatically but will stop after entered any two or three Keys in fast speed in the PS2 keyboard.
In the “runs OK” period, it will jump mostly with multifinger, sometimes with one finger, like I press here, but it appears there.
 
For examples:
While it runs OK, the information in log is like that ”14-6-10 10:55:21.000 kernel[0]: CYPRESS: ApplePS2CypressTouchPad: packet dump { 0x40, 0x20, 0x42, 0x99, 0x46, 0x00, 0x00, 0x00 }
14-6-10 10:55:21.000 kernel[0]: CYPRESS: Counting Fingers: 1, tap 0
14-6-10 10:55:21.000 kernel[0]: CYPRESS: contacts[0] = {578, 153, 70}
14-6-10 10:55:21.000 kernel[0]: CYPRESS: l=0, r=0, m=0
14-6-10 10:55:21.000 kernel[0]: CYPRESS: old coord: _xpos=588 _ypos=161
14-6-10 10:55:21.000 kernel[0]: CYPRESS: Sending pointer event: -5,-4,0

It freezes with only this information repeated more than 4000 times in less than one minutes in system logs if I do not press any keys in PS2 keyboard to interrupt it. “CYPRESS: ApplePS2CypressTouchPad: packet dump { 0x3b, 0x40, 0x11, 0x95, 0x05, 0x00, 0x00, 0x00 }
” ;
while I use one finger and with two fingers, the freezing information is like that “CYPRESS: ApplePS2CypressTouchPad: packet dump { 0x1a, 0x40, 0x20, 0x23, 0xf2, 0x00, 0x00, 0x00 }

Three finger freezes with the both left buttons in cypress trackpad and the USB mouse not working, its information “CYPRESS: ApplePS2CypressTouchPad: packet dump { 0x0e, 0x40, 0x11, 0xf1, 0x14, 0x00, 0x00, 0x00 }

Attached Files



#111
motitas

motitas

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts

Hey everyone I figured out how to make the scrolling inertial. instructions are in the description. Pretty close to a real mac.

 



#112
Ulysse31

Ulysse31

    InsanelyMac Protégé

  • Coders
  • 65 posts
  • Gender:Male

Great motitas, seems cool, thanks for the contribution ^^

 

Does not mean that I won't add it some day to the code, but at least for now people can use this to get a better use of my actual driver.

 

EDIT: too bad it's a commercial app ... :(

 

Hey everyone I figured out how to make the scrolling inertial. instructions are in the description. Pretty close to a real mac.

 

 

 

I'm been overloaded of job (professionally and personally), so I haven't got the time to working more seriously on it lately :s

Really need to get some time for it ...

 

Cheers.

 

 

--

Ulysse31







Also tagged with one or more of these keywords: cypress, ps2, touchpad, trackpad


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy