← Documents Documentation/admin-guide/laptops/lg-laptop.rst GitHub 원문 ↗

Linux 6.18.37 · Administration / Laptops

LG Gram laptop extra features

LG Gram의 Fn hotkey, reader mode, battery charge limit, fan·USB charge와 keyboard·touchpad LED를 설명합니다.

Source pathDocumentation/admin-guide/laptops/lg-laptop.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

Hotkey

lg-laptop.rst:1-22

driver가 보완하는 Fn key event를 정리합니다.

Platform control

lg-laptop.rst:23-63

reader mode, FN lock, battery limit, fan과 USB charge sysfs를 설명합니다.

LED

lg-laptop.rst:64-82

keyboard backlight와 touchpad LED level을 안내합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 .. SPDX-License-Identifier: GPL-2.0+
2
3
4 LG Gram laptop extra features
5 =============================
6
7 By Matan Ziv-Av <matan@svgalib.org>
8
9
10 Hotkeys
11 -------
12
13 The following FN keys are ignored by the kernel without this driver:
14
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
19
20 The rest of the FN keys work without a need for a special driver.
21
22
23 Reader mode
24 -----------
25
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.
29
30
31 FN Lock
32 -------
33
34 Writing 0/1 to /sys/devices/platform/lg-laptop/fn_lock disables/enables
35 FN lock.
36
37
38 Battery care limit
39 ------------------
40
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.
44
45 This value is reset to 100 when the kernel boots.
46
47
48 Fan mode
49 --------
50
51 Writing 0/1/2 to /sys/devices/platform/lg-laptop/fan_mode sets fan mode to
52 Optimal/Silent/Performance respectively.
53
54
55 USB charge
56 ----------
57
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.
60
61 This value is reset to 0 when the kernel boots.
62
63
64 LEDs
65 ~~~~
66
67 The are two LED devices supported by the driver:
68
69 Keyboard backlight
70 ------------------
71
72 A led device named kbd_led controls the keyboard backlight. There are three
73 lighting level: off (0), low (127) and high (255).
74
75 The keyboard backlight is also controlled by the key combination FN-F8
76 which cycles through those levels.
77
78
79 Touchpad indicator LED
80 ----------------------
81
82 On the F5 key. Controlled by led device names tpad_led.
83

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

LG Gram hotkey 지원

1-22

SPDX-License-Identifier: `GPL-2.0+`

작성자: Matan Ziv-Av <matan@svgalib.org>

이 driver가 없으면 kernel이 무시하는 Fn key와 driver가 생성하는 event는 다음과 같습니다.

key기능생성 event
FN-F1LG control panelF15
FN-F5Touchpad toggleF21
FN-F6Airplane modeRFKILL
FN-F9Reader modeF14

나머지 Fn key는 특수 driver 없이 동작합니다.

Reader mode, FN Lock과 battery limit

23-47

Reader mode

`/sys/devices/platform/lg-laptop/reader_mode`에 `0` 또는 `1`을 쓰면 reader mode를 disable 또는 enable합니다. 이 mode에서는 screen의 blue 성분이 줄고 F9 key의 reader-mode indicator LED가 켜집니다.

FN Lock

`/sys/devices/platform/lg-laptop/fn_lock`에 `0` 또는 `1`을 쓰면 FN lock을 disable 또는 enable합니다.

Battery care limit

`/sys/class/power_supply/CMB0/charge_control_end_threshold`에 `80` 또는 `100`을 쓰면 battery의 최대 충전 용량을 정합니다. 충전을 제한하면 시간에 따른 battery 용량 감소를 줄일 수 있습니다. Kernel이 부팅될 때 이 값은 100으로 reset됩니다.

Fan mode와 USB charge

48-63

`/sys/devices/platform/lg-laptop/fan_mode`에 `0`, `1`, `2`를 쓰면 fan mode를 각각 Optimal, Silent, Performance로 설정합니다.

`/sys/devices/platform/lg-laptop/usb_charge`에 `0` 또는 `1`을 쓰면 laptop이 꺼져 있을 때 USB port로 다른 device를 충전하는 기능을 disable 또는 enable합니다. Kernel이 부팅될 때 이 값은 0으로 reset됩니다.

Keyboard와 touchpad LED

64-82

driver는 LED device 두 개를 지원합니다.

`kbd_led`는 keyboard backlight를 제어합니다. lighting level은 off(`0`), low(`127`), high(`255`) 세 단계입니다. `FN-F8` key 조합으로도 이 level을 순환할 수 있습니다.

F5 key에 있는 touchpad indicator LED는 `tpad_led` LED device가 제어합니다.