LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-25-2004, 08:46 AM   #16
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53

Could you post (cut and paste - don't paraphrase) the exact output from one of these extractings?
 
Old 05-27-2004, 05:27 AM   #17
piggysmile
Member
 
Registered: Apr 2004
Location: Philippines
Posts: 175

Original Poster
Rep: Reputation: 30
ok, ive already extracted the packages but i cannot edit modules.conf. access denied. how do i fix this? last question: should i use the shell console to insert the modules in the kernel? thanks a lot for helping me.
 
Old 05-27-2004, 07:43 AM   #18
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Quote:
ok, ive already extracted the packages but i cannot edit modules.conf. access denied. how do i fix this?
Make sure you are root. Only root can edit system files.

Quote:
last question: should i use the shell console to insert the modules in the kernel?
Yes. Type that whole modprobe command (or preferably cut and paste) into the console and press enter. You have to be root, though. No one but root can insert modules into the kernel since as you can imagine it would be a major security hole if that wasn't the case.
 
Old 05-27-2004, 07:51 PM   #19
piggysmile
Member
 
Registered: Apr 2004
Location: Philippines
Posts: 175

Original Poster
Rep: Reputation: 30
but i logged in as root when i used to edit modules.conf with kwrite in graphical mode. should i also edit it under the shell console? how will i do it?
 
Old 05-27-2004, 08:38 PM   #20
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
You're saying you logged into X as root? You don't have to do that you can just type su into any console and then the root password. Then any command you launch from that console will be in root's name. Time saver, really. It's also considered bad form to log in as root into X. Can you tell me if the file /etc/modules.conf exists and what are it's permissions? To do this type ls -l modules.conf in the /etc directory. Mine reads:
Code:
-rw-r--r--    1 root     root         8445 May  5 10:03 modules.conf
Basically, if it's there, then do this:
1. Type su and enter the root password when prompted.
2. Type kwrite modules.conf &. Wait until kwrite opens and see if you can edit the file.

One other thing... Is kwrite a word processor or a text editor? You want to be using a text editor. I have a feeling it's a word processor. KDE's text editor is called kate.
 
Old 05-27-2004, 10:01 PM   #21
piggysmile
Member
 
Registered: Apr 2004
Location: Philippines
Posts: 175

Original Poster
Rep: Reputation: 30
it's similar to notepad
 
Old 05-28-2004, 12:04 AM   #22
piggysmile
Member
 
Registered: Apr 2004
Location: Philippines
Posts: 175

Original Poster
Rep: Reputation: 30
adz i can now edit modules.conf. i just pasted the code that you gave me below the first line of that file since my modules.conf only contains one line. my question now is why didnt bash find the command modprobe? hence, i wasnt able to insert the modules into the kernel.
 
Old 05-28-2004, 01:17 AM   #23
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Well there are a couple of possibilities as to why that's the case. Firstly, you have to be root. Only root can use modprobe and usually only root has it in their PATH. Secondly, it could be that root does not have it in it's PATH so you may have to specify the location of modprobe as well. Therefore you would have to type /sbin/modprobe <module name> instead of just modprobe <module name>.

As you can see, modprobe is located in /sbin therefore if you want to confirm it's presence you can do an ls modprobe inside the /sbin directory.

Last edited by adz; 05-28-2004 at 01:48 AM.
 
Old 05-30-2004, 08:17 AM   #24
piggysmile
Member
 
Registered: Apr 2004
Location: Philippines
Posts: 175

Original Poster
Rep: Reputation: 30
adz probably there was something wrong with the packages i downloaded.

1)ALSA Packages:
alsa-driver-0.9.8-1.fr.i386.rpm
alsa-lib-0.9.8-1.fr.i386.rpm
alsa-utils-0.9.8-1.fr.i386.rpm
kernel-module-alsa-0.9.8-1.fr_2.4.20_20.9.i386.rpm

2)/etc/modules.conf output:

alias usb-controller usb-uhci

# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-sgalaxy
# module options should go here

# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0

# card #1
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

3)what i did:
a. extracted the packages mentioned above throught the shell console. extraction went
fine.
b. edited the /etc/modules.conf file through kwrite and saved it.
c typed:
modprobe snd-sgalaxy;modprobe snd-pcm-oss;modprobe snd-mixer-oss;modprobe
snd-seq-oss
shell output:
modprobe: Can't locate module snd-sgalaxy
modprobe: Can't locate module snd-pcm-oss
modprobe: Can't locate module snd-mixer-oss
modprobe: Can't locate module snd-seq-oss

what do you think? can it be with the packages or the code? or my soundcard is defintely incompatible with Linux? just tell me if its not. anyway, i really appreciate your help in fixing this issue. thanks.
 
Old 05-30-2004, 10:00 AM   #25
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
No the sounds card is not incompatible (although it can be a bitch to configure ISA devices) the problem I think is that there is a kernel mismatch. I was hoping it wouldn't cause problems but it looks like it did. You see your kernel modules are in the directory /lib/modules/2.4.20-8/ whereas I think the ALSA modules would have created a new directory /lib/modules/2.4.20_20.9 (or something similar) and installed themselves there. Check to see what directories there are in /lib/modules. What I'm thinking happened is that Red Hat released some sort of kernel upgrade for your version. they have the same major version number but different minor numbers. Which leaves you with basically three options:

1. Try to find ALSA packages for exactly you kernel version. This may be somewhat unlikely but it's the quickest fix.

2. Go to freshrpms and see if you can get the kernel upgrade rpm to 2.4.20_20.9. That may be a relatively simple way to do it.

3. Try for the OSS drivers. Try a modprobe isa-pnp sgalaxy and see where that gets you.

Last edited by adz; 05-30-2004 at 10:02 AM.
 
Old 05-30-2004, 06:21 PM   #26
piggysmile
Member
 
Registered: Apr 2004
Location: Philippines
Posts: 175

Original Poster
Rep: Reputation: 30
yeah you' were right i have two directories in my /lib/modules/ the 2.4.20-8 and 2.4.20-20.9. i didnt find a kernel upgrade at freshrpms.net. i have to check at redhat. do you know a site that provides kernel upgrades?
 
Old 05-30-2004, 08:09 PM   #27
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
I don't use red hat. Or any other rpm based distro for that matter. So no.
 
Old 05-31-2004, 08:52 AM   #28
piggysmile
Member
 
Registered: Apr 2004
Location: Philippines
Posts: 175

Original Poster
Rep: Reputation: 30
adz i've already upgraded my kernel but i wasnt able to insert the modules into the kernel. the following shows the output of the module insertion activity of /sbin/modprobe snd-sgalaxy :
- - - - - - - - - - - - -
[root@localhost davis]# /sbin/modprobe snd-sgalaxy
/lib/modules/2.4.20-20.9/kernel/sound/snd.o: unresolved symbol register_chrdev_R07a6f6f0
/lib/modules/2.4.20-20.9/kernel/sound/snd.o: unresolved symbol remove_wait_queue_Rd7b46182
/lib/modules/2.4.20-20.9/kernel/sound/snd.o: unresolved symbol remove_proc_entry_R16f1fe81
/lib/modules/2.4.20-20.9/kernel/sound/snd.o: unresolved symbol register_sound_special_Ra5b31d09
/lib/modules/2.4.20-20.9/kernel/sound/snd.o: unresolved symbol __pollwait_Rb9575694
/lib/modules/2.4.20-20.9/kernel/sound/snd.o: unresolved symbol __down_read_Rbebf4a44
/lib/modules/2.4.20-20.9/kernel/sound/snd.o: unresolved symbol proc_root_R18fcdf69
/lib/modules/2.4.20-20.9/kernel/sound/snd.o: unresolved symbol __up_read_R98a5b601
/lib/modules/2.4.20-20.9/kernel/sound/snd.o: unresolved symbol kill_fasync_Rfbe13b62
/lib/modules/2.4.20-20.9/kernel/sound/snd.o: unresolved symbol init_rwsem_R322cb358
/lib/modules/2.4.20-20.9/kernel/sound/snd.o: unresolved symbol fasync_helper_Rfa802e55
/lib/modules/2.4.20-20.9/kernel/sound/snd.o: unresolved symbol create_proc_entry_Rd11cc972
/lib/modules/2.4.20-20.9/kernel/sound/snd.o: unresolved symbol proc_symlink_Rab195fd7
/lib/modules/2.4.20-20.9/kernel/sound/snd.o: unresolved symbol add_wait_queue_R1891d4b7
/lib/modules/2.4.20-20.9/kernel/sound/snd.o: unresolved symbol __up_write_R77fd5393
/lib/modules/2.4.20-20.9/kernel/sound/snd.o: unresolved symbol __down_write_R716dfc70
/lib/modules/2.4.20-20.9/kernel/sound/snd.o: insmod /lib/modules/2.4.20-20.9/kernel/sound/snd.o failed
/lib/modules/2.4.20-20.9/kernel/sound/snd.o: insmod snd-sgalaxy failed
- - - - - - -
other alsa module insertion processes also failed and had the output similar to the log above. what do you think i should do now?
 
Old 05-31-2004, 08:57 AM   #29
piggysmile
Member
 
Registered: Apr 2004
Location: Philippines
Posts: 175

Original Poster
Rep: Reputation: 30
probably the IO or IRQ module parameters are incorrect. i think ALSA doesnt support this type of soundcard yet. anyway, what is OSS? will it work with my soundcard?
 
Old 05-31-2004, 08:59 AM   #30
piggysmile
Member
 
Registered: Apr 2004
Location: Philippines
Posts: 175

Original Poster
Rep: Reputation: 30
another thing. i downloaded the kernel upgrade, kernel 2.4.20-20.9.i586 while i have alsa kernel modules for i386. do you think this affects also?
 
  


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
Aztech 2320 sound problem in SuSE 10 smje Linux - Hardware 0 10-23-2005 08:59 AM
Aztech 2320 ISA PnP sound card issues!!!! CapheinePhreak Mandriva 8 05-22-2005 09:27 AM
Aztech Sound Card for Ubuntu jmcq Linux - Newbie 0 04-19-2005 07:18 AM
Aztech Sound Problems EwanG Linux - Hardware 11 12-22-2004 07:05 PM
aztech 56k modem and sis7018 sound card dontt work at all chiragw Linux - Newbie 5 09-04-2001 12:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:34 AM.

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