Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] No sound in KDE, alsa sort of working on ALC887-VD
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
knight77
n00b
n00b


Joined: 29 Jun 2009
Posts: 25

PostPosted: Mon Jan 24, 2011 3:10 pm    Post subject: [SOLVED] No sound in KDE, alsa sort of working on ALC887-VD Reply with quote

Hello.

This problem is really starting to get on my nerves and it's getting too frustrating to just ignore.

Long story short:
- lspci output:
Code:
# lspci | grep -i audio
00:1b.0 Audio device: Intel Corporation Ibex Peak High Definition Audio (rev 06)

- i'm running kernel 2.6.36-r5 with ALSA support compiled for all possible Intel HDA chipsets, however the kernel complains about no soundcard ...
Code:
# dmesg | egrep -i "alsa|sound"
Advanced Linux Sound Architecture Driver Version 1.0.23.
ALSA device list:
  No soundcards found.

- ... but the snd-intel kernel modules works ...
Code:
HDA Intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
HDA Intel 0000:00:1b.0: setting latency timer to 64

- ... and the devices get created in /proc/asound
Code:
# ls /proc/asound/
Intel  card0  cards  devices  hwdep  oss  pcm  seq  timers  version
# cat /proc/asound/cards
 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xfbff4000 irq 22

- i have all alsa packages installed except for alsa-modules (no need, using the kernel support)
Code:
# eix -I alsa | egrep '^\['
[I] dev-python/pyalsa
[I] media-libs/alsa-lib
[I] media-plugins/alsa-plugins
[I] media-sound/alsa-headers
[I] media-sound/alsa-tools
[I] media-sound/alsa-utils

- phonon is installed with alsa and xine support
Code:
[I] kde-base/phonon-kde
     Installed versions:  4.4.5(4.4)(19:08:46 08/17/10)(alsa xine -aqua -debug -kdeenablefinal -kdeprefix)
[I] media-sound/phonon
     Installed versions:  4.4.2(18:56:27 08/06/10)(alsa xcb xine -aqua -debug -gstreamer -pulseaudio)

- ALSA initscript complains as follows:
Code:
Found hardware: "HDA-Intel" "Realtek ALC887-VD" "HDA:10ec0887,1458a002,00100302" "0x1458" "0xa002"
Hardware is initialized using a generic method
alsactl: set_control:1255: failed to obtain info for control #9 (No such file or directory)
alsactl: set_control:1255: failed to obtain info for control #10 (No such file or directory)
alsactl: set_control:1255: failed to obtain info for control #11 (No such file or directory)
alsactl: set_control:1255: failed to obtain info for control #16 (No such file or directory)
alsactl: set_control:1255: failed to obtain info for control #17 (No such file or directory)

- aplay -l and -L work just fine, so does alsamixer
Code:
# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC887-VD Analog [ALC887-VD Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC887-VD Digital [ALC887-VD Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

- no pulseaudio or whatever else is installed.
Code:
# eix pulseaudio
* media-sound/pulseaudio


So: although alsa sort of works (alsamixer finds all it needs and the changes work) and as a test mplayer started from a console command-line works just fine, there is no sound in KDE whatsoever. In KDE System Settings -> Multimedia, I do see the "HDA Intel, ALC887-VD Digital", but the "Test" button outputs no sound and doesn't give any error. As i said, mplayer in command line works, kmplayer has no sound. Also in kmixer i can see all the channels and change them, still no sound whatsoever.

I'm sure i'm missing something somewhere, i just don't have any idea what. Any further info is available on request, just ask.

Thank you for your time.


Last edited by knight77 on Tue Jan 25, 2011 1:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
Eurt
Tux's lil' helper
Tux's lil' helper


Joined: 18 Nov 2007
Posts: 86
Location: Cádiz, Spain

PostPosted: Mon Jan 24, 2011 3:16 pm    Post subject: Reply with quote

Same problem here... Almost same card... :x
What KDE version are you using?
Back to top
View user's profile Send private message
knight77
n00b
n00b


Joined: 29 Jun 2009
Posts: 25

PostPosted: Mon Jan 24, 2011 3:36 pm    Post subject: Reply with quote

Eurt wrote:
Same problem here... Almost same card... :x
What KDE version are you using?


Gentoo's stable kde-meta (metapackage) 4.4.5 (aka kdelibs).
Back to top
View user's profile Send private message
Eurt
Tux's lil' helper
Tux's lil' helper


Joined: 18 Nov 2007
Posts: 86
Location: Cádiz, Spain

PostPosted: Mon Jan 24, 2011 3:47 pm    Post subject: Reply with quote

Damn... Same problem in 4.5.5 :cry:
Back to top
View user's profile Send private message
knight77
n00b
n00b


Joined: 29 Jun 2009
Posts: 25

PostPosted: Mon Jan 24, 2011 4:32 pm    Post subject: Reply with quote

Eurt wrote:
Damn... Same problem in 4.5.5 :cry:


This looks like a problem in KDE or phonon as far as i can tell.

aplay plays any wave correctly.

xine plays any movie correctly.

When playing some mp3 via mplayer, if i scroll the wheel on the mouse over the kmixer icon in systray the sound volume changes, so kmixer correctly modifies it. But anything else in KDE is silent..
Back to top
View user's profile Send private message
Eurt
Tux's lil' helper
Tux's lil' helper


Joined: 18 Nov 2007
Posts: 86
Location: Cádiz, Spain

PostPosted: Mon Jan 24, 2011 4:36 pm    Post subject: Reply with quote

This is the weirdest thing ever... :evil:
I'm really tired... I googled the whole world and nothing... I read lots of people with problems like this, no one gave it a good solution, just workarounds.
It's really strange. In kubuntu 10.10 livedvd sound works perfectly... I used it to find out which modules my kernel should need. Try it out and see.
I thing that my two choices are w7 or buying a creative xfi for laptops...
Back to top
View user's profile Send private message
Eurt
Tux's lil' helper
Tux's lil' helper


Joined: 18 Nov 2007
Posts: 86
Location: Cádiz, Spain

PostPosted: Mon Jan 24, 2011 4:38 pm    Post subject: Reply with quote

Well... Actually one choice left... No PCMCIA port in my laptop 8O
Back to top
View user's profile Send private message
knight77
n00b
n00b


Joined: 29 Jun 2009
Posts: 25

PostPosted: Mon Jan 24, 2011 10:10 pm    Post subject: Reply with quote

Eurt wrote:
Well... Actually one choice left... No PCMCIA port in my laptop 8O

Wel.. if kubuntu worked, then it means it IS possible to make it work. What KDE does kubuntu 10.10 run?

also, your problem and mine are a bit different. I can play sound but only via mplayer (command line) or xine, which both use alsa directly. Even kmixer works on my system. However, any application that needs KDE internal support (phonon) for sound does not work, as if KDE is sending the sound data to some other interface, so i believe this is strictly a KDE/phonon issue.

Try running mplayer from command line to play a mp3 file and check if you have sound. If you do, then it's not a kernel issue. Until 2.6.36, alsa in kernel cound not even allow volume changing, so things are happening one step at a time.

Joke: besides, if we solve this, we'll be heroes :D
Back to top
View user's profile Send private message
Eurt
Tux's lil' helper
Tux's lil' helper


Joined: 18 Nov 2007
Posts: 86
Location: Cádiz, Spain

PostPosted: Tue Jan 25, 2011 12:08 am    Post subject: Reply with quote

I think you're right, but I think our problems are the same, I can't play anything through phonon using xine engine, but if I compile gstreamer and phonon-gstreamer... voila! Sound again without mp3 support and a few more issues, like a box annoying you all the time sayting that "hw:0,0 controller has failed, reverting to hw:0,0".
I don't know why works in kubuntu, I'm investigating that but I'm running out of ideas...
I have another PC with KDE 4.5.4 and two audio cards, one of them is Intel HD Audio and it works out of the box. I've tried installing in my laptop the same version of phonon (4.4.2 I think) with no luck :(
The last thing I need to check before becoming mad is compiling the same kernel kubuntu 10.10 livedvd has. Here you have the config if you want to experiment.
Good Luck!...

Kubuntu 10.10 kernel-2.6.35 config:
http://pastebin.com/CJQsFsXB
Back to top
View user's profile Send private message
skutnar
n00b
n00b


Joined: 13 Jun 2006
Posts: 65

PostPosted: Tue Jan 25, 2011 12:39 am    Post subject: Reply with quote

If you see my thread in this forum (https://forums.gentoo.org/viewtopic-t-861209.html), I am having the same issue with Phonon. In my case now, all my sound works fine EXCEPT for Phonon, meaning all KDE system sounds and things that use Phonon, like Amarok, have no sound. I have a sneaking suspicion this happened when HAL was dropped. I may try to install it just to see.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Tue Jan 25, 2011 2:50 am    Post subject: Reply with quote

Hal hasn't been dropped in KDE yet - 4.6 release is still a few days away :wink: .
Back to top
View user's profile Send private message
skutnar
n00b
n00b


Joined: 13 Jun 2006
Posts: 65

PostPosted: Tue Jan 25, 2011 3:37 am    Post subject: Reply with quote

I should say that Solid doesn't work without HAL, even if the USE flag isn't set. I had "de-HAL'd" my system quite a while ago with regards to the USE flag, and only K3b had a direct dependency. In the last round of KDE updates, K3b lost that HAL dependency, which then caused me to lose HAL altogether. When HAL was uninstalled, I lost sound in KDE. See my other thread... I emerged HAL manually, and all of a sudden, sound works again. I just hadn't put 2 and 2 together until tonight...
Back to top
View user's profile Send private message
knight77
n00b
n00b


Joined: 29 Jun 2009
Posts: 25

PostPosted: Tue Jan 25, 2011 8:28 am    Post subject: Solved Reply with quote

Hooray, finally it works!!!

Bottomline for anybody who has an Intel HD Audio ALC887-VD:
- you need gentoo-sources-2.6.36-r5 at least for kernel modules (it comes with alsa 1.0.23 with 887-VD fix). Compile in every possible chipset under Intel HDA (paranoia talking). Or you may try to use alsa-driver-1.0.23 (i think, not sure, it's testing masked, i'm using the first solution)
- you need all the rest of alsa-* packages
- you WILL get some errors when alsasound initscript starts, but so far they are ignorable and the script returns success anyway
- you need HAL emerged and the initscript running
- you need xinelib at least with alsa USEFLAG (i'm using X a52 aac alsa css directfb dts flac gtk imagemagick mad mng modplug musepack nls opengl oss samba sdl theora truetype v4l vcd vorbis win32codecs xcb xinerama xv)
- you do NOT need pulseaudio or gstreamer packages
- after running the new kernel you will need to run alsa-conf and select the Intel HDA
(alsa-conf will sort of take care of all the settings in /etc/modprobe.d/alsa.conf where you need these:
Code:
alias char-major-116 snd
alias char-major-14 soundcore
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel


Don't forget to run update-modules after that.)
- final step and most important: after running the new kernel you NEED to re-emerge phonon and phonon-kde with at least alsa and xine USEFLAGS

In my case I noticed the phonon and phonon-kde packages were emerged last year (some long time ago, although they were the latest version). After re-emerging them and restarting KDE (actually i restarted the whole system) sound is working in KDE flawlessly.

Please set this thread as SOLVED. Thank you all for your input, you guys made my head-wheels spin and fix this.
Back to top
View user's profile Send private message
skutnar
n00b
n00b


Joined: 13 Jun 2006
Posts: 65

PostPosted: Tue Jan 25, 2011 1:05 pm    Post subject: Reply with quote

You set your own thread solved by editing the Subject line of your first post.
Back to top
View user's profile Send private message
Eurt
Tux's lil' helper
Tux's lil' helper


Joined: 18 Nov 2007
Posts: 86
Location: Cádiz, Spain

PostPosted: Tue Jan 25, 2011 1:57 pm    Post subject: Reply with quote

Thats fantastic :D
In my case this does not work, the only thing left to try is a kernel downgrade... Working on it.

Enjoy your sound 8)
Back to top
View user's profile Send private message
knight77
n00b
n00b


Joined: 29 Jun 2009
Posts: 25

PostPosted: Thu Jan 27, 2011 10:13 am    Post subject: Reply with quote

I appologize but i reported a partially fixing solution because it fixed the sound for flash player in firefox and kmplayer, which previously did not work, so i assumed (incorrectly) that the problem was fully fixed.

Today i noticed amarok was still silent and the Test button in System Settings -> Multimedia still didn't work.

After a few digging i found a solution that fixed everything (for now). It can be found at: https://forums.gentoo.org/viewtopic-p-6557516.html#6557516

Hope this helps.
Back to top
View user's profile Send private message
dantz
n00b
n00b


Joined: 13 Nov 2012
Posts: 2

PostPosted: Tue Nov 13, 2012 5:44 am    Post subject: Reply with quote

hey sorry this is probably a necro bump but

im trying out the gentoo flavours coming from debian im also using this sound card

i noticed the debian/ubuntu fix works

which is to edit /etc/modprobe.d/alsa-base.conf

and add the line

options snd-hda-intel model=generic

this worked for me all flavours, no need to change kernels

i also made my alsa.conf look like the one you have but i dont think it matters
Back to top
View user's profile Send private message
dantz
n00b
n00b


Joined: 13 Nov 2012
Posts: 2

PostPosted: Tue Nov 13, 2012 5:46 am    Post subject: Reply with quote

of course youll have to create that file alsa-base.conf

but yeah.

sound is perfect now 8O
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