PDA

View Full Version : Could DSDT solve this annoying issue?


uman
05-29-2009, 05:06 PM
I have an annoying issue that I think is solvable in the DSDT, but I need to first understand what's going on, before trying various fixes.

When my Gateway resumes from sleep, it acts like something is holding down the up arrow key. So if the desktop/finder is displayed, icons flash as they are highlighted one by one. If an app is up and I click the menubar, menubar items are activated one by one. Or text will scroll if in an editor app. Or it will just beep at me, if nothing is selected.

If I touch *any* key, the problem goes away. So, like a trained monkey, I hit ESCAPE upon resume from sleep. It doesn't matter if it's Clamshell sleep, or regular sleep.

My best guess is that the USB/PS2 device may not be notified properly that was woken from sleep. But if that's true, why would a keypress solve the problem?

Anyone have a clue? I'd like to try fixing this in the DSDT.

Thanks.

thorazine74
05-30-2009, 10:15 AM
I dont know if that can be fixed with the DSDT but maybe you can also do it using a different set of PS/2 kexts, are you using VoodooPS2 or ApplePS2?

uman
05-30-2009, 02:39 PM
I dont know if that can be fixed with the DSDT but maybe you can also do it using a different set of PS/2 kexts, are you using VoodooPS2 or ApplePS2?

This is embarrasing but I don't remember. When I was using iATKOS, I remember needing ACPIPS2Nub.kext (said no to stock ACPIPlatform), but after installing iPC, I don't remember what I chose.

I suspect that I am using ApplePS2 (although this should be a builtin USB keyboard-- maybe I need to revisit my bios options on Legacy USB...).

Anyway, I'll give the VoodooPS2 a try. Thanks.

uman
05-30-2009, 11:10 PM
No dice on the VoodooPS2Controller. And that kext has its issues as you can see in the Voodoo labs forum.

I think I'll try patching in some changes from a MacBook Pro DSDT file around USB notification in the _WAK method...

I noticed that other laptops have this issue-- some Dell users complained about it on insanelymac. No fix yet :(

SportsGuy
05-31-2009, 02:22 AM
I can't my DSDT to work either

and I have a dell... I can't boot from chameleon, I have to use my install disk, and use one cpu

thorazine74
05-31-2009, 10:36 AM
You didnt get VoodooPS2 to work or you get the same stuck key side effect?
You need either ACPIPS2Nub+ApplePS2Controller OR VoodooPS2Controller, you cant have both installed at the same time.
The ACPIPS2Nub needs a stock ACPIPlatform (vanilla), also you need a version-independent ACPIPS2Nub (one that works with any ACPIPlatform, olders ones needed to be modded for each different ACPIPlatform version: i.e. you updated ACPIPlatform, you lost PS2 Devices...). Look for the one made by Chunnan/Eureka, theres a thread on insanelymac.; there is also alt kexts for situations like USB Keyboard+PS/2 Mouse, if thats what you have.
In any case a clean system (using a single set of PS/2 kexts, without mixing it all together) is advisable.
Also at least in my system Legacy USB Mouse & Keyboard BIOS otions has an effect on PS/2 support (for some unknown reason..).

uman
05-31-2009, 12:46 PM
SportsGuy (http://www.infinitemac.com/member.php?u=6347) -- I have a fixed/patched DSDT working. I just did one fix, the fix posted to enable the sleep/restart/shutdown popup when you hit the power button. That's encouraged me to futz with the DSDT more.

Detail your problem some more-- I might be able to help.

You didnt get VoodooPS2 to work or you get the same stuck key side effect?

Both. VodooPS2 almost worked-- but I lost side-scroll, and it crashed once. I was planning on hacking the code in Xcode, but restrained myself-- too many other things to do.

You need either ACPIPS2Nub+ApplePS2Controller OR VoodooPS2Controller, you cant have both installed at the same time.
The ACPIPS2Nub needs a stock ACPIPlatform (vanilla), also you need a version-independent ACPIPS2Nub (one that works with any ACPIPlatform, olders ones needed to be modded for each different ACPIPlatform version: i.e. you updated ACPIPlatform, you lost PS2 Devices...). Look for the one made by Chunnan/Eureka, theres a thread on insanelymac.; there is also alt kexts for situations like USB Keyboard+PS/2 Mouse, if thats what you have.
In any case a clean system (using a single set of PS/2 kexts, without mixing it all together) is advisable.
Also at least in my system Legacy USB Mouse & Keyboard BIOS otions has an effect on PS/2 support (for some unknown reason..).

Yeah, I deleted both ACPIPS2Nub and ApplePS2Controller. Like I said, it worked, but not well enough for me to keep. Most annoying side-effect was losing the ~ key. Man did I hate typing /Users/... instead of ~ !

I also have Legacy USB turned off in the bios.

I'm going to try some of candycane's DSDT hacks from the MacBook Pro DSDT applied to this one to fix USB/EHCI. Maybe that will help. If I feel brave, I may try the AppleHDA DSDT fixes or VoodooHDA too.

thorazine74
05-31-2009, 01:26 PM
Well if they fix the stuck key problems why dump them? Maybe the new problems can be fixed somehow (lost ~ key is caused by using wrong kb layout maybe?), Voodoo trackpad scrolling I think is a current limitation, you can check on voodoo forum for more specific help.
But I doubt you will be able to fix that with Macbook's DSDT, arent Macbooks kb & trackpad USB or something (not PS/2)?

uman
06-02-2009, 01:33 PM
Well if they fix the stuck key problems why dump them? Maybe the new problems can be fixed somehow (lost ~ key is caused by using wrong kb layout maybe?), Voodoo trackpad scrolling I think is a current limitation, you can check on voodoo forum for more specific help.
But I doubt you will be able to fix that with Macbook's DSDT, arent Macbooks kb & trackpad USB or something (not PS/2)?

I guess I wasn't clear. The VodooPS2Controller had the same problem. But I have found a fix. I posted it in the voodoolabs forum. It was found by kenp in the Dell Mini forums. Basically, the Apple code in ApplePS2Keyboard.cpp has a bug, in that it doesn't deregister/re-register an interrupt handler.

If I decide to take the time, I may compile a new ApplePS2Keyboard.cpp and try it out to make sure it fixes things.

The other problem I had with VoodooPS2 is that I lost side-scroll.

BTW, I noticed that you're using VoodooHDA. What sound chip do you have? Are you happy with it?