MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / screen_off

Method screen_off

pager/pagerctl.py:601–605  ·  view source on GitHub ↗

Turn screen off (sets brightness to 0%). Returns 0 on success, -1 if backlight control not available.

(self)

Source from the content-addressed store, hash-verified

599 return _lib.pager_get_max_brightness()
600
601 def screen_off(self):
602 """Turn screen off (sets brightness to 0%).
603 Returns 0 on success, -1 if backlight control not available.
604 """
605 return _lib.pager_screen_off()
606
607 def screen_on(self):
608 """Turn screen on (sets brightness to 80%).

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected