Bug 204913 - LG gram 14'' laptop extra features
Summary: LG gram 14'' laptop extra features
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Platform_x86 (show other bugs)
Hardware: Intel Linux
: P1 normal
Assignee: platform_x86_64@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-19 05:25 UTC by alexgallotta
Modified: 2022-11-03 01:42 UTC (History)
2 users (show)

See Also:
Kernel Version: 5.3-rc7
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description alexgallotta 2019-09-19 05:25:38 UTC
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
Comment 1 alexgallotta 2019-09-19 05:33:13 UTC
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
Comment 2 alexgallotta 2019-09-29 00:06:26 UTC
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
Comment 3 alexgallotta 2020-03-15 05:24:10 UTC
I reached out the maintainer above via email.
After some info exchange and patch test he did not reply anymore
Comment 4 nicomu.net 2022-11-03 01:42:04 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.