NetBSD-Bugs archive

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

kern/58435: marc@mccd.space



>Number:         58435
>Category:       kern
>Synopsis:       synaptics_aux_mid_button_scroll not working
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 17 14:45:00 +0000 2024
>Originator:     marc@mccd.space
>Release:        NetBSD 10.0
>Organization:
>Environment:
System: NetBSD bsd.lt 10.0 NetBSD 10.0 (COOLBSD) #0: Mon Jul 15 20:32:46 -05 2024 mccd%bsd.lt@localhost:/root/obj/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
	On my laptop I recently replaced my elantech touchpad with
	a synaptics touchpad.

	Everything works and I can see Synpatics touchpad being 
	registered in dmesg:

	mccd dmesg | grep -i pms
	[     1.033021] pms0 at pckbc1 (aux slot)
	[     1.033021] pms0: Synaptics touchpad version 8.2
	[     1.033021] pms0: Extended W mode, Passthrough, Palm detect, One button click pad, Multi-finger Report, Multi-finger, Reports max, Reports min
	[     1.033021] pms0: Probed max coordinates right: 5678, top: 4720
	[     1.033021] pms0: Probed min coordinates left: 1264, bottom: 1132
	[     1.033021] wsmouse0 at pms0 mux 0
	[     1.033176] pms0 at pckbc1 (aux slot)
	[     1.033176] pms0: Synaptics touchpad version 8.2
	[     1.033176] pms0: Extended W mode, Passthrough, Palm detect, One button click pad, Multi-finger Report, Multi-finger, Reports max, Reports min
	[     1.033176] pms0: Probed max coordinates right: 5678, top: 4720
	[     1.033176] pms0: Probed min coordinates left: 1264, bottom: 1132
	[     1.033176] wsmouse0 at pms0 mux 0

	and pc keyboard is detected as well

	mccd dmesg | grep -i pckbd0
	[     1.033021] pckbd0 at pckbc1 (kbd slot)
	[     1.033021] wskbd0 at pckbd0: console keyboard
	[     1.033176] pckbd0 at pckbc1 (kbd slot)
	[     1.033176] wskbd0 at pckbd0: console keyboard

	The laptop I have is a thinkpad T480s


	However, I can not get middle-click scroll to work.
	I can see that there is an option to enable it in
	pms and I have made sure it is enabled in sysctl like
	so:

	hw.synaptics.aux_mid_button_scroll=1

	Yet middle click scroll does not work, I noticed that
	the if case is:

        if (synaptics_aux_mid_button_scroll &&
            dy && (psc->buttons & 0x2)) {
                wsmouse_precision_scroll(psc->sc_wsmousedev, dx, dy);
        } else {
                buttons = (psc->buttons & 0x1f) | ((psc->buttons >> 5) & 0x7);
                wsmouse_input(psc->sc_wsmousedev,
                        buttons, dx, dy, dz, 0,
                        WSMOUSE_INPUT_DELTA);
        }

	Maybe the if case is incorrect and the code
	should be something different?

>How-To-Repeat:
	This happens on a thinkpad T480s with the 
	touchpad replaced to a synaptics touchpad.
>Fix:
	Temporary solution is to enable autoscroll in 
	webbrowser but this does not solve the problem
	in general



Home | Main Index | Thread Index | Old Index