![]() |
|
General Linux Chat - Printable Version +- bigpete.net (https://test.bigpete.net) +-- Forum: Main (https://test.bigpete.net/forumdisplay.php?fid=3) +--- Forum: Tech Chat (https://test.bigpete.net/forumdisplay.php?fid=13) +--- Thread: General Linux Chat (/showthread.php?tid=26) |
General Linux Chat - BigPete - 02-15-2026 Figured a thread for general Linux discussion would be useful to me and [USER=28508]@Jim Rockford[/USER] General Linux Chat - BigPete - 02-15-2026 [MEDIA=mastodon]host=studio8502.ca;id=116075820449875227;name=mos_8502[/MEDIA] View: https://studio8502.ca/@mos_8502/116075820449875227 General Linux Chat - BigPete - 02-15-2026 [MEDIA=reddit]comments/r/linux_gaming/t3_1r4b8py[/MEDIA] View: https://www.reddit.com/r/linux_gaming/s/IfB4MNZ1HQ General Linux Chat - BigPete - 02-15-2026 I’ll work on embeds for Reddit, Mastodon, and Archive.org this week. General Linux Chat - BigPete - 02-17-2026 Gentoo is moving from Github to Codeberg: https://www.gentoo.org/news/2026/02/16/codeberg.html General Linux Chat - BigPete - 02-19-2026 I've been using Debian 13 on my desktop for quite some time now. However I have had a weird issue where if the machine goes into sleep/hibernation I would have no audio when I logged back in. I am just using the Monitor speakers over HDMI so I suspect the issue is NVIDIA drivers. I struggled with this for months, and am still not entirely sure why it doesn't work, but I did manage to come up with a workaround: I ended up writing a daemon to detect when a machine resumes from sleep and then restarting the audio stack and reapplying the NVIDIA profile. Also unmutes and sets volume to 100% in case my kid was using the computer last. (She adjusts audio output via the OS rather than the speakers) Once again I resort to brute force rather than elegant solutions but whatever. it works. [SPOILER="Code"] [CODE=bash]#!/usr/bin/env bash set -u SINK='alsa_output.pci-0000_29_00.1.hdmi-stereo' CARD='alsa_card.pci-0000_29_00.1' PROFILE='output:hdmi-stereo' apply_fix() { sleep 2 systemctl --user restart pipewire pipewire-pulse wireplumber || true sleep 1 pactl set-card-profile "$CARD" "$PROFILE" || true pactl set-default-sink "$SINK" || true pactl set-sink-mute "$SINK" 0 || true pactl set-sink-volume "$SINK" 100% || true for id in $(pactl list short sink-inputs 2>/dev/null | awk '{print $1}'); do pactl move-sink-input "$id" "$SINK" || true pactl set-sink-input-mute "$id" 0 || true done } # Watch login1 sleep signals on the system bus. # PrepareForSleep(true) = about to sleep; PrepareForSleep(false) = resumed. dbus-monitor --system "type='signal',interface='org.freedesktop.login1.Manager',member='PrepareForSleep'" 2>/dev/null | while IFS= read -r line; do case "$line" in *"boolean false"*) apply_fix ;; esac done[/CODE] [/SPOILER] General Linux Chat - Jim Rockford - 02-20-2026 This is a clever work around. I've not had this issue, but I have had consistent issues with the nvidia open driver doing wonky things like multi-monitors not working and games running shitty. I've had to consistently get the non-free driver from the nvidia site. EDIT: Did you happen to try any audio outputs just to see what they do? General Linux Chat - BigPete - 04-15-2026 https://itsfoss.com/news/kde-plasma-per-screen-virtual-desktops/ General Linux Chat - BigPete - 05-11-2026 Terminal recorder to automate workflows: https://github.com/Ra77a3l3-jar/replaySh?utm_source=chatgpt.com Might be useful. |