Documentation ¶
Index ¶
- func CheckOccupied(X *xgb.Conn, idleTimerDuration uint32, enableMetrics bool) bool
- func CheckScreen(X *xgb.Conn) bool
- func SetScreenPower(powerState bool) bool
- func UpdateOccupiedStatus(sensor service.OccupancySensor, idleTimerDuration uint32, sleepInterval int, ...)
- func UpdateScreenStatus(screen accessory.Lightbulb, sleepInterval int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckOccupied ¶
CheckOccupied checks for x11 idle time
func CheckScreen ¶
CheckScreen looks up the current state of DPMS
func UpdateOccupiedStatus ¶
func UpdateOccupiedStatus(sensor service.OccupancySensor, idleTimerDuration uint32, sleepInterval int, enableMetrics bool)
UpdateOccupiedStatus sets occupied status
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.