Sound problem after suspend.

Discussions related to using VirtualBox on Windows hosts.
Post Reply
JUSHJUSH
Posts: 1
Joined: 23. Aug 2019, 11:54

Sound problem after suspend.

Post by JUSHJUSH »

Hello,
I'm using ArchLinux guest on Windows host. I have problems with sound.

The problem occurs after:
-suspending host system
-disabling and enabling bluetooth headphones(the only i tested) on host system.
-spontaneously, after using my guest for random amount of time

When the problem occurs i can't play audio, youtube video doesn't play(freeze at first frame), .webm vidoe doesn't play(unless they're without sound), spotify shows "can't play this song" communicat, etc.

I'm using pulseaudio + alsa, my alsa settings are not muted, restarting pulse/alsa doesn't help. I've tried every every audio controller in VBox settings.
The only solution i found is to reboot my guest.

I'm using VBox 6.0.10 r132072 (Qt5.6.2) with guest additions on Windows 10. I upgraded it from 6.0.4 few days ago and nothing changed.
I attached the VBox.log, the problem occurs at 00:05:25 after disconnecting and reconnecting my bt headphones.

@EDIT
I just found similar bug on kernel bugzilla, id 202499(I can't post link as a new member).
It may be not linked directly with VirtualBox
Attachments
VBox.zip
(38.03 KiB) Downloaded 17 times
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Sound problem after suspend.

Post by socratis »

00:00:02.340031 Audio: Found 9 devices for driver 'DSoundAudio'

Code: Select all

00:00:02.340043 Audio: Device 'Primary Sound Driver':
00:00:02.340048 Audio: 	Usage           = Output
00:00:02.340054 Audio: 	Flags           = DEFAULT
00:00:02.340058 Audio: 	Input channels  = 0
00:00:02.340062 Audio: 	Output channels = 2
00:00:02.340066 Audio: Device 'Headphones (ATH-AR3BT Stereo)':
00:00:02.340070 Audio: 	Usage           = Output
00:00:02.340074 Audio: 	Flags           = NONE
00:00:02.340078 Audio: 	Input channels  = 0
00:00:02.340082 Audio: 	Output channels = 2
00:00:02.340086 Audio: Device 'Headset (ATH-AR3BT Hands-Free)':
00:00:02.340090 Audio: 	Usage           = Output
00:00:02.340094 Audio: 	Flags           = NONE
00:00:02.340098 Audio: 	Input channels  = 0
00:00:02.340101 Audio: 	Output channels = 1
00:00:02.340105 Audio: Device 'Speaker/HP (Realtek High Definition Audio)':
00:00:02.340109 Audio: 	Usage           = Output
00:00:02.340113 Audio: 	Flags           = NONE
00:00:02.340117 Audio: 	Input channels  = 0
00:00:02.340121 Audio: 	Output channels = 2
00:00:02.340125 Audio: Device 'Speakers (ThinkPad Thunderbolt 3 Dock USB Audio)':
00:00:02.340128 Audio: 	Usage           = Output
00:00:02.340132 Audio: 	Flags           = NONE
00:00:02.340136 Audio: 	Input channels  = 0
00:00:02.340139 Audio: 	Output channels = 2
00:00:02.340143 Audio: Device 'Primary Sound Capture Driver':
00:00:02.340147 Audio: 	Usage           = Input
00:00:02.340151 Audio: 	Flags           = NONE
00:00:02.340155 Audio: 	Input channels  = 2
00:00:02.340159 Audio: 	Output channels = 0
00:00:02.340162 Audio: Device 'Microphone (ThinkPad Thunderbolt 3 Dock USB Audio)':
00:00:02.340167 Audio: 	Usage           = Input
00:00:02.340171 Audio: 	Flags           = NONE
00:00:02.340175 Audio: 	Input channels  = 2
00:00:02.340178 Audio: 	Output channels = 0
00:00:02.340182 Audio: Device 'Microphone Array (Realtek High Definition Audio)':
00:00:02.340186 Audio: 	Usage           = Input
00:00:02.340190 Audio: 	Flags           = NONE
00:00:02.340193 Audio: 	Input channels  = 2
00:00:02.340197 Audio: 	Output channels = 0
00:00:02.340201 Audio: Device 'Headset (ATH-AR3BT Hands-Free)':
00:00:02.340205 Audio: 	Usage           = Input
00:00:02.340208 Audio: 	Flags           = NONE
00:00:02.340212 Audio: 	Input channels  = 2
00:00:02.340216 Audio: 	Output channels = 0
Can you simplify your audio setup? I also see a Thunderbolt Dock being involved in there, and docking/undocking has been problematic. At the end of the day what I'd like to see is:
00:00:02.340031 Audio: Found 2 devices for driver 'DSoundAudio'
00:00:02.340043 Audio: Device 'Primary Sound Driver':
00:00:02.340048 Audio: 	Usage           = Output
00:00:02.340054 Audio: 	Flags           = DEFAULT
00:00:02.340058 Audio: 	Input channels  = 0
00:00:02.340062 Audio: 	Output channels = 2
00:00:02.340143 Audio: Device 'Primary Sound Capture Driver':
00:00:02.340147 Audio: 	Usage           = Input
00:00:02.340151 Audio: 	Flags           = NONE
00:00:02.340155 Audio: 	Input channels  = 2
00:00:02.340159 Audio: 	Output channels = 0
JUSHJUSH wrote:spontaneously, after using my guest for random amount of time
That's the most interesting one, the other two have been known to cause issues. It's not easy to change your hardware on-the-fly:
00:05:25.392313 Audio: Device configuration of driver 'DSoundAudio' has changed
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply