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

 

 

 

[SOLVED] PulseAudio and Windows, a weird story of love

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
mquiroga
Posts: 8
Joined: 2017-12-17 20:56

[SOLVED] PulseAudio and Windows, a weird story of love

#1 Post by mquiroga »

Well, this is kind of non sense... actually is totally non sense. I have 2 drives, 1 of them has a debian installation, the other one has Windows 10. In Debian I have this problem with audio, where I constantly hear popping sounds, and when I play videos or audio (any kind, on youtube, flac, mp3), the popping sound is very annoying, so i tried a lot of things, changed frecuency daemon.conf of pulseadio, disabled time scheduling, uninstall and install pulseaudio, stop check and start pulseaudio, rebooted on every little config change, invoked lucifer and asked him to fix it, but non of this worked. Now... I thought that maybe it's a hardware problem on the motherboard, so just to be sure I booted into Windows to see if the sound quality was good, and worked perfectly. The really weird thing is that when I booted Debian, the sound started to work perfect magically, and to be sure I tried it again, shut down - boot debian with popping sound - reboot - boot windows - reboot - boot debian with perfect audio, and then I triple checked.

I'm lost here, this doesn't make sense at all.

I would appreciate some help. Thank you!!
Last edited by mquiroga on 2017-12-24 20:37, edited 1 time in total.

User avatar
Capitain_Jack
Posts: 153
Joined: 2017-12-15 12:07
Location: Brazil capital, Brasilia, At the favela.

Re: PulseAudio and Windows, a weird story of love

#2 Post by Capitain_Jack »

Here, take a look into this post if it helps you:
http://forums.debian.net/viewtopic.php?f=7&t=135631

Please, if you consider the issue solved, come back and edit the first message title adding [SOLVED] to the beginning of it, so others can benefit from your solution.
"Great spirits have always encountered violent opposition from mediocre minds."
Albert Einstein
"All wrong-doing arises because of mind. If mind is transformed can wrong-doing remain?"
Buddha

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: PulseAudio and Windows, a weird story of love

#3 Post by debiman »

there's so many things to clarify here.

- is windows doing a full shutdown, or its own special hibernate thingy? try both.
- would audio work flawlessly without pulseaudio?

and, most importantly:

- what sort of audio hardware and drivers do you have running there?

please answer all questions and post the output of

Code: Select all

lspci -nnk|grep -iA5 audio
and some general computer specs.

edit:
in addition, this is difficult to search the web for.
it's up to you to formulate a few dozen search terms that maybe help you to find some relevant info.

mquiroga
Posts: 8
Joined: 2017-12-17 20:56

Re: PulseAudio and Windows, a weird story of love

#4 Post by mquiroga »

debiman wrote:there's so many things to clarify here.

- is windows doing a full shutdown, or its own special hibernate thingy? try both.
- would audio work flawlessly without pulseaudio?

and, most importantly:

- what sort of audio hardware and drivers do you have running there?

please answer all questions and post the output of

Code: Select all

lspci -nnk|grep -iA5 audio
and some general computer specs.

edit:
in addition, this is difficult to search the web for.
it's up to you to formulate a few dozen search terms that maybe help you to find some relevant info.
1) I may not explained the "workflow" well. I turn on the PC, and boot the drive where debian is installed, and the audio has popping sounds, if I do nothing (reboot directly, without opening anything) and reboot into debian again, the problem persists. If I reboot the PC, and boot into the Windows drive and do the same (reboot directly without opening anything and boot on debian) the sound works perfect. It's like if booting into windows it's fixing audio for debian in the other drive.
The popping sound reappear when I shutdown de PC and boot into debian next time.

2) I ran apt-get purge pulseaudio, problem still exists (maybe it's alsa?)

3) I have 2 outputs, HDMI from ASUS NVIDIA 1060 (works perfect always) and a Realtek ALC887 (on a Gigabyte AB-350M-Gaming 3 motherboard). For the videocard i installed firmware-linux, nvidia-driver, nvidia-settings and nvidia-xconfig packages.
For the motherboard I didn't found drivers.


07:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:10f1] (rev a1)
Subsystem: ASUSTeK Computer Inc. Device [1043:85b9]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
08:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device [1022:145a]
Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:145a]
--
09:00.3 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Device [1022:1457] <--- this is the one popping (it's popping at the moment of running the command)
Subsystem: Gigabyte Technology Co., Ltd Device [1458:a182]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel

I really googled this, but i don't understand the way that linux works with audio to troubleshoot this by myself. The only log that could find that would help me is syslog, but it's not a lot of info to debug the problem (for me).

Thank you!

User avatar
Capitain_Jack
Posts: 153
Joined: 2017-12-15 12:07
Location: Brazil capital, Brasilia, At the favela.

Re: PulseAudio and Windows, a weird story of love

#5 Post by Capitain_Jack »

I tryied to point you in the right direction here:
Capitain_Jack wrote:This "sounds" like a bitrate and resample problem, what configs you are using? High configuration can lead to this kind of problem, this may point you into the solution:
http://www.overclock.net/a/how-to-get-t ... pulseaudio
But here it goes a more detailed explain (made at facebook Debian page):
The thing is, your audio is not being properly or with quality being re-sampled. I guess enabling only a good re-sampler it's ok
in order to make it so, uncoment:
allow-module-loading = yes
resample-method = speex-float-1
avoid-resampling = false

And change the resample-method to a better one. Here it is a list:
https://linux.die.net/man/5/pulse-daemon.conf

The resample method is more of a user decision, depending on hardware, because a very high quality resampler will use more CPU.
The original one is ok, only need to change it's number from 1 to 3 (value 1 to 5, 5 is best quality) or change it to "src-sinc-best-quality" if you really want quality and have good hardware.
Another important thing I didn't mentioned is the bit rate and format, I would recommend "default-sample-rate=48000" for the bit rate, and "default-sample-format=s24le" for the sample format, so you have what windows call "DVD quality" audio.

Need to install libsamplerate.
"Great spirits have always encountered violent opposition from mediocre minds."
Albert Einstein
"All wrong-doing arises because of mind. If mind is transformed can wrong-doing remain?"
Buddha

mquiroga
Posts: 8
Joined: 2017-12-17 20:56

Re: PulseAudio and Windows, a weird story of love

#6 Post by mquiroga »

Capitain_Jack wrote:I tryied to point you in the right direction here:
Capitain_Jack wrote:This "sounds" like a bitrate and resample problem, what configs you are using? High configuration can lead to this kind of problem, this may point you into the solution:
http://www.overclock.net/a/how-to-get-t ... pulseaudio
But here it goes a more detailed explain (made at facebook Debian page):
The thing is, your audio is not being properly or with quality being re-sampled. I guess enabling only a good re-sampler it's ok
in order to make it so, uncoment:
allow-module-loading = yes
resample-method = speex-float-1
avoid-resampling = false

And change the resample-method to a better one. Here it is a list:
https://linux.die.net/man/5/pulse-daemon.conf

The resample method is more of a user decision, depending on hardware, because a very high quality resampler will use more CPU.
The original one is ok, only need to change it's number from 1 to 3 (value 1 to 5, 5 is best quality) or change it to "src-sinc-best-quality" if you really want quality and have good hardware.
Another important thing I didn't mentioned is the bit rate and format, I would recommend "default-sample-rate=48000" for the bit rate, and "default-sample-format=s24le" for the sample format, so you have what windows call "DVD quality" audio.

Need to install libsamplerate.
That didn't worked, but I found that you can modify log level. This is what happen when I hear the pop sound

Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now plugged in
Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] device-port.c: Setting port analog-output-headphones to status yes
Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] module-switch-on-port-available.c: Trying to switch to port analog-output-headphones
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Activating path analog-output-headphones

Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Path analog-output-headphones (Auriculares analógicos), direction=1, priority=90, probed=yes, supported=yes, has_mute=yes, has_volume=yes, has_dB=yes, min_volume=0, max_volume=64, min_dB=-179, max_dB=0
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Element Master, direction=1, switch=1, volume=1, volume_limit=-1, enumeration=0, required=0, required_any=0, required_absent=0, mask=0x7ffffffffffff, n_channels=1, override_map=yes
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Element Headphone, direction=1, switch=1, volume=1, volume_limit=-1, enumeration=0, required=0, required_any=4, required_absent=0, mask=0x3600000000f66, n_channels=2, override_map=yes
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Element Front, direction=1, switch=1, volume=3, volume_limit=-1, enumeration=0, required=0, required_any=0, required_absent=0, mask=0x6, n_channels=2, override_map=no
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Element Surround, direction=1, switch=2, volume=2, volume_limit=-1, enumeration=0, required=0, required_any=0, required_absent=0, mask=0x6, n_channels=2, override_map=no
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Element Center, direction=1, switch=2, volume=2, volume_limit=-1, enumeration=0, required=0, required_any=0, required_absent=0, mask=0x7ffffffffffff, n_channels=1, override_map=no
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Element LFE, direction=1, switch=2, volume=2, volume_limit=-1, enumeration=0, required=0, required_any=0, required_absent=0, mask=0x7ffffffffffff, n_channels=1, override_map=no
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Element PCM, direction=1, switch=0, volume=1, volume_limit=-1, enumeration=0, required=0, required_any=0, required_absent=0, mask=0x3600000000f66, n_channels=2, override_map=yes
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Element IEC958, direction=1, switch=2, volume=0, volume_limit=-1, enumeration=0, required=0, required_any=0, required_absent=0, mask=0x0, n_channels=0, override_map=no
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Jack Dock Headphone, alsa_name='Dock Headphone Jack', detection unavailable
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Jack Dock Headphone Phantom, alsa_name='Dock Headphone Phantom Jack', detection unavailable
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Jack Front Headphone, alsa_name='Front Headphone Jack', detection possible
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Jack Front Headphone Phantom, alsa_name='Front Headphone Phantom Jack', detection unavailable
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Jack Headphone, alsa_name='Headphone Jack', detection unavailable
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Jack Headphone Phantom, alsa_name='Headphone Phantom Jack', detection unavailable
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Jack Headphone Mic, alsa_name='Headphone Mic Jack', detection unavailable
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-sink.c: Successfully enabled deferred volume.
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-sink.c: Hardware volume ranges from -179,00 dB to 0,00 dB.
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-sink.c: Fixing base volume to 0,00 dB
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-sink.c: Using hardware volume control. Hardware dB scale supported.
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-sink.c: Using hardware mute control.
Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] sink.c: Changed port of sink 2 "alsa_output.pci-0000_09_00.3.analog-stereo" to analog-output-headphones
Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] module-device-restore.c: Restoring volume for sink alsa_output.pci-0000_09_00.3.analog-stereo.
Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] sink.c: The reference volume of sink alsa_output.pci-0000_09_00.3.analog-stereo changed from front-left: 65536 / 100% / 0,00 dB, front-right: 65536 / 100% / 0,00 dB to front-left: 41350 / 63% / -12,00 dB, front-right: 41350 / 63% / -12,00 dB.
Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-sink.c: Requested volume: front-left: 41350 / 63% / -12,00 dB, front-right: 41350 / 63% / -12,00 dB
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-sink.c: Got hardware volume: front-left: 41350 / 63% / -12,00 dB, front-right: 41350 / 63% / -12,00 dB
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-sink.c: Calculated software volume: front-left: 65536 / 100% / 0,00 dB, front-right: 65536 / 100% / 0,00 dB (accurate-enough=yes)
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] sink.c: Volume going down to 41350 at 10942347607
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] sink.c: Volume change to 41350 at 10942347607 was written 8014 usec late
Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] module-device-restore.c: Restoring mute state for sink alsa_output.pci-0000_09_00.3.analog-stereo.
Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] sink.c: The mute of sink alsa_output.pci-0000_09_00.3.analog-stereo changed from no to yes.
Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] device-port.c: Setting port analog-output-lineout to status no
Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] protocol-native.c: Client gnome-control-center changes mute of sink alsa_output.pci-0000_09_00.3.analog-stereo.
Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now unplugged
Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] device-port.c: Setting port analog-output-lineout to status yes

Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] module-switch-on-port-available.c: Trying to switch to port analog-output-lineout
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Activating path analog-output-lineout

Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Path analog-output-lineout (Line Out), direction=1, priority=99, probed=yes, supported=yes, has_mute=yes, has_volume=yes, has_dB=yes, min_volume=0, max_volume=64, min_dB=-179, max_dB=0
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Element Master, direction=1, switch=1, volume=1, volume_limit=-1, enumeration=0, required=0, required_any=0, required_absent=0, mask=0x7ffffffffffff, n_channels=1, override_map=yes
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Element Headphone, direction=1, switch=2, volume=2, volume_limit=-1, enumeration=0, required=0, required_any=0, required_absent=0, mask=0x6, n_channels=2, override_map=no
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Element Front, direction=1, switch=1, volume=1, volume_limit=-1, enumeration=0, required=0, required_any=0, required_absent=0, mask=0x6, n_channels=2, override_map=yes
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Element Surround, direction=1, switch=1, volume=1, volume_limit=-1, enumeration=0, required=0, required_any=0, required_absent=0, mask=0x60, n_channels=2, override_map=yes
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Element Center, direction=1, switch=1, volume=1, volume_limit=-1, enumeration=0, required=0, required_any=0, required_absent=0, mask=0x4900000000018, n_channels=1, override_map=yes
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Element LFE, direction=1, switch=1, volume=1, volume_limit=-1, enumeration=0, required=0, required_any=0, required_absent=0, mask=0x80, n_channels=1, override_map=yes
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Element PCM, direction=1, switch=0, volume=1, volume_limit=-1, enumeration=0, required=0, required_any=0, required_absent=0, mask=0x3600000000f66, n_channels=2, override_map=yes
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Element IEC958, direction=1, switch=2, volume=0, volume_limit=-1, enumeration=0, required=0, required_any=0, required_absent=0, mask=0x0, n_channels=0, override_map=no
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Jack Line Out, alsa_name='Line Out Jack', detection possible
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Jack Line Out Phantom, alsa_name='Line Out Phantom Jack', detection unavailable
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Jack Headphone, alsa_name='Headphone Jack', detection unavailable
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Jack Front Headphone, alsa_name='Front Headphone Jack', detection possible
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Jack Front Line Out, alsa_name='Front Line Out Jack', detection unavailable
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Jack Front Line Out Phantom, alsa_name='Front Line Out Phantom Jack', detection unavailable
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Jack Rear Line Out, alsa_name='Rear Line Out Jack', detection unavailable
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Jack Rear Line Out Phantom, alsa_name='Rear Line Out Phantom Jack', detection unavailable
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Jack Line Out Front, alsa_name='Line Out Front Jack', detection unavailable
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Jack Line Out Front Phantom, alsa_name='Line Out Front Phantom Jack', detection unavailable
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Jack Line Out CLFE, alsa_name='Line Out CLFE Jack', detection unavailable
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Jack Line Out CLFE Phantom, alsa_name='Line Out CLFE Phantom Jack', detection unavailable
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Jack Line Out Surround, alsa_name='Line Out Surround Jack', detection unavailable
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Jack Line Out Surround Phantom, alsa_name='Line Out Surround Phantom Jack', detection unavailable
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Jack Line Out Side, alsa_name='Line Out Side Jack', detection unavailable
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Jack Line Out Side Phantom, alsa_name='Line Out Side Phantom Jack', detection unavailable
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Jack Dock Line Out, alsa_name='Dock Line Out Jack', detection unavailable
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-mixer.c: Jack Dock Line Out Phantom, alsa_name='Dock Line Out Phantom Jack', detection unavailable
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-sink.c: Successfully enabled deferred volume.
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-sink.c: Hardware volume ranges from -179,00 dB to 0,00 dB.
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-sink.c: Fixing base volume to 0,00 dB
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-sink.c: Using hardware volume control. Hardware dB scale supported.
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-sink.c: Using hardware mute control.
Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] sink.c: Changed port of sink 2 "alsa_output.pci-0000_09_00.3.analog-stereo" to analog-output-lineout
Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] module-device-restore.c: Restoring volume for sink alsa_output.pci-0000_09_00.3.analog-stereo.
Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] sink.c: The reference volume of sink alsa_output.pci-0000_09_00.3.analog-stereo changed from front-left: 41350 / 63% / -12,00 dB, front-right: 41350 / 63% / -12,00 dB to front-left: 65536 / 100% / 0,00 dB, front-right: 65536 / 100% / 0,00 dB.
Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-sink.c: Requested volume: front-left: 65536 / 100% / 0,00 dB, front-right: 65536 / 100% / 0,00 dB
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-sink.c: Got hardware volume: front-left: 65536 / 100% / 0,00 dB, front-right: 65536 / 100% / 0,00 dB
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] alsa-sink.c: Calculated software volume: front-left: 65536 / 100% / 0,00 dB, front-right: 65536 / 100% / 0,00 dB (accurate-enough=yes)
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] sink.c: Volume going up to 65536 at 10942384233
Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] module-device-restore.c: Restoring mute state for sink alsa_output.pci-0000_09_00.3.analog-stereo.
Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] sink.c: The mute of sink alsa_output.pci-0000_09_00.3.analog-stereo changed from yes to no.
Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] device-port.c: Setting port analog-output-headphones to status no
Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
Dec 24 17:11:19 crystalship pulseaudio[9299]: [pulseaudio] protocol-native.c: Client gnome-control-center changes mute of sink alsa_output.pci-0000_09_00.3.analog-stereo.
Dec 24 17:11:19 crystalship pulseaudio[9299]: [alsa-sink-ALC887-VD Analog] sink.c: Volume change to 65536 at 10942384233 was written 19 usec late

