Ubuntu 14.10 boot screen brightness settings
If you use Ubuntu 14.10 or Ubuntu 14.04, you will know that after Ubuntu is installed on your laptop, the screen brightness of the system is the maximum by default each time you start the system.
Now, we can add the command to modify the system brightness in the Linux boot script.
1. view the maximum brightness of your system. See figure 1.
Cd/sys/class/backlight
Bkjia @ bkjia :~ $ Cd/sys/class/backlight
Bkjia @ bkjia:/sys/class/backlight $ ll
Total usage 0
Drwxr-xr-x 2 root 0 January 31 2016 ./
Drwxr-xr-x 57 root 0 January 31 2016 ../
Lrwxrwxrwx 1 root 0 January 31 15:25 intel_backlight->.../devices/pci0000: 00/0000: 00: 02.0/drm/card0/card0-LVDS-1/intel_backlight/
Lrwxrwxrwx 1 root 0 January 31 15:25 nv_backlight->.../devices/pci0000: 00/0000: 00: 01.0/. 0/drm/card1/card1-LVDS-2/nv_backlight/
Bkjia @ bkjia:/sys/class/backlight $
(The video card model of the notebook is different-> the brightness adjustment folder name will be different ).
Figure 1
2. Mine is intel_backlight.
Cd intel_backlight
See figure 1.
3. You must know the maximum brightness value that can be adjusted by the max_brightness system. Bightness is the brightness you are using.
Cat max_brightness
Cat brightness
See figure 1.
Copy the path of the folder.
(Different video card models have different maximum values)
4. Well, I know that the right brightness is 109. Set the brightness value at startup:
Cd/etc
Sudo vim rc. local
Figure 2
5. Add a command before exit 0:
Echo 50>/sys/class/backlight/intel_backlight/brightness
See figure 2 (incorrect)
After the instance is started, the brightness will be set to 50.