Sound returns after killing pulseaudio

Bug #1094886 reported by Marc Savelsberg
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pulseaudio (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

After upgrade to 12.10 from 12.04 I lost sound through my speakers again.
When I plug in a headphone I have sound. Problem lies probably in Pulseaudio, because I hear a short period (<2 s) through speakers after mute and unmute.
This effect is toggled by the sound-indicator muting only (pulseaudio), not on the alsamixer or card controls in pavucontrol or QASmixer.

Output of alsa-info.sh: http://www.alsa-project.org/db/?f=5a9a15aafd216fb880268a672fa11e3c822c09a1

I already tried most of the proposed solutions, but still no luck.

UPDATE: in search of solutions, I tried to get a log of the pulseaudio processes so I made a ~/.pulse/client.conf with autospawn=no and killed all pulseaudio. After that I entered the command to verbose start pulseaudio. And low and behold, I had sound (but it means that pulseaudio is not running, because the sound-indicator applet and settings applet is not working. In QAS mixer I get "Mixer device could not be opened"
Function: snd_hctl_open
Address: pulse
Error: Connection is refused

I kept the ~/.pulse/client.conf unchanged and restarted the system. Now I still have sound so it seems that with my system sound can be played but without pulse.

UPDATE2
For my provisional solution see last comment. Only drawback at this moment is that however the sound levels are adjusted on plugging in a headphone, the headphone is not muted after unplugging. I have to manually mute the headphone.

Tags: quantal
Revision history for this message
Marc Savelsberg (m-savelsberg) wrote :

I provide you with the pulseaudiolog I got by following the procedure on https://wiki.ubuntu.com/PulseAudio/Log.

Revision history for this message
Raymond (superquad-vortex2) wrote :

post the output of pactl list

when your notebook have line out. Mic and line in jacks for surround 5.1

there is no headphone jack for the headphone profile

but pulseaudio does not check the line out rear Jack kcontrol to enable the analog output

and driver Don't create phantom Jack for internal speaker

control.37 {
  iface CARD
  name 'Line-Out Jack'
  value false
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.38 {
  iface CARD
  name 'Mic Jack'
  value false
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.39 {
  iface CARD
  name 'Line Jack'
  value false
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }

Node 0x1b [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Control: name="Speaker Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals: [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x00 0x00]
  Pincap 0x0000373c: IN OUT HP Detect
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x99130120: [Fixed] Speaker at Int ATAPI
    Conn = ATAPI, Color = Unknown
    DefAssociation = 0x2, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Connection: 5
     0x0c 0x0d 0x0e 0x0f* 0x26

Revision history for this message
Marc Savelsberg (m-savelsberg) wrote :

Here's the output, but can you then point me in the direction where I could solve the problem?
BTW it's not a notebook but the P4010 all-in-one PC by Medion. (MS-7621)
What output did you put in your comment, because it isn't like the pactl output.

Revision history for this message
Marc Savelsberg (m-savelsberg) wrote :

Just found out something more:
after preventing pulseaudio to start (with autorespawn = no in /etc/pulse/client.conf) I initially had no sound. But after playing in QASmixer (or alsamixer for that matter) I just found out that to have sound, I had to disable the front speaker. Now I hear the output of Rythmbox over the speaker (which are controlled through speaker control in the mixer)

Revision history for this message
Marc Savelsberg (m-savelsberg) wrote :

NEW INFO
I just restarted with pulseaudio.
In alsamixer I have two options in F6: -(default) and 0 (HDA NVidia)
On both instances I can mute the Front level, but it also mutes the master level. Then I can unmute the Master level without unmuting the Front level.
In QAS mixer, when I mute Front, both default and pulse master controls are muted as well as the Master and speaker control of hw: Card.
In the hw: Card mixer I can unmute Master, but the Master control of default and pulse stay muted.
When I then unmute default or pulse master (they both have only one control), Master, speaker and Front are unmuted. So, if I could get configuration to leave Front muted than I should be able to get sound.
Now I also know the reason why I only hear a short burst of sound after unmuting; when unmuting default or pulse: sound returns but disappears because Front level is unmuted again.

Revision history for this message
Raymond (superquad-vortex2) wrote :

how many audio jacks on this all-in-one PC ?

does the specification support 5.1 by retaskin Mic and line in jacks ?

the green Jack is line out and there is no headphone jack

pin-ctls may need to set OUT HP if it can be used as headphone jack

http://git.kernel.org/?p=linux/kernel/git/tiwai/sound.git;a=commitdiff;h=8974bd51a77824d91010176f9a5da28513c2e1f5;hp=763437a9e7737535b2fc72175ad4974048769be6

send email to the author if your all-in-one PC need line out automute internal speaker

or pin Fishpond to change line out to headphone ?

Node 0x14 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Control: name="Front Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Line-Out Jack", index=0, device=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals: [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x00 0x00]
  Pincap 0x0000373c: IN OUT HP Detect
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x01014010: [Jack] Line Out at Ext Rear
    Conn = 1/8, Color = Green
    DefAssociation = 0x1, Sequence = 0x0
  Pin-ctls: 0x40: OUT VREF_HIZ
  Unsolicited: tag=01, enabled=1
  Connection: 5
     0x0c* 0x0d 0x0e 0x0f 0x26

Revision history for this message
Raymond (superquad-vortex2) wrote :

http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/mixer/paths

the other way is to add lineout,conf which automute internal speaker in pulseaudio

Revision history for this message
Marc Savelsberg (m-savelsberg) wrote :

To answer your comment #6:
there's a green line-out/headphone jack and a pink jack for microphone on the side.
Both can be used as 5.1 output jacks.
I am not sure if you understand the problem, because the green jack is functional when I plug in headphones (there is sound through the headphones).

As in your comment #7: what do I have to do in lineout.conf? I don't need to automute the internal speaker but to activate it without activating the 5.1 Front setting because I am not using it.

Revision history for this message
Marc Savelsberg (m-savelsberg) wrote :

In short: what should I change to achieve my desired effect?

Revision history for this message
Raymond (superquad-vortex2) wrote :

 0.037| 0.000) D: [pulseaudio] alsa-mixer.c: Skipping path 'analog-output-headphones', none of required-any elements preset.

pulseaudio expect to find headphone playback volume and headphone Jack kcontrol for path 'analog-output-headphones',

Revision history for this message
Marc Savelsberg (m-savelsberg) wrote : Re: [Bug 1094886] Re: Sound returns after killing pulseaudio

Still unclear where and what I should doRaymond <email address hidden> schreef:0.037|   0.000) D: [pulseaudio] alsa-mixer.c: Skipping path 'analog-
output-headphones', none of required-any elements preset.

pulseaudio expect to find headphone playback volume and headphone Jack
kcontrol for path 'analog-output-headphones',

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1094886

Title:
  Sound returns after killing pulseaudio

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1094886/+subscriptions

Revision history for this message
Raymond (superquad-vortex2) wrote :

for desktop

select front headphone path mute analog output path rear line out jacks

for notebook

select headphone path mute the analog output path internal speaker

for your all-in-one pc

both internal speaker and rear line out belong to the same path analog output of pulseaudio

does internal speaker muted when line out Jack is plugged ?

Stereo:
the audio sockets possess their basic functions.

Quadrophonic:
 the blue socket is for the rear loudspeaker;
the green socket is for the front loudspeaker;
the pink socket is the microphone input.

5.1 loudspeaker:
blue and green sockets as with quadrophonic;
the pink socket is for centre loudspeaker and sub-woofer

Revision history for this message
Raymond (superquad-vortex2) wrote :

you have to send email to pulseaudio mailing list and always development mailing list

 alsa.card = "0"
  alsa.card_name = "HDA NVidia"
  alsa.long_card_name = "HDA NVidia at 0xf9e78000 irq 21"
  alsa.driver_name = "snd_hda_intel"
  device.bus_path = "pci-0000:00:08.0"
  sysfs.path = "/devices/pci0000:00/0000:00:08.0/sound/card0"
  device.bus = "pci"
  device.vendor.id = "10de"
  device.vendor.name = "NVIDIA Corporation"
  device.product.name = "MCP79 High Definition Audio"
  device.form_factor = "internal"
  device.string = "front:0"
  device.buffering.buffer_size = "14080"
  device.buffering.fragment_size = "1408"
  device.access_mode = "mmap"
  device.profile.name = "analog-stereo"
  device.profile.description = "Analoog stereo"
  device.description = "Intern geluid Analoog stereo"
  alsa.mixer_name = "Realtek ALC889A"
  alsa.components = "HDA:10ec0885,14627621,00100101"
  module-udev-detect.discovered = "1"
  device.icon_name = "audio-card-pci"
 Poorten:
  analog-output-speaker: Luidsprekers (priority: 10000)
 Actieve poort: analog-output-speaker
 Formaten:
  pcm

Revision history for this message
Raymond (superquad-vortex2) wrote :

send email to alsa development mailing list if lineout Jack automute speaker does not work as the function alc_line_automute is design for this feature

Revision history for this message
Marc Savelsberg (m-savelsberg) wrote :

I suppose everyone related will receive and hopefully look at this bug/question.

@Raymond: To your comment #12: it's clear what you mean with the functions, but still it seems you are talking about selecting and changing some file but what file(s) are you talking about?

Revision history for this message
Raymond (superquad-vortex2) wrote :

it seem that some problem when you upgrade

did you still have these messages in system log

ALSA/HDA dmesg
!!--------------

[ 30.930923] snd_seq_midi: Unknown symbol snd_rawmidi_kernel_release (err 0)

https://answers.launchpad.net/ubuntu/+source/pulseaudio/+question/217874

30.924435] snd_rawmidi: disagrees about version of symbol snd_info_register
 [ 30.924443] snd_rawmidi: Unknown symbol snd_info_register (err -22)
 [ 30.924448] snd_rawmidi: disagrees about version of symbol snd_ctl_unregister_ioctl_compat
 [ 30.924449] snd_rawmidi: Unknown symbol snd_ctl_unregister_ioctl_compat (err -22)
 [ 30.924455] snd_rawmidi: disagrees about version of symbol snd_seq_device_new
 [ 30.924457] snd_rawmidi: Unknown symbol snd_seq_device_new (err -22)
 [ 30.924467] snd_rawmidi: disagrees about version of symbol snd_info_free_entry
 [ 30.924469] snd_rawmidi: Unknown symbol snd_info_free_entry (err -22)
 [ 30.924478] snd_rawmidi: disagrees about version of symbol snd_unregister_oss_device
 [ 30.924480] snd_rawmidi: Unknown symbol snd_unregister_oss_device (err -22)
 [ 30.924488] snd_rawmidi: disagrees about version of symbol snd_register_oss_device
 [ 30.924490] snd_rawmidi: Unknown symbol snd_register_oss_device (err -22)
 [ 30.924500] snd_rawmidi: disagrees about version of symbol snd_ctl_register_ioctl

Revision history for this message
Marc Savelsberg (m-savelsberg) wrote :

@Raymond: yes, these messages still appear in dmesg but they have to do with midi-files and at the moment I am not trying to get midi to work.

tags: added: quantal
Revision history for this message
Marc Savelsberg (m-savelsberg) wrote :

Found a workaround after studying many posts. Here the steps I followed:

1: I am only using front speakers for sound. No 5.1 or such speaker system present. Thus I am using the green jack on the side only for headphones. I used hda-jack-retask to override pin0x14 to be headphone only. (restart)
2: After reading up on alsa-mixer in pulseaudio I changed analog-output-speaker.conf in /usr/share/pulseaudio/alsa-mixer/paths in the following way:

[Element Hardware Master]
;switch = mute
switch = ignore
;volume = merge
volume = ignore
;override-map.1 = all
;override-map.2 = all-left,all-right

[Element Desktop Speaker]
;switch = off
switch = mute
;volume = off
volume = merge

after restart (system or with killall pulseaudio;alsa force-reload) I have sound because probably hardware master (pulseaudio and default) are no longer coupled with headphone and speaker controls.
I still have to test a little if everything works as supposed but for now I have sound without having to kill or suspend pulseaudio.

description: updated
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for reporting this bug to Ubuntu.
Ubuntu 12.10 (quantal) reached end-of-life on May 16, 2014.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test.

Changed in pulseaudio (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for pulseaudio (Ubuntu) because there has been no activity for 60 days.]

Changed in pulseaudio (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.