Date: Mon, 31 Dec 2007 17:14:19 +0000 From: "Ivan Radovanovic" <radovanovic@gmail.com> To: current@freebsd.org Subject: A4Tech mouse in FreeBSD Message-ID: <8a2be41b0712310914w7df11952o78188618da11c667@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
I had problem using my A4Tech mouse in FreeBSD (few jumps, then stopping
completely). I changed atkbdc driver to communicate with it like with
IntelliMouse, and mouse is now usable (there are still wheel related
problems). I attached diffs to be applied on files in
/usr/src/sys/dev/atkbdc directory for anyone with similar problems
Regards,
Ivan
[-- Attachment #2 --]
139a140
> #define PSM_A4QUICK_ID 10
[-- Attachment #3 --]
1152a1153
> case PSM_A4QUICK_ID:
3131,3135c3132,3139
< if (id != PSM_EXPLORER_ID)
< return FALSE;
<
< sc->hw.hwid = id;
< sc->hw.buttons = 5; /* IntelliMouse Explorer XXX */
---
> switch (id) {
> case PSM_EXPLORER_ID:
> sc->hw.hwid = id;
> sc->hw.buttons = 5; /* IntelliMouse Explorer XXX */
> break;
> default:
> return FALSE;
> }
3177,3181c3181,3192
< if (id != PSM_INTELLI_ID)
< return FALSE;
<
< sc->hw.hwid = id;
< sc->hw.buttons = 3;
---
> switch (id) {
> case PSM_INTELLI_ID:
> sc->hw.hwid = id;
> sc->hw.buttons = 3;
> break;
> case PSM_A4QUICK_ID:
> sc->hw.hwid = id;
> sc->hw.buttons = 3;
> break;
> default:
> return FALSE;
> }
3200c3211
< if (set_mouse_sampling_rate(kbdc, rate[i]) != rate[i])
---
> if (set_mouse_sampling_rate(kbdc, rate[i]) != rate[i])
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8a2be41b0712310914w7df11952o78188618da11c667>
