Mac OS X on x86 Hardware 2008–2024 Technical Archive
InfiniteMac OSx86 › Leopard 10.5 › Could DSDT solve this annoying issue
9,737 reads · 2009-05-29 – 2009-06-02
Report Leopard 10.5 DSDT

Could DSDT solve this annoying issue

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…

Primary Author
@uman Published 2009-05-29
Collection
Leopard 10.5
Archival Footprint
9,737 historical reads · 4 curated field notes (from 9 dispatches) · 2009-05-29 – 2009-06-02
Credited Voices (3)
@uman (5)@thorazine74 (3)@SportsGuy

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.

Author Updates & Technical Revisions

Follow-up dispatches by @uman

Author Update #1 @uman 2009-05-30 ↳ Re: @thorazine74
@thorazine74I 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.

Author Update #2 @uman 2009-05-30

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

Author Update #3 @uman 2009-05-31 ↳ Re: @thorazine74

SportsGuy → -- 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.

@thorazine74You 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.

@thorazine74You 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.…

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.

Author Update #4 @uman 2009-06-02 ↳ Re: @thorazine74
@thorazine74Well 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…

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?

Synthesized Community Field Notes

4 technical responses curated from 9 original dispatches

Field Note #1 @thorazine74 2009-05-30

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?

Field Note #2 @SportsGuy 2009-05-31

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

Field Note #3 @thorazine74 2009-05-31

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..).

Field Note #4 @thorazine74 2009-05-31

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)?

Sources & Contributor Provenance (3 credited usernames · Thread #3015)
UsernameDossier ContributionDispatchesActive Window
@umanPrimary Author52009-05-29 → 2009-06-02
@thorazine74Core Contributor32009-05-30 → 2009-05-31
@SportsGuyContributor12009-05-31