Jump to content

Fn HotKey and ALS sensor driver for Asus Notebooks


EMlyDinEsH

Recommended Posts

Even more progress. I got Fn + F2 working for my Zenbook, all you have to do this:

 

The wireless card is stopped at a low level (OSX does not detect any changes).

(Note: I am using an edited kext for this ... I am sure Dinesh would be able to add to the kext).

            Method (WIF1, 0, NotSerialized)
            {
                If (ATKP)
                {
                    OWLD (One)
                    OBTD (One)
                }
            }

            Method (WIF2, 0, NotSerialized)
            {
                If (ATKP)
                {
                    OWLD (Zero)
                    OBTD (Zero)
                }
            }

If you have a light sensor, take a look at the _ALI DSDT method.

 

Also qerty12, thank Dinesh for the battery edits. Please do not thank me for it.

 

Edit:

 

I found a good github project that details the ambient light sensor and how to use it.

 

https://github.com/victorenator/als#readme

 

I am currently debugging the outputs produced by the appropriate DSDT methods.

 

These methods OWLD and OBTD does the job of turning off in WIFI and bluetooth for asus cards which comes with the notebook but i doubted for replaced card whether it will work or not. I'll try to take a look on this and see if these are working for replaced card, if it does then i will include in my kext with a dsdt patch.

Link to comment
Share on other sites

 

I managed to get backlight for keyboard working on my Zenbook (on newer AppleACPI) by changing the SKBL DSDT method to:

            Method (SKBL, 1, NotSerialized)
            {
                Store (Arg0, Local1)
                Store (DerefOf (Index (PWKB, Local1)), Local0)
                ^^PCI0.LPCB.EC0.WRAM (0x044B, Local0)
                Return (One)
            }

 

Nice, i'll edit my post with this. Thanks

Link to comment
Share on other sites

It not working Brightness Animation on asus p43sj(also k43 mainboard ),when I find pnp in my dsdt ,there  has more other ID there  ,and would I do any edit to this dsdt?THANK YOU for help me

 

Send me your dsdt and i'll take a look at that.

Link to comment
Share on other sites

Fn + f7 this option only turnoff backlight off screen but screen is on :( please fix this

 

This option is not controlled by my driver and this will work only if its implemented by asus in bios otherwise i'll have to try soft code. But, i did not get your issue clearly so explain a little better. Does it turns off/on backlight? 

Link to comment
Share on other sites

WIth the new Fn key kext (with ALS support), my Fn keys seems to be delayed.

 

For example, I press 2x voulme decrease and press 2x brightness increase. Instead of the volume being decreased when I press Fn+F10, the volume decreases when I press Fn+F6. It seems to be some kind of buffer. I do not have this issue in the older kexts.

 

Also, if possible, can you also please add F7 (screen off) support?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...