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
Process Fn+Esc for switching between hotkey and Fn priority mode #422
Comments
@krystean hello. What you ask is called FN-Lock :) #112 It's not possible to bind it to FN+Esc (as that combination simply doesn't produce any code at all). But I might (in future) look into adding this setting under Extra. Main problem for now - is that not only asus, but windows intercepts some keys (like FN+F1), so app doesn't get notified about them yet. |
Ah, I see. Thanks! |
@krystean you can try FN+lock in https://github.com/seerge/g-helper/releases/tag/v0.74 |
@seerge Thanks! From here on:
Here are some notes from my testing on model T1 GHelper not running i.e. quit and not in
T2 GHelper running i.e. on the System Tray and in Task Manager:
T3 Asus Optimization service started briefly and then stopped while GHelper is running:
What's expected while GHelper is running:
Is GHelper able to make Thanks again! |
@krystean currently F1-F12 are binded by g-helper in a way they are laid out on asus rog laptops (that don't support any fn+lock in general at all). Given amount of differences that you have on your vivobook, i don't think the way it's done currently will fit your needs at all. Does your laptop in general has some "native" fn+lock ? (i.e. when you run asus software / etc ) ? |
@krystean can you try to run in poweshell as admin following command and see if it makes any difference?
|
@seerge Hello.
Yes, it does. When ASUS Optimization is running, in the MyASUS app I can choose either
I ran it and it works! Changing the value of |
@krystean I have found 0x00100023 in linux kernel sources, it was marked as "FNLOCK". It has no effect on ROG/TUF laptops (so i had to literally program whole thing from scratch) but I thought it worth a shot. Then I can make that some keybinding will trigger this command. I just don't know if FN+F triggers any code. Can you press FN+F with G-helper running and post a log from %appdata%/g-helper here ? |
@seerge That's awesome! I was curious about the command and found this from one of the references in a gist: https://codebrowser.dev/linux/linux/include/linux/platform_data/x86/asus-wmi.h.html
Should I enable the Fn Lock feature while doing this? |
@krystean no, i just want to see if FN+F that you want actually generate some key code (it will appear in log), if it doesn't - it's not possible to do a binding, and you need to find another key combination that does it. |
@krystean try this build FN+Esc should toggle FN lock (also checkbox under extra should do same) (assuming fn+esc triggers event # 78) |
@seerge This works! Thank you very much! A small problem though: In GHelper can maybe:
FunctionKeyLock.value == 0 equals Control_status=0 equals feature enabled equals hotkeys working |
I don't want to touch customization.ini :) as it's config for other app. As for g-helper itself I have swapped 0 with 1 for |
Ah, yeah that makes sense lol I thought GHelper was using the file for tracking the charge limit because it's changing the value there too. I looked and GHelper's
Working great and it automatically switches the feature on and off! Thanks a ton! A nice-to-have but minor UI thing would be updating the check as the switching is done. On my end, this Issue has been completed. Some hotkeys do not work like the F6 (can't get it to work too using the command I learned from you lol) but I think they're a separate issue. PS |
@seerge Thanks! |
With v0.65, G-Helper can process hotkeys. On some models, Fn+Esc switches between hotkey and Fn priority mode. On Fn priority mode, an LED on the Fn key turns on and you can use the Fn keys normally. https://www.asus.com/us/support/FAQ/1038312/
Is it possible to add this key combo? Also, is it possible to set custom hotkeys for setting things like F4 for volume down? Thanks!
The text was updated successfully, but these errors were encountered: