Subscribe to our RSS news feed
AAPL 199.94 (-1.25)

10 Pages V   1 2 3 > »   
Reply to this topic Start new topic
Hacked PS/2 Driver :), My native notebook keyboard works now
*
  • Group: Members
  • Posts: 44
  • Joined: 16-August 05
  • Member No.: 6,480
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.63K ) Number of downloads: 12350

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).
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 19
  • Joined: 24-August 05
  • Member No.: 7,673
if it works for one PS/2 keyboard, it will work for all of them.
PM Profile Card
Go to the top of the page
+ Quote Post
***
  • Group: Members
  • Posts: 121
  • Joined: 22-July 05
  • From: USA
  • Member No.: 669
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.
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 5
  • Joined: 31-August 05
  • Member No.: 8,599
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
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 44
  • Joined: 16-August 05
  • Member No.: 6,480
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.
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 4
  • Joined: 20-August 05
  • From: /dev/null
  • Member No.: 7,090
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 biggrin.gif
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 5
  • Joined: 31-August 05
  • Member No.: 8,599
Best of luck, your work is very much appreciated smile.gif
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 44
  • Joined: 16-August 05
  • Member No.: 6,480
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.
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 4
  • Joined: 20-August 05
  • From: /dev/null
  • Member No.: 7,090
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...
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 44
  • Joined: 16-August 05
  • Member No.: 6,480
Ok, here is my patched PCCard driver Attached File  IOPCCardFamily.kext.zip ( 343.07K ) Number of downloads: 855
. If it does not work, it is not very hard to add another (similar) chipset...

Installation is like keyboard driver, only names differ.
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 32
  • Joined: 6-August 05
  • From: Sweden
  • Member No.: 3,654
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?
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 44
  • Joined: 16-August 05
  • Member No.: 6,480
try booting -v, you'll see, where booting is stopped - write it here, we'll try to help.
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 32
  • Joined: 6-August 05
  • From: Sweden
  • Member No.: 3,654
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.
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 44
  • Joined: 16-August 05
  • Member No.: 6,480
QUOTE (Wingen @ Sep 1 2005, 02:10 AM)
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.
*


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.
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 32
  • Joined: 6-August 05
  • From: Sweden
  • Member No.: 3,654
QUOTE (babaev @ Aug 31 2005, 11:16 PM)
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.
*


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:

CODE
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 sad.gif
PM Profile Card
Go to the top of the page
+ Quote Post
**
  • Group: Members
  • Posts: 75
  • Joined: 26-August 05
  • Member No.: 7,831
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.
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 44
  • Joined: 16-August 05
  • Member No.: 6,480
QUOTE (Wingen @ Sep 1 2005, 08:30 AM)
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?
*


Did you execute these commands in superuser mode?

Well, maybe, this patch isn't for you. What is your system configuration?
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 32
  • Joined: 6-August 05
  • From: Sweden
  • Member No.: 3,654
QUOTE (babaev @ Sep 1 2005, 09:22 AM)
Did you execute these commands in superuser mode?

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


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 laugh.gif

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 smile.gif
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 32
  • Joined: 6-August 05
  • From: Sweden
  • Member No.: 3,654
Just saw something in verbose mode.
CODE
KB: ApplePS2Keyboard: Unexpected acknowledge from PS/2 controller.


Huh?
PM Profile Card
Go to the top of the page
+ Quote Post
*
  • Group: Members
  • Posts: 44
  • Joined: 16-August 05
  • Member No.: 6,480
QUOTE (Wingen @ Sep 1 2005, 03:16 PM)
Just saw something in verbose mode.
CODE
KB: ApplePS2Keyboard: Unexpected acknowledge from PS/2 controller.


Huh?
*


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.
PM Profile Card
Go to the top of the page
+ Quote Post
10 Pages V   1 2 3 > » 
Reply to this topic Start new topic

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version Time is now: 21st November 2009 - 12:19 PM