LinuxQuestions.org
Visit Jeremy's Blog.
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 12-09-2004, 02:59 PM   #1
High-gain
Member
 
Registered: Dec 2004
Location: London,UK
Distribution: Mandriva 2007
Posts: 156

Rep: Reputation: 15
fijitsu mobile 510agp - sound module


Please could anyone help with the following -

I have installed Mandrake 10.0 on my Fijitsu Mobile 510 agp laptop with no problems, and even have a internet connection (my thanks to Martin N from Sweden for that one). But the laptop cannot 'Autodetect' the sound driver as it emulates a ISA card.

Most of the material I have studied from the net suggest I need to install a LKM module.

My problem that having recently migrated from Windows ( and hopefully will not have to go back) is that still, after a few frustrating weeks, I am unable to write these modules.

If possible could someone answer the following -

(a) What would be the best progamme to start writing the modules with. I am using KDE.

(b) With reference to the above webpages info, do I write the module exactly as shown or do I have to add any other things.

(c) Where would the 'conf.' files go.

Would be most grateful for your advice. Thank You.

**********************************************************
The more I Learn - The Less I Know!
**********************************************************

Last edited by High-gain; 12-09-2004 at 03:01 PM.
 
Old 12-09-2004, 05:35 PM   #2
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
Hi again!

Found this link through http://www.linux-laptop.net/ :
http://www.linuxfreunde.de/marl/mobi...mobile510.html

The command 'alsaconf' seems to make things pretty easy.

Good luck with your (soon to be) perfectly working Linux laptop!
Martin
 
Old 12-10-2004, 02:54 AM   #3
High-gain
Member
 
Registered: Dec 2004
Location: London,UK
Distribution: Mandriva 2007
Posts: 156

Original Poster
Rep: Reputation: 15
Greetings again Martin, thanks for coming back to my questions.

I have been looking at the webpages you sent me for several weeks now, but am unable to figure out how to write the modules and with what software. I have attempted to use KDevelop and C++ with simple 'Hello World' programmes, but end up with lots of errors and then it bails out.

Perhaps you could advise me on what programe to start writing with, and also the procedure that I have to use. I have just found some info to use the following but not sure if this is correct

"C++ *.cpp -o outfile"

Here the option is either =
-0 optimise your code
-g to add debugging info
*.cpp selects all files ending in .cpp
outfile is filename of the binary to be produced

If the above is correct - where do I go from here? (probably take a learning course in linux. Hi.)

Hope I have explained my situation properly and you have an idea of what I am trying to do. Thank you again Martin for your time and attention.
 
Old 12-10-2004, 05:23 AM   #4
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30


A kernel module is a "driver" in Windows terminology. Sure, you can make your own drivers, but I don't think it's the first thing you should do while trying out Linux.

On your Mandrake CDs, the kernel is precompiled for you and so are all the modules. The kernel only needs to know which modules to load and how to configure them. This is specified in the file
/etc/modules.conf
This file is plain text and you can edit this file by hand, but it would be very tedious. That's why you run a program like 'alsaconf' to do it for you.

Hope this helps. Ask if you need more help or something is unclear.

Martin
 
Old 12-10-2004, 09:13 AM   #5
High-gain
Member
 
Registered: Dec 2004
Location: London,UK
Distribution: Mandriva 2007
Posts: 156

Original Poster
Rep: Reputation: 15
All copied Martin so thanks for that.

Have found alsaconf and installed ok on the pc. Could you tell me please, do I have to copy the etc/modules.conf(ALSA) file that is on the webpage you sent me to, and then place in the etc/ directory. Or do I edit the alsaconf file which I have just installed.

Thanks again for your time and attention, am getting there - slowly but surely. Hi.

Last edited by High-gain; 12-10-2004 at 10:41 AM.
 
Old 12-10-2004, 02:54 PM   #6
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
Editing my own post:
Errrhhh ... Sorry. I didn't see that you had edited your post. I read it earlier, at work and only replied to that. I now must edit my own post.

