home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Linux and Unix
Ask a Tech Support Question (free)!

script, possibly?

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2899
Discussions: 200,967, Posts: 2,379,679, Members: 246,333
Old March 7th, 2005, 12:46 AM   Digg it!   #1 (permalink)
Member
 
Join Date: Jan 2004
Posts: 242
script, possibly?

I have just recently got my sound working on my laptop. BUT, the only way it works is if i su then type :
modprobe snd-xx blah blah blah blah blah
I would like the sound to function when i boot up, so i dont have to keep retyping that....and im on a pretty slow proc, so kernel rebuild isnt really preference. I have never written a script before...but im guessing this would be the one-liner with the
#! /bin/bash, but where would it go, one of the rc.d's? Im running debian sarge under 2.4.27-2 kernel

thanks
engineuity is offline   Reply With Quote
Old March 7th, 2005, 05:48 AM     #2 (permalink)
may contain mild peril
 
SpookyEddy's Avatar
 
Join Date: Oct 2001
Location: UK
Posts: 3,329
Any modules you list in /etc/modules should be loaded at startup. Its quite possible that ALSA has its own mechanism for loading any modules it requires, however I am not familiar with it.

Regards

ed
SpookyEddy is offline   Reply With Quote
Old March 7th, 2005, 06:07 AM     #3 (permalink)
Member
 
lynch's Avatar
 
Join Date: May 2004
Posts: 224
Add the modprobe snd-xx blah blah to /etc/rc.local or whatever the Deb local startup file is called.
HTH
lynch
__________________
www.usalug.org
www.opensuse.us
lynch is offline   Reply With Quote
Old March 7th, 2005, 02:23 PM     #4 (permalink)
Member
 
Join Date: Jan 2004
Posts: 242
dont know what the local startup file is... i have /etc/rc0.d through rc6.d but they seem to have numbered sym-links in them not actual files

my /etc/modules only has
Code:
ide-cd
ide-detect
edit: i thought the etc/modules were kernel start things and if i made changes they wouldnt be recognized

any other suggestions?
engineuity is offline   Reply With Quote
Old March 7th, 2005, 02:29 PM     #5 (permalink)
may contain mild peril
 
SpookyEddy's Avatar
 
Join Date: Oct 2001
Location: UK
Posts: 3,329
Quote:
NAME
/etc/modules - kernel modules to load at boot time
DESCRIPTION

The /etc/modules file contains the names of kernel modules that are to be loaded at boot time, one per line. Arguments can be given in the same line as the module name. Comments begin with a `#', and everything on the line after them are ignored.

You have a kernel module and you want to load it at boot, sounds just the ticket to me *shrug*

Regards

ed
SpookyEddy is offline   Reply With Quote
Old March 7th, 2005, 03:05 PM     #6 (permalink)
Member
 
Join Date: Jan 2004
Posts: 242
didnt work...unless im doing something wrong?
Code:
modprobe snd-opl3sa2 dma1=1 dma2=0 fm_port=0x388 irq=5 isapnp=0 midi_port=0x330 port=0x538 sb_port=0x220 wss_port=0x530
thats what i need to type in at CLI to get sound to go...i put it into the modules but it didnt work. maybe modules.conf? ->testing now
engineuity is offline   Reply With Quote
Old March 7th, 2005, 03:10 PM     #7 (permalink)
may contain mild peril
 
SpookyEddy's Avatar
 
Join Date: Oct 2001
Location: UK
Posts: 3,329
You don't need to put the modprobe in.

Regards

ed
SpookyEddy is offline   Reply With Quote
Old March 7th, 2005, 03:29 PM     #8 (permalink)
Member
 
Join Date: Jan 2004
Posts: 242
neither of those worked. I took out the modprobe and just had snd-xx blah blah in my modules file and also tried in the modules.conf file
engineuity is offline   Reply With Quote
Old March 7th, 2005, 04:01 PM     #9 (permalink)
may contain mild peril
 
SpookyEddy's Avatar
 
Join Date: Oct 2001
Location: UK
Posts: 3,329
Not sure what the problem is then. On a debian box /etc/modules is definately the place to list any modules you want loading on boot. Alsa used to load its modules from within its init script, they changed it afaik but you could always try that.

Regards

ed
SpookyEddy is offline   Reply With Quote
Old March 7th, 2005, 05:39 PM     #10 (permalink)
Member
 
Join Date: Jan 2004
Posts: 242
well weird thing was i couldnt get alsa to actually configure my card correctly so a google brought me to the modprobe code and that amazingly worked. what about the script idea? i guess its a cheap workaround but i know it works. just dont know where i should be putting it or exactly how its supposed to be written.
engineuity is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Try to hack this site VERT IMO Community 467 September 24th, 2006 03:05 PM
Arthur Dent, movie star biznob IMO Community 6 January 4th, 2005 11:20 PM
FireDaemon.EXE? jamisonlikewhat General Tech Discussion 4 August 11th, 2004 06:44 AM
Something got lost in the translation... Toadman IMO Community 16 December 11th, 2003 07:54 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3027)
Forty-six years ago today (12)
The disrespect of Obama by Russian .. (46)
Laptop with wireless problem. (12)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
Internet Lost (5)
windows vista security holes (16)
windows 7 problem (7)
Is the PSU I received dead? (13)
Point and Shoot Camera Suggestions. (6)
radeon x850xt platinum & shader.. (6)
HIS HD5770 graphic card question (15)
Recent Discussions
Browsers wont load websites (3)
Nvidia GTX 260 problem (2)
windows vista security holes (16)
Delete an OS (8)
help me pls laptop just stopped worki.. (0)
Open With ..... Win7 (3)
Help getting around port 80 for camer.. (4)
Laptop with wireless problem. (12)
Internet Lost (5)
Skillsoft Network+ Study Software Que.. (9)
virus blocking exe. files (1)
Point and Shoot Camera Suggestions. (6)
CPU fan stops spinning randomly (11)
Modern Warfare 2: Who Bought It? (65)
Is the PSU I received dead? (13)
Print spooler problem (16)
Kingston Bluetooth Dongle Driver (1)
Multiple Restarts Required at Boot (3)
webcam (0)
upgrade for hp a6101 (0)
tv not turn on-makes clicking sound (2)
EVGA 9800 gtx help with finding a goo.. (11)
Regular Build (11)
Help with onclick and buttons (0)
Virus advise (8)


All times are GMT -4. The time now is 04:25 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28