lg-laptop.rst 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. .. SPDX-License-Identifier: GPL-2.0+
  2. LG Gram laptop extra features
  3. =============================
  4. By Matan Ziv-Av <matan@svgalib.org>
  5. Hotkeys
  6. -------
  7. The following FN keys are ignored by the kernel without this driver:
  8. - FN-F1 (LG control panel) - Generates F15
  9. - FN-F5 (Touchpad toggle) - Generates F21
  10. - FN-F6 (Airplane mode) - Generates RFKILL
  11. - FN-F9 (Reader mode) - Generates F14
  12. The rest of the FN keys work without a need for a special driver.
  13. Reader mode
  14. -----------
  15. Writing 0/1 to /sys/devices/platform/lg-laptop/reader_mode disables/enables
  16. reader mode. In this mode the screen colors change (blue color reduced),
  17. and the reader mode indicator LED (on F9 key) turns on.
  18. FN Lock
  19. -------
  20. Writing 0/1 to /sys/devices/platform/lg-laptop/fn_lock disables/enables
  21. FN lock.
  22. Battery care limit
  23. ------------------
  24. Writing 80/100 to /sys/class/power_supply/CMB0/charge_control_end_threshold
  25. sets the maximum capacity to charge the battery. Limiting the charge
  26. reduces battery capacity loss over time.
  27. This value is reset to 100 when the kernel boots.
  28. Fan mode
  29. --------
  30. Writing 0/1/2 to /sys/devices/platform/lg-laptop/fan_mode sets fan mode to
  31. Optimal/Silent/Performance respectively.
  32. USB charge
  33. ----------
  34. Writing 0/1 to /sys/devices/platform/lg-laptop/usb_charge disables/enables
  35. charging another device from the USB port while the device is turned off.
  36. This value is reset to 0 when the kernel boots.
  37. LEDs
  38. ~~~~
  39. The are two LED devices supported by the driver:
  40. Keyboard backlight
  41. ------------------
  42. A led device named kbd_led controls the keyboard backlight. There are three
  43. lighting level: off (0), low (127) and high (255).
  44. The keyboard backlight is also controlled by the key combination FN-F8
  45. which cycles through those levels.
  46. Touchpad indicator LED
  47. ----------------------
  48. On the F5 key. Controlled by led device names tpad_led.