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