[Bug 790158] New: Problems with selecting the right sound device
https://bugzilla.novell.com/show_bug.cgi?id=790158 https://bugzilla.novell.com/show_bug.cgi?id=790158#c0 Summary: Problems with selecting the right sound device Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Sound AssignedTo: tiwai@suse.com ReportedBy: f.de.kruijf@gmail.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0 I have two sound devices in my system, an analog device and a HDMI device, which I do not use. Obviously the analog device is device 0. When I enable the timidity.service in systemd, which is the same as timidity in systemv, which uses the analog device, and I start a KDE session, KMix only gets the HDMI device and the sound in this KDE session does not work. Disabling timidity makes the analog device available, however often I need to change the settings of the Main Channel to the analog device. Same in System Settings. Apparently KMix assumes that the analog device is taken. As far as I remember from older versions of openSUSE, this was not a problem. So there seems to be a regression. Reproducible: Always Steps to Reproduce: 1. Start the timidity.service in systemd before any KDE session is started. 2. Start a KDE session 3. Look at the available devices in KMix and notice that the start up sound of KDE could not be heard. Actual Results: No sound is heard. Expected Results: The sound should be heard. I don't know if this is related, but the process /usr/bin/pulseaudio remains active after closing the KDE session. Sometimes I need to close the KDE session, use the tty0 console to kill pulseaudio remove the ~/.pulse* files and folder, after which I can start a KDE session with the proper sound support. I need timidity to play .mid (midi) files. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=790158 https://bugzilla.novell.com/show_bug.cgi?id=790158#c1 Takashi Iwai <tiwai@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |f.de.kruijf@gmail.com --- Comment #1 from Takashi Iwai <tiwai@suse.com> 2012-11-21 08:34:57 UTC --- It's no regression. If you are using pulseaudio (or any other sound daemon) together with the system-level sound apps like timidity (which acts as daemon), it can't work because both try to block with each other. It might be that it used to work on your machine jut because you didn't use pulseaudio in the earlier distros. You can use timidity with pulse. It's just the timidity sound daemon that can't work with pulse as is. The solution would be: A. change your setup to start pulseaudio as a system daemon, and start timidity daemon after pulse; the setup would be tricky, and using PA as root isn't recommended at all. B. don't use timidity daemon in the system level, start timidity daemon as a normal user (either manually or some session script) C. play MIDI directly from timidity without daemon D. don't use pulseaudio at all; run "setup-pulseaudio --disable" and you will be there. But then you'll loose all nice features of PA, of course. Choose as you like. Let me know if anything actually solves. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=790158 https://bugzilla.novell.com/show_bug.cgi?id=790158#c2 Freek de Kruijf <f.de.kruijf@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|f.de.kruijf@gmail.com | --- Comment #2 from Freek de Kruijf <f.de.kruijf@gmail.com> 2012-11-21 10:27:16 UTC --- (In reply to comment #1)
It's no regression. If you are using pulseaudio (or any other sound daemon) together with the system-level sound apps like timidity (which acts as daemon), it can't work because both try to block with each other. It might be that it used to work on your machine jut because you didn't use pulseaudio in the earlier distros.
I only started using pulseaudio in 12.2 because it is the default.
You can use timidity with pulse. It's just the timidity sound daemon that can't work with pulse as is. The solution would be:
A. change your setup to start pulseaudio as a system daemon, and start timidity daemon after pulse; the setup would be tricky, and using PA as root isn't recommended at all.
I have no idea how to setup pulseaudio as a system daemon.
B. don't use timidity daemon in the system level, start timidity daemon as a normal user (either manually or some session script)
I tried that, and used "timidity -iAq -Oe -s 44100 > /dev/null &" to start the daemon, it works. I found the -Oe in the setup-pulseaudio where an alias for timidity is defined/added in /etc/profile.d/pulseaudio.sh, however I tried to list aliases in my account on the console, but timidity is not listed.
C. play MIDI directly from timidity without daemon
I use two application that need the ports the timidity daemon opens, Canorus and Noteedit. The last one will be phased out, but I like Canorus.
D. don't use pulseaudio at all; run "setup-pulseaudio --disable" and you will be there. But then you'll loose all nice features of PA, of course.
The above solution works for me. However a warning should be present in /etc/sysconfig/timidity that it should not be used together with pulseaudio enabled. Or some other parameter needs to be used to start timidity in that case.
Choose as you like. Let me know if anything actually solves.
I found a workable solution, however not quite user friendly. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=790158 https://bugzilla.novell.com/show_bug.cgi?id=790158#c3 Takashi Iwai <tiwai@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #3 from Takashi Iwai <tiwai@suse.com> 2012-11-21 10:37:03 UTC --- OK, so it's a setup issue. If you'd like to improve the texts in /etc/sysconfig/timidity, feel free to work on the package in OBS multimedia:apps project, so that it'll be changed for FACTORY. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=790158 https://bugzilla.novell.com/show_bug.cgi?id=790158#c4 --- Comment #4 from Freek de Kruijf <f.de.kruijf@gmail.com> 2012-11-21 10:58:57 UTC --- I found why there is no alias for timidity, there is no file /etc/profile.d/pulseaudio.bash and in case it is needed, setup-pulseaudio should change it like it does with the .sh and .csh files. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=790158 https://bugzilla.novell.com/show_bug.cgi?id=790158#c5 --- Comment #5 from Freek de Kruijf <f.de.kruijf@gmail.com> 2012-12-01 14:46:30 UTC --- submitted request 143759 with changes -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com