[Deepin 20] Brightness Not Changing on Mid-2014 MacBook Pro
Tofloor
poster avatar
m4salman
deepin
2020-04-21 14:04
Author
Having a technical issue.

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.


--
Reply Favorite View the author
All Replies
deepinuser17
deepin
2020-04-21 14:22
#1
Try adding a systemd service as follow:

  1. Create /usr/local/sbin/set_display_brightness.sh
  2. =======================================================================
  3. #!/bin/sh
  4. #
  5. # set display brightness to 400
  6. echo 400 > /sys/class/backlight/gmux_backlight/brightness
  7. =======================================================================

  8. Create /etc/systemd/system/set_display.service
  9. =======================================================================
  10. [Unit]
  11. Description=Set display brightness

  12. [Service]
  13. Type=oneshot
  14. ExecStart=/usr/local/sbin/set_display_brightness.sh

  15. [Install]
  16. WantedBy=multi-user.target
  17. =======================================================================

  18.    $ sudo systemctl daemon-reload
  19.    $ sudo systemctl enable set_display.service
Copy the Code
Reply View the author