Created
August 8, 2022 00:58
-
-
Save adamnejm/c3274742f3f5537306d60316b1f82552 to your computer and use it in GitHub Desktop.
[WirePlumber] Disable SUSPEND on a specific device
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Replace `alsa_output.pci-0000_2d_00.4.analog-stereo` with your device name (`pactl list sinks short`) | |
-- Script location: $XDG_CONFIG_HOME/wireplumber/main.lua.d/60-disable-speaker-suspend.lua | |
local rule = { | |
matches = { | |
{ | |
{ "node.name", "equals", "alsa_output.pci-0000_2d_00.4.analog-stereo" }, | |
} | |
}, | |
apply_properties = { | |
["session.suspend-timeout-seconds"] = 0 | |
} | |
} | |
table.insert(alsa_monitor.rules, rule) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment