feat: expanded ACPI support, initial support for S3 sleep
This commit is contained in:
@@ -113,6 +113,9 @@ namespace Montauk {
|
||||
static constexpr uint64_t SYS_BTLIST = 87;
|
||||
static constexpr uint64_t SYS_BTINFO = 88;
|
||||
|
||||
// Power management
|
||||
static constexpr uint64_t SYS_SUSPEND = 89;
|
||||
|
||||
// Audio control commands (for SYS_AUDIOCTL)
|
||||
static constexpr int AUDIO_CTL_SET_VOLUME = 0;
|
||||
static constexpr int AUDIO_CTL_GET_VOLUME = 1;
|
||||
|
||||
@@ -99,6 +99,7 @@ struct DesktopState {
|
||||
SvgIcon icon_settings;
|
||||
SvgIcon icon_reboot;
|
||||
SvgIcon icon_shutdown;
|
||||
SvgIcon icon_sleep;
|
||||
SvgIcon icon_logout;
|
||||
|
||||
SvgIcon icon_procmgr;
|
||||
|
||||
@@ -265,6 +265,10 @@ namespace montauk {
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
||||
inline int suspend() {
|
||||
return (int)syscall0(Montauk::SYS_SUSPEND);
|
||||
}
|
||||
|
||||
// Mouse
|
||||
inline void mouse_state(Montauk::MouseState* out) { syscall1(Montauk::SYS_MOUSESTATE, (uint64_t)out); }
|
||||
inline void set_mouse_bounds(int32_t maxX, int32_t maxY) {
|
||||
|
||||
Reference in New Issue
Block a user