WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: trying to blacklist oss_ich.. still loads?  (Read 1939 times)

Offline mb0

  • Jr. Member
  • **
  • Posts: 86
trying to blacklist oss_ich.. still loads?
« on: May 15, 2012, 07:46:29 PM »
As titled, i'm trying to prevent oss_ich from loading (i have a USB sound device and want to not load the module for the onboard audio). I have added 'blacklist=oss_ich' to extlinux.conf (append section), but this seems to make no difference as lsmod still shows it there (and onboard sound still works, etc).

any ideas??

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: trying to blacklist oss_ich.. still loads?
« Reply #1 on: May 15, 2012, 11:19:36 PM »
Is it possible the module name is "oss-ich" rather than "oss_ich"? I'm not at a linux machine to check.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: trying to blacklist oss_ich.. still loads?
« Reply #2 on: May 16, 2012, 05:36:49 AM »
The soundon script does not respect the blacklist. It loads every driver mentioned in the driver list, which is created automatically if it doesn't exist.

I don't recall the exact filename, but it's under /usr/lib/oss. Though, the extension startup scripts get run before backup restore, so to have the file available at that time you'd either need to remaster the base, or create an extension with the file (probably the best way).
The only barriers that can stop you are the ones you create yourself.

Offline mb0

  • Jr. Member
  • **
  • Posts: 86
Re: trying to blacklist oss_ich.. still loads?
« Reply #3 on: May 16, 2012, 11:08:34 AM »
hmm.. theres a file /usr/lib/oss/etc/devices.list which looks like it might work..

how do i get a file that i create in an extension to load in /usr/lib/oss/etc/ ??

or is modifying the oss extension the better choice? (E: afaict this looks to be more complicated.. so no)
« Last Edit: May 16, 2012, 11:36:40 AM by mb0 »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: trying to blacklist oss_ich.. still loads?
« Reply #4 on: May 16, 2012, 01:27:45 PM »
Code: [Select]
sudo su
cd /tmp
mkdir -p ex/usr/lib/oss/etc
cp /usr/lib/oss/etc/devices.list ex/usr/lib/oss/etc # edit it to only have the usb driver
mksquashfs ex myossconf.tcz
The only barriers that can stop you are the ones you create yourself.