DPMSGetTimeouts(3)
π DPMSGetTimeouts β the girlies' guide to peeking at your screen's nap schedule π
okay so bestie, this one lives in section 3 of the X FUNCTIONS manual, and it's lowkey the chillest little function ever. It's called DPMSGetTimeouts, and it's literally just "hey X server, what are your DPMS nap timings bestie? spill." No cap.
β¨ NAME β¨
DPMSGetTimeouts β retrieves the timeout values used by the X server for DPMS timings π«Ά
πΈ SYNOPSIS πΈ
cc [ flag ... ] file ... -lXext [ library ... ]
#include <X11/extensions/dpms.h>
Bool DPMSGetTimeouts
(
Display *display,
CARD16 *standby,
CARD16 *suspend,
CARD16 *off
);
π ARGUMENTS π
displayβ Specifies the connection to the X server. it's giving "hi hello which server are we talking to" energy πstandbyβ Specifies the current standby timeout in seconds. the lil first nap βsuspendβ Specifies the current suspend timeout in seconds. the deeper nap π΄offβ Specifies the current off timeout in seconds. the final sleep, main character energy π
π¦ DESCRIPTION π¦
The DPMSGetTimeouts function retrieves the timeout values used by the X server for DPMS timings. that's it, that's the whole vibe. it's a getter, it's not doing anything extra, it's just handing you the numbers β¨
The value standby is the amount of time of inactivity in seconds before standby mode is invoked. A value of zero indicates that this mode has been disabled. so if it's 0, bestie that mode is not coming, it's cancelled π«
The value suspend is the amount of time of inactivity in seconds before the second level of power savings is invoked. A value of zero indicates that this mode has been disabled. second level, deeper nap, still cancelled if it's 0 π
The value off is the amount of time of inactivity in seconds before the third and final level of power savings is invoked. A value of zero indicates that this mode has been disabled. third and final, the last boss, and yes, 0 still means disabled fr fr π«
π RETURN VALUES π
TRUEβ TheDPMSGetTimeoutsfunction returnsTRUEwhen values are returned. slay, you got the numbers πFALSEβ TheDPMSGetTimeoutsfunction returnsFALSEwhen no values returned. no numbers for you, rip π
π SEE ALSO π
ngl the whole friend group is here:DPMSCapable(3)to check if DPMS is even a thing,DPMSInfo(3)for the status tea, andDPMSSetTimeouts(3)if you wanna be the one setting the naps instead of just reading them π
okay that's the whole page bestie, no crumbs left. this one comes to you from X Version 11, libXext 1.3.6 β periodt π go forth and check those timeouts, you ate π
π¦ where this page comes from
- alpine 3.22: libxext-doc 1.3.6-r2 Β· MIT
- alpine 3.23: libxext-doc 1.3.6-r2 Β· MIT
- centos-stream 10: libXext-devel 1.3.6-3.el10 Β· MIT-open-group AND X11 AND HPND AND HPND-sell-variant AND SMLNJ AND MIT AND ISC AND HPND-doc AND HPND-doc-sell
- fedora 43: libXext-devel 1.3.6-4.fc43 Β· MIT-open-group AND X11 AND HPND AND HPND-sell-variant AND SMLNJ AND MIT AND ISC AND HPND-doc AND HPND-doc-sell
- fedora 43: libXext-devel 1.3.6-4.fc43 Β· MIT-open-group AND X11 AND HPND AND HPND-sell-variant AND SMLNJ AND MIT AND ISC AND HPND-doc AND HPND-doc-sell
- fedora 44: libXext-devel 1.3.6-5.fc44 Β· MIT-open-group AND X11 AND HPND AND HPND-sell-variant AND SMLNJ AND MIT AND ISC AND HPND-doc AND HPND-doc-sell
- fedora 44: libXext-devel 1.3.6-5.fc44 Β· MIT-open-group AND X11 AND HPND AND HPND-sell-variant AND SMLNJ AND MIT AND ISC AND HPND-doc AND HPND-doc-sell
- opensuse-leap 16.0: libXext-devel 1.3.6-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXext-devel 1.3.6-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXext-devel 1.3.6-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXext-devel 1.3.6-160000.3.2 Β· MIT
- Copyright (c) 1999, 2005, Oracle and/or its affiliates
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms