Jump to content
EMlyDinEsH

Fn HotKey and ALS sensor driver for Asus Notebooks

Recommended Posts

Thank you very much , Love you worked on Asus K56CM

but i'm delete tow ")"  here fixed

    Method (_Q0E, 0, NotSerialized)
            {
                If (ATKP)
                {
                    ^^^^ATKD.IANE (0x20)
                }
               
            }
     
     
    Method (_Q0F, 0, NotSerialized)
            {
                If (ATKP)
                {
                    ^^^^ATKD.IANE (0x11)
                }
               
            }

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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

Can you please give credits to Rehabman? He was the one who showed me the generic fix.

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
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? 

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×