As you can see, pulseaudio detects a random jack connection, configure the jack and deactivates it to activate the line out again. Again, when I restart, boot windows, restart, boot debian, this problem disappear and I see the line out output working ok.

User avatar
Capitain_Jack
Posts: 153
Joined: 2017-12-15 12:07
Location: Brazil capital, Brasilia, At the favela.

Re: PulseAudio and Windows, a weird story of love

#7 Post by Capitain_Jack »

Than my guess is the automatic detection is in some trouble, maybe disable it?
https://unix.stackexchange.com/question ... pulseaudio
"Great spirits have always encountered violent opposition from mediocre minds."
Albert Einstein
"All wrong-doing arises because of mind. If mind is transformed can wrong-doing remain?"
Buddha

mquiroga
Posts: 8
Joined: 2017-12-17 20:56

Re: PulseAudio and Windows, a weird story of love

#8 Post by mquiroga »

Capitain_Jack wrote:Than my guess is the automatic detection is in some trouble, maybe disable it?
https://unix.stackexchange.com/question ... pulseaudio
Well, I kinda solved it. That didn't work, but disabling auto-mute in alsamixer makes that when the jack is detected do not mute the line out, so, the error persists but has no practical effect. It's so weird, in the config I see how line out changes the name to headphone and goes back to line out in less than a second (at the same time that I see the log that I mentioned before).

