笔记本电脑:东芝 R630
操作系统:Linux Mint 14 Cinnamon
我看过各种文章(https://askubuntu.com/questions/151651/brightness-is-reset-to-maximum-on-every-restart)关于调整亮度。但我的笔记本电脑似乎有不止一种使用 /sys fs 调整亮度的方法。
/sys/class/backlight$ ls -l
total 0
lrwxrwxrwx 1 root root 0 Feb 24 11:56 acpi_video0 -> ../../devices/pci0000:00/0000:00:02.0/backlight/acpi_video0
lrwxrwxrwx 1 root root 0 Feb 24 12:18 intel_backlight -> ../../devices/pci0000:00/0000:00:02.0/drm/card0/card0-LVDS-1/intel_backlight
lrwxrwxrwx 1 root root 0 Feb 24 12:18 toshiba -> ../../devices/LNXSYSTM:00/device:00/TOS6208:00/backlight/toshiba
- 为什么有不止一种方法?它们之间有什么区别?
- 哪种是为所有运行级别设置初始亮度的首选方法?
- toshset如何安装?我不记得自己安装过。 Mint 是否根据已确定的制造商进行安装?
$ dpkg -l | g toshset ii toshset 1.76-4 amd64 Access much of the Toshiba laptop hardware interface $ dpkg -L toshset /. /etc /etc/pm /etc/pm/sleep.d /etc/pm/sleep.d/novatel_3g_suspend /usr /usr/share /usr/share/doc /usr/share/doc/toshset /usr/share/doc/toshset/supported-models.txt /usr/share/doc/toshset/README.IrDA /usr/share/doc/toshset/copyright /usr/share/doc/toshset/README.video /usr/share/doc/toshset/toshiba-acpi /usr/share/doc/toshset/toshiba-acpi/2.6.28 /usr/share/doc/toshset/toshiba-acpi/2.6.28/Makefile /usr/share/doc/toshset/toshiba-acpi/2.6.28/toshiba_acpi.c /usr/share/doc/toshset/toshiba-acpi/2.6.28/install.sh /usr/share/doc/toshset/toshiba-acpi/2.6.26 /usr/share/doc/toshset/toshiba-acpi/2.6.26/Makefile /usr/share/doc/toshset/toshiba-acpi/2.6.26/toshiba_acpi.c /usr/share/doc/toshset/toshiba-acpi/2.6.26/install.sh /usr/share/doc/toshset/README /usr/share/doc/toshset/changelog.Debian.gz /usr/share/doc/toshset/README.Debian /usr/share/man /usr/share/man/man1 /usr/share/man/man1/toshset.1.gz /usr/share/man/man1/toshsat1800-irdasetup.1.gz /usr/sbin /usr/sbin/toshsat1800-irdasetup /usr/bin /usr/bin/toshset
答案1
你应该做的是手动修改亮度,同时检查修改的是哪个亮度文件。
例如
$ ls -l
total 0
lrwxrwxrwx 1 root root 0 Feb 24 14:02 dell_backlight -> ../../devices/platform/dell-laptop/backlight/dell_backlight
lrwxrwxrwx 1 root root 0 Feb 24 14:02 intel_backlight -> ../../devices/pci0000:00/0000:00:02.0/drm/card0/card0-LVDS-1/intel_backlight
更改亮度并检查正在修改哪个文件:
$ cat intel_backlight/brightness
978
然后无论要修改哪个,都将其预设在rc.local
:
$ cat /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
echo 978 > /sys/class/backlight/intel_backlight/brightness
exit 0
这对我的戴尔有用,并且与您链接的问题中提供的答案不同。
答案2
请注意 - 在 Gentoo 系统上正确的文件是/etc/local.d/brightness.start
(该文件需要设置可执行位)。我的文件中有此内容。
它将所有设备上的亮度增加到最大值:
#!/bin/bash
for dev in /sys/class/backlight/* ; do
cd $dev
cat max_brightness > brightness
done
exit 0