Current-Users archive

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

Re: usb device modifying state of another driver on plug/unplug event



On Thu, Jun 13, 2019 at 01:57:35PM +0930, Brett Lymn wrote:
> 
> Folks,
> 
> I was wondering if anyone has an opinion on the best way to have a usb
> device modify the state of another device driver on plug and unplug.
> 
> The reason I was thinking about this is that I have noticed on Windows
> 10 they have a checkbox on the synaptics driver configuration that says
> to disable the trackpad when a usb pointing device is attached.  This
> makes a lot of sense for people who want to use a mouse when at a desk
> but if they are mobile then have the trackpad available without having
> to twiddle anything.
> 
> I was thinking maybe at the wsmouse level but I don't think that knows
> where the events are coming from hence why I was thinking that the usb
> mouse driver could do something to tell the synaptics driver to disable
> sending events until futher notice.
> 
> Thoughts?


Maybe just provide a sysctl can can put the synaptics to sleep, and
have userland deal with it ?

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index