deepinuser17
2020-04-21 14:22 deepin
Try adding a systemd service as follow:
Copy the Code
- Create /usr/local/sbin/set_display_brightness.sh
- =======================================================================
- #!/bin/sh
- #
- # set display brightness to 400
- echo 400 > /sys/class/backlight/gmux_backlight/brightness
- =======================================================================
- Create /etc/systemd/system/set_display.service
- =======================================================================
- [Unit]
- Description=Set display brightness
- [Service]
- Type=oneshot
- ExecStart=/usr/local/sbin/set_display_brightness.sh
- [Install]
- WantedBy=multi-user.target
- =======================================================================
- $ sudo systemctl daemon-reload
- $ sudo systemctl enable set_display.service
Reply Like 0 View the author
MacBook Pro (Retina, 15-inch, Mid 2014)
The brightness is stuck on 100%, I tried changing the brightness using F1/F2 and I see the little icon pop-up showing that brightness setting is changing, however the brightness is stuck. I tried restarting the MacBook, booted into Mac, changed brightness to lower, then restarted again to boot into Deepin 20, and the brightness spikes back up to 100%.
Any help would be much appreciated.
--