From owner-freebsd-x11@freebsd.org Tue Aug 30 17:59:19 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 883EBBC9B3F for ; Tue, 30 Aug 2016 17:59:19 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) Received: from nm29-vm1.bullet.mail.bf1.yahoo.com (nm29-vm1.bullet.mail.bf1.yahoo.com [98.139.213.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4E8849A2 for ; Tue, 30 Aug 2016 17:59:18 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1472579952; bh=564SRnjYebisP3YPVOpXw6cXZXXLeTGRcWdeUe8RftM=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From:Subject; b=uFmcWyHNbwsYSfchYkuCFZLpplgHJMsBxqXVuREsI1N9Heif6HjgutYksXPX+Am4NipY+MtkQFU0gVuf9GSPzDxghKyNBHRBZ5o8VC9Dx1dtIf7iPD/suYeymFskHeiXybWY7VzZ7qbs/cDIYPOp1FbqbhBFx8DRsyD68Cw4JEqTf0+sVJ1lUG6Cvl+MMCe0gfKRPauaJi0k5D3XJLKq9xATGbojSoQVeliz7RVbcjyjYiWN72TJNTRR/3Td6QWLdDOFcZ7m4vL5d6NollL9USCgg2fFNtdyI6tehixZZl5WvkR6+BOe4olKWqJ6avKXZdC/q6KEjEPahilvDHxIeQ== Received: from [98.139.215.141] by nm29.bullet.mail.bf1.yahoo.com with NNFMP; 30 Aug 2016 17:59:12 -0000 Received: from [68.142.230.70] by tm12.bullet.mail.bf1.yahoo.com with NNFMP; 30 Aug 2016 17:59:12 -0000 Received: from [127.0.0.1] by smtp227.mail.bf1.yahoo.com with NNFMP; 30 Aug 2016 17:59:12 -0000 X-Yahoo-Newman-Id: 449080.36553.bm@smtp227.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: sQFWUY8VM1klxsn2hi.ZeXzwqMrgW2ZqjWoGJF40rccBroR X019xflLLkWu8Z_QCl._dMnRbOO856m_9CxOrxg0mSDzaClcqkn.0vrESYVS 8tbzBll8raE2i_fW9memeSkmHlhS4DogNTZsEUu8_HgMWrbbZpyq5CDcjTlP P5NooW59MsmMzeZt0B5CXCzlzZ22OT6BeD0vjvV1gDlBVzKnXwpi0D_S1NV1 T2kD19AFKVzlGcpED2vn87WS.0LdNYcCxPIsrEFY0dI9BWjEZsv4Q3c8.wm7 vM2uUzKQOk6n8TT38DQk_EbV3vs1swRDq8.kw9vGFmDb0yfBLvXBP2o7CgCt vJ0hYvxVdb3gxrHaKrPm7ZHHouc0iyJr56MxwpgZ5wnF0QmOhPEcUzfbfq20 9XchB_XeQW66aCSBn7LkLT.EuipkTL5o8Fn9r3JW.JypHys.FoCYIt1TBtJz JvfozS62KGZPfZnk.XUMGSwxH.uD4XfAVfb7zZMUTtAbTtK7eEB9Svg37DV2 9ZqRyLSTqDKg8bSeNMaXHUKxGtVcebCAmGjclvOl4vvNVh9g- X-Yahoo-SMTP: 9sPoSQ2swBBlERuQ.0vs8XLc_MeClW0- Subject: Re: Auto-detecting vmmouse To: Thomas Hellstrom , Arto Pekkanen References: <7dafabbb-c906-86b3-d9e7-5dd4c59dec7f@vmware.com> <8c3432df-1960-b823-a12a-a285caa62184@yahoo.com> <37be0c30-c9c6-1823-24be-fbfa4077f9bf@vmware.com> <9b8cdaf82474373948efc0241fcd56d1@kapsi.fi> <7f9243f6-ef39-deb0-5cae-643460f59437@vmware.com> Cc: freebsd-x11@freebsd.org, owner-freebsd-x11@freebsd.org From: Anthony Jenkins Message-ID: <79e70755-cb4c-7303-d3ab-bbbedf7b0bc0@yahoo.com> Date: Tue, 30 Aug 2016 13:59:10 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <7f9243f6-ef39-deb0-5cae-643460f59437@vmware.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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: Tue, 30 Aug 2016 17:59:19 -0000 On 08/30/2016 01:14 PM, Thomas Hellstrom wrote: > Hi > > On 08/29/2016 06:21 PM, Arto Pekkanen wrote: >> Awesome! >> > Could anybody of you guys point me to the authoritative repo for the > xserver devd config backend? It doesn't seem to be present in the > xserver git repo? Is this what you're looking for? config/devd.c exists as a patchfile in the x11-servers/xorg-server port. https://svnweb.freebsd.org/ports/head/x11-servers/xorg-server/files/patch-config_devd.c?view=log Anthony > > Thanks, > Thomas > > >> 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" -- Anthony Jenkins