Anyways, it does not bother me anymore the popping even if the error still exists... "SOLVED".

Thank you all!

User avatar
Capitain_Jack
Posts: 153
Joined: 2017-12-15 12:07
Location: Brazil capital, Brasilia, At the favela.

Re: PulseAudio and Windows, a weird story of love

#9 Post by Capitain_Jack »

mquiroga wrote:
Capitain_Jack wrote:Than my guess is the automatic detection is in some trouble, maybe disable it?
https://unix.stackexchange.com/question ... pulseaudio
Well, I kinda solved it. That didn't work, but disabling auto-mute in alsamixer makes that when the jack is detected do not mute the line out, so, the error persists but has no practical effect. It's so weird, in the config I see how line out changes the name to headphone and goes back to line out in less than a second (at the same time that I see the log that I mentioned before).

Anyways, it does not bother me anymore the popping even if the error still exists... "SOLVED".

Thank you all!
Yes, for sure is an issue with the plug detection. Seen it many times. The popping was from mute unmute than!? Nice it's "workarrounded" :D but the right thing to do is disable it, at windows also, so it don't stay on and offing all time.

Please, if you consider the topic solved, edit the first message title adding a [SOLVED] to the beginning of it, so others can benefit from your solution.
"Great spirits have always encountered violent opposition from mediocre minds."
Albert Einstein
"All wrong-doing arises because of mind. If mind is transformed can wrong-doing remain?"
Buddha

mquiroga
Posts: 8
Joined: 2017-12-17 20:56

Re: PulseAudio and Windows, a weird story of love

#10 Post by mquiroga »

Capitain_Jack wrote:
mquiroga wrote:
Capitain_Jack wrote:Than my guess is the automatic detection is in some trouble, maybe disable it?
https://unix.stackexchange.com/question ... pulseaudio
Well, I kinda solved it. That didn't work, but disabling auto-mute in alsamixer makes that when the jack is detected do not mute the line out, so, the error persists but has no practical effect. It's so weird, in the config I see how line out changes the name to headphone and goes back to line out in less than a second (at the same time that I see the log that I mentioned before).

Anyways, it does not bother me anymore the popping even if the error still exists... "SOLVED".

Thank you all!
Yes, for sure is an issue with the plug detection. Seen it many times. The popping was from mute unmute than!? Nice it's "workarrounded" :D but the right thing to do is disable it, at windows also, so it don't stay on and offing all time.

Please, if you consider the topic solved, edit the first message title adding a [SOLVED] to the beginning of it, so others can benefit from your solution.
Tried this
remove the following line:
load-module module-switch-on-port-available

and it just kills audio. The other suggestions in the thread do not apply,

Post Reply