[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Inquiry About Contributing a COM Mouse Driver to the Community



Hi Alex,

On 23/05/2025 18:57, Alex Sklemin wrote:
Dear Colleagues,

Several years ago, I encountered an issue with the lack of drivers for a COM mouse. While this may not be a common problem today, it was a critical need in my case. Additionally, during my time as a system administrator in Russian hospitals, I worked with limited IT infrastructure, where computers from 2007–2013 were still in regular use. A driver like this could be useful for others in similar situations.

I have developed a driver, which is available here:
https://github.com/alexeysklemin/mouse_driver/tree/main <https:// github.com/alexeysklemin/mouse_driver/tree/main>

I would like to inquire about the possibility of contributing this driver to the community. I have carefully reviewed the Social Contract and believe my code aligns with its principles. If it does not meet the requirements for official inclusion, I would appreciate guidance on how to distribute this driver effectively to Debian users.

Great work getting this to work from userspace where it's hard to have a reliable driver.

Looking at your code, it looks like a standard serial mouse protocol. The good news is that it's supported by the kernel through the sermouse driver [1]. Compare your input loop with sermouse_process_ms() and they should be compatible (3 bytes, Left/Right button, X/Y relative).

Perhaps try to configure the kernel to attach a mouse to /dev/ttyS0 instead? This might help [2]


1. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/input/mouse/sermouse.c
2. https://wiki.archlinux.org/title/Serial_input_device_to_kernel_input


--
Regards,
Ahmad


Reply to: