Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Aug 2016 15:18:40 +0300
From:      Arto Pekkanen <isoa@kapsi.fi>
To:        Anthony Jenkins <Scoobi_doo@yahoo.com>
Cc:        Thomas Hellstrom <thellstrom@vmware.com>, freebsd-x11@freebsd.org, owner-freebsd-x11@freebsd.org
Subject:   Re: Auto-detecting vmmouse
Message-ID:  <f63c4dab758cd824868a9b7407ced3de@kapsi.fi>
In-Reply-To: <8c3432df-1960-b823-a12a-a285caa62184@yahoo.com>
References:  <7dafabbb-c906-86b3-d9e7-5dd4c59dec7f@vmware.com> <8c3432df-1960-b823-a12a-a285caa62184@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Is anybody working on a proper fix for this issue?

Having to patch and recompile X.org is not a proper fix.

Anthony Jenkins via freebsd-x11 kirjoitti 23.08.2016 21:36:
> On 08/23/2016 04:43 AM, Thomas Hellstrom wrote:
>> Hi!
>> 
>> With the advent of the devd-managed Xorg device auto-detection, the
>> automatic ability of loading the "vmmouse" driver instead of the 
>> "mouse"
>> driver isn't there anymore.
>> 
>> Previously, with the hal-driven detection, a utility called
>> "vmmouse_detect" was run and the HAL suggested xorg driver was set
>> accordingly depending on the result of "vmmouse_detect".
>> 
>> So I was planning to restore this functionality somehow and when it's
>> working kindly ask whoever is responsible to automatically install
>> xf86-video-vmware and xf86-input-vmmouse whenever xorg is installed.
>> 
>> Unfortunately I have trouble finding documentation that describes how 
>> to
>> set the xorg input driver name for a mouse device detected by devd. 
>> The
>> input driver name needs to be set based on the return code of the
>> "vmmouse_detect" utility.
>> 
>> Any help pointing me to a preferred way of doing this would be greatly
>> appreciated.
> Basically you will have to modify device_added(const char *line) in
> config/devd.c to create a new InputOption "object" and set the "driver"
> option to "vmmouse" (assuming that's the driver name) using
> input_option_new().
> 
> I did my own implementation of config/devd.c (I think others have also,
> but I think they're all basically similar) different from the one
> currently in x11-servers/xorg-server/, it uses a function table to call
> a function for a given const char *line passed to device_added() to 
> make
> a decision about what driver to attach.
> 
> https://github.com/ScoobiFreeBSD/freebsd-ports/blob/xorg-synaptics/x11-servers/xorg-server/files/patch-config_devd.c
> 
> You'd add an entry to hw_types[] for the device node created by 
> devd(8),
> adding a new function to fill in the InputOption object depending on
> information from the system.
> 
> Anthony
> 
>> Thanks,
>> 
>> Thomas Hellström, VMWare
>> 
>> 
>> 
>> _______________________________________________
>> freebsd-x11@freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-x11
>> To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org"

-- 
Arto Pekkanen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f63c4dab758cd824868a9b7407ced3de>