You are not logged in.
Pages: 1
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=2And 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
Is the file in the initrd?
lsinitcpio -l /boot/initramfs-linux.img | grep modprobeIf 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
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
Is the file in the initrd?
lsinitcpio -l /boot/initramfs-linux.img | grep modprobeIf 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.confOffline
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
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
Pages: 1