Jump to content

Hacked PS/2 Driver :)


  • Please log in to reply
209 replies to this topic

#1
babaev

babaev

    InsanelyMac Protégé

  • Members
  • Pip
  • 44 posts
My native notebook keyboard did not work "out of the box".

I downloaded ApplePS2 driver source from Apple's developer site, hacked them a little (added self-test to keyboard enabling method) and my notebook's keyboard (notebook: LG LS50, Centrino (SSE2 only), ATI Radeon M10 (9600)) works almost perfect.

I give no guarantee, that it'll work with your's specific keyboard, but you can try. May be I'll continue to develop this driver. I'm totally newbie to MacOSX developing, so...

How to install:

1. download Attached File  ApplePS2Controller.kext.zip   327.63KB   16089 downloads
2. unzip
3. copy it to /System/Library/Extensions (something like "cp -R ApplePS2Controller.kext /System/Library/Extensions/" in terminal)
4. modify owner (something like "chown -R root:wheel /System/Library/Extensions/ApplePS2Controller.kext" in terminal)

before entering commands in terminal, switch to superuser mode ("su", press enter and enter password)

Reboot, unplug USB keyboard and enjoy (if you can).

#2
nemattoad

nemattoad

    InsanelyMac Protégé

  • Members
  • Pip
  • 19 posts
if it works for one PS/2 keyboard, it will work for all of them.

#3
cwestpha

cwestpha

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 151 posts
  • Gender:Male
  • Location:USA
This thing can be considered a Alpha product that is a first "real" release on this platform. Rules of logic dont apply. An extra key might be enough to throw the whole thing off and cause a panic for all we know.

#4
azuran

azuran

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts
It works for me for a while but then it will randomly just stop, and I will have to plug in a usb mouse to do anything. Any ideas? There is no real indicative output to Console.

Azuran

#5
babaev

babaev

    InsanelyMac Protégé

  • Members
  • Pip
  • 44 posts
Well, It's not a normal patch, it's a hack. Workink for me flawlessly.

I'm totally new to MacOSX an totally new to PS/2 . So, I need some more time to find out all the problems of Apple's driver. It's not complete - I can cay it because not all PS/2 messages are handled. And the problem of my keyboard was, that it didn't initialized properly.

I'll continue to develop this driver, so, may be in some time we'll get fully working one.

#6
NX01

NX01

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 4 posts
  • Location:/dev/null
Allright dude! I also have an LG laptop, but LS 70 express model and my keyboard doesn't work too. Thank god that someone developed a patch... Will try patch as soon as get home from work :(

#7
azuran

azuran

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts
Best of luck, your work is very much appreciated :(

#8
babaev

babaev

    InsanelyMac Protégé

  • Members
  • Pip
  • 44 posts
Well, a day passed. Driver works normally, without any problems (I work with another drivers now, so I do reboot often and so on). Even display backlight keys works (combinations with Fn key) and volume button works.

If anybody is interested - I've updated one more driver. PCCard now works for me. It's a Texas Instruments chipset. As I remember, TI7620. If anybody needs this updated driver, I can upload it here.

#9
NX01

NX01

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 4 posts
  • Location:/dev/null
Repect man! My keyboard now works excellent!
Sure, upload the driver for PCCard... mine laptop has also Texas Instruments chipset - don't know which model, but i'd like to try...

#10
babaev

babaev

    InsanelyMac Protégé

  • Members
  • Pip
  • 44 posts
Ok, here is my patched PCCard driver Attached File  IOPCCardFamily.kext.zip   343.07KB   942 downloads. If it does not work, it is not very hard to add another (similar) chipset...

Installation is like keyboard driver, only names differ.

#11
Wingen

Wingen

    InsanelyMac Protégé

  • Members
  • Pip
  • 32 posts
  • Gender:Male
  • Location:Sweden
I have a PS/2 keyboard and a USB mouse. Tried the patch, now OS X won't boot anymore. At the grey loading screen, I get that "no go" sign after a while. In verbose mode, I don't get any special error messages (afaik). I've tried booting with the -x parameter and with the platform parameter.
When I boot OS X from VMware (used the physical disk as a VMware "image"), everything works fine and OS X boots like normal. Could it be that VMware makes the system think I have a USB keyboard?

#12
babaev

babaev

    InsanelyMac Protégé

  • Members
  • Pip
  • 44 posts
try booting -v, you'll see, where booting is stopped - write it here, we'll try to help.

#13
Wingen

Wingen

    InsanelyMac Protégé

  • Members
  • Pip
  • 32 posts
  • Gender:Male
  • Location:Sweden
The weird thing is that when I boot with -v, it actually manages to boot all the way. I can use OS X like nothing happened. Even my iPod is recognized and mounted! Everything's tip top, except for one thing, of course. Any PS/2 device I have plugged in (first I tried with the keyboard on PS/2 and mouse on USB, then both on PS/2) won't function once OS X has booted. If I boot with the -s parameter, giving me access to a shell, I won't be able to type anything in.
I took a screenshot of the last message sent in verbose mode, along with the rest on the screen. I had both the mouse and the keyboard plugged in on PS/2 at the time. Clicky.

#14
babaev

babaev

    InsanelyMac Protégé

  • Members
  • Pip
  • 44 posts

I took a screenshot of the last message sent in verbose mode, along with the rest on the screen. I had both the mouse and the keyboard plugged in on PS/2 at the time.

<{POST_SNAPBACK}>


Try to check permissions on newly installed patch. There must be a line or two, mentioning PS/2 patch. Looks like you have wrong permissions/copied file to wrong place.

Anyway, if this patch does not work - please, tell you computer configuration, I'll try to solve this problem.

#15
Wingen

Wingen

    InsanelyMac Protégé

  • Members
  • Pip
  • 32 posts
  • Gender:Male
  • Location:Sweden

Try to check permissions on newly installed patch. There must be a line or two, mentioning PS/2 patch. Looks like you have wrong permissions/copied file to wrong place.

Anyway, if this patch does not work - please, tell you computer configuration, I'll try to solve this problem.

<{POST_SNAPBACK}>


I put it in /System/Library/Extensions using the "cp -R" command and then chowned the kext with "chown -R root:wheel". Isn't that how I should do it?

The permissions window for the file I copied into the Extensions folder has the following in it:

Ownership & Permissions:
You can: Read only
Details:
Owner: system (lock icon)
Access: Read & Write

Group: wheel
Access: Read only

Others: Read only

Now my keyboard isn't working in VMware either :)

#16
Stern

Stern

    InsanelyMac Protégé

  • Members
  • PipPip
  • 75 posts
the owner of the file shouldn't be root, it should be system. this is much easier to change in the gui if you have administrator rights. just right click the file and choose "get info", and go to the bottom where it says permissions. go to details and choose system from the owner box, and wheel from the other. that should make it work.

#17
babaev

babaev

    InsanelyMac Protégé

  • Members
  • Pip
  • 44 posts

I put it in /System/Library/Extensions using the "cp -R" command and then chowned the kext with "chown -R root:wheel". Isn't that how I should do it?

<{POST_SNAPBACK}>


Did you execute these commands in superuser mode?

Well, maybe, this patch isn't for you. What is your system configuration?

#18
Wingen

Wingen

    InsanelyMac Protégé

  • Members
  • Pip
  • 32 posts
  • Gender:Male
  • Location:Sweden

Did you execute these commands in superuser mode?

Well, maybe, this patch isn't for you. What is your system configuration?

<{POST_SNAPBACK}>


I'll do some attempts to fix the PS/2 devices once I get home from school. I am pretty sure I executed the commands in SU mode.
This morning I tried to make a document with the necessary terminal commands, and put that with the zip file containing the kext, and making an ISO of it. I then used the ISO as a CD-ROM-drive in VMware, brought up a terminal, opened the text document, copied the commands from the document, pasted in terminal, but that's where I get stuck. I have no idea of how to actually "enter" the stuff without my enter key ;)

My system consists of the following:
AMD Athlon64 3200+ (S754)
1024 MB Corsair Value Select PC3200
MSI K8N Neo Platinum Edition (nForce 250Gb chipset)
Hercules 9800 Pro

That's the relevant stuff :)

#19
Wingen

Wingen

    InsanelyMac Protégé

  • Members
  • Pip
  • 32 posts
  • Gender:Male
  • Location:Sweden
Just saw something in verbose mode.
KB: ApplePS2Keyboard: Unexpected acknowledge from PS/2 controller.

Huh?

#20
babaev

babaev

    InsanelyMac Protégé

  • Members
  • Pip
  • 44 posts

Just saw something in verbose mode.

KB: ApplePS2Keyboard: Unexpected acknowledge from PS/2 controller.

Huh?

<{POST_SNAPBACK}>


It's ok. I'll rebuild driver on the weekend, insert normal dmesg output (to verbose mode) and, maybe, create more accurate ps/2 keyboard initialization.





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