Ubuntu 屏幕亮度设置

安装Nvidia驱动后:
  1. switch to an other vt (e.g. Ctrl+Alt+F6)
  2. run
sudo sh -c "echo -n <level> > /proc/acpi/video/NVID/LCD/brightness"
where <level> is 0, 10, 25, 40, 55, 70, 85 or 100

------------------------------------------------

未安装Nvidia驱动:
修改
sudo gedit /etc/default/acpi-support
为:
ENABLE_LAPTOP_MODE=true

修改
sudo gedit /etc/laptop-mode/laptop-mode.conf
为:
CONTROL_BRIGHTNESS=1


# * If your system has the file "/proc/acpi/video/VID/LCD/brightness" (VID may
# be VID1 or similar), use this file as BRIGHTNESS_OUTPUT, and use
# the command "echo <value>". The possible values can be listed using the
# command:
#
# cat /proc/acpi/video/VID/LCD/brightness

# * If you have a file /sys/class/backlight/.../brightness, then you can use
# that file as BRIGHTNESS_OUTPUT, and the command "echo <value>".
#
# As far as I understand it the values are between 0 and
# the value contained in the file /sys/class/backlight/.../max_brightness.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值