MODULES_CONF[#] modifies /etc/modprobe.d/dkms.conf instead of /etc/modules

Asked by Guillaume

Binary package hint: dkms

Hello,

With this dkms.conf on Karmic with dkms 2.1.0.1 :

DEST_MODULE_LOCATION[0]="/kernel/drivers/video/backlight"
PACKAGE_NAME="nvidia_bl"
PACKAGE_VERSION="0.50"
CLEAN="make -C ${kernel_source_dir} SUBDIRS=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build clean"
BUILT_MODULE_NAME[0]="$PACKAGE_NAME"
MAKE[0]="make -C ${kernel_source_dir} SUBDIRS=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build modules"
REMAKE_INITRD="no"
AUTOINSTALL="yes"
MODULE_CONF[0]="$PACKAGE_NAME"

nvidia_bl is added to /etc/modprobe.d/dkms.conf instead of /etc/modules. Modprobe complains about the nvidia_bl command it finds in /etc/modprobe.d/dkms.conf

Any suggestion ?

Guillaume

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu dkms Edit question
Assignee:
No assignee Edit question
Solved by:
Guillaume
Solved:
Last query:
Last reply:
Revision history for this message
Mario Limonciello (superm1) said :
#1

This is the proper behavior. It's supposed to modify a file in modprobe.d. Adding it to /etc/modules would cause it to auto load on every boot which is improper. Any module should be using udev and modaliases to detect when to be loaded.

Revision history for this message
Mario Limonciello (superm1) said :
#2

Proper behavior. Adding to /etc/modules causes it to be loaded on every boot. It should be loading based on modaliases and/or udev.

Revision history for this message
Guillaume (guillaume-zin) said :
#3

Ok, I guess that because the backlight driver is not hot pluggable, I want to install it through a mod alias, but which one? This is platform specific, so it could be a platform alias that is installed and removed at the same time as the DKMS driver, but which one? Is there some documentation on what module aliases are automatically loaded by the kernel?

Thank you.

Guillaume

Revision history for this message
Guillaume (guillaume-zin) said :
#4

Nevermind, I will play around with MODULE_DEVICE_TABLE and DMI or PCI interfaces, it should do the trick and be auto loaded by the kernel.

Thank you.

Guillaume