Jump to content

VoodooPS2 optimized for Snow Leopard, Leopard and Tiger


  • Please log in to reply
150 replies to this topic

#81
yushir

yushir

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 126 posts

I made a version that is good enough for me:
Keyboard supports multimedia keys.
ALPS trackpad supports tapping, sideScrolling and is affected by DarwinX Trackpad.prefPane.

THe KiNG
For you Keyboard will print all scancodes, not only extended, after you press PrintScreen. Second press stops logging.
At my keyboard PrintScreen = 0x2a (down)_0xaa (up) but not 0x37 as in the driver :) May be you change the key (logScan) to some other unuseful code.
And also for you debug version of ALPSTrackpad. It prints into kernel.log every touch to trackpad.
I see my getStatus differ from your

Jan  2 22:38:48 MacBook kernel[0]: [ApplePS2ALPSGlidePoint] getStatus(): [15 01 0a]
Jan  2 22:38:48 MacBook kernel[0]: [ApplePS2ALPSGlidePoint] getStatus(): [11 01 0a]

Debug version


Full project with sources and binaries for Snow. Sorry Andy, I forget to apply your changes for Tiger.


TODO
SideScrolling assumes panel size of 950x720. Thus x>900 = VScroll, y>600 = HScroll. It will be better to use VoodooPS2.prefPane settings that the driver understand, for example TopEgde, RightEdge.
Tapping uses information about pressure but settings FingerZ is not used. Dunno what is it.
I cancel twoFingerScrolling, it is not needed when I have sideScrolling.
Sticking is not implemented.


Haven't looked at the modded driver (did on original ApplePS2). May i suggest that FingerZ indicates the pressure of the pulsation? I mean, those devices are actually using strain gauges (i used google translate, don't even know if they're called that way) so that they can provide XYZ values based on resistivity measurments from the edges.

I may try the debug version, it's hard to believe but OSX special key codes are recognized different from Linux && Windows one's.

Really good job with the driver, don't even mind on those saying it's still buggy because you've done a great work. Thanks!

#82
talisman

talisman

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 380 posts

@DarwinX, I search forum and get some information about the Pane, look the picture, delete some items of the info.plist file can make a different.


well.. came out of hibernation...!! For those who weren't around when this fix was implemented by Chrysaor after the 10.5.6 update on macgirl's thread(??), all you need to do is delete the first two lines of the marked area. Any Trackpad.prefpane that you find in this jungle and working for your alps will be this and not much else. To my knowledge no one has done any patching on it other than Apple Inc.

#83
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 3,193 posts
  • Gender:Male
  • Location:Moscow

well.. came out of hibernation...!! For those who weren't around when this fix was implemented by Chrysaor after the 10.5.6 update on macgirl's thread(??), all you need to do is delete the first two lines of the marked area. Any Trackpad.prefpane that you find in this jungle and working for your alps will be this and not much else. To my knowledge no one has done any patching on it other than Apple Inc.

Yes! :)
Do the follow in the vanilla Trackpad.prefPane.info.plist
<key>NSMainNibFile</key>
	<string>OldTrackpadTab</string>
<!--	<key>NSPrefPaneSearchParameters</key>
	<string>Trackpad</string>
	<key>NSPrefPanelIconLabel</key>
	<string>Trackpad</string> -->
	<key>NSPrincipalClass</key>
	<string>Trackpad</string>
And its works with ALPS, and has effect, and save settings.

#84
talisman

talisman

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 380 posts

Yes! :P
Do the follow in the vanilla Trackpad.prefPane.info.plist

<key>NSMainNibFile</key>
	<string>OldTrackpadTab</string>
<!--	<key>NSPrefPaneSearchParameters</key>
	<string>Trackpad</string>
	<key>NSPrefPanelIconLabel</key>
	<string>Trackpad</string> -->
	<key>NSPrincipalClass</key>
	<string>Trackpad</string>
And its works with ALPS, and has effect, and save settings.


You actually don't need to comment out NSPrefPaneSearchParameters and NSPrefPanelIconLabel. I don't think keeping them makes a difference but removing them is not necessary. Only the NSPrefPanelOserviceAttributesToM and NSPrefPanelOServiceToMatch keys need to be removed...

