Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

No sound on boot (usually) but comes back after resume from suspend

Need help with peripherals or devices?
Post Reply
Message
Author
acimmarusti
Posts: 397
Joined: 2009-02-27 04:59
Location: Portland, OR USA

No sound on boot (usually) but comes back after resume from suspend

#1 Post by acimmarusti »

Hi all,

Seems like I'm affected by a weird race condition when doing a cold start boot (which I do very often).
It seems like it should all work, but I hear no sound after a cold boot (occasionally it works fine).
Full disclaimer, I run a locally compiled Xanmod LTS kernel (5.15.x) for squeezing out a much performance out as I can.
However, this issue ALSO happens with the LTS stable 5.10.x kernel shipped with Debian (though the frequency is reduced).
Curiously this was NOT an issue with previous versions of Debian stable that I ran on this machine (9 and 10)

Computer:
Asus G55VW

System:
Stable/11/Bullseye
KDE

Kernel:
Output of uname -a

Code: Select all

Linux g55vw 5.15.70-xanmod1-g55vw #1 SMP Sat Sep 24 14:19:30 PDT 2022 x86_64 GNU/Linux
After a cold boot WITHOUT sound, these are the outputs of various audio diagnostics command line utilities:

Output of aplay -l

Code: Select all

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: VT1802 Analog [VT1802 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: VT1802 Digital [VT1802 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 2: VT1802 Alt Analog [VT1802 Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Output of arecord -L

Code: Select all

null
    Discard all samples (playback) or generate zero samples (capture)
default
    Playback/recording through the PulseAudio sound server
lavrate
    Rate Converter Plugin Using Libav/FFmpeg Library
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pulse
    PulseAudio Sound Server
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
hw:CARD=PCH,DEV=0
    HDA Intel PCH, VT1802 Analog
    Direct hardware device without any conversions
plughw:CARD=PCH,DEV=0
    HDA Intel PCH, VT1802 Analog
    Hardware device with all software conversions
sysdefault:CARD=PCH
    HDA Intel PCH, VT1802 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, VT1802 Analog
    Front output / input
dsnoop:CARD=PCH,DEV=0
    HDA Intel PCH, VT1802 Analog
    Direct sample snooping device
usbstream:CARD=PCH
    HDA Intel PCH
    USB Stream Output
usbstream:CARD=NVidia
    HDA NVidia
    USB Stream Output
Output of cat /proc/asound/cards

Code: Select all

0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xf7310000 irq 28
 1 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xf7080000 irq 17
Output amixer

Code: Select all

Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65536
  Mono:
  Front Left: Playback 47979 [73%] [on]
  Front Right: Playback 47979 [73%] [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 65536
  Front Left: Capture 10093 [15%] [on]
  Front Right: Capture 10093 [15%] [on]
Output of dmesg | grep snd

Code: Select all

[    2.663815] snd_hda_intel 0000:01:00.1: Disabling MSI
[    2.663823] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[    2.769789] snd_hda_codec_via hdaudioC0D0: autoconfig for VT1802: line_outs=2 (0x24/0x33/0x0/0x0/0x0) type:speaker
[    2.769797] snd_hda_codec_via hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    2.769800] snd_hda_codec_via hdaudioC0D0:    hp_outs=1 (0x25/0x0/0x0/0x0/0x0)
[    2.769803] snd_hda_codec_via hdaudioC0D0:    mono: mono_out=0x0
[    2.769804] snd_hda_codec_via hdaudioC0D0:    dig-out=0x2d/0x0
[    2.769806] snd_hda_codec_via hdaudioC0D0:    inputs:
[    2.769808] snd_hda_codec_via hdaudioC0D0:      Mic=0x2b
[    2.769810] snd_hda_codec_via hdaudioC0D0:      Internal Mic=0x29
Output of pacmd list-sinks

Code: Select all

1 sink(s) available.
  * index: 0
        name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE
        priority: 9039
        volume: front-left: 47979 /  73% / -8.13 dB,   front-right: 47979 /  73% / -8.13 dB
                balance 0.00
        base volume: 65536 / 100% / 0.00 dB
        volume steps: 65537
        muted: no
        current latency: 0.00 ms
        max request: 0 KiB
        max rewind: 0 KiB
        monitor source: 0
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 0
        configured latency: 0.00 ms; range is 0.50 .. 2000.00 ms
        card: 1 <alsa_card.pci-0000_00_1b.0>
        module: 7
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "VT1802 Analog"
                alsa.id = "VT1802 Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xf7310000 irq 28"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1b.0"
                sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "1e20"
                device.product.name = "7 Series/C216 Chipset Family High Definition Audio Controller"
                device.form_factor = "internal"
                device.string = "front:0"
                device.buffering.buffer_size = "352800"
                device.buffering.fragment_size = "176400"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "Built-in Audio Analog Stereo"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-speakers"
                analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-headphones"
        active port: <analog-output-speaker>
Output lspci -nn | grep Audio

Code: Select all

00:1b.0 Audio device [0403]: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller [8086:1e20] (rev 04)
01:00.1 Audio device [0403]: NVIDIA Corporation GK107 HDMI Audio Controller [10de:0e1b] (rev a1)
Output of pgrep -a pulse

Code: Select all

3519 /usr/bin/pulseaudio --daemonize=no --log-target=journal
The outputs AFTER sound comes back after a successful resume from suspend do NOT look any different.
Any help is appreciated!
Last edited by acimmarusti on 2022-09-25 17:50, edited 1 time in total.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: No sound on boot (usually) but comes back after resume from suspend

#2 Post by Head_on_a_Stick »

Compare the output of this command for both a working and non-working state:

Code: Select all

speaker-test # from the alsa-utils package
Does the sound work fine if you load up a Debian bullseye live ISO image?
deadbang

acimmarusti
Posts: 397
Joined: 2009-02-27 04:59
Location: Portland, OR USA

Re: No sound on boot (usually) but comes back after resume from suspend

#3 Post by acimmarusti »

Compare the output of this command for both a working and non-working state:

Code: Select all

speaker-test # from the alsa-utils package
The output on the terminal is the same (except that when sound is working, I can hear the noise)

Code: Select all

speaker-test 1.2.4

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 192 to 2097152
Period size range from 64 to 699051
Using max buffer size 2097152
Periods = 4
was set period_size = 524288
was set buffer_size = 2097152
 0 - Front Left
Time per period = 10.937857
 0 - Front Left
Time per period = 10.937921
 0 - Front Left
Time per period = 10.936715
 0 - Front Left
Time per period = 10.937260
 0 - Front Left
Does the sound work fine if you load up a Debian bullseye live ISO image?
I'll fetch an image and try this, but I'm skeptical about this test. The race condition may not be triggered by the slower to boot ISO image

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: No sound on boot (usually) but comes back after resume from suspend

#4 Post by Head_on_a_Stick »

If the speaker-test output is the same for both working and non-working systems then I would conclude you are experiencing some sort of hardware-based issue. A live ISO would help confirm this.
deadbang

acimmarusti
Posts: 397
Joined: 2009-02-27 04:59
Location: Portland, OR USA

Re: No sound on boot (usually) but comes back after resume from suspend

#5 Post by acimmarusti »

Head_on_a_Stick wrote: 2022-09-26 06:44 If the speaker-test output is the same for both working and non-working systems then I would conclude you are experiencing some sort of hardware-based issue. A live ISO would help confirm this.
I used this Debian 11 live image (KDE + nonfree firmware) as found here:
https://cdimage.debian.org/cdimage/unof ... so-hybrid/

I booted it 10 times (not consecutively) (5 times on battery power only). The sound came on perfectly without any problems every single time.
This is why I think this is a software/race condition problem.
I've decided to abandon the Xanmod 5.15.x kernel and go back to the Debian stable 5.10.x (the sound situation is more reliable with it - 3 cold boots, so far, with sound working fine).

uname -a

Code: Select all

Linux g55vw 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02) x86_64 GNU/Linux
This is NOT resolved and I have observed this on the 5.10.x kernel before, with much less frequency (the Xanmod kernel has boot speed optimizations, so I still suspect this).
One big difference between my Debian install vs. the live image is that I use the NVIDIA proprietary driver: nvidia-tesla-418-driver (while the live image boots with nouveau)

CoffeeDev
Posts: 1
Joined: 2023-11-08 17:07

Re: No sound on boot (usually) but comes back after resume from suspend

#6 Post by CoffeeDev »

Were you able to fix this issue? I am also encountering this same issue (and, strangely, it only affects my front speakers, my rear speakers and LFE are fine), and I have not been able to find any way to fix it.

acimmarusti
Posts: 397
Joined: 2009-02-27 04:59
Location: Portland, OR USA

Re: No sound on boot (usually) but comes back after resume from suspend

#7 Post by acimmarusti »

CoffeeDev wrote: 2023-11-08 17:26 Were you able to fix this issue? I am also encountering this same issue (and, strangely, it only affects my front speakers, my rear speakers and LFE are fine), and I have not been able to find any way to fix it.
Sorry for the late reply. I never really found a solution for this.
I upgraded this system to Debian 12 (bookworm) with its stock LTS kernel 6.1.x and honestly I have not observed this again.
I have a newer laptop (without NVIDIA) with Debian 12 as well and it happens sporadically on this system (except suspend/resume doesn't fix it, but a reboot can), but could be a different issue.

Post Reply