-
Notifications
You must be signed in to change notification settings - Fork 8
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
Added screen toggle (FN + F6) and touchpad toggle (FN + F10) #13
base: master
Are you sure you want to change the base?
Conversation
Thank you for your work. Adding info related to my Aero 17 XE5.
Seems like my touchpad has different device ID. It works when I press Fn+F10. I'm able to enable/disable touchpad. So in fact need to find correct way to specify different device ID for different laptop models... Or need to try different devices. About enabling/disabling backlight. Well, it switches something. At least no fatal errors and the function Cannot make a promise, but if I will have more time I can do more careful investigation. Just leaving what I know already here. |
hey, thanks for the info ! |
…ded) Also moved device constants into the header file
Added support for multiple touchpad devices instead of a single constant ! If anyone notices another laptop model has different constants, you'll have to add them in gigabyte_kbd_touchpad_device_identifiers inside gigabytekbd_driver.h, and stuff should work just fine ! (hopefully). As long as this branch doesn't get merged with main, feel free to open a PR on my fork if you have any improvements ! |
Hey @Dathuss
So I have About idea of changing brightness to zero. I think it won't work for me. Now I set brighness using
Fn+F6 works strange even on Windows. It performs system logout. Screen is black in this case, but I think this is something what Windows does by itself. But this is just a theory. A little question about touchpad switch on/off. Is it possible to generate |
hey, |
I use ArchLinux. Probably you're right since I did not do anything related to firmware yet :) Probably need more experiments on my side. |
Hey ! I added stuff to make the FN + F6 (to toggle the screen on and off) and FN + F10 (to toggle the touchpad on and off) keys work !
For the screen, I used the linux/backlight.h functions to toggle it on and off
As for the touchpad, it's a bit trickier. I get the touchpad acpi device and bind/unbind its driver when toggled. Haven't found a better solution for that.
I tried to make the code as concise as possible so that you can quickly understand how it works ! (i hope !)
All of this was tested on the 15P model, so I hope it will work on other models as well ! (there's no reason it wouldn't but we never know !)