also, you have to "convince" the system pref that you are loading the wrong Trackpad pref pane before it recognizes the right one. So do the following if necessary:

Load complete vanilla Trackpad prefpane without any mod and see if sys pref says "Trackpad not available"

Then close sys pref, make mods and then open it again... should work....

#85
DarwinX

DarwinX

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 640 posts
  • Gender:Male
  • Location:Florida

You actually don't need to comment out NSPrefPaneSearchParameters and NSPrefPanelIconLabel. I don't think keeping them makes a difference but removing them is not necessary. Only the NSPrefPanelOserviceAttributesToM and NSPrefPanelOServiceToMatch keys need to be removed...

also, you have to "convince" the system pref that you are loading the wrong Trackpad pref pane before it recognizes the right one. So do the following if necessary:

Load complete vanilla Trackpad prefpane without any mod and see if sys pref says "Trackpad not available"

Then close sys pref, make mods and then open it again... should work....


I have long ago trashed the original native Trackpad.prefPane so would anyone please share theirs? Also, is there a two finger scrolling implementation which controls the Alp's trackpad in the native Trackpad.prefPane?

#86
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 3,193 posts
  • Gender:Male
  • Location:Moscow

You actually don't need to comment out NSPrefPaneSearchParameters and NSPrefPanelIconLabel. I don't think keeping them makes a difference but removing them is not necessary. Only the NSPrefPanelOserviceAttributesToM and NSPrefPanelOServiceToMatch keys need to be removed...

also, you have to "convince" the system pref that you are loading the wrong Trackpad pref pane before it recognizes the right one. So do the following if necessary:

Load complete vanilla Trackpad prefpane without any mod and see if sys pref says "Trackpad not available"

Then close sys pref, make mods and then open it again... should work....

There is vanilla info.plist (system 10.6.6 10J567)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleDevelopmentRegion</key>
	<string>English</string>
	<key>CFBundleExecutable</key>
	<string>Trackpad</string>
	<key>CFBundleGetInfoString</key>
	<string>Trackpad Preference Pane</string>
	<key>CFBundleIconFile</key>
	<string>Trackpad.icns</string>
	<key>CFBundleIdentifier</key>
	<string>com.apple.preference.trackpad</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundleName</key>
	<string>Trackpad</string>
	<key>CFBundlePackageType</key>
	<string>BNDL</string>
	<key>CFBundleShortVersionString</key>
	<string>2.8</string>
	<key>CFBundleSignature</key>
	<string>????</string>
	<key>CFBundleVersion</key>
	<string>2.8</string>
	<key>NSMainNibFile</key>
	<string>OldTrackpadTab</string>
	<key>NSPrefPaneSearchParameters</key>
	<string>Trackpad</string>
	<key>NSPrefPanelIconLabel</key>
	<string>Trackpad</string>
	<key>NSPrincipalClass</key>
	<string>Trackpad</string>
</dict>
</plist>
But you are right. Once the prefPane recognize trackpad and save his settings it will works even without any mods.

#87
talisman

talisman

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 380 posts

I have long ago trashed the original native Trackpad.prefPane so would anyone please share theirs? Also, is there a two finger scrolling implementation which controls the Alp's trackpad in the native Trackpad.prefPane?


Here you go: Vanilla trackpad with Info.plist mod

Two finger scroll setting are in the trackpad prefpane.

ps. I still use VoodooPS2 + AppleACPIPS2Nub.

pps. backup instead of delete is a good idea.

#88
iPal

iPal

    InsanelyMac Protégé

  • Members
  • Pip
  • 13 posts
  • Gender:Male
Thanks Andy & Slice :D good work guys.....

Tapping, two finger scrolling & multimedia keys are working now. cheers.....

#89
DarwinX

DarwinX

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 640 posts
  • Gender:Male
  • Location:Florida

Here you go: Vanilla trackpad with Info.plist mod

Two finger scroll setting are in the trackpad prefpane.

ps. I still use VoodooPS2 + AppleACPIPS2Nub.

pps. backup instead of delete is a good idea.


It's the same one I've posted on this thread earlier, I've been using it for quite a while. By the way, if you take the two Apple videos out of its Resources folder, the size is significantly reduced to only 1.6 MB. Also, the new VoodooPS2.kext is quite an improvement over the one we've been using in that not only does it allow for the use of one less kext but also finally provides the tapping functionality which is also controllable by the aforementioned preference pane. The current native Trackpad.prefPane does absolutely nothing in my system short of searching for the Bluetooth hardware, even with the plist modifications. Disabling the Bluetooth is simply not an option for me.

#90
talisman

talisman

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 380 posts

It's the same one I've posted on this thread earlier, I've been using it for quite a while. By the way, if you take the two Apple videos out of its Resources folder, the size is significantly reduced to only 1.6 MB. Also, the new VoodooPS2.kext is quite an improvement over the one we've been using in that not only does it allow for the use of one less kext but also finally provides the tapping functionality which is also controllable by the aforementioned preference pane. The current native Trackpad.prefPane does absolutely nothing in my system short of searching for the Bluetooth hardware, even with the plist modifications. Disabling the Bluetooth is simply not an option for me.


I have had tapping with my voodoops2 + appleacpips2nub for ages now, ever since I installed SL a month after it was released and it has always been controllable by the prefpane. I don't want to remove the videos coz I like keeping stuff as untouched as possible. I've known of their existence ever since Apple put them in there.

I don't get the thing about bluetooth you mentioned, I have bluetooth and don't have any problems...

Also, native trackpad.prefpane = vanilla trackpadprefpane = any that you will find anywhere that works with Alps = one which has both two finger scrolling and tapping controls in it = the one I posted = the one you posted. (except for differing Info.plist)

#91
DarwinX

DarwinX

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 640 posts
  • Gender:Male
  • Location:Florida

I don't get the thing about bluetooth you mentioned, I have bluetooth and don't have any problems...

Also, native trackpad.prefpane = vanilla trackpadprefpane = any that you will find anywhere that works with Alps = one which has both two finger scrolling and tapping controls in it = the one I posted = the one you posted. (except for differing Info.plist)


I was referring to the current native trackpad.prefane v2.6 with the new buttonless functionality. I am not certain which version of the OS X our current working trackpad.prefpane (2.0) is from. Do you know?

#92
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 3,193 posts
  • Gender:Male
  • Location:Moscow

I was referring to the current native trackpad.prefane v2.6 with the new buttonless functionality. I am not certain which version of the OS X our current working trackpad.prefpane (2.0) is from. Do you know?

Current native trackpad pref pane v2.8. OSX 10.6.6 10J567.
For any settings in prefPane may influence the driver must understand it.

#93
talisman

talisman

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 380 posts

Current native trackpad pref pane v2.8. OSX 10.6.6 10J567.
For any settings in prefPane may influence the driver must understand it.


Bingo Slice:

Trackpad.prefpane V2.8

Pacifist is a very useful application. Have you got this version to work Slice or DarwinX?

#94
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 3,193 posts
  • Gender:Male
  • Location:Moscow

Bingo Slice:

Trackpad.prefpane V2.8

Pacifist is a very useful application. Have you got this version to work Slice or DarwinX?

Why I need to download this version from megaupload? The same one, same size, vanilla from 10.6.6, works for me with my driver. Dragging is not working because I didn't implement it. Twofinger scroll switch on/off sideScrolling - it is a property of my driver. "Scrolling speed" influences on scrolling speed.
Attached File  Screen_shot_2011_01_11_at_10.28.48.png   55.88KB   77 downloads
IOReturn ApplePS2ALPSGlidePoint::setParamProperties( OSDictionary * dict )
{
	OSNumber * clicking = OSDynamicCast( OSNumber, dict->getObject("Clicking") );
	OSNumber * dragging = OSDynamicCast( OSNumber, dict->getObject("Dragging") );
	OSNumber * draglock = OSDynamicCast( OSNumber, dict->getObject("DragLock") );
	OSNumber * hscroll  = OSDynamicCast( OSNumber, dict->getObject("TrackpadHorizScroll") );
	OSNumber * vscroll  = OSDynamicCast( OSNumber, dict->getObject("TrackpadScroll") );
	OSNumber * eaccell  = OSDynamicCast( OSNumber, dict->getObject("HIDTrackpadScrollAcceleration") );
	OSNumber * accell   = OSDynamicCast( OSNumber, dict->getObject("HIDTrackpadAcceleration") );
if (xdiff && (scroll & SCROLL_HORIZ) && _edgehscroll) { //is Horizontal Scrolling on in Trackpad.prefpane?
			s_xdiff = (xdiff > 0)?(-1):1;
		}
		if (ydiff && (scroll & SCROLL_VERT) && _edgevscroll){ //is Vertical Scrolling on in Trackpad.prefpane?
			s_ydiff = (ydiff > 0)?(-1):1;
		}
		
		tfsf2 = (int)(tfsfactor + (int)((int)_edgeaccell/(256*16)));  //Value from Trackpad.prefpanes
		dispatchScrollWheelEvent(s_ydiff*tfsf2, s_xdiff*tfsf2, 0, now);  //Multiply with a factor	
		touchmode = MODE_VSCROLL;


#95
DarwinX

DarwinX

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 640 posts
  • Gender:Male
  • Location:Florida

Why I need to download this version from megaupload? The same one, same size, vanilla from 10.6.6, works for me with my driver. Dragging is not working because I didn't implement it. Twofinger scroll switch on/off sideScrolling - it is a property of my driver. "Scrolling speed" influences on scrolling speed.


Slice, the screenshot you provided shows an interface of the Trackpad.prefPane v.2.0, the same as Talisman and I have been using for a while.



Would you care to elaborate on your statement please?

Bingo Slice:

Trackpad.prefpane V2.8

Pacifist is a very useful application. Have you got this version to work Slice or DarwinX?


Thank you, Talisman. On my system, the Trackpad.prefPane v.2.8 just continually and unsuccessfully searches for the Bluetooth trackpad.



#96
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 3,193 posts
  • Gender:Male
  • Location:Moscow

Slice, the screenshot you provided shows an interface of the Trackpad.prefPane v.2.0, the same as Talisman and I have been using for a while.

Would you care to elaborate on your statement please?

I am sure what I said
Attached File  Screen_shot_2011_01_11_at_14.45.41.png   124.2KB   76 downloads
Attached File  Screen_shot_2011_01_11_at_14.53.48.png   125.04KB   57 downloads

Thank you, Talisman. On my system, the Trackpad.prefPane v.2.8 just continually and unsuccessfully searches for the Bluetooth trackpad.

Search?!
<key>NSPrefPaneSearchParameters</key>
	<string>Trackpad</string>
I proposed to exclude these lines.

#97
talisman

talisman

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 380 posts
Slice, the upload is for DarwinX, he mentioned he lost the vanilla one.

Pacifist is an application which lets you extract stuff selectively from a pkg or mpkg. It is quite useful for pulling out stuff from a large package.

Slice is using 2.8, they all look the same. I'll mess with all this once I have more time than just to write 5 lines out here...!!

#98
DarwinX

DarwinX

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 640 posts
  • Gender:Male
  • Location:Florida

Search?!

<key>NSPrefPaneSearchParameters</key>
	 <string>Trackpad</string>
I proposed to exclude these lines.


With those parameters excluded, the result is identical to the one I described above. ;)

Slice is using 2.8, they all look the same. I'll mess with all this once I have more time than just to write 5 lines out here...!!


So I see, I hadn't realized that. I appreciate the clarification.

#99
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,509 posts
  • Gender:Male
  • Location:Tampa, Florida
i seem to have an issue after sleep in 10.5.8 mouse and keyboard wont work. in inspiron 1520.
i tested with new and old dsdt that works fine with older vodoops2. i think its related to newIRQ ?

#100
denzel

denzel

    InsanelyMac Protégé

  • Members
  • Pip
  • 20 posts
andy, there are new fixes here: http://www.projectos...?...=1688&st=40

Can you add, but please don't remove the 2 finger scrolling for ALPS, it works great.

And for VoodooPrefpane and ALPS, good news?

Thank you





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