LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-13-2015, 12:48 PM   #1
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
How to control the sequence for loading modules?


Hello,
I have 2 different grafic cards in my pc.
I have difficulties in initializing the correct card.
Is there any possibility to control the sequence for loading of modules which are in the kernel?
The only Idea which I have (to be tested the next days oń the machine):
blacklist module1
blacklist module2
and in an init script:
modprobe module1
wait 2
modprobe module2
In that I would be sure module1 is loaded before module2. But I dont know how to be sure the initialized hardware will have the correct IRQ in use.
If any boot code, or any other method, could overtake the sequenced loading of modules, I would be happy to know it.
 
Old 03-13-2015, 01:25 PM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
If you have kernel modules for the graphics devices then you blacklist or force which to load first. Read man page of 'modprobe.conf'.

If you have included them in kernel then perhaps it can be disabled by passing kernel parameters. Run modinfo on the required modules, it would give parameters. Apply that to kernel command line while booting.
 
Old 03-14-2015, 02:40 PM   #3
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by veerain View Post
If you have kernel modules for the graphics devices then you blacklist or force which to load first. Read man page of 'modprobe.conf'.

If you have included them in kernel then perhaps it can be disabled by passing kernel parameters. Run modinfo on the required modules, it would give parameters. Apply that to kernel command line while booting.
I created
##########################################
# file /etc/modprobe.conf
# http://linux.die.net/man/5/modprobe.conf
# http://www.linuxquestions.org/questi...6/#post5331676
install radeon /sbin/modprobe snd_hda_intel; /sbin/modprobe --ignore-install radeon
# https://wiki.debian.org/KernelModuleBlacklisting
include /etc/modprobe.d
##########################################
in order to make the "radeon" loading in ANY case before the snd_hda_intel.
Do you think it is fine?
Then I will test

Last edited by floppy_stuttgart; 03-14-2015 at 02:44 PM.
 
Old 03-14-2015, 03:02 PM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Yes it's fine.
 
Old 03-14-2015, 04:50 PM   #5
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
For the reason it did not worked (sometimes, it loaded snd_hda_intel before radeon !? it seems I wroongly interpreted the man modprobe.conf), I blacklisted snd_hda_intel in /etc/modprobe-d/alsa-base-blacklist.conf
and
changed the file
##########################################
# file /etc/modprobe.conf
# http://linux.die.net/man/5/modprobe.conf
# http://www.linuxquestions.org/questi...6/#post5331676
install snd_hda_intel /sbin/modprobe radeon
# https://wiki.debian.org/KernelModuleBlacklisting
include /etc/modprobe.d
##########################################
NOW
radeon is loaded automatically in my PC at each boot (good).
snd_hda_intel is NOT loaded at boot (good: due to blacklisting).

Questions:
1) if I correctly understood, a "modprobe snd_hda_intel" would now load radeon before snd_hda_intel (if radeon not existing)?
2) Where should I put the "modprobe snd_hda_intel" in my antix system? (debian wheezy derivat) for having snd_hda_intel loaded automatically at boot ?

Last edited by floppy_stuttgart; 03-20-2015 at 01:23 PM.
 
  


Reply

Tags
blacklist, boot options, graphic, irq, modprobe



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
can't boot laptop - sequence halts while loading syslogd nass Slackware 6 01-02-2011 12:45 PM
How do I check sequence of and re-arrange modules loaded at startup? SP7 Linux - Software 5 05-24-2008 01:41 AM
Loading modules error after loading compiled kernel td0l2 Linux - Newbie 12 07-28-2004 11:10 AM
How to change module loading sequence? benk Fedora 1 07-09-2004 12:48 PM
What files control loading of kernel modules? Rimmer Linux - General 1 05-04-2001 12:21 PM

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

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