Sound not working with hda_intel / Realtek HD under Ubuntu Dapper
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Sound not working with hda_intel / Realtek HD under Ubuntu Dapper
I get no sound while running Ubuntu Dapper on my Toshiba Sattelite L30 notebook. There is sound in Windows XP (dual-boot), and XP identifies the sound card as a Realtek HD one. Linux seems to be using the hda_intel driver. I followed the instructions at http://www.linuxforums.org/forum/lin...my-laptop.html
and got the following output:
Code:
toaster@abre-toshiba-linux:~$ lsmod | grep -i snd_hda
snd_hda_intel 18964 3
snd_hda_codec 142640 1 snd_hda_intel
snd_pcm 89864 3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd 55268 10 snd_hda_intel,snd_hda_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
snd_page_alloc 10632 2 snd_hda_intel,snd_pcm
toaster@abre-toshiba-linux:~$ sudo modprobe snd_hda_intel # I assume the above means it's loaded, but I'll try this anyway
Password:
toaster@abre-toshiba-linux:~$ dmesg | tail
[4294714.830000] eth1: no IPv6 routers present
[4294715.098000] Bluetooth: Core ver 2.8
[4294715.098000] NET: Registered protocol family 31
[4294715.098000] Bluetooth: HCI device and connection manager initialized
[4294715.098000] Bluetooth: HCI socket layer initialized
[4294715.173000] Bluetooth: L2CAP ver 2.8
[4294715.173000] Bluetooth: L2CAP socket layer initialized
[4294715.193000] Bluetooth: RFCOMM socket layer initialized
[4294715.193000] Bluetooth: RFCOMM TTY layer initialized
[4294715.193000] Bluetooth: RFCOMM ver 1.7
toaster@abre-toshiba-linux:~$ dpkg -l | grep -i $(uname -r)
ii linux-image-2.6.15-23-386 2.6.15-23.39 Linux kernel image for version 2.6.15 on 386
ii linux-restricted-modules-2.6.15-23-386 2.6.15.11-1 Non-free Linux 2.6.15 modules on 386
toaster@abre-toshiba-linux:~$ lspci | grep -i audio
toaster@abre-toshiba-linux:~$ dmesg | head #This is probably worth noting
4693.554000] hda_codec: invalid dep_range_val 0:7fff
[4294693.554000] hda_codec: invalid dep_range_val 0:7fff
[4294693.554000] hda_codec: invalid dep_range_val 0:7fff
[4294693.554000] hda_codec: invalid dep_range_val 0:7fff
[4294693.554000] hda_codec: invalid dep_range_val 0:7fff
[4294693.554000] hda_codec: invalid dep_range_val 0:7fff
[4294693.554000] hda_codec: invalid dep_range_val 0:7fff
[4294693.554000] hda_codec: invalid dep_range_val 0:7fff
[4294693.554000] hda_codec: invalid dep_range_val 0:7fff
[4294693.554000] hda_codec: invalid dep_range_val 0:7fff
Also, in Volume Control (from the right-click menu of the speaker icon) there is 2 devices, HDA ATI SB (Alsa) and Realtek ALC681 (OSS), but in System > Preferences > Sound I can only select HDA ATI SB from the Default Sound Card list.
Thanks in advance for any help.
What version of alsa is being loaded (cat /proc/asound/version)? Try downloading and installing alsa-driver-1.0.14rc1, and install it with "model=toshiba" as a parameter.
Also, could you send the output from "lspci -s 0:14.2 -vn" and "cat /proc/asound/card0/codec*"?
Wait, where do I put model=toshiba? at the end of the configure file? also, after i un-bzipped the package, do i just go ./configure, then make, then sudo make install? it's been a while since i ever tried to install a .tar.bz2, ive been using .debs (and .rpms), and im a bit of a
Ok, now that you've posted your codec output, we now have a little better understanding of what your system is.
First step is to download the alsa-driver-1.0.14rc1.tar.bz2 file.
Next, follow these simple instructions (everything after a # is a comment, everything between <> you need to replace with a path>:
cd <build area of choice> # I use my /home/<user>/tmp for small projects
tar -jxvf alsa-driver-1.0.14rc1.tar.bz2 # this will expand the tarball
cd alsa-driver-1.0.14rc1
./configure --with-debug=detect --with-cards=hda-intel
make
# This will build the drivers. The "--with-debug=detect" will make the drivers output more data to dmesg, and the "--with-cards=hda-intel" limits the build to only Intel HD Audio drivers, speeding up the build process considerably.
The next steps require root access:
pushd /lib/modules/`uname -r`/kernel # the shell will substitute uname -r with the running kernel version
tar -zcvf oldsound.tgz sound/ # make a backup of your current drivers because...
find sound/ -name "snd*" -exec rm -f {} \; # ... this deletes them
popd # back to our build area
make install # newly built drivers are copied to the area we just cleaned
modprobe -r snd-hda-intel # remove any currently running drivers
lsmod|fgrep snd # make sure there isn't anything running. Use rmmod to remove any straglers.
modprobe snd-hda-intel model=toshibs probe_mask=1 # here's where the "model=toshiba" goes.
Test everything. Load alsamixer and see if the controls look right. Play sound. Try recording. If everything works ok, the two options ("model=toshiba" and "probe_mask=1") can be added to /etc/modprobe.conf (or whatever debian uses). Let me know if this works, and I can add your system id to the driver.
Also, the probe_mask will eliminate the hda_codec: invalid dep_range_val 0:7fff
checking for directory with kernel source... /usr/src/linux
checking for directory with kernel build...
checking for kernel linux/version.h... no
The file /usr/src/linux/include/linux/version.h does not exist.
Please install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /usr/src/linux).
I just have a fresh install of Dapper, and, after a bit of googling, I'm guessing that /usr/src/linux is where my kernel sources are, but how do I know if I have full kernel sources?
Also, GrueMaster, whats that Registered Tux # in your sig?
You need to load the kernel-source package for your distribution. That will have the necessary headers you need to build and install the drivers. I'm not a Debian/Ubuntu user, so I would'nt know where to tell you to get it, except from the package management program for your distribution. I believe apt-get is the program manager for those distros.
the solution of the problem is compicated and NO sure - it is no sure in 100% it will work.
I am user of L30-134 / Kubuntu 6.10 - and therefore I known the problem myself:
first - check the version on the bios on Your Toshiba - if te varsion is below 1.9 then please download and nstall the latest version 2.3 - then at least You will have sound on the headphones jack
second - the problem with alsa - till today have no exists good drivers for Toshiba L30 - the one solution is swith off the ALSA and work on OSS (however in this point I should one more time mention - sometimes this solutions work, for other person/computer model it is impossible)
Here You are the procedure:
/etc/modprobe.d/sound
options snd-hda-intel model=uniwill-m31 position_fix=1
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
alias sound-slot-0 snd-card-0
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.