我花了很多時間斷斷續續地嘗試找到哪個/sys/devices
文件可以打開和關閉我的鍵盤燈。
據我所知,該模組dell_laptop
提供了/sys/class/leds/dell::kbd_backlight
路徑,但我的安裝中缺少路徑。據推測,某些東西沒有檢測到它受支持。
在我的戴爾筆記型電腦/Ubuntu 20.10 上,它應該是/sys/class/leds/dell::kbd_backlight/brightness
(名稱dell::kbd_backlight
)
模組已加載,但沒有對應的設備。
18:42:35 ❯ lsmod | grep dell
dell_laptop 28672 0
ledtrig_audio 16384 2 snd_hda_codec_generic,dell_laptop
dell_smm_hwmon 24576 0
dell_wmi 20480 0
dell_smbios 28672 2 dell_wmi,dell_laptop
dcdbas 20480 1 dell_smbios
dell_wmi_descriptor 20480 2 dell_wmi,dell_smbios
sparse_keymap 16384 1 dell_wmi
dell_smo8800 20480 0
dell_rbtn 20480 1
wmi 32768 4 dell_wmi,wmi_bmof,dell_smbios,dell_wmi_descriptor
video 49152 3 dell_wmi,dell_laptop,i915
瀏覽所有kdb|brightness
文件,沒有顯示任何實質內容,我嘗試了每個未知的文件,但沒有一個是鍵盤背光。
內核dmesg | grep -E 'dell|kbd|backlight'
沒有顯示任何有趣的內容。
這是我所擁有的路徑的列表..
17:15:55 ❯ find /sys/devices | grep -E 'kbd|brightness'
/sys/devices/platform/i8042/serio0/input/input4/input4::capslock/brightness
/sys/devices/platform/i8042/serio0/input/input4/input4::capslock/max_brightness
/sys/devices/platform/i8042/serio0/input/input4/input4::scrolllock/brightness
/sys/devices/platform/i8042/serio0/input/input4/input4::scrolllock/max_brightness
/sys/devices/platform/i8042/serio0/input/input4/input4::numlock/brightness
/sys/devices/platform/i8042/serio0/input/input4/input4::numlock/max_brightness
/sys/devices/pci0000:00/0000:00:1c.3/0000:02:00.0/leds/phy0-led/brightness
/sys/devices/pci0000:00/0000:00:1c.3/0000:02:00.0/leds/phy0-led/max_brightness
/sys/devices/pci0000:00/0000:00:1c.4/0000:03:00.0/leds/mmc0::/brightness
/sys/devices/pci0000:00/0000:00:1c.4/0000:03:00.0/leds/mmc0::/max_brightness
/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight/actual_brightness
/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight/brightness
/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight/max_brightness
有什麼建議 ?