leviathan icon indicating copy to clipboard operation
leviathan copied to clipboard

Driver files disappear in Ubuntu 18.04

Open dragonator4 opened this issue 6 years ago • 3 comments

Hi, I notice that the driver files are removed after a reboot on Ubuntu 18.04 (that is, the folder /sys/bus/usb/drivers/kraken does not exist anymore). Any way to make them permanent? Thanks.

dragonator4 avatar Aug 14 '18 22:08 dragonator4

I figured that it needs a dkms configuration file. I have created one that works on my system. I guess it would run without issues on other systems as well. The configuration file goes in the main directory, along with the kraken.c and Makefile. Here is the dkms.conf:

MAKE[0]="make"
CLEAN="make clean"
BUILT_MODULE_NAME[0]=kraken
DEST_MODULE_LOCATION[0]="/kernel/drivers/leviathan/"
PACKAGE_NAME=leviathan
PACKAGE_VERSION=1.1
REMAKE_INITRD=yes

The standard way of running this file through DKMS works:

dkms add -m leviathan -v 1.1
dkms build -m leviathan -v 1.1
dkms install -m leviathan -v 1.1

With this, one no longer needs to make and sudo insmod kraken.ko as in your README. Also, this will ensure the package is compiled each time when the kernel updates, and the module is automatically inserted in the correct place. I took the liberty of assigning this package version 1.1. Feel free to update that as necessary. If you require, I can put a pull request.

Ps. This is an excellent package now, as a driver, and not a script! Great work!

dragonator4 avatar Aug 15 '18 19:08 dragonator4

@dragonator4 I got the driver installed with DKMS but now I'm unsure how to go about changing the speed and other parameters? The commands / paths shown in the README seem to no longer apply as there is no longer a usb/drivers/kraken?

SethStalley avatar Oct 28 '18 21:10 SethStalley

@SethStalley There must be some issue with what you did. That should not happen, you should still see the driver files, the DKMS just automatically builds the package for you. Check modprobe to see if the driver was loaded correctly. The commands/paths in README should still be the same.

Also, you could try https://github.com/goncalossilva/levd, it is based on this, but has automatic fan/pump speed controls, based on setting a template file...

dragonator4 avatar Nov 08 '18 20:11 dragonator4