On LG gram 14'' 2019, model 14T990-U.AAS8U1 kernel 5.3-rc7 from https://www.kernel.org/doc/html/latest/admin-guide/laptops/lg-laptop.html checked action of FN actions with `stdbuf -oL libinput debug-events` > FN-F1 (LG control panel) - Generates F15 no event is generated > FN-F5 (Touchpad toggle) - Generates F13 generates event, not sure it's the right one ``` -event4 KEYBOARD_KEY +4.03s *** (-1) pressed event4 KEYBOARD_KEY +4.03s KEY_LEFTMETA (125) pressed event4 KEYBOARD_KEY +4.03s KEY_ZENKAKUHANKAKU (85) pressed event4 KEYBOARD_KEY +4.04s KEY_ZENKAKUHANKAKU (85) released event4 KEYBOARD_KEY +4.05s KEY_LEFTMETA (125) released event4 KEYBOARD_KEY +4.05s *** (-1) released ``` led near the FN button turns on, touhpad light doesn't > FN-F8 (Keyboard backlight) - Generates F16. This key also changes keyboard > backlight mode. no event is generated > FN-F9 (Reader mode) - Generates F14 no event is generated FN F10,F11,F12 (mute, volume down, volume up) generates no event at all. In kernel 5.2 they generated a stream of events (i.e. muting/un-muting continuously) until another FN key is pressed
additional features: trying to change values of some config using root and "echo value > file" > FN Lock > Writing 0/1 to /sys/devices/platform/lg-laptop/fn_lock disables/enables FN > lock. value does not change > Battery care limit > Writing 80/100 to /sys/devices/platform/lg-laptop/battery_care_limit sets the > maximum capacity to charge the battery. Limiting the charge reduces battery > capacity loss over time.This value is reset to 100 when the kernel boots. value is 0 and does not change > Keyboard backlight > A led device named kbd_led controls the keyboard backlight. There are three > lighting level: off (0), low (127) and high (255). value does not change
I looked for the maintainer in https://github.com/torvalds/linux/blob/a2953204b576ea3ba4afd07b917811d50fc49778/MAINTAINERS#L9210 M: Matan Ziv-Av <matan@svgalib.org> L: platform-driver-x86@vger.kernel.org but it seems there is no such a user/email here
I reached out the maintainer above via email. After some info exchange and patch test he did not reply anymore
LG Control Center on Windows now has 3 fan modes. "Silent", "Normal" and "Performance". Linux has just two, "Silent" and "Normal". It would be really nice to have "Performance" mode too. I'd like to add feature myself, but I barely understand how ACPI works. I think that calling lg_wmab(189, WM_SET, value); // from (/drivers/platform/x86/lg-laptop.c) would toggle performance mode, but I am not sure, nor I have tried it.