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, 13 Jun 2019 at 05:27, Brett Lymn <blymn%internode.on.net@localhost> wrote:
> 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.
Is this something that wsmux might be suited to handle - or possibly
it could generate attach/detach events which could be handled by a
userland script?
Home |
Main Index |
Thread Index |
Old Index