PA and knotify startup race leads to wrong device selection
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Phonon |
Unknown
|
Medium
|
|||
kde-runtime (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned | ||
pulseaudio (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
This appears to be a regression in Oneiric.
I'm running Kubuntu with pulseaudio.
I have on my motherboard intel hda analog audio and my graphics card (an ATI) had an HDMI out; by default I like the audio to come out of the analog output that is the only one connected.
Sometimes logging into KDE I find that it's decided to switch to the HDMI as the default; today I caught it and did an lsof /dev/snd/* and found:
knotify4 2276 dg mem CHR 116,3 6691 /dev/snd/pcmC0D0p
knotify4 2276 dg 20r CHR 116,33 0t0 9995 /dev/snd/timer
knotify4 2276 dg 21u CHR 116,3 0t0 6691 /dev/snd/pcmC0D0p
pulseaudi 2893 dg 24u CHR 116,9 0t0 6698 /dev/snd/controlC1
pulseaudi 2893 dg 31u CHR 116,6 0t0 6694 /dev/snd/controlC0
pulseaudi 2893 dg 38u CHR 116,6 0t0 6694 /dev/snd/controlC0
So knotify4 has hogged the analog output, and hence pa can't get in.
So I kill knotify4, and do a pactl exit to restart pa - but pa then still lists the HDMI as the default output in paman, and I can't see a way to get it back to default without restarting everything.
I'm also going to subscribe this bug to kde-runtime; I'm not sure who is supposed to manage the race between pa startup and anything else, and I'm not sure if it's a kubuntu special or KDE in general.
Dave
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: pulseaudio 1:1.0-0ubuntu3
ProcVersionSign
Uname: Linux 3.0.0-12-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
ArecordDevices:
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: VT1708S Analog [VT1708S Analog]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/
Card0.Amixer.info:
Card hw:0 'Intel'/'HDA Intel at 0xfbcf8000 irq 47'
Mixer name : 'VIA VT1708S'
Components : 'HDA:11060397,
Controls : 37
Simple ctrls : 21
Card1.Amixer.info:
Card hw:1 'HDMI'/'HDA ATI HDMI at 0xfbffc000 irq 48'
Mixer name : 'ATI R6xx HDMI'
Components : 'HDA:1002aa01,
Controls : 4
Simple ctrls : 1
Card1.Amixer.
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [on]
CheckboxSubmission: f2d10bd9f943a85
CheckboxSystem: 0531969bcfd4f03
Date: Sun Oct 16 12:31:37 2011
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: pulseaudio
UpgradeStatus: Upgraded to oneiric on 2011-09-24 (21 days ago)
dmi.bios.date: 09/10/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: P1.50
dmi.board.name: P55M Pro
dmi.board.vendor: ASRock
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: To Be Filled By O.E.M.
dmi.product.
dmi.sys.vendor: To Be Filled By O.E.M.
Changed in phonon: | |
importance: | Unknown → Medium |
status: | Unknown → New |
Changed in phonon: | |
status: | New → Unknown |
Version: unspecified (using KDE 4.7.2)
OS: Linux
(I originally reported this on Ubuntu's Launchpad as: /bugs.launchpad .net/ubuntu/ +source/ kde-runtime/ +bug/875660)
https:/
I'm running Kubuntu with pulseaudio.
I have on my motherboard intel hda analog audio and my graphics card (an ATI) had an HDMI out; by default I like the audio to come out of the analog output that is the only one connected.
Sometimes logging into KDE I find that it's decided to switch to the HDMI as the default; today I caught it and did an lsof /dev/snd/* and found:
knotify4 2276 dg mem CHR 116,3 6691 /dev/snd/pcmC0D0p
knotify4 2276 dg 20r CHR 116,33 0t0 9995 /dev/snd/timer
knotify4 2276 dg 21u CHR 116,3 0t0 6691 /dev/snd/pcmC0D0p
pulseaudi 2893 dg 24u CHR 116,9 0t0 6698 /dev/snd/controlC1
pulseaudi 2893 dg 31u CHR 116,6 0t0 6694 /dev/snd/controlC0
pulseaudi 2893 dg 38u CHR 116,6 0t0 6694 /dev/snd/controlC0
So knotify4 has hogged the analog output, and hence pa can't get in.
So I kill knotify4, and do a pactl exit to restart pa - but pa then still lists the HDMI as the default output in paman.
(I've now found I can switch it back with pacmd set-default-sink)
Dave
Reproducible: Sometimes
Steps to Reproduce:
It's a race, so only happens sometimes.
1) Login
2) Try to play some music
3) Find it doesn't play
4) lsof /dev/snd/* to see who has what devices
Actual Results:
No music coming out of my analog output.
lsof shows knotify4 hogging the analog device
Expected Results:
Sweet music on my analog output, pa has opened all the devices.