我最近从 Ubuntu 20.04 切换到 Ubuntu 24.04。 的输出uname -r -v
是6.8.0-36-lowlatency #36.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jun 13 17:00:08 UTC 2024
。除了设置屏幕亮度级别之外,一切似乎都运行良好。起初,键盘快捷键(Fn+F6 和 Fn+F7)没有任何作用,我能够通过对 GRUB 文件进行以下修改来使它们工作:
# GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
# GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor acpi_osi=linux"
# GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=force acpi_backlight=native"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=force acpi_backlight=video"
(请注意,注释行对应于初始设置,随后是在不同论坛上建议的两次不成功的尝试。)
此时,键盘快捷键“起作用”了,因为我会从系统获得反馈,表明我的操作正在产生作用,如下面的屏幕截图所示: 屏幕亮度调节反馈的屏幕截图 不幸的是,这并没有转化为屏幕亮度的实际变化。
我有一台戴尔 G15 笔记本电脑,以防万一。
尝试使用 xbacklight 会产生消息“没有输出具有背光属性”,因此我尝试了此帖子中的命令,但我不确定是否应该以及如何修改我的/etc/X11/xorg.conf
文件:
sudo find /sys/ -type f -iname '*brightness*'
产量:
/sys/kernel/debug/dri/0000:00:02.0/i915_params/invert_brightness
/sys/devices/platform/alienware-wmi/leds/alienware::global_brightness/brightness
/sys/devices/platform/alienware-wmi/leds/alienware::global_brightness/max_brightness
/sys/devices/platform/i8042/serio0/input/input2/input2::numlock/brightness
/sys/devices/platform/i8042/serio0/input/input2/input2::numlock/max_brightness
/sys/devices/platform/i8042/serio0/input/input2/input2::capslock/brightness
/sys/devices/platform/i8042/serio0/input/input2/input2::capslock/max_brightness
/sys/devices/platform/i8042/serio0/input/input2/input2::scrolllock/brightness
/sys/devices/platform/i8042/serio0/input/input2/input2::scrolllock/max_brightness
/sys/devices/platform/dell-laptop/leds/dell::kbd_backlight/brightness
/sys/devices/platform/dell-laptop/leds/dell::kbd_backlight/brightness_hw_changed
/sys/devices/platform/dell-laptop/leds/dell::kbd_backlight/max_brightness
/sys/devices/pci0000:00/0000:00:14.3/leds/phy0-led/brightness
/sys/devices/pci0000:00/0000:00:14.3/leds/phy0-led/max_brightness
/sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video0/actual_brightness
/sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video0/brightness
/sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video0/max_brightness
/sys/devices/pci0000:00/0000:00:1d.5/0000:04:00.0/net/enp4s0/enp4s0-2::lan/brightness
/sys/devices/pci0000:00/0000:00:1d.5/0000:04:00.0/net/enp4s0/enp4s0-2::lan/max_brightness
/sys/devices/pci0000:00/0000:00:1d.5/0000:04:00.0/net/enp4s0/enp4s0-1::lan/brightness
/sys/devices/pci0000:00/0000:00:1d.5/0000:04:00.0/net/enp4s0/enp4s0-1::lan/max_brightness
/sys/devices/pci0000:00/0000:00:1d.5/0000:04:00.0/net/enp4s0/enp4s0-0::lan/brightness
/sys/devices/pci0000:00/0000:00:1d.5/0000:04:00.0/net/enp4s0/enp4s0-0::lan/max_brightness
/sys/devices/virtual/sound/ctl-led/speaker/brightness
/sys/devices/virtual/sound/ctl-led/mic/brightness
/sys/module/video/parameters/hw_changes_brightness
/sys/module/video/parameters/brightness_switch_enabled
/sys/module/xe/parameters/invert_brightness
/sys/module/i915/parameters/invert_brightness
ls -alrt /sys/class/backlight
指着:
lrwxrwxrwx 1 root root 0 Jul 5 12:50 acpi_video0 -> ../../devices/pci0000:00/0000:00:02.0/backlight/acpi_video0
/sys/class/backlight/acpi_video0
和中的文件/sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video0
已链接,文件actual_brightness
和中的值brightness
现在似乎已被预期的键盘快捷键修改(在两个目录和两个文件中)。也就是说,实际屏幕亮度仍然没有变化:无论是手动更改值还是使用快捷键更改值,这都不会影响屏幕亮度,尽管此答案中似乎有效。
最后,另一篇目前有一定影响力的帖子似乎与特定的笔记本电脑型号有关,而我的笔记本电脑型号与此不同。此问题涉及与我的笔记本电脑相同的潜在类似问题,但没有答案。