dpms

package
v0.0.0-...-7ad2634 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DPMSModeOn      = 0
	DPMSModeStandby = 1
	DPMSModeSuspend = 2
	DPMSModeOff     = 3
)

enum DPMSMode

View Source
const CapableOpcode = 1
View Source
const DisableOpcode = 5
View Source
const EnableOpcode = 4
View Source
const ForceLevelOpcode = 6
View Source
const GetTimeoutsOpcode = 2
View Source
const GetVersionOpcode = 0
View Source
const InfoOpcode = 7
View Source
const MajorVersion = 0

_ns.ext_name: DPMS

View Source
const MinorVersion = 0
View Source
const SetTimeoutsOpcode = 3

Variables

This section is empty.

Functions

func Disable

func Disable(conn *x.Conn)

func DisableChecked

func DisableChecked(conn *x.Conn) x.VoidCookie

func Enable

func Enable(conn *x.Conn)

func EnableChecked

func EnableChecked(conn *x.Conn) x.VoidCookie

func Ext

func Ext() *x.Extension

func ForceLevel

func ForceLevel(conn *x.Conn, powerLevel uint16)

func ForceLevelChecked

func ForceLevelChecked(conn *x.Conn, powerLevel uint16) x.VoidCookie

func SetTimeouts

func SetTimeouts(conn *x.Conn, standbyTimeout, suspendTimeout, offTimeout uint16)

func SetTimeoutsChecked

func SetTimeoutsChecked(conn *x.Conn, standbyTimeout, suspendTimeout, offTimeout uint16) x.VoidCookie

Types

type CapableCookie

type CapableCookie x.SeqNum

func Capable

func Capable(conn *x.Conn) CapableCookie

func (CapableCookie) Reply

func (cookie CapableCookie) Reply(conn *x.Conn) (*CapableReply, error)

type CapableReply

type CapableReply struct {
	Capable bool
}

type GetTimeoutsCookie

type GetTimeoutsCookie x.SeqNum

func GetTimeouts

func GetTimeouts(conn *x.Conn) GetTimeoutsCookie

func (GetTimeoutsCookie) Reply

func (cookie GetTimeoutsCookie) Reply(conn *x.Conn) (*GetTimeoutsReply, error)

type GetTimeoutsReply

type GetTimeoutsReply struct {
	StandbyTimeout uint16
	SuspendTimeout uint16
	OffTimeout     uint16
}

type GetVersionCookie

type GetVersionCookie x.SeqNum

func GetVersion

func GetVersion(conn *x.Conn, clientMajorVersion, clientMinorVersion uint16) GetVersionCookie

func (GetVersionCookie) Reply

func (cookie GetVersionCookie) Reply(conn *x.Conn) (*GetVersionReply, error)

type GetVersionReply

type GetVersionReply struct {
	ServerMajorVersion uint16
	ServerMinorVersion uint16
}

type InfoCookie

type InfoCookie x.SeqNum

func Info

func Info(conn *x.Conn) InfoCookie

func (InfoCookie) Reply

func (cookie InfoCookie) Reply(conn *x.Conn) (*InfoReply, error)

type InfoReply

type InfoReply struct {
	PowerLevel uint16
	State      bool
}

Jump to

Keyboard shortcuts

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