^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) .. SPDX-License-Identifier: GPL-2.0+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) LG Gram laptop extra features
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) =============================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) By Matan Ziv-Av <matan@svgalib.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) Hotkeys
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) -------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) The following FN keys are ignored by the kernel without this driver:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) - FN-F1 (LG control panel) - Generates F15
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) - FN-F5 (Touchpad toggle) - Generates F13
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) - FN-F6 (Airplane mode) - Generates RFKILL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) - FN-F8 (Keyboard backlight) - Generates F16.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) This key also changes keyboard backlight mode.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) - FN-F9 (Reader mode) - Generates F14
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) The rest of the FN keys work without a need for a special driver.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) Reader mode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) -----------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) Writing 0/1 to /sys/devices/platform/lg-laptop/reader_mode disables/enables
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) reader mode. In this mode the screen colors change (blue color reduced),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) and the reader mode indicator LED (on F9 key) turns on.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) FN Lock
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) -------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) Writing 0/1 to /sys/devices/platform/lg-laptop/fn_lock disables/enables
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) FN lock.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) Battery care limit
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) ------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) Writing 80/100 to /sys/devices/platform/lg-laptop/battery_care_limit
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) sets the maximum capacity to charge the battery. Limiting the charge
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) reduces battery capacity loss over time.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) This value is reset to 100 when the kernel boots.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) Fan mode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) --------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) Writing 1/0 to /sys/devices/platform/lg-laptop/fan_mode disables/enables
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) the fan silent mode.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) USB charge
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) ----------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) Writing 0/1 to /sys/devices/platform/lg-laptop/usb_charge disables/enables
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) charging another device from the USB port while the device is turned off.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) This value is reset to 0 when the kernel boots.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) LEDs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) ~~~~
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) The are two LED devices supported by the driver:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) Keyboard backlight
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) ------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) A led device named kbd_led controls the keyboard backlight. There are three
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) lighting level: off (0), low (127) and high (255).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) The keyboard backlight is also controlled by the key combination FN-F8
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) which cycles through those levels.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) Touchpad indicator LED
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) ----------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) On the F5 key. Controlled by led device names tpad_led.