Package Details: leetmouse-driver-dkms 0.9.0-1

Git Clone URL: https://aur.archlinux.org/leetmouse-driver-dkms.git (read-only, click to copy)
Package Base: leetmouse-driver-dkms
Description: USB HID Boot Protocol mouse driver with acceleration.
Upstream URL: https://github.com/animafps/leetmouse
Licenses: GPL2
Submitter: anima
Maintainer: anima
Last Packager: anima
Votes: 1
Popularity: 0.001046
First Submitted: 2023-10-04 05:46 (UTC)
Last Updated: 2023-10-04 05:46 (UTC)

Dependencies (2)

Required by (0)

Sources (2)

Latest Comments

CabalCrow commented on 2025-06-23 09:44 (UTC)

A kernel update requires some changes to get this work (or any of the leetmouse forks I know of). This is the commit in question: https://github.com/torvalds/linux/commit/fe7f7ac8e0c708446ff017453add769ffc15deed

The change required is in the drivers/usdmouse.c file at line 217.

    num_descriptors = min_t(int, hdesc->bNumDescriptors,
           (hdesc->bLength - offset) / sizeof(struct hid_class_descriptor));

    for (n = 0; n < num_descriptors; n++)
        if (hdesc->desc[n].bDescriptorType == HID_DT_REPORT)
            rsize = le16_to_cpu(hdesc->desc[n].wDescriptorLength);

The above is the current code, the updated code should be

    if (hdesc->rpt_desc.bDescriptorType == HID_DT_REPORT)More actions
        rsize = le16_to_cpu(hdesc->rpt_desc.wDescriptorLength);

you can find both in the linux kernel commit at lines 1022. The code in the leetmouse driver is a 1:1 copy of that part of the kernel's code, so it needs to be kept up to date with changes to the kernel's code.

Also you need to change the line on 171 from:

    size_t offset = offsetof(struct hid_descriptor, desc);

to

    size_t offset = offsetof(struct hid_descriptor, rpt_desc);

because of the new naming.

honeraf commented on 2024-05-14 12:15 (UTC)

great, finally i can use 1000dpi, libinput mouse speed too slow, even max speed still slow...