WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: disabling pci module  (Read 2713 times)

Offline P5music

  • Full Member
  • ***
  • Posts: 167
disabling pci module
« on: June 18, 2010, 05:07:55 AM »
Hello,
When I execute lspci I get a list of modules among which I find NVidia sound card that causes me some trouble with device id of edirol usb interface.
I would like to try to disable it before jack is called so it can see just edirol interface.
Which is the command to disable a pci module?
Thanks

Offline gutmensch

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 605
  • I can make it disappear, have no fear!
    • remembrance blog
Re: disabling pci module
« Reply #1 on: June 18, 2010, 05:26:03 AM »
lspci doesn't show you any modules, lspci just lists all the devices found on the pci bus and correlates their id numbers with names (like nvidia sound card etc.). If you don't want to use a special device you can either blacklist the corresponding module (after using lsmod and finding which module you don't want to load) or you disable it using the sound driver e.g. tell jack directly not to use it.
If I seem unduly clear to you, you must have misunderstood what I said. (Alan Greenspan)

Offline P5music

  • Full Member
  • ***
  • Posts: 167
Re: disabling pci module
« Reply #2 on: June 18, 2010, 05:39:16 AM »
Thank you very much.
Please tell me the lsmod command syntax to blacklist the device so jack does not see it anymore.
I cannot tell jack not to use one in particular because it assigns different id numbers every time.
Example:
this time
edirol interface hw:0
nvidia hw:1

next time
edirol interface hw:1
nvidia hw:0

Offline gutmensch

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 605
  • I can make it disappear, have no fear!
    • remembrance blog
Re: disabling pci module
« Reply #3 on: June 18, 2010, 05:47:50 AM »
Try to find the nvidia sound module by looking at the output of lsmod, for example nvidia_sound.

Try to remove the module by hand: sudo modprobe -r nvidia_sound

Restart jack and see if it works, if yes, then add the following to /etc/modprobe.conf

blacklist nvidia_sound

Add etc/modprobe.conf to your backup.

p.s.: besides that you could also try to tell udev always to use nvidia for device hw:1 or edirol for device hw:0, you just have to define rules for that http://wiki.archlinux.org/index.php/Udev#Mixed_Up_Devices.2C_Sound.2FNetwork_Cards_Changing_Order_Each_Boot
« Last Edit: June 18, 2010, 05:51:35 AM by gutmensch »
If I seem unduly clear to you, you must have misunderstood what I said. (Alan Greenspan)

Offline P5music

  • Full Member
  • ***
  • Posts: 167
Re: disabling pci module
« Reply #4 on: June 18, 2010, 06:24:41 AM »
ok
thanks to you I think it's going to be solved.
I read the wiki link and I think it's the right way. So I'm going to edit rc.conf and put the two devices in the right order.
lsusb gives
Bus 002 Device 002: ID 0582:00a3 Roland Corp. EDIROL UA-4FX

lspci gives
00:10.1 Audio Device: nVidia Corporation MCP51 High Definition Audio (rev a2)

lsmod gives
snd_seq
snd_hda_codec_conexant (I think it's the modem)
snd_hda_intel
snd_usb_audio
snd_hda_codec
snd_pcm
snd_timer
snd_usb_lib
snd_raw_midi
snd_seq_device
snd_hwdep

if I have to put
MODULES=(mod1 mod2)
in /etc/rc.conf
what strings have to replace mod1 and mod2  ?


Offline gutmensch

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 605
  • I can make it disappear, have no fear!
    • remembrance blog
Re: disabling pci module
« Reply #5 on: June 18, 2010, 06:39:51 AM »
Unfortunately we don't have the arch linux feature in tinycore (yet) so you can't use the hack from the website ;-)

The modprobe from coreutils (tinycore extension) supports something like

option snd-usb-audio index=0
option snd-hda-intel index=1

in the /etc/modprobe.conf file, but I don't know whether the builtin busybox version supports that.

If that fails you can use 
blacklist snd-usb-audio
blacklist snd-hda-intel

and load the modules yourself with "modprobe snd-usb-audio" in /opt/bootlocal.sh. Then the ediroal device should always be hw:0 and after that you can do modprobe snd-hda-intel, the nvidia should be hw:1
If I seem unduly clear to you, you must have misunderstood what I said. (Alan Greenspan)

Offline P5music

  • Full Member
  • ***
  • Posts: 167
Re: disabling pci module
« Reply #6 on: June 18, 2010, 08:17:45 AM »
Thank you very much.
But neither "index" method (preferred) nor "blacklist" one work.
It seems that modprobe.conf is not read at startup. Please help.

aus9

  • Guest
Re: disabling pci module
« Reply #7 on: August 16, 2010, 08:38:37 AM »
hi

I have found a way (for me ) to blacklist modules, if you are still interested?

use root powers to edit /opt/bootlocal.sh and add lines like this

/sbin/modprobe -r modulename

reboot with backup

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14794
Re: disabling pci module
« Reply #8 on: August 16, 2010, 09:33:17 AM »
If you're using tc-3.x, the "blacklist=module_name" boot code should work?