hyprctl keyword monitor cannot re-enable a disabled monitor
## Description
After disabling a monitor via `hyprctl keyword monitor "eDP-1, disable"`, attempting to re-enable it via `hyprctl keyword monitor` has no effect. The monitor stays dark. TTYs are also black (output disabled at KMS level). Only a full Hyprland restart restores it.
## Steps to reproduce
```sh
hyprctl keyword monitor "eDP-1, disable"
sleep 2
hyprctl keyword monitor "eDP-1, preferred, auto, 1"
# or with explicit resolution:
hyprctl keyword monitor "eDP-1, 1920x1080@60, 0x0, 1"
```
Expected: monitor comes back on.
Actual: monitor stays off. TTYs also black.
## Workaround
DPMS works as a substitute for simple blanking:
```sh
hyprctl dispatch dpms off eDP-1
hyprctl dispatch dpms on eDP-1
```
DPMS does not fully disable the output (workspaces remain assigned), so it is not a complete equivalent — but it restores the display reliably.
## Context
- Hyprland 0.55.2
- Arch Linux, laptop internal display (eDP-1)
- Use case: lid switch binds — disable internal panel on lid close, re-enable on lid open
- Related: #14447 fixed re-enabling monitors via the Lua config API (`hl.monitor.disabled = false`). The `hyprctl keyword monitor` IPC path has the same underlying problem but was not addressed by that PR.
## Config
```ini
bindl=,switch:on:Lid Switch,exec,hyprctl keyword monitor "eDP-1, disable"
bindl=,switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-1, preferred, auto, 1"
```
关闭于 2026-05-20 1 条评论