mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-21 01:25:42 +02:00
i3-companion: force DPMS level to 0 only if > 0
Otherwise, it seems we may trigger screen blanking.
This commit is contained in:
parent
1815c57e64
commit
f69cf5a056
1 changed files with 3 additions and 2 deletions
|
@ -1006,8 +1006,9 @@ async def on_resume(i3, event, path, sleeping):
|
|||
if not sleeping:
|
||||
logger.info("resume from sleep")
|
||||
dpms = i3.x11(xcffib.dpms.key)
|
||||
dpms.ForceLevel(0)
|
||||
i3.x11.flush()
|
||||
if dpms.Info().reply().power_level != 0:
|
||||
dpms.ForceLevel(0)
|
||||
i3.x11.flush()
|
||||
|
||||
|
||||
# Main function
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue