How to control display on/off on M10
Douglas.Hult 2025-08-11 03:20:59 1106 Views3 Replies I would like to be able to control the screen backlight on the M10. ‘xset’ says the display does not have ‘dpms' support. Is there a GPIO pin that control the display backlight?
Publishing schematics would help.
Just answered my own question. ‘DISPLAY=:0 xset s activate’ blanks the screen. ‘DISPLAY=:0 xset s reset’ turns it back on.
Douglas.Hult Well almost. The xset command does clear the screen but it leaves the backlight on. So, I'm back to my original question. Is there a way on the M10 to control the display backlight?
Again answering my own question with a little (?) help from DFRobot. The latest M10 firmware update now includes python support to control the backlight.
from unihiker import UNIConfig
conf = UNIConfig()
conf.set_brightness(int) ## 0 - 100
int = 0 turns the backlight off


