我在 2020 年 Dell XPS 13 上运行 KDE Neon 5.20。/etc/default/grub
我有acpi_backlight=vendor
for GRUB_CMDLINE_LINUX_DEFAULT
,因为对于任何其他设置,我在 中什么也得不到/sys/class/backlight
。但是,当内核参数有供应商时,我有一个名为 的目录dell_backlight
,但没有intel_backlight
。我可以调整目录中的亮度文件,然后重新启动即可更改亮度。无论如何,我可以做到这样就不需要重新启动来改变亮度吗?
已经测试过:
- https://github.com/udifuchs/icc-brightness/blob/master/icc-brightness
- https://askubuntu.com/questions/762764/cannot-change-brightness-ubuntu-16-04-lts-and-onward
- https://itsfoss.com/fix-brightness-ubuntu-1310/
- https://www.debugpoint.com/2016/10/2-ways-fix-laptop-brightness-problem-ubuntu-linux/
输出sudo inxi -Fz
:
System: Kernel: 5.4.0-58-generic x86_64 bits: 64 Console: tty 1 Distro: KDE neon 20.04 5.20
Machine: Type: Laptop System: Dell product: XPS 13 9310 v: N/A serial: <filter>
Mobo: Dell model: 0DXP1F v: A00 serial: <filter> UEFI: Dell v: 1.0.3 date: 10/05/2020
Battery: ID-1: BAT0 charge: 4.1 Wh condition: 50.4/51.0 Wh (99%)
CPU: Topology: Quad Core model: 11th Gen Intel Core i7-1185G7 bits: 64 type: MT MCP L2 cache: 12.0 MiB
Speed: 1222 MHz min/max: 400/4800 MHz Core speeds (MHz): 1: 1200 2: 1201 3: 1202 4: 1202 5: 1201
6: 1037 7: 1201 8: 1145
Graphics: Device-1: Intel Iris Xe Graphics driver: N/A
Display: server: X.Org 1.20.8 driver: fbdev,intel unloaded: modesetting,vesa
resolution: 1920x1200~77Hz
OpenGL: renderer: llvmpipe (LLVM 10.0.0 256 bits) v: 3.3 Mesa 20.0.8
Audio: Device-1: Intel Tiger Lake-LP Smart Sound Audio driver: snd_hda_intel
Sound Server: ALSA v: k5.4.0-58-generic
Network: Device-1: Intel Wi-Fi 6 AX201 driver: iwlwifi
IF: wlp0s20f3 state: up mac: <filter>
Drives: Local Storage: total: 476.94 GiB used: 12.61 GiB (2.6%)
ID-1: /dev/nvme0n1 vendor: Micron model: 2300 NVMe 512GB size: 476.94 GiB
RAID: Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd
Partition: ID-1: / size: 354.66 GiB used: 12.53 GiB (3.5%) fs: ext4 dev: /dev/nvme0n1p7
Sensors: System Temperatures: cpu: 33.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info: Processes: 291 Uptime: 1d 22h 48m Memory: 15.37 GiB used: 3.02 GiB (19.6%) Shell: bash inxi: 3.0.38
我还是 Linux 新手,非常感谢任何帮助
答案1
请粘贴“sudo inxi -Fz”的输出一些要尝试的事情在这里;https://wiki.archlinux.org/index.php/backlight
5.6-oem 内核是 Dell/Ubuntu 在 9310 上使用的内核。因为您使用的是 ubuntu 派生操作系统,请尝试
apt-cache search linux-image-generic-hwe-20.04
或 apt-cache 搜索 linux-image-oem
并安装答案之一。如果 Ubuntu 软件包不可用,您可以添加存储库
echo "deb http://dell.archive.canonical.com/ focal somerville
deb http://dell.archive.canonical.com/ focal somerville-bulbasaur" \
> /etc/apt/sources.list.d/oem-somerville-bulbasaur-meta.list
或者使用您在这里找到的任何补丁构建自己的补丁;
https://code.launchpad.net/~canonical-kernel/ubuntu/+source/linux-oem/+git/focal/+ref/oem