tolinoutil

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const FB_SLEEP_PATH = "/sys/power/wait_for_fb_sleep"
View Source
const FB_WAKE_PATH = "/sys/power/wait_for_fb_wake"
View Source
const INPUT_EVENT_PATH_KEYS = "/dev/input/event0"
View Source
const POWER_STATE_PATH = "/sys/power/state-extended"

Variables

This section is empty.

Functions

func IsScreenOn

func IsScreenOn() (bool, error)

func MonitorFb

func MonitorFb(c chan int) error

func MonitorFbSleep

func MonitorFbSleep(c chan int) error

func MonitorFbWake

func MonitorFbWake(c chan int) error

func SendButtonPress

func SendButtonPress(keycode uint16) error

func SendPowerButtonPress

func SendPowerButtonPress() error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL