[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
*** This bug is a duplicate of bug 1793640 *** https://bugs.launchpad.net/bugs/1793640 Also gutsy and hardy are well past end of life: https://wiki.ubuntu.com/Releases So we are now tracking the issue in bug 1793640 instead. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/210472 Title: Timidity daemon doesn't play nice with pulse audio To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/timidity/+bug/210472/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
*** This bug is a duplicate of bug 1793640 *** https://bugs.launchpad.net/bugs/1793640 I've been thinking that since this bug apparently was fixed by 18.04 (and earlier), but then seemingly regressed again in 18.10, that maybe we should instead have closed this old bug and tracked the current problem in bug 1793640 instead... ** This bug has been marked a duplicate of bug 1793640 [XPS 13 9370, Intel Corporation Sunrise Point-LP HD Audio (rev 21), Speaker, Internal] Pulseaudio fails to detect card -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/210472 Title: Timidity daemon doesn't play nice with pulse audio To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/timidity/+bug/210472/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
There was a regression for me too, from kubuntu 18.04 to kubuntu 18.10, as described here: https://answers.launchpad.net/ubuntu/+source/alsa- driver/+question/675670 Basically KDE showed only the dummy output even if everything else looked right. trying "sudo alsa force-reload" was not working for me. But killing the timidity service did the trick. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/210472 Title: Timidity daemon doesn't play nice with pulse audio To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/timidity/+bug/210472/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
Then you are commenting on the wrong bug :) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/210472 Title: Timidity daemon doesn't play nice with pulse audio To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/timidity/+bug/210472/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
Also had this problem (no sound) after upgrade 18.04.1 -> 18.10. I do *NOT* have timidity installed. alsa force-reload works as temporary fix. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/210472 Title: Timidity daemon doesn't play nice with pulse audio To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/timidity/+bug/210472/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
Hmm, yes the recent duplicates of this bug seem to be from 18.10. So there may be a regression in 18.10, or it might just be because the main person answering bug reports only learnt about this timidity issue this week. I've only had time to link 18.10 bug reports to this one so far. Certainly the symptoms are very common so I would expect to find 18.04 bug reports too. I'll need more time to be sure. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/210472 Title: Timidity daemon doesn't play nice with pulse audio To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/timidity/+bug/210472/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
Upgraded from 18.04 to 18.10 and lost sound. Sound setting showed Dummy Output. alsa force-reload would fix it until reboot. Removed timidity-daemon (apt-get purge) and the problem went away. Apparently pulseaudio and timidity got along in 18.04 and earlier versions, not exactly sure what changed, but I removed timidity after reading https://bugs.launchpad.net/ubuntu/+source/timidity/+bug/1798466 I tried re-install timidity-daemon, but then the problem returned. It's removed for now. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/210472 Title: Timidity daemon doesn't play nice with pulse audio To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/timidity/+bug/210472/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
** Changed in: timidity (Ubuntu) Importance: Medium => High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/210472 Title: Timidity daemon doesn't play nice with pulse audio To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/timidity/+bug/210472/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
As described in bug https://bugs.launchpad.net/ubuntu/+source/timidity/+bug/1799541 starting timidity system daemon can prevent PulseAudio from gaining access to one of the sound cards in ALSA. I think, a better solution would be to change timidity to run as a user- specific service, instead of system-wide, and depend on pulseaudio or pulseaudio.socket to start first. This way we should have PulseAudio running in user mode and starting before timidity. Timidity will grab the default ALSA device, which is an alias for the pulse loopback when pulseaudio is running. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/210472 Title: Timidity daemon doesn't play nice with pulse audio To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/timidity/+bug/210472/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
** Tags added: cosmic -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/210472 Title: Timidity daemon doesn't play nice with pulse audio To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/timidity/+bug/210472/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
The only clean solution to this is to run pulseaudio in system mode and add the timidity user to pulse-access group. This also fixes some other problems pulseaudio has and effectively stops other apps from grabbing the soundcard. This is because by default only the current user, which is also running the pulseaudio daemon, can play audio. By switching pulseaudio to system mode, it can be access by every user in the pulse-access group without starting anything before. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/210472 Title: Timidity daemon doesn't play nice with pulse audio To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/timidity/+bug/210472/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
In the PulseAudio wiki, they suggest to switch timidity output mode to "libao" cf. http://www.pulseaudio.org/wiki/PerfectSetup#TiMidity However, libao output is not built in the Ubuntu executable. As of Ubuntu Maverick, I worked around this by starting timidity during the GNOME startup. It seems there is no more timidity maintainer since 2004 :( What is strange is that, nowadays, when using PA with a dmix capable sound board, there is usually no problem at all mixing PA & alsa apps. I don't understand why, in some cases, the alsa app seems to "lock" the audio device. (the same occurs when using the oss->alsa wrapper). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/210472 Title: Timidity daemon doesn't play nice with pulse audio -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
I was going to suggest autostarting timidity at login to gnome using a 'wrapper' like alltray (from the package alltray). I use this to start my (proprietary) printer monitor applet. The idea is that the wrapper (and timidity running within it) will be killed along with all other open applications at logoff. The big trouble is that timidity doesn't like to be killed that way. One similar way to demonstrate this is as follows: - Open a gnome terminal - Open another tab within the terminal - In that tab, run `timidity -iA -Os` - Now close the tab with timidity running in it - A popup should display asking if it is OK to kill running processes. Confirm this. - In the remaining window, run `ps ax|grep timidity` - Verify that timidity is still running... My guess is that timidity does some weird magic to 'detach' itself from its parent process without actually daemonising. Any other program I've tried running in a tab like I described above (like `top`, `mc`, etc.) will get killed when closing the tab. -- Timidity daemon doesn't play nice with pulse audio https://bugs.launchpad.net/bugs/210472 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
We probably ought to change timidity into a user-mode daemon, and have it autostart on X login. Having it being run on startup seems fine, though having it get killed on logout is another matter altogether. http://www.linuxquestions.org/questions/linux-desktop-74/gnome-run- script-on-logout-724453/ -- Timidity daemon doesn't play nice with pulse audio https://bugs.launchpad.net/bugs/210472 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
Mar 20 18:18:44 fish-laptop pulseaudio[26345]: core-util.c: Home directory /etc/timidity not ours. Mar 20 18:18:44 fish-laptop pulseaudio[26345]: lock-autospawn.c: Cannot access autospawn lock. Mar 20 18:18:44 fish-laptop pulseaudio[26345]: main.c: Failed to acquire autospawn lock And at any rate, it seems that pulseaudio is trying to start it's own instance for timidity, which just changes the problem from timidity and pulseaudio having problems sharing, to pulseaudio and pulseaudio having problems sharing the audio device. (Of course, if the latter case is already possible, then this may work) -- Timidity daemon doesn't play nice with pulse audio https://bugs.launchpad.net/bugs/210472 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
Well, just to try things out, I managed to hobble together a pulseaudio output for timidity, based off of the ESD code already present. It works, but as #12 says, pulseaudio kills any connection from a user which does not happen to be the one that starts pulse. Well, anyways, here's the code for the pulseaudio output. ** Attachment added: "pulseaudio.c" http://launchpadlibrarian.net/41456568/pulseaudio.c -- Timidity daemon doesn't play nice with pulse audio https://bugs.launchpad.net/bugs/210472 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
I have tried what Daniel Ellis has suggested (very nice details!), and had the same results on Jaunty. -- Timidity daemon doesn't play nice with pulse audio https://bugs.launchpad.net/bugs/210472 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
I have been testing this on Karmic and so far have come up with the following conclusions (please correct me if any of these are not correct): - Out of the box timidity and pulse audio cannot play at the same time. - Restarting timidity (sudo /etc/init.d/timidity restart) gets timidity to work again for a short while, until pulse audio takes control again. - Timidity does not appear as an application within Sound Preferences. - Timidity is started with the system - Timidity runs as the user 'timidity'. It no longer runs as root. - Pulseaudio runs as the logged in user. - The 'timidity' user is a member of the 'audio' group and is not a member of the 'pulse-access' group. I thought that adding the timidity user to the pulse-access group was going to be the answer. Sadly not, as timidity still didn't show up as an application within Sound Preferences. The command I used was: sudo usermod -a -G pulse-access timidity I then tried running timidity at the command line. So first stopped the timidity daemon and then started it in a shell: sudo /etc/init.d/timidity stop timidity -Os -iA Which works. The Sound Preferences window includes the application "ALSA plug-in [timidity]", and both midi and audio from other application play together nicely. So I then tried to start timidity in the shell as the 'timidity' user to see if that worked:- sudo -u timidity timidity -Os -iA The output of which was:- == No protocol specified XOpenDisplay() failed Home directory /home/daniel not ours. W: core-util.c: Failed to open configuration file '/home/daniel/.pulse//daemon.conf': Permission denied W: daemon-conf.c: Failed to open configuration file: Permission denied Requested buffer size 32768, fragment size 8192 ALSA pcm 'default' set buffer size 30104, period size 3760 bytes TiMidity starting in ALSA server mode Opening sequencer port: 128:0 128:1 128:2 128:3 Requested buffer size 32768, fragment size 8192 ALSA pcm 'default' set buffer size 30104, period size 3760 bytes == This failed to connect to pulseaudio correctly. To resolve the permission denied errors, I added rwx permissions to /home/daniel/.pulse using: chmod o+rwx ~/.pulse Now timidity starts without the permission denied errors, but still fails to connect to pulse audio correctly. I don't understand what else is needed to get a process to connect to pulse audio from a different user id. Any ideas? -- Timidity daemon doesn't play nice with pulse audio https://bugs.launchpad.net/bugs/210472 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
Looks like the -B2,8 argument may cause a 40% CPU usage. Could be another cause for the issue. If it's quite common, then I guess it can simply be removed from the /etc/init.d/timidity script. People may prefer it to not be run as root, although that's a bit different topic. -- Timidity daemon doesn't play nice with pulse audio https://bugs.launchpad.net/bugs/210472 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
Another way to fix this might be to have pulseaudio run as a system-wide daemon instead of a per-user instance. This can be accomplished by changing the PULSEAUDIO_SYSTEM_START=0 line in /etc/default/pulseaudio to PULSEAUDIO_SYSTEM_START=1. This should make pulseaudio start before the timidity daemon. It is not recommended to run pulseaudio as a system-wide daemon, however. Maybe it would also be possible to have the timidity server run in the user's context instead of the system's? That would make it possible to start it from within the gnome (or whatever) session after pulseaudio. -- Timidity daemon doesn't play nice with pulse audio https://bugs.launchpad.net/bugs/210472 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
The program in question for me is Sibelius, which also has a delay. Perhaps you can play around with optional switches when restarting timidity... for example, the manpage for timidity says that the switch "F" can introduce a delay. This may or may not solve the problem. -- Timidity daemon doesn't play nice with pulse audio https://bugs.launchpad.net/bugs/210472 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
Btw, for the moment I use tuxguitar 1.1(the ubunutu package from their homepage) and I use gervill which is the default sound in tuxguitar now, no timidity+sound font. It sounds not bad, the latency is ok and there aren't problems with pulseaudio. Maybe you can give it a try. http://tuxguitar.com.ar/download.html -- Timidity daemon doesn't play nice with pulse audio https://bugs.launchpad.net/bugs/210472 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
Thanks, restarting timidity also works, but again, the latency will be worse than before.(a played note gets first red and then you hear the note, when there is a fast song you do not hear the highlightened notes, but these which were 0.5 sec. ago) 0.5 doesn't sound much, but in fact, when you try to play a song with tuxguitar, it is a lot and really weird for the guitar player when the notes aren't highlightened at the same time when you hear them. -- Timidity daemon doesn't play nice with pulse audio https://bugs.launchpad.net/bugs/210472 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
I believe this is because TiMidity is loaded prior to the Pulseaudio sound server. I fixed this problem by restarting the timidity session: sudo /etc/init.d/timidity restart After that, all MIDI-out wavemapping worked perfectly, and my program (in my case, Sibelius 4.x) did not steal focus from Firefox/emesene/etc Give that a try. It's a more elegant workaround and can be programmed into Timidity (to start later.. or something... I guess...) -- Timidity daemon doesn't play nice with pulse audio https://bugs.launchpad.net/bugs/210472 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
Maybe you can take a look at my bugreport, because this issue still happens in Jaunty https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/323320 -- Timidity daemon doesn't play nice with pulse audio https://bugs.launchpad.net/bugs/210472 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
On Intrepid Ibex I have the same problem, timidity does not connect to pulseaudio. When other music applications work(and they work perfectly with pulseaudio) i get no sound from timidity in tuxguitar. When I first start playing a file in tuxguitar(so with timidity), the other applications like banshee or youtube won't work.(no sound, freezes, etc...) It would be nice if you could fix this for Jaunty. But thanks for the workaround. -- Timidity daemon doesn't play nice with pulse audio https://bugs.launchpad.net/bugs/210472 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
Reproduced here. Fixed using gborzi's hints (for both login and logout). Furthermore, I've edited /etc/init.d/timidity and added the line "exit 0" in the beginning, so it shouldn't start the unnecessary daemon as root. -- Timidity daemon doesn't play nice with pulse audio https://bugs.launchpad.net/bugs/210472 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 210472] Re: Timidity daemon doesn't play nice with pulse audio
** Summary changed: - [Hardy] Timidity daemon doesn't play nice with pulse audio + Timidity daemon doesn't play nice with pulse audio -- Timidity daemon doesn't play nice with pulse audio https://bugs.launchpad.net/bugs/210472 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs