You are not logged in.
I am trying to load a couple custom kernel modules to get the keyboard backlight working on my laptop (https://github.com/corcoran/chromebook_ … ght_driver).
I've built the modules against my current kernel headers:
# uname -r
4.6.4-1-ARCH[
# pacman -Qi linux linux-headers
Name : linux
Version : 4.6.4-1
Name : linux-headers
Version : 4.6.4-1
And copied the resulting modules to /lib/modules/$(uname -r)/
# ls /lib/modules/$(uname -r)/chrome*
/lib/modules/4.6.4-1-ARCH/chromebook_kb_backlight.ko
/lib/modules/4.6.4-1-ARCH/chromeos_keyboard_leds.ko
I added the modules to /etc/modules-load.d/
# cat /etc/modules-load.d/chromeos-keyboard-leds.conf
chromeos_keyboard_leds
chromebook_kb_backlight
However, on reboot (or manually restarting systemd-modules-load) the system cannot find the modules
systemd-modules-load[5352]: Failed to find module 'chromeos_keyboard_leds'
systemd-modules-load[5352]: Failed to find module 'chromebook_kb_backlight'
Referring to this documentation I have tried adding the modules to the /lib/modules/$(uname -r)/extramodules. I've tried gziping them and leaving them uncompressed. The system still says that it cannot find the modules.
Attempting to load the modules manually via modprobe:
# modprobe chromebook_kb_backlight
modprobe: FATAL: Module chromebook_kb_backlight not found in directory /lib/modules/4.6.4-1-ARCH
However insmod works:
#insmod /lib/modules/4.6.4-1-ARCH/chromebook_kb_backlight.ko
#insmod /lib/modules/4.6.4-1-ARCH/chromeos_keyboard_leds.ko
# lsmod | grep -i chrome
chromeos_keyboard_leds 16384 0
chromebook_kb_backlight 16384 0
The backlight comes on at this point and the driver is available at /sys/class/leds/chromeos\:\:kbd_backlight.
I'm stumped. Can anyone tell me how to get these modules to load at boot?
Last edited by shaggystyle (2016-08-04 16:09:31)
Offline
Run depmod.
Edit: Oh, and those should really be in the extramodules dir.
Last edited by Scimmia (2016-08-04 15:59:06)
Offline
Yep.
It's that easy.
Thank you.
Offline