No, you don't need to copy anything to /etc/modules.conf
Just run alsaconf (as root, see below) from a command prompt. If this doesn't work, then try this:

End of edit

Hi again!

I apologize for not being able to give more precise instructions than these. It's kind of difficult, since I don't use Mandrake myself.

The first thing I think you should try is the Mandrake configuration program. From the Mandrake Control Center, try "Hardware" and see if you in any way can configure it from there. This would be the safe and easy way of doing it.

This is the more experimental way:

You know about the 'su' command to get root (super user) access in a terminal window, don't you? For this test to work, you need to be root. Therefore open a terminal window and type
su -
(note the minus, it's part of the command).

After entering the root password, you are now root with supreme powers of the system. Try inserting the kernel module (driver) manually! Issue this command (in part stolen from the page I linked to earlier):
modprobe snd-card-cs4232 snd_index=0 snd_port=0x534 snd_cport=0x538 snd_isapnp=0 snd_dma1=0 snd_dma2=1 snd_irq=7

If you get an error: "Module snd_card_cs4232 not found." then try again but leave out the 'card' in the command, like this:
modprobe snd-cs4232 snd_index=0 snd_port=0x534 snd_cport=0x538 snd_isapnp=0 snd_dma1=0 snd_dma2=1 snd_irq=7

Did any of these commands work? Did you get sound? If you only got an error message, please post it here. If it works, then we can arrange for this to load automatically on boot.

Again, my apologies for not being more precise than this.

Good luck!
Martin

Last edited by MartinN; 12-10-2004 at 02:58 PM.
 
Old 12-10-2004, 05:08 PM   #7
High-gain
Member
 
Registered: Dec 2004
Location: London,UK
Distribution: Mandriva 2007
Posts: 156

Original Poster
Rep: Reputation: 15
Hi Martin - thank you for your last post and all understood on your advice.

I have only just got back to the pc so shall work on it for the next couple of hours. (local time here is 2200z). Will post the results tomorrow morning.

As I said previously, have found alsaconf and installed it on the pc. I have tested it and it does work (hooray) and will detect several different drivers, but not the one I should use. That's why I asked if I had to install the etc/modules.alsa file for it to work, but realize now that it works on it's own thanks to you.

I will try your settings as set out in the above post, this I am sure will prove that the sound works. (it did in windows mode) Will then try different settings until it will recognize the right driver. Thanks again for your info and will get on with it straight away. All the best for now and thank again. Almost there. Hi.
 
Old 12-11-2004, 04:20 AM   #8
High-gain
Member
 
Registered: Dec 2004
Location: London,UK
Distribution: Mandriva 2007
Posts: 156

Original Poster
Rep: Reputation: 15
Hi Martin -
have edited my last post and this is the revised situation now. Alsaconf has been loaded and found driver cs4321 as per the script in the 510agp webpages you sent for me to look at.

All seems to be ok, if I 'lsmod' then cs4321 shows up there so guess it is loaded.

Still cannot get any sound at this time. Tried loading with modprobe as you suggested but that returns 'no such device, not such file'. I am also getting some warning notices that the ' /device/dev/dsp can't be opened - no such file' - have tried looking for this but cannot locate yet. Wonder if you have any suggestions on how to proceed.
Thanks again your time and attention. - J

Last edited by High-gain; 12-12-2004 at 05:21 AM.
 
  


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
Charlotte Church's mobile phone Oops! Topless photo jumps through mobile phones in UK furfurdemon666 General 3 05-03-2005 09:03 AM
Fijitsu Laptop Mobile 510 agpP High-gain Linux - Newbie 3 12-09-2004 06:47 AM
Sound and ATI Mobile drakethegreat Slackware 5 11-25-2004 09:11 PM
new sound module biiiep Slackware 4 06-01-2004 05:01 PM
sound module nautilus_1987 Slackware 6 11-19-2002 01:04 PM


All times are GMT -5. The time now is 05:23 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