linuxmint / cinnamon-desktop

The cinnamon-desktop library (and common settings schemas for the cinnamon desktop)
GNU General Public License v2.0
187 stars 63 forks source link

Application sounds skip first sound but play the rest. #183

Open ByteEnable opened 3 years ago

ByteEnable commented 3 years ago
Cinnamon 4.8.6
no daily builds
Fedora 33
NVidia GTX1060
X86_64

            description: Audio device
            product: GP106 High Definition Audio Controller
            vendor: NVIDIA Corporation
            physical id: 0.1
            bus info: pci@0000:01:00.1
            version: a1
            width: 32 bits
            clock: 33MHz
            capabilities: pm msi pciexpress bus_master cap_list
            configuration: driver=snd_hda_intel latency=0
            resources: irq:17 memory:bc080000-bc083fff

         description: Audio device
         product: Cannon Lake PCH cAVS
         vendor: Intel Corporation
         physical id: 1f.3
         bus info: pci@0000:00:1f.3
         version: 10
         width: 64 bits
         clock: 33MHz
         capabilities: pm msi bus_master cap_list
         configuration: driver=snd_hda_intel latency=32
         resources: irq:146 memory:ba218000-ba21bfff memory:ba100000-ba1fffff

I primarily use the HDMI audio from the NVidia controller.

  1. Cinnamon Desktop application sounds play but after sitting 60 seconds or more idle it will not play application audio when I close or minimize a app. All subsequent application audio plays as I interact with the desktop. All other programs play audio normally such as the browser, Hypnotix or Spotify. There is no skipping, freezing or stuttering in any programs or desktop applications. Only the first playback of a desktop application sound after being idle is affected. Its all desktop actions whether it being using the workspace switcher or opening and closing a window.
  2. After using "systemctl --user stop/start" the desktop application audio never plays again. However, all other programs have no issue with playback after stopping and starting the pulseaudio skt/srv.
mtwebster commented 3 years ago

This sounds like the audio going into 'sleep mode' - I noticed this a while back on my hdmi audio from an nvidia card, you can disable the sleep mode.

Check this out: https://askubuntu.com/questions/218444/sound-output-starts-delayed

Unfortunately I can't remember exactly what I had to do to fix this, but I'm pretty sure it was the accepted answer in that link - commenting out load-module module-suspend-on-idle in /etc/pulse/default.pa

ByteEnable commented 3 years ago

I went ahead and disabled the suspend even though the only sinks that were being released are for the webcam and the Intel PCH. The issue is still present. There can be audio playing in the browser or other application and the Cinnamon Desktop application sound effects will not play on first try after some time. I was also able to reproduce the issue in System Settings > Sound -> Sound. The sounds that most frequently skip are "Switching workspace" and "Leaving Cinnamon". Although, "Starting Cinnamon" will only output half of the sound, meaning, the first second is not audible.

Again, I reiterate, this issue is only with the Cinnamon Desktop Sounds. No other apps have an issue that I can discern.