• 1 Post
  • 8 Comments
Joined 10 months ago
cake
Cake day: June 30th, 2024

help-circle






  • I first had it running with the kernel parameters. For this see the second link in the introduction. The problem there was it added to boot time, as the kernel generates an error message. Passing an EDID as kernel parameter was complicated, due initramfs modification being tricky on Bazzite (at least acccording to my limited understanding). So I moved to this method where I initialize the virtual display via the KMS debug API later in the boot process. This can also be used to arbitrarily modify the virtual display. I have not looked into doing it via parameter. Can you share the example commands?



  • I got new-lg4ff working some time ago and posted this on the Bazzite discord. I have not tried for some time though:

    I managed to get new-lg4ff going at least on a per use basis. Not ideal this way but at least something. First you need to pull the driver from Github:

    git clone https://github.com/berarma/new-lg4ff
    

    Then you need a toolbox matching your base image in my case:

    toolbox create --image ghcr.io/ublue-os/bazzite-gnome:testing --container bazzite-devel
    toolbox enter bazzite-devel
    

    Next you need to pull in the kernel-devel files. They are on a separate github page “kernel-bazzite”. Find your running kernel version.

    uname -r
    

    Then download the appropriate kernel-devel and kernel-devel-matched from https://github.com/hhd-dev/kernel-bazzite/releases, in my case:

    wget https://github.com/hhd-dev/kernel-bazzite/releases/download/6.11.5-310/kernel-devel-matched-6.11.5-310.bazzite.fc41.x86_64.rpm
    wget https://github.com/hhd-dev/kernel-bazzite/releases/download/6.11.5-310/kernel-devel-6.11.5-310.bazzite.fc41.x86_64.rpm
    

    Install them into the toolbox:

    sudo rpm -if kernel-devel-matched-6.11.5-310.bazzite.fc41.x86_64.rpm kernel-devel-6.11.5-310.bazzite.fc41.x86_64.rpm
    

    Then the build of the module should succeed. From the folder you cloned the new-lg4ff repo run:

    make
    

    To insert the module you need to relax SELINUX (against idea of SELINUX, but it is a hacky solution).

    sudo setenforce Permissive
    

    Then you should be able to insert the kernel module:

    sudo insmod hid-logitech-new.ko
    

    This is it.