Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KDE kills sound
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 935
Location: Queensland

PostPosted: Mon Jul 16, 2007 8:43 am    Post subject: KDE kills sound Reply with quote

MSI S270 laptop with i686 architecture build.

After booting, it is possible to play a sound with mpg123. However, if a KDE session be started while the sound be playing, the sound stops just as the session initialisation is complete, i.e., when kdm be loaded, desktop restored etc.
  • This happened before artsd was installed, and after.
  • After artsd was installed, it happens whether or not sound be enabled in the kontrol centre.
  • Once a kde session has been run, sound is dead until the machine is rebooted; even the drastic /etc/init.d/modules restart will not restore it.
  • K info centre says that no sound cards are detected.
I won't bore people with lots of low-level stuff (lspci output etc.) since this is clearly a kde matter --- sound is working correctly outside kde.

Why does kde kill sound ?
_________________
Michael Mounteney
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Mon Jul 16, 2007 8:56 am    Post subject: Reply with quote

Well, the KDE sound system is starting with KDE, and you have something using the card while it's trying to do that. Try not playing an mp3 while KDE starts.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 935
Location: Queensland

PostPosted: Mon Jul 16, 2007 9:07 am    Post subject: Thanks for that non-reply Reply with quote

If no sound be playing when KDE starts up, KDE will not do any sound. My experiment with mpg123 was to obtain more information about what KDE is doing on start-up.

I have never been able to make KDE play anything on this machine.
_________________
Michael Mounteney
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5935

PostPosted: Mon Jul 16, 2007 9:10 am    Post subject: Reply with quote

how is your arts set up? are you using an external player? which player? which sound formats are you using for your sound themes?

i run everything that's possible through arts. no external player, and have ogg and wav sounds in my theme. ymmv, not quite sure if its mpg123/321 doing it to you, you might want to try /bin/aplay.

cheers
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 935
Location: Queensland

PostPosted: Mon Jul 16, 2007 11:59 am    Post subject: Reply with quote

Could you clarify what you mean by `how is my arts set up ?' ? Under the kontrol centre, Sound & Multimedia, Sound System, `Enable the sound system' is checked and `Select the audio device' is auto-detect. All other options on the Sound System panel are blank/default.

But the problem was the same before artsd was installed, and it is the same if `Enable the sound system' be unchecked.

Is it not significant that KinfoCentre / Sound says `No information available about Soundcard' ?
_________________
Michael Mounteney
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5935

PostPosted: Mon Jul 16, 2007 8:23 pm    Post subject: Reply with quote

mounty1 wrote:
Could you clarify what you mean by `how is my arts set up ?' ? Under the kontrol centre, Sound & Multimedia, Sound System, `Enable the sound system' is checked and `Select the audio device' is auto-detect. All other options on the Sound System panel are blank/default.

But the problem was the same before artsd was installed, and it is the same if `Enable the sound system' be unchecked.

Is it not significant that KinfoCentre / Sound says `No information available about Soundcard' ?


set the audio device to alsa, and under "override location" set "plug:dmix"... that should help.

cheers
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 935
Location: Queensland

PostPosted: Mon Jul 16, 2007 11:58 pm    Post subject: Reply with quote

OK, tried that, nothing. I've never seen that plug:dmix thing before so I couldn't investigate/play any further with the idea.
_________________
Michael Mounteney
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5935

PostPosted: Tue Jul 17, 2007 12:20 am    Post subject: Reply with quote

mounty1 wrote:
OK, tried that, nothing. I've never seen that plug:dmix thing before so I couldn't investigate/play any further with the idea.


http://gentoo-wiki.com/HOWTO_ALSA_Complete_%28includes_dmix%29

maybe this could help. :)

cheers
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 935
Location: Queensland

PostPosted: Tue Jul 17, 2007 1:18 am    Post subject: Reply with quote

It doesn't. :-( I couldn't see anything there that was relevant to the problem.

If the machine be rebooted, mpg123 -a plug:dmix works. If the KDE session be started while mpg123 plays, sound is still cut-out as the KDE initialisation is completed, even though plug:dmix is set as the KDE sound device.

Surely something is happening at a much lower level ? KDE is set to share the sound now, through plug:dmix, but it still cuts it. And KinfoCentre still says no information about soundcard.

Also, on reboot, alsamixer reports that the output (master and PCM) have been muted, but that is probably the doing of Kmix; while KDE is running, alsamixer shows the outputs as not muted.

Once a KDE session has been run, sound will not work again until the machine be rebooted, even if the KDE session be quit. KDE is knobbling something.
_________________
Michael Mounteney
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5935

PostPosted: Tue Jul 17, 2007 1:46 am    Post subject: Reply with quote

what use flags are used by arts?
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 935
Location: Queensland

PostPosted: Tue Jul 17, 2007 1:53 am    Post subject: Reply with quote

equery uses arts:
[ Searching for packages matching arts... ]
[ Colour Code : set unset ]
[ Legend : Left column  (U) - USE flags from make.conf              ]
[        : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for kde-base/arts-3.5.5 ]
 U I
 + + alsa            : Adds support for media-libs/alsa-lib (Advanced Linux Sound Architecture)
 - - artswrappersuid : Set artswrapper suid for realtime playing, which is a security hazard.
 - - debug           : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see http://www.gentoo.org/proj/en/qa/backtraces.xml .
 - - elibc_FreeBSD   : <unknown>
 - - esd             : Adds support for media-sound/esound (Enlightened Sound Daemon)
 - - jack            : Adds support for the JACK Audio Connection Kit
 - - kdeenablefinal  : EXPERIMENTAL: KDE ebuilds will use the enable-final flag, yielding compilation speedups at the cost of heavy mem usage and potentially causing problems. We strongly discourage setting this.
 + + mp3             : Add support for reading mp3 files
 - - nas             : Adds support for network audio sound
 - - vorbis          : Adds support for the OggVorbis audio codec
 - - xinerama        : Add support for the xinerama X11 extension, which allows you to stretch your display across multiple monitors
All looks pretty clean to me ...
_________________
Michael Mounteney
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5935

PostPosted: Thu Jul 19, 2007 6:41 am    Post subject: Reply with quote

try adding vorbis and artswrappersuid. some kde sounds are .ogg files.
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 935
Location: Queensland

PostPosted: Thu Jul 19, 2007 6:51 am    Post subject: Reply with quote

bunder wrote:
try adding vorbis and artswrappersuid. some kde sounds are .ogg files.
How will that help the fact that once a KDE session has been run, sound is killed, even if the KDE session be ended (i.e., running mpg123 via a text-tty login) ?

KDE kills sound, and it does not live again, inside or outside KDE, until the machine be rebooted.
_________________
Michael Mounteney
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5935

PostPosted: Thu Jul 19, 2007 7:02 am    Post subject: Reply with quote

if you're not using dmix, arts will exclusively use your sound card... if arts goofs up, then it will essentially hang your whole sound system.
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 935
Location: Queensland

PostPosted: Thu Jul 19, 2007 7:08 am    Post subject: Reply with quote

I am using plug.dmix, as both the Override device location specification within the KDE control centre, and as the -a option to mpg123 outside KDE (outside being before, during or after the KDE session).
_________________
Michael Mounteney
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum