this post was submitted on 06 May 2025
35 points (97.3% liked)
Linux Gaming
18330 readers
260 users here now
Discussions and news about gaming on the GNU/Linux family of operating systems (including the Steam Deck). Potentially a $HOME
away from home for disgruntled /r/linux_gaming denizens of the redditarian demesne.
This page can be subscribed to via RSS.
Original /r/linux_gaming pengwing by uoou.
No memes/shitposts/low-effort posts, please.
Resources
WWW:
Discord:
IRC:
Matrix:
Telegram:
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I mean, not having DKMS sounds like it'd be obnoxious for gaming to me.
But if all you need is a kernel module, you shouldn't have to have it built via DKMS.
I don't use Bazzite, but the driver project has instructions for a non-DKMS build:
https://github.com/berarma/new-lg4ff
You're going to need to manually do a new build and install if you update your kernel, though, since otherwise the new kernel won't have that driver (well, unless the Bazzite people include it in the new kernel).
EDIT:
I haven't used an immutable distro, but if it's a problem, I'm sure that there's a way to defeat the immutability. If it just mounts the root filesystem read-only, then
Will probably do it.
I'm also pretty sure that you can use a non-standard directory with
modprobe
and if you want to manually load the module out of some other directory. Looking at themodprobe(8)
man page, looks like it takes a-d
flag and an alternate module root directory.EDIT2: Hmm.
insmod
might be simpler thanmodprobe
, since then you don't have to worry about dependent modules, especially if new-lg4ff is just a single module. It's been ages since I've insmodded something, but if it can take a path to a kernel module file, then one doesn't need to worry about havingmodprobe
see bothnew-lg4ff
and any modules that it depends on.EDIT3: Just realized one other bit of complexity. This isn't just loading a driver that isn't present. If some other driver is "claiming" the steering wheel first
you say that it's working, but not with all the functionality you want?
then you might need to prevent that other driver from doing so, or make it release the device, as I don't think that your steering wheel driver can claim the device if another already has it.
I'm gonna bet that it's usbhid. I think
honestly, never looked into whether anything's changed since the udev daemon showed up
that as soon as a module is loaded, it grabs all the devices that it recognizes. And another complication
you don't want to prevent usbhid from loading, which is one approach that's used when an old, broken driver is used, because it gets used for all sorts of other things like your keyboard and mouse.
If you run:
You'll get a list of all of your
event
devices. On my system, for example, I have:If you want to know which driver is associated with a given event device:
The xpad kernel driver owns that device for me. In your case, I bet that it's gonna be something like: "../../../../../../../../../../bus/hid/drivers/hid-generic".
From this:
https://stackoverflow.com/questions/51858074/preventing-usbhid-from-claiming-device
It sounds like doing an unbind will work to make the usbhid module release the device. That guy has a udev rule written, which will cause the udevd daemon to cause the usbhid driver to automatically release the device.
goes looking for an example of adding a udev rule
https://linuxconfig.org/tutorial-on-how-to-write-basic-udev-rules-in-linux
It will work until the next reboot (and I believe it won't work on Fedora 42 as it now uses composefs), on Fedora Atomic Desktops you have to use layers to add additional packages using rpm-ostree
(Edit: formatting)
I think you might’ve just saved me there. Will give modprobe a try in the afternoon. Thanks a lot!
I just added one other followup -- you might want to try
insmod
instead ofmodprobe
, sincemodprobe
expects more than just the single module, expects to have the other modules that that new-lg4ff might depend on visible to it...you might need to go set up a "duplicate module root" to makemodprobe
happy, but withinsmod
just be able to insert the module file without any other mucking around.