问题是,Ubuntu总是在每次重新启动后将亮度级别重置为最大。我安装了xbacklight实用程序,但是像xbacklight -get或xbacklight -set XX这样的命令不起作用。作为输出,我什么也得不到。
实际上,我想让我的Ubuntu记住上次使用的亮度水平。我怎么才能做到呢?以下是一些信息:
ls -l /sys/class/backlight/
total 0
lrwxrwxrwx 1 root root 0 Feb 27 09:43 radeon_bl0 -> ../../devices/pci0000:00/0000:00:01.0/drm/card0/card0-LVDS-1/radeon_bl0
ls -l /sys/class/backlight/radeon_bl0/
total 0
-r--r--r-- 1 root root 4096 Feb 27 09:54 actual_brightness
-rw-r--r-- 1 root root 4096 Feb 27 09:54 bl_power
-rw-r--r-- 1 root root 4096 Feb 27 09:47 brightness
lrwxrwxrwx 1 root root 0 Feb 27 09:54 device -> ../../card0-LVDS-1
-r--r--r-- 1 root root 4096 Feb 27 09:43 max_brightness
drwxr-xr-x 2 root root 0 Feb 27 09:54 power
lrwxrwxrwx 1 root root 0 Feb 27 09:54 subsystem -> ../../../../../../../class/backlight
-r--r--r-- 1 root root 4096 Feb 27 09:43 type
-rw-r--r-- 1 root root 4096 Feb 27 09:42 uevent
uname -r
4.2.0-30-generic发布于 2016-03-03 20:17:00
你试过这个吗?
sudo nano /etc/rc.local发布于 2016-03-04 13:46:57
好的。我将回答我自己的问题,仅供参考。在我的例子中,我所做的是在/etc/rc.local之前在exit 0之前添加以下行(实际上只是一行,其中有一些注释来提醒我为什么和做了什么):
# The following line should solve the problem of Ubuntu resetting
# the brightness level back to maximum after every reboot.
echo 50 > /sys/class/backlight/radeon_bl0/brightness这就是现在整个文件的样子:
#!/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.
# The following line should solve the problem of Ubuntu resetting
# the brightness level back to maximum after every reboot.
echo 50 > /sys/class/backlight/radeon_bl0/brightness
exit 0虽然我不能百分之百肯定这是否是最好的方法,但现在一切似乎都很顺利。
发布于 2016-03-04 18:37:37
如果您能够使用命令设置亮度,那么在启动时将亮度级别更改为特定值是很容易的。做以下工作:
这应该在启动时执行该命令。我不知道如何使它记住以前的亮度,但我希望这会有所帮助。
https://askubuntu.com/questions/739654
复制相似问题