Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brightness key mapping #6

Open
kenthinson opened this issue Dec 15, 2016 · 6 comments
Open

Brightness key mapping #6

kenthinson opened this issue Dec 15, 2016 · 6 comments

Comments

@kenthinson
Copy link

Any way to change the keys that are bound to bigness to be something else then k and p?

@hendraone007
Copy link

hendraone007 commented Dec 23, 2016

You can using this patch (https://github.com/Bizzaro/x230-osx/blob/master/README.md):

_Q15 (Fn+F8) brightness down key

into method label _Q15 replace_content
begin
Notify(_SB.PCI0.LPC.KBD, 0x0205)\n
Notify(_SB.PCI0.LPC.KBD, 0x0285)\n
end;

_Q14 (Fn+F9) brightness up key

into method label _Q14 replace_content
begin
Notify(_SB.PCI0.LPC.KBD, 0x0206)\n
Notify(_SB.PCI0.LPC.KBD, 0x0286)\n
end;

I'm using maciASL with ACPI 6.1 and getting error. I was add backslash before _SB. So the patch looks like this:

_Q15 (Fn+F8) brightness down key

into method label _Q15 replace_content
begin
Notify(_SB.PCI0.LPC.KBD, 0x0205)\n
Notify(_SB.PCI0.LPC.KBD, 0x0285)\n
end;

_Q14 (Fn+F9) brightness up key

into method label _Q14 replace_content
begin
Notify(_SB.PCI0.LPC.KBD, 0x0206)\n
Notify(_SB.PCI0.LPC.KBD, 0x0286)\n
end;

screen shot 2016-12-18 at 7 06 10 pm _q14

@kenthinson
Copy link
Author

Sweet! working great :) are you going to integrate this into the repo?

@hendraone007
Copy link

How to integrate into the repo? Can you tell me how?

Did your X230 can sleep and shutdown perfectly? Would you try this: #7 ?

@kenthinson
Copy link
Author

@hendraone007 oh sorry thought you were the author of this repo for a sec. your zip does not download it's 404. But make sure you are using the patched DSDT that came in the repo from Bizzaro. Also set darkwake=8 in clover conf. I'm running Serria 12.2. Sleep works fine after that. If you want the power button to not blink after the computer wakes up from sleep use the DSDT I put in the pull request.

@hendraone007
Copy link

@kenthinson I was reupload clover folder. Would you try please.

@mgraham
Copy link

mgraham commented Jun 5, 2017

Works great! Thank you!

The backslashes don't show up in the code sections - I think it's a markdown thing. This is what I used:

Q15 (Fn+F8) brightness down key

into method label _Q15 replace_content
begin
Notify(\_SB.PCI0.LPC.KBD, 0x0205)\n
Notify(\_SB.PCI0.LPC.KBD, 0x0285)\n
end;

Q14 (Fn+F9) brightness up key

into method label _Q14 replace_content
begin
Notify(\_SB.PCI0.LPC.KBD, 0x0206)\n
Notify(\_SB.PCI0.LPC.KBD, 0x0286)\n
end;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants