LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-03-2011, 10:04 AM   #1
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
Question Non Kernel Driver -> Propitiatory Blown out :( --> Suggestions ?




I installed the Realtek driver below and it works great but has gotten blown out by the last update. I reinstalled and all is working so this is not a major issue. However I would like to learn either to integrated into the Kernel and or code aptitude to ignore this. Excuse me if I am phrasing this incorrectly. Basically I would like to :

- Integrate Realtek Driver so the latest generic does not blow out.

or

-line up for future updates if supplied.


Realtek Chip->
ALC889A


realtek-linux-audiopack-5.16 -> Driver used from Realtek
Quote:

joe@Tux-Box:~$ lsmod | grep snd
snd_hda_intel 19578 4
snd_hda_codec_hdmi 20041 4
snd_hda_codec_realtek 275429 1
snd_hda_codec 63341 3 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_realtek
snd_hwdep 5588 1 snd_hda_codec
snd_pcm 61958 4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec
snd_seq 43144 0
snd_timer 16273 3 snd_pcm,snd_seq
snd_seq_device 4811 1 snd_seq
snd 48875 15 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_codec,snd_hwdep,snd_pcm,snd_seq,snd_t imer,snd_seq_device
soundcore 4598 1 snd
snd_page_alloc 6185 2 snd_hda_intel,snd_pcm


Any direction would be appreciated.
 
Old 04-03-2011, 12:28 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,565

Rep: Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696
I gather this is some proprietary driver you are using for the Realtek card. That compiles using kernel files, and so is version dependent. It is a pain. When you update to, e.g. 2.6.23.x instead of 2.6.37.x, and run
depmod -a
modprobe <your_module>
what's the output?

I would at least try a symlink from the old module to where you want the new to be. All it will do at worst is give you the middle finger
cd /lib/modules/2.6.38.x/where/you/want/new/module/to/be
ls -s ../../../../../../2.6.37.x/kernel/drivers/path/to/nutty/soundcard/module .

or something like that :-P.
 
Old 04-03-2011, 05:37 PM   #3
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Original Poster
Rep: Reputation: 103Reputation: 103
Thanks for the suggestion. Unfortunately I only directionaly understand. Still trying to climb my way of the pits of ignorance
 
Old 04-04-2011, 04:08 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,565

Rep: Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696
You're being very kind. _ was a twat. Nobody could have known what I was on about.

find the pesky module the kernel modules (/lib/modules/kernel-version) where it exists, and place a correcponding symlink in your new module tree. You _might_ get away with that. You might not. It doesn't hurt to try.
 
Old 04-04-2011, 05:32 AM   #5
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Original Poster
Rep: Reputation: 103Reputation: 103
Question

I tried digging deeper but when I did the results seem to be inconsistent. The driver seems to be loaded and in the correct spot but no dice.

So at next kernel upgrade if I ln -s from current /lib/modules/2.6.32-5-amd64/ to new /lib/modules/2.6.32-#-amd64/ is what you suggest ? Just want to confirm.


Quote:

joe@Tux-Box:/lib/modules/2.6.32-5-amd64$ sudo modprobe realtek.ko
FATAL: Module realtek.ko not found.

Quote:
joe@Tux-Box:/lib/modules/2.6.32-5-amd64$ locate realtek.ko
/lib/modules/2.6.32-5-amd64/kernel/drivers/net/phy/realtek.ko
/lib/modules/2.6.32-5-amd64/kernel/sound/pci/hda/snd-hda-codec-realtek.ko

Thanks again for the direction.
 
Old 04-04-2011, 07:06 PM   #6
kostya
Member
 
Registered: Mar 2010
Location: Moscow, Russia
Distribution: Ubuntu Studio, antix(mepis), Fedora, FreeBSD
Posts: 173
Blog Entries: 5

Rep: Reputation: 17
Ah! There is one thing I've noticed:
The command
Code:
modprobe realtek.ko
only works with modules sited in /lib/modules/$YOUR KERNEL VERSION/modules.dep. Even if you're right there inside the directory where realtek.ko is situated.
1. Without going too deep into these details, you may try this version of your command:
Code:
modprobe /lib/modules/2.6.32-5-amd64/kernel/drivers/net/phy/realtek.ko
using in this case full path to the directory, where the module , and not the link, really is.

2. There's one more thing to mention dealing with custom modules in "unusual situations": instead of `modprobe` command you can try `insmod` command.

As I understand it, the `modprobe` command is a "more safe" one in that it WON'T load the module if it is doubtful about its source. But if YOU are not doubtful about your module and want to load it right here right now "at your own risk" (from the viewpoint of the system, which in this case doesn't recognize your module for its own), then the `insmod` command will do the thing. At least, you will see if it works.
Insmod doesn't give feedback, whether it was successful or not. So you'll need to do use `dmesg` command to see, if your networking card appeared on the system after loading the module.

3. Then again, does this module depend on other ones? You must see the source code for this module to see the dependencies (you need not be a code guru to see this either). Or, if the old kernel modules directory is still there, see the modules.dep file found therein for the dependencies.

For example, some Realtek NIC drivers depend on mii.ko to load properly (meaning this one must be loaded first). So perhaps you must first do
Code:
modprobe mii.ko
as this one must be well known to the system and usually exists in default kernel configurations, since RealTek chip based NICs are widely used.
Then after loading this one you can try again with your custom driver.
Here is how it looks with my two RealTek based NICs (part of my lsmod output):
Code:
8139too                25075  0 
r8169                  31809  0 
mii                     3578  2 8139too,r8169
So you see, there are two versions of RealTek cards, both need the mii.ko driver to load. Perhaps yours need this one, too?

And in ANY CASE,reading of manual pages for modprobe and insmod is a MUST. That sure will help to get you out of the pit of ignorance regarding this process .

Things described here are a "dirty fix" and can be tolerated only in case you're absolutely sure about the source of your "vendor driver".

Last edited by kostya; 04-04-2011 at 07:20 PM.
 
Old 04-05-2011, 05:24 AM   #7
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Original Poster
Rep: Reputation: 103Reputation: 103
Question

kostya thank you for the advice. I found some entries (listed below) and I made an attempt but the results are perplexing.


Quote:

File: /lib/modules/2.6.32-5-amd64/modules.dep


kernel/sound/pci/hda/snd-hda-codec-realtek.ko: kernel/sound/pci/hda

kernel/sound/pci/hda/snd-hda-codec-realtek.ko: kernel/sound/pci/hda/snd-hda-codec.ko kernel/sound/acore/snd-hwdep.ko kernel/sound/acore/snd-pcm.ko kernel/sound/acore/snd-timer.ko kernel/sound/acore/snd-page-alloc.ko kernel/sound/acore/s$



kernel/drivers/net/phy/realtek.ko: kernel/drivers/net/phy/libphy.ko




Quote:

joe@Tux-Box:~$ sudo insmod /lib/modules/2.6.32-5-amd64/kernel/sound/pci/hda/snd-hda-codec.ko
[sudo] password for joe:
insmod: error inserting '/lib/modules/2.6.32-5-amd64/kernel/sound/pci/hda/snd-hda-codec.ko': -1 File exists
joe@Tux-Box:~$ sudo modprobe /lib/modules/2.6.32-5-amd64/kernel/sound/pci/hda/snd-hda-codec.ko
FATAL: Module /lib/modules/2.6.32_5_amd64/kernel/sound/pci/hda/snd_hda_codec.ko not found.




Last edited by jv2112; 04-05-2011 at 06:01 AM.
 
Old 04-06-2011, 02:36 AM   #8
kostya
Member
 
Registered: Mar 2010
Location: Moscow, Russia
Distribution: Ubuntu Studio, antix(mepis), Fedora, FreeBSD
Posts: 173
Blog Entries: 5

Rep: Reputation: 17
Well if it says "file exists", then it must have already been inserted, or otherwise it is built into the kernel (but it usually is not in distributed kernels).
What does `lsmod` show about snd_hda_codec being inserted?
Here is part of my lsmod regarding snd_hda_codec:
Code:
snd_hda_intel          20151  2 
snd_hda_codec          71701  2 snd_hda_codec_analog,snd_hda_intel
Besides, snd_hda_codec is a sort of generic module for the HDA "type" of audio codec, but you also need to load some other one corresponding with your exact version of the HDA codec. You see in my case it is snd_hda_intel.


There is also this little thing about the names of the modules: the file itself is called snd-hda-codec.ko, but as a module it is known to the `modprobe` (and to the system) as snd_hda_codec. So you usually say just `modprobe snd_hda_codec`, or `modprobe mii`, or `modprobe realtek` and it knows which one to try.

So there's nothing perplexing about it, this is just the way modprobe works. Just use `lsmod` to see which modules are there, unless the module you need is built into the kernel itself, in which case I think it will not show up in lsmod, while `insmod` command will stubbornly say "file exists".
 
Old 04-06-2011, 05:43 AM   #9
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Original Poster
Rep: Reputation: 103Reputation: 103
Another weird twist to this mystery. The sound applet on intermittently disappears but I have sound except the theme sounds come across the internal speaker of the computer......



Quote:

joe@Tux-Box:~$ lsmod | grep snd_hda_codec
snd_hda_codec_realtek 235602 0
snd_hda_codec 54244 2 snd_hda_intel,snd_hda_codec_realtek
snd_hwdep 5380 1 snd_hda_codec
snd_pcm 60503 3 snd_hda_intel,snd_hda_codec
snd 46446 14 snd_hda_intel,snd_hda_codec_realtek,snd_hda_codec,snd_hwdep,snd_pcm,snd_seq,snd_timer,snd_seq_device

joe@Tux-Box:~$ sudo modprobe snd_hda_codec

joe@Tux-Box:~$ sudo modprobe mii

joe@Tux-Box:~$ sudo modprobe realtek
 
Old 04-07-2011, 02:59 AM   #10
kostya
Member
 
Registered: Mar 2010
Location: Moscow, Russia
Distribution: Ubuntu Studio, antix(mepis), Fedora, FreeBSD
Posts: 173
Blog Entries: 5

Rep: Reputation: 17
Quote:
Originally Posted by jv2112 View Post
Another weird twist to this mystery. The sound applet on intermittently disappears but I have sound except the theme sounds come across the internal speaker of the computer......
So the problem seems to be in your apps configuration rather than in your modules. As your `lsmod` output shows, the drivers are all in place. The presence of sound, too, shows that the system knows how to use the hardware through the driver. It is somewhere in the Desktop software, then, that the mess is taking place.

I had such problems with sound in the past, and it was usually impossible to get an answer to the question why things don't work as they should.
In fact, all this sound software is supposed to be working without any intervention from the user these days, so I can't imagine what's to be done. Can also `cat /var/log/messages` for more info...

You can also take a look into System-->Preferences-->Sound/Hardware to see what's taking place there.

Last edited by kostya; 04-07-2011 at 03:09 AM.
 
Old 04-07-2011, 05:23 AM   #11
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Original Poster
Rep: Reputation: 103Reputation: 103
Kostya,

Thank You for the direction. I reinstalled , ran alsa-ctl store and crossed my fingers .........
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Blown Speaker? dudeman41465 Linux - Hardware 3 11-07-2007 05:30 AM
\o/ DRM blown into oblivion. \o/ Hitboxx General 6 01-27-2007 11:44 AM
CD Writer Blown aquaboot Ubuntu 1 06-05-2006 06:26 PM
cedega has blown my shorts off!! JARofHERB Linux - Software 2 11-16-2004 05:28 AM
Kernel panic: A blown compile? Hangdog42 Slackware 14 03-21-2003 04:50 PM


All times are GMT -5. The time now is 03:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration