Saturday, July 03, 2021

Enable Edge Scrolling for ALPS Touchpad

Hello everyone,

I am running OpenBSD on an HP Pavilion dm1z-2000 Notebook. I am trying
to setup edge scrolling for my Alps touchpad.

Here are the relevant dmesg entries for the device:

"*AUI1101" at acpi0 not configured
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0

Here is the output of xinput:

+ Virtual core pointer                        id=2    [master pointer  (3)]
|   + Virtual core XTEST pointer                  id=4    [slave
pointer  (2)]
|   + /dev/wsmouse                                id=7    [slave
pointer  (2)]
+ Virtual core keyboard                       id=3    [master keyboard (2)]
    + Virtual core XTEST keyboard                 id=5    [slave
keyboard (3)]
    + /dev/wskbd                                  id=6    [slave
keyboard (3)]

Here is the output of wsconsctl | grep mouse:

mouse.type=ps2
mouse.reverse_scrolling=0

I've browsed the mailing archive and man pages for more info on this
topic. This email chain in particular was informative:

https://marc.info/?t=151500769800001&r=1&w=2

It got me thinking that maybe my Alps model was not included in the
pms.c code.

I went over the code for pms.c here:
https://github.com/openbsd/src/blob/master/sys/dev/pckbc/pms.c

I noticed that some of the version models are actually excluded in the
code and actually default to PS2 because they use protocols that are not
quite compatible with pms.
I know for a fact based on my machine's manual that the touchpad
supports edge scrolling. Is there anyway I can retrieve the hex value
for the version # of my alps touchpad without having
to debug the kernel or add some sort of printf statement and then
recompile? I am trying to find out what my version # is to see if it
just needs to be added to the model list as in
https://marc.info/?t=151500769800001&r=1&w=2 or if extra work is needed.
If so, I would be interested in trying to do some driver work to enable
the scrolling.

Thank you for your help!

No comments:

Post a Comment