By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 2612

Summary: no system sounds - only audio device selection in TCC is autodetect
Product: TDE Reporter: Felix Miata <mrmazda>
Component: tdemultimediaAssignee: Timothy Pearson <kb9vqf>
Status: RESOLVED FIXED    
Severity: normal CC: albator78, bugwatch, michele.calgaro, slavek.banko
Priority: P5    
Version: R14.0.1 [Trinity]   
Hardware: All   
OS: Linux   
Compiler Version: TDE Version String:
Application Version: Application Name:
Bug Depends on:    
Bug Blocks: 2575    
Attachments: alsa-info.txt from openSUSE 42.1 host gx760

Description Felix Miata 2016-03-16 14:28:41 CDT
Created attachment 2636 [details]
alsa-info.txt from openSUSE 42.1 host gx760

To reproduce in openSUSE 42.1:
1-install minimal X desktop (basic minimalist Xorg w/ IceWM and TWM)
2-in zypp.conf set 'solver.onlyRequires = true'
3-zypper install trinity-multimedia trinity-arts trinity-kmix trinity-tdm trinity-tdebase trinity-ksnspshot trinity-gtk-qt-engine trinity-gtk3-tqt-engine trinity-gwenview trinity-kcalc trinity-kcharselect trinity-kpdf trinity-kruler trinity-ksensors trinity-ksirc and their dependencies; plus alsa, alsa-utils, alsa-tools, alsa-plugins, alsa-firmware, arts, gtk2-theme-oxygen, gtk3-theme-oxygen and their dependencies
4-ensure sound works in vttys via set_default_volume, alsamixer, aplay and/or other
5-start a TDE session
6-ensure test sound works in YaST2 sound
7-ensure aplay -v /usr/share/sounds/alsa/test.wav still works
8-ensure Youtube videos in Firefox make expected sounds
9-open TCC
10-check "Enable the sound system" if not already enabled on general tab
11-enable "Full duplex" (or not)
12-click on "Test Sound"

Actual behavior:
1-TCC plays no sound
2-TCC sound system hardware tab offers no audio device selection other than "Autodetect"

Expected behavior:
1-devices other than autodetect are selectable in TCC's hardware tab
2-TDE system sounds work

Notes:
1-same general procedure has worked here on multiple openSUSE 13.1 installations
2-same general procedure has failed here on multiple other openSUSE 42.1 32 & 64 bit installations (every attempt)
Comment 1 Felix Miata 2016-03-16 14:31:27 CDT
Forgot to mention, clicking test sound button causes a popup "Starting sound system", which runs until canceled, looping back to start each time it reaches 100% unless and until canceled.
Comment 2 Felix Miata 2016-06-02 03:16:20 CDT
I was able to get system sounds in addition to aplay, HTML5 (Youtube) and VLC sounds on 42.1 host gx760 by removing alsa-oss and installing the following group of packages:
trinity-libarts-akode-14.0.3-1.oss421.x86_64
trinity-libarts-audiofile-14.0.3-1.oss421.x86_64
trinity-libarts-mpeglib-14.0.3-1.oss421.x86_64
trinity-libarts-xine-14.0.3-1.oss421.x86_64
Comment 3 Michele Calgaro 2016-10-01 09:49:49 CDT
yes, libarts are important libraries for audio.

> I was able to get system sounds
I noticed you initially installed trinity-arts but later you had to install additional packages:
trinity-libarts-akode-14.0.3-1.oss421.x86_64
trinity-libarts-audiofile-14.0.3-1.oss421.x86_64
trinity-libarts-mpeglib-14.0.3-1.oss421.x86_64
trinity-libarts-xine-14.0.3-1.oss421.x86_64

Perhaps a dependency is missing? Francois, any chance you can double check?
Comment 4 Francois Andriot 2016-10-01 13:50:23 CDT
Hello, I believe (not 100% sure) that the 'trinity-libarts-*' packages are only needed to allow some TDE applications (kmplayer, kaffeine ...) to playback sound using arts daemon.
They should not be needed to play TDE's system sounds.

In TDE control center, you are supposed to see the list of supported audio output, not just "autodetect".

In a TDE konsole, you can try to display the same list of supported audio outputs with command:

---
$ /opt/trinity/bin/artsd -A
possible choices for the audio i/o method:

  oss       Open Sound System
  alsa      Advanced Linux Sound Architecture
  null      No Audio Input/Output
  esd       Enlightened Sound Daemon
  jack      Jack Audio Connection Kit
  toss      Threaded Open Sound System
---

In modern Linux distros using Pulseaudio, I suggest using the 'ESD' method, alongside with the pulseaudio-esd compatibility wrapper.
Comment 5 Michele Calgaro 2016-10-02 02:25:57 CDT
Hi Francois, 
I also don't know for sure whether 'trinity-libarts-*' libraries are required only for some particular applications or not. Also I am not a user of .rpm TDE packaging, since I use debian and build my own ones, so perhaps what I am saying below may be partially incorrect.

I think that if a user installs "trinity-arts" he expects all TDE applications requiring arts to work properly, i.e. "trinity-arts" serves as a meta-package for other TDE-related arts packages.
In that sense, I think that installing "trinity-arts" should also bring in the trinity-libarts-*' libraries.
What is your opinion?

I leave the final decision to you, since you are the .rpm maintainer and you know better than me their structure and dependencies.

If you think the current setup is correct, just close this bug.
If not, please amend as you see fit and feedback to us, so that we can later close the bug.

Thanks.
Comment 6 Michele Calgaro 2016-10-09 08:36:24 CDT
Hi Francois, any news? 
Is it ok to close the bug as is?
Comment 7 Michele Calgaro 2016-10-22 03:23:29 CDT
I am closing the bug since it seems that when the required packages are installed, there is actually no issue.
Feel free to reopen the bug if this problem happens again even when all those packages are installed.
Comment 8 Felix Miata 2017-06-25 04:23:11 CDT
How can this not be a bug when nothing causes installation of required packages?