요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
Platform control
lg-laptop.rst:23-63reader mode, FN lock, battery limit, fan과 USB charge sysfs를 설명합니다.
LED
lg-laptop.rst:64-82keyboard backlight와 touchpad LED level을 안내합니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
.. SPDX-License-Identifier: GPL-2.0+
LG Gram laptop extra features
=============================
By Matan Ziv-Av <[email protected]>
Hotkeys
-------
The following FN keys are ignored by the kernel without this driver:
- FN-F1 (LG control panel) - Generates F15
- FN-F5 (Touchpad toggle) - Generates F21
- FN-F6 (Airplane mode) - Generates RFKILL
- FN-F9 (Reader mode) - Generates F14
The rest of the FN keys work without a need for a special driver.
Reader mode
-----------
Writing 0/1 to /sys/devices/platform/lg-laptop/reader_mode disables/enables
reader mode. In this mode the screen colors change (blue color reduced),
and the reader mode indicator LED (on F9 key) turns on.
FN Lock
-------
Writing 0/1 to /sys/devices/platform/lg-laptop/fn_lock disables/enables
FN lock.
Battery care limit
------------------
Writing 80/100 to /sys/class/power_supply/CMB0/charge_control_end_threshold
sets the maximum capacity to charge the battery. Limiting the charge
reduces battery capacity loss over time.
This value is reset to 100 when the kernel boots.
Fan mode
--------
Writing 0/1/2 to /sys/devices/platform/lg-laptop/fan_mode sets fan mode to
Optimal/Silent/Performance respectively.
USB charge
----------
Writing 0/1 to /sys/devices/platform/lg-laptop/usb_charge disables/enables
charging another device from the USB port while the device is turned off.
This value is reset to 0 when the kernel boots.
LEDs
~~~~
The are two LED devices supported by the driver:
Keyboard backlight
------------------
A led device named kbd_led controls the keyboard backlight. There are three
lighting level: off (0), low (127) and high (255).
The keyboard backlight is also controlled by the key combination FN-F8
which cycles through those levels.
Touchpad indicator LED
----------------------
On the F5 key. Controlled by led device names tpad_led.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
LG Gram hotkey 지원
1-22SPDX-License-Identifier: `GPL-2.0+`
작성자: Matan Ziv-Av <[email protected]>
이 driver가 없으면 kernel이 무시하는 Fn key와 driver가 생성하는 event는 다음과 같습니다.
| key | 기능 | 생성 event |
|---|---|---|
| FN-F1 | LG control panel | F15 |
| FN-F5 | Touchpad toggle | F21 |
| FN-F6 | Airplane mode | RFKILL |
| FN-F9 | Reader mode | F14 |
나머지 Fn key는 특수 driver 없이 동작합니다.
Reader mode, FN Lock과 battery limit
23-47Reader 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-82driver는 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가 제어합니다.
Hotkey
lg-laptop.rst:1-22driver가 보완하는 Fn key event를 정리합니다.