LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-28-2006, 12:33 PM   #1
haruharaharu
LQ Newbie
 
Registered: Oct 2006
Posts: 2

Rep: Reputation: 0
Loading Modules at boot?


I've tried for the past couple of days to figure out how to change edit the way the modules load. I'm currently running Debian/etch, kernel 2.6.16-2-686.

What I'm trying to do:
Have the intel_agp and agpgart modules load before radeon and drm.

Why:
It might fix the "(WW) RADEON(0): [agp] AGP not available" error I'm recieving in /var/log/Xorg.0.log.

What I've tried:
I've tried editing the /etc/modules.conf file. But after pulling it up in the editor and seeing a bunch of alias* stuff...I wasn't quite sure what to do. I was able to find the alias listings in /lib/modules/2.6.16-2-686/modules.alias. But I wasn't sure how to specify which modules I would like to load first.

I'm fairly new to Debian...7 days and I started with Sarge. After I got that running and configured a bit, I did a complete wipe and reloaded the system with Etch and the 2.6.16-2-686 kernel.

Any help would be appreciated! And if I need to post more information, please let me know which ones and how to get them.

Thanks in advance.
 
Old 10-28-2006, 01:16 PM   #2
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
I'm pretty sure you have to use the modprobe.conf file now instead of modules.conf. You should be able to put in the modules in the order you want them loaded.
 
Old 10-29-2006, 10:51 PM   #3
haruharaharu
LQ Newbie
 
Registered: Oct 2006
Posts: 2

Original Poster
Rep: Reputation: 0
I don't have a modprobe.conf file or a modprobe.d for that matter. I read about them in the man pages but they don't exist on my system and I did a clean install.

I also cannot find modules called intel_agp or agpgart. I think the agpgart is compiled into the kernel but I don't know how to tell it to load first. I was able to find intel_agp under my /lib/modules/2.6.16-2-686/modules.alias file. apparently when I do a generate-modules it looks at the files under /lib/moduels/2.6.16-2-686 and generates the /etc/modules.conf file. I also checked the /etc/modules file.

I tried adding the lines intel_agp and agpgart following the syntax in the files, into the /etc/modules.conf and /etc/modules but was unable to resolve the issues. I even tried adding them to the load modules section in the /etc/X11/xorg.conf file but returned the error, unable to find modules intel_agp and agpgart.

when I look at the /lib/modules/2.6.16-2-686 it lists a bunch of aliases to intel_agp, I think there are like 10 of them listed as well as an alias for apggart, but I don't really know what to do with them.

Under /etc/modules and /etc/modules.conf, there are no listings of intel_agp or agpgart, maybe they are listed as something else? I know they load because if I pull up lsmod they are there. Modifying the two above files didn't change anything else.

Everything on my system runs really well and I'm really happy with the way debian/etch and kde are working. 2D is fantastic as is the sound. The only problem I'm having is when it runs the /etc/X11/xorg.conf, and I check the /var/log/Xorg.0.log, I get the error at (WW) RADEON(0): [agp] AGP not available. When I checked around, I had seen in various places to make sure that intel_agp and agpgart is ran before running radeon and drm. But like I said before, I don't know how to specify that?

If someone could explain to me how to modify my modules.conf to have it load those modules first I would greatly appreciate it.

When I get home, I'll post my /etc/modules.conf and /etc/modules file.

Thanks again manwhichmakesameal!
 
Old 10-30-2006, 12:37 AM   #4
smaudlin
Member
 
Registered: Dec 2004
Location: Benicia, CA
Distribution: Fedora 6,5,4 Mandrake 10.1
Posts: 46

Rep: Reputation: 15
do some searching on run levels. There usually run levels 1,2,3,4,5 and you switch things up but couldn't tell you exactly how. I did it once many moon ago.
 
Old 10-30-2006, 08:26 AM   #5
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
Could you post your /etc/X11/xorg.conf file too? I'm no ATI expert, but maybe someone here is.
 
Old 10-30-2006, 08:35 AM   #6
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
In /etc/modprobe.conf (create it if it is not there), you have to add lines about like that:
Code:
install drm /sbin/modprobe agpgart; /sbin/modprobe intel_agp; /sbin/modprobe --first-time --ignore-install drm
install radeon /sbin/modprobe agpgart; /sbin/modprobe intel_agp; /sbin/modprobe --first-time --ignore-install radeon
Yves.
 
  


Reply



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
No Modules loading at boot. mpyusko Slackware 11 09-25-2006 03:39 PM
loading modules at boot triley Linux - General 3 08-23-2006 08:24 AM
Loading modules at boot paddyjoy Linux - Newbie 2 06-27-2005 09:23 PM
loading modules at boot Davidian1024 Linux From Scratch 3 06-25-2004 12:19 AM
loading modules at boot qanopus Linux - General 2 11-29-2002 04:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:29 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
Open Source Consulting | Domain Registration