Gnarus-G / maccel

Mouse acceleration driver and kernel module for Linux.
https://maccel.org
GNU General Public License v2.0
35 stars 3 forks source link

Values change after closing cli interface #12

Closed NeonNAX closed 6 days ago

NeonNAX commented 2 months ago

Hate to be that guy but I have an issue:

When I fill in my values they all look as they schould I then press q as instructed. When I then reoppen the cli, some values a different.

Steps to reproduce -Input: --SensM 0.0917 --Accel 0.002048 --Offset 78.125 --OC 2.02399 -quit out of cli -reopen cli -see some new values: --SensM 0.08984375 --Accel 0.00390625 --Offset 78.125 --OC 78.125

OS = arcoLinux (arch but with pasases) Kernel = 6.8.7-zen WM = Hyprland Terminalemulator = kitty

My numbers are this low bc I use 10000dpi. Relating to my dpi would it be posible to have a way to rescale the graph so higher then 1600 dpi would be easyer to use?

p.s. I am dyslexic, hope its readable and helpful

Gnarus-G commented 2 months ago

It's normal to lose some precision in the numbers due to not using real floating point numbers. I couldn't get floating points to work in the kernel.

That being said, the change in your accel and output cap are very significant. So I'll see what I can do to get more precision. Let me see a screenshot of your graph.

NeonNAX commented 2 months ago

Here you go: WhatI fill in: grimshotA-25 04 24_14:27:36 What it ends up as: grimshotA-25 04 24_14:26:44 How the curve looks ideally (given the graph scaling): grimshotA-25 04 24_14:26:34

Gnarus-G commented 6 days ago

@NeonNAX If this is still relevant to you. You should be able to get more precision after the decimal point for your values now. Still not perfect, but much better. Just reinstall, and re-enter your values.

Gnarus-G commented 6 days ago

Graph should scale appropriately now.

NeonNAX commented 3 days ago

Tried the driver today. Values are very accurate now and the grath looks to be in a readble area. Thanks for that.

To add to the device list:

copy from terminal: sudo maccel bind 7-3:1.0 [INFO] device to bind: Logitech USB Receiver [INFO] unbinding from hid-generic [INFO] device 7-3:1.0 is not bound to driver 'usbhid' [INFO] binding to maccel Error: failed to bind device '7-3:1.0' to driver 'maccel'

Caused by: Device or resource busy (os error 16)

(tried this to see if there was a problem with the bindall, thats why it was unbound from hid-generic)