1 .. SPDX-License-Identifier: GPL-2.0+
4 LG Gram laptop extra features
5 =============================
7 By Matan Ziv-Av <matan@svgalib.org>
13 The following FN keys are ignored by the kernel without this driver:
15 - FN-F1 (LG control panel) - Generates F15
16 - FN-F5 (Touchpad toggle) - Generates F21
17 - FN-F6 (Airplane mode) - Generates RFKILL
18 - FN-F9 (Reader mode) - Generates F14
20 The rest of the FN keys work without a need for a special driver.
26 Writing 0/1 to /sys/devices/platform/lg-laptop/reader_mode disables/enables
27 reader mode. In this mode the screen colors change (blue color reduced),
28 and the reader mode indicator LED (on F9 key) turns on.
34 Writing 0/1 to /sys/devices/platform/lg-laptop/fn_lock disables/enables
41 Writing 80/100 to /sys/class/power_supply/CMB0/charge_control_end_threshold
42 sets the maximum capacity to charge the battery. Limiting the charge
43 reduces battery capacity loss over time.
45 This value is reset to 100 when the kernel boots.
51 Writing 1/0 to /sys/devices/platform/lg-laptop/fan_mode disables/enables
58 Writing 0/1 to /sys/devices/platform/lg-laptop/usb_charge disables/enables
59 charging another device from the USB port while the device is turned off.
61 This value is reset to 0 when the kernel boots.
67 The are two LED devices supported by the driver:
72 A led device named kbd_led controls the keyboard backlight. There are three
73 lighting level: off (0), low (127) and high (255).
75 The keyboard backlight is also controlled by the key combination FN-F8
76 which cycles through those levels.
79 Touchpad indicator LED
80 ----------------------
82 On the F5 key. Controlled by led device names tpad_led.