You are not logged in.

#1 2014-02-13 12:24:01

Nektarios
Member
Registered: 2013-02-19
Posts: 90

/etc/modprobe.d/*.conf does not work

I want to pass an option to a kernel mod on bootup. Specifically I want to alter the polling rate of the USB mouse to 500hz, by passing the options usbhid mousepoll=2 to usbhid mod.

I added a new file to /etc/modprobe.d/ called usbhid.conf with the following contents:

options usbhid mousepoll=2

And by executing at runtime:

sudo modprobe -r usbhid && sudo modprobe usbhid

Then the mouse correctly runs at 500hz.

So the conf file works if I execute it manually, but it doesn't get executed on bootup even though I have modconf on the HOOKS= in /etc/mkinitcpio.conf.

Anyone knows what's wrong and why this doesnt work, or how I can debug it to find it out by myself?

Last edited by Nektarios (2014-02-13 12:25:20)

Offline

#2 2014-02-13 13:51:03

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: /etc/modprobe.d/*.conf does not work

Is the file in the initrd?

lsinitcpio -l /boot/initramfs-linux.img | grep modprobe

If not, then you probably haven't rebuilt the initrd yet.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2014-02-13 16:09:01

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: /etc/modprobe.d/*.conf does not work

Alternatively, you could also use the kernel command line directly.  I think it would be 'usbmod.mousepoll=2'.  I just personally don't like adding all kinds of crap to the kernel command line if I don't have to.  But that is a personal preference.

Offline

#4 2014-02-13 17:24:41

Nektarios
Member
Registered: 2013-02-19
Posts: 90

Re: /etc/modprobe.d/*.conf does not work

WorMzy wrote:

Is the file in the initrd?

lsinitcpio -l /boot/initramfs-linux.img | grep modprobe

If not, then you probably haven't rebuilt the initrd yet.

Yes it is.

lsinitcpio -l /boot/initramfs-linux.img | grep modprobe
./usr/bin/modprobe
./usr/lib/modprobe.d
./usr/lib/modprobe.d/usb-load-ehci-first.conf
./etc/modprobe.d
./etc/modprobe.d/vmware-fuse.conf
./etc/modprobe.d/uvesafb.conf
./etc/modprobe.d/modprobe.conf

Offline

#5 2014-02-13 17:25:50

Nektarios
Member
Registered: 2013-02-19
Posts: 90

Re: /etc/modprobe.d/*.conf does not work

WonderWoofy wrote:

Alternatively, you could also use the kernel command line directly.  I think it would be 'usbmod.mousepoll=2'.  I just personally don't like adding all kinds of crap to the kernel command line if I don't have to.  But that is a personal preference.

Well that's what I'll use as a workaround, but still I want to know why modconf doesn't work. This problem will surely come up again in the future somehow.

Offline

#6 2014-02-13 19:01:11

rebootl
Member
Registered: 2012-01-10
Posts: 431
Website

Re: /etc/modprobe.d/*.conf does not work

Yes it is.

lsinitcpio -l /boot/initramfs-linux.img | grep modprobe
./usr/bin/modprobe
./usr/lib/modprobe.d
./usr/lib/modprobe.d/usb-load-ehci-first.conf
./etc/modprobe.d
./etc/modprobe.d/vmware-fuse.conf
./etc/modprobe.d/uvesafb.conf
./etc/modprobe.d/modprobe.conf

Maybe I'm missing something here or it's a copy paste error but you said it's called usbhid.conf, that's not in this list.
See: https://wiki.archlinux.org/index.php/mk … activation to rebuild your image.


Personal website: reboot.li
GitHub: github.com/rebootl

Offline

Board footer

Powered by FluxBB