trying to fix

This commit is contained in:
Chris Cochrun 2022-01-03 12:41:35 -06:00
parent fa407dfeb6
commit e013d7569e
22945 changed files with 447936 additions and 0 deletions

View file

@ -0,0 +1 @@
<!-- SC_OFF --><div class="md"><p>I find it annoying that i have to set an idle inhibitor on a window that is playing sound or downloading something. How do you guys get around this problem? My current sleep setup consists of two files as following...</p> <p>I have these line in my sway config which set brightness to 10% after 10 mins, restores it to original when resumed, same thing with screen power after 15 mins, lock my system before sleep and call idlehint to indicate an idle session to systemd after 30 mins ``` swayidle -w \ timeout 600 &#39;brightnessctl set 10% -s&#39; resume &#39;brightnessctl -r&#39; \ timeout 900 &#39;swaymsg &quot;output * dpms off&quot;&#39; resume &#39;swaymsg &quot;output * dpms on&quot;&#39; \ before-sleep &#39;swaylock --daemonize --show-failed-attempts --image &quot;/mnt/Lenovo/Home/Pictures/wallpapers/summer-vibes.jpg&quot; &#39; \ idlehint 1800</p> <h2>```</h2> <p>and i have this file <code>/etc/systemd/logind.conf.d/15-auto-suspend.conf</code> which overrides the default login.conf to make the system go to sleep after 1 minute of an idle session <code> [Login] IdleAction=suspend IdleActionSec=1 min </code> how can I integrate a solution to this problem with my setup.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/FierceFusion"> /u/FierceFusion </a> <br/> <span><a href="https://www.reddit.com/r/archlinux/comments/qzhbz9/prevent_sleep_while_downloading_or_playing_sound/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/archlinux/comments/qzhbz9/prevent_sleep_while_downloading_or_playing_sound/">[comments]</a></span>