我花了很多时间断断续续地尝试找到哪个/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
有什么建议 ?