ArchLinux螢幕亮度調節
阿新 • • 發佈:2018-11-10
安裝好ArchLinux後會出現螢幕變暗的情況,解決方法:
sodo su
echo 100 >/sys/class/backlight/xxxxx/brightness # 螢幕亮度調到100
cat /sys/class/backlight/xxxxx/max_brightness # 檢視螢幕亮度最大值
xxxxx為backlight目錄下的檔名字
1 、手動寫一個rc-local.service 檔案
nano /usr/lib/systemd/system/rc-local.service
[Unit] Description="/etc/rc.local Compatibility" [Service] Type=forking ExecStart=/etc/rc.local start TimeoutSec=0 StandardInput=tty RemainAfterExit=yes SysVStartPriority=99 [Install] WantedBy=multi-user.target
寫完後Ctrl+o儲存
2、啟動指令碼
systemctl enable rc-local.service
3、建立啟動檔案rc.local:
chmod +x /etc/rc.local
vim /etc/rc.local
輸入開機執行的操作:
#!/bin/sh
echo 100 > /sys/class/backlight/radeon_bl0/brightness
exit 0