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

Detect Fn + 1 #24

Open
ariselseng opened this issue Apr 7, 2019 · 5 comments
Open

Detect Fn + 1 #24

ariselseng opened this issue Apr 7, 2019 · 5 comments

Comments

@ariselseng
Copy link

Hello,
I want to detect and catch keypress Fn + 1 in my application: https://github.com/cowai/pwm-better-fan-control
Is there any way except checking for pwm1 == 255? I also notice that pwm1_enable stays the same when pressing the hotkey. It would be nice for instance pressing fn + 1 made pwm1_enable be 0 or something.

@jackpot51
Copy link
Member

It should be sending a WMI event, I do not know which one but you could add debugging to find out.

@ariselseng
Copy link
Author

@jackpot51
I can confirm that it does.
0x8F is ON and 0x70 is back to auto.

Would you accept a PR for this to throw a keycode? Do you have any suggestions for what key that should be?

@jackpot51
Copy link
Member

I do not recommend that a keypress is generated from this driver for those two conditions, as there are no compatible keycodes.

@ariselseng
Copy link
Author

@jackpot51 Yes, doesn't feel right. What would you recommend doing instead? Any ideas?

@ariselseng
Copy link
Author

This seems interesting: https://lore.kernel.org/patchwork/patch/843457/

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

2 participants