From owner-freebsd-x11@freebsd.org Mon Aug 29 16:21:23 2016 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 61F85BC7B88; Mon, 29 Aug 2016 16:21:23 +0000 (UTC) (envelope-from isoa@kapsi.fi) Received: from mail.kapsi.fi (mx1.kapsi.fi [IPv6:2001:1bc8:1004::1:25]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 22B2C790; Mon, 29 Aug 2016 16:21:22 +0000 (UTC) (envelope-from isoa@kapsi.fi) Received: from karviainen.kapsi.fi ([217.30.184.182] helo=roundcube.kapsi.fi) by mail.kapsi.fi with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1bePJC-0005kB-P3; Mon, 29 Aug 2016 19:21:15 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Mon, 29 Aug 2016 19:21:14 +0300 From: Arto Pekkanen To: Thomas Hellstrom Cc: Anthony Jenkins , freebsd-x11@freebsd.org, owner-freebsd-x11@freebsd.org In-Reply-To: <37be0c30-c9c6-1823-24be-fbfa4077f9bf@vmware.com> References: <7dafabbb-c906-86b3-d9e7-5dd4c59dec7f@vmware.com> <8c3432df-1960-b823-a12a-a285caa62184@yahoo.com> <37be0c30-c9c6-1823-24be-fbfa4077f9bf@vmware.com> Message-ID: <9b8cdaf82474373948efc0241fcd56d1@kapsi.fi> X-Sender: isoa@kapsi.fi User-Agent: RoundCube Webmail/0.9.4 X-SA-Exim-Connect-IP: 217.30.184.182 X-SA-Exim-Mail-From: isoa@kapsi.fi X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 Subject: Re: Auto-detecting vmmouse X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mail.kapsi.fi) X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2016 16:21:23 -0000 Awesome! Thomas Hellstrom kirjoitti 29.08.2016 16:29: > Hi! > > It's on my todo list, unless someone beats me to it. > > /Thomas > > On 08/29/2016 02:18 PM, Arto Pekkanen wrote: >> 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://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_ScoobiFreeBSD_freebsd-2Dports_blob_xorg-2Dsynaptics_x11-2Dservers_xorg-2Dserver_files_patch-2Dconfig-5Fdevd.c&d=CwIDaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=vpukPkBtpoNQp2IUKuFviOmPNYWVKmen3Jeeu55zmEA&m=ZEdVZ4WvkFVmPYSSdr8gDNQJRcT_xdLT-5UC-W-fmZU&s=g5msGfDG8M69w7ZTtETKfDoFGdcUmNBceXVgnBz9O4U&e= >>> >>> 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://urldefense.proofpoint.com/v2/url?u=https-3A__lists.freebsd.org_mailman_listinfo_freebsd-2Dx11&d=CwIDaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=vpukPkBtpoNQp2IUKuFviOmPNYWVKmen3Jeeu55zmEA&m=ZEdVZ4WvkFVmPYSSdr8gDNQJRcT_xdLT-5UC-W-fmZU&s=k6D2evC_l0AqKGT8WjctdDnIRoih2Gki6cEchxlsd_E&e= >>>> To unsubscribe, send any mail to >>>> "freebsd-x11-unsubscribe@freebsd.org" >> -- Arto Pekkanen