From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: master 3b41141708: Expose the name of an event's input device to Lisp Date: Mon, 11 Apr 2022 10:00:36 +0800 Message-ID: <87pmlo5qgr.fsf@yahoo.com> References: <164933858147.29834.15050766441005536059@vcs2.savannah.gnu.org> <835yniah0u.fsf@gnu.org> <8735impqw4.fsf@yahoo.com> <83v8vi8uyu.fsf@gnu.org> <871qy6o9p3.fsf@yahoo.com> <83o81a8qnd.fsf@gnu.org> <87zgkulbuu.fsf@yahoo.com> <83ilri8iag.fsf@gnu.org> <87tub1kbkf.fsf@yahoo.com> <831qy58ofh.fsf@gnu.org> <87sfqlfomt.fsf@yahoo.com> <83wnfx77s0.fsf@gnu.org> <87o819e80r.fsf@yahoo.com> <83sfql73di.fsf@gnu.org> <87ee25cosj.fsf@yahoo.com> <83mtgt712o.fsf@gnu.org> <87r1659jey.fsf@ditto.jhoto.spork.org> <87v8vh845k.fsf@yahoo.com> <87mtgsyeg0.fsf@ditto.jhoto.spork.org> <87v8vg77vx.fsf@yahoo.com> <87ee24xuv6.fsf@ditto.jhoto.spork.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22050"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: Eli Zaretskii , emacs-devel@gnu.org, larsi@gnus.org, rms@gnu.org, monnier@iro.umontreal.ca To: Brian Cully Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 11 04:02:01 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ndjNQ-0005Vk-UG for ged-emacs-devel@m.gmane-mx.org; Mon, 11 Apr 2022 04:02:01 +0200 Original-Received: from localhost ([::1]:47770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndjNP-0008OO-NG for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Apr 2022 22:01:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndjMH-0007cS-Ot for emacs-devel@gnu.org; Sun, 10 Apr 2022 22:00:49 -0400 Original-Received: from sonic308-10.consmr.mail.ne1.yahoo.com ([66.163.187.33]:43006) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndjME-0005yV-P3 for emacs-devel@gnu.org; Sun, 10 Apr 2022 22:00:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1649642445; bh=ZODqK36hF+Dn6cPwcb2FgQ9Lt8HTawWouY/wY9Kkh2Q=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=TNxo5OVzv4F1N/7KQEVPAwuAs5tbQ1iIVmh5LB0KmUjhXcZPYQrqG8twERuMZeXvgY5bVI/BSV+2AlPNjcq/F/PtvhcGiFs4ndAQOnyBM9zib7rjhtQivs+wv8aTR9OoQ6LzD6O4SOXVG1gIyLovll9mgTvmmv5/0aGpnLFmDj/EZhXxQATYJMa9yYHH5h/+4VGBSJMS5P+2tmH7XDOaFxx0maZqAIc5gu/a+F0/MJN9f5kFFsxyxaQpVOBrLSTBstywlZQ7amc1t4LVf/FLEE/2/l7TdaCeWmbYuO4G2TNfD4DmAwGd11yFErkSn4K+iPxUkJNXaj2X2x8j162ZFw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1649642445; bh=dMVQt/1DicveYKmVv7rflXiJIY8Ke6QYADEfliz/r8l=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=c09PBvYP9edWvqipwX8wdtI7xai/I/Mk9IN52uafEmKZHkECdcpyZ2KDZrm8MBDW1xQC008OYbqWxTKLnH3nUw3WuysC1MVjdOVYW3Jnz5w26DUyIDR2PD0bNGXnl5qBnFVNOxTVXM6X621w1BWC+5PQ9ruwT3EyRXIBHgk66nBXf8y5IokyhuULgZsx/tvZclgXkHrWcs6+80qVMONgmBAUDukwU1yajs50y9802rlVXyFptjcwwafG+/dJUEFqeOKGvrAS2AOJP+IWe/jAJZymEp/c//Wx7sAQ8Zdi9VmLZhLYv4kfUZ9UkZ6IBemGilrXQYQhBJeK40uVJFONiw== X-YMail-OSG: kNpt6jcVM1kvwbV0tWANfd_Z6vMURuXkKhNWWDkEW7CvIQ5XFzsBAWRClXoIE4H UkqpOKuqc.nM5qNr8C1ZcGeOlHJSt9_Xr4_SiXAaIrYcH7Fu5cGDTHvlfA5t54bDSawxg96v5MwT 72hW0NN1_YOVMZPGOi2Jd.QxDm0HwwjlXbmokaDKzYWYA01Rk0xin..EqvewredhrtLUlt49sdaS .ZskkFElxdzCMulTMaqRmW6R5awyETj9VtYEOcaRQ6UafXcjwcTL_XTrVnKpm6wJC3qaEAwRtotm wYRWowRxPPKNiS6hTpt.2G2t6GSKGMjss6YB10nMZJjPaHJVEdk5XQPpokv0jJ_UKcxDRMzFpF6n gkdL1r37M2EDZb2DirSD1EC8i3DGd1gdq6WnVboq5yQPHignYzK94BErZwj1VyRJrMs5Im9ans3v XEqccc3Q7.3efyzxQhnvpTbMQzs5mmntt5F9RDv_vmbmSiGs_KNFasjnIu1n_LbciOdGgu1Zd2ri qvLn5anIG96sxLDrD.4.NppjPHMYllfs47DQfPqhp7pPXllEWsuOgfshQfDgo4ukHLwlU2LFF0gi C6L3h_CMJDvgtkpBtr_OyuhQE8fXGZxXJswKnvm.YKotodrfnGW1KPSR9IJC.rDJkH8l6v1siVFV OdWeVgHEoa1LpL3i5uLgBRRCAjmniqcSMdAW7fgzBetxvXR.M3qR7ujP8DYJHD3Hk1QbWxIYtYRC .ZkLTSClPd6Q_3wXKdpPhRq0GUekwc8SXbIUE8OX6rOjFQuUvh1ohGjwxVnoaO7m40XcMhOjwszB exuuXYYRoeCA4ZUTakgrGW7GIeHHWqZXedNfk8LMhj X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.ne1.yahoo.com with HTTP; Mon, 11 Apr 2022 02:00:45 +0000 Original-Received: by hermes--canary-production-sg3-65d7bd97b5-r89m2 (VZM Hermes SMTP Server) with ESMTPA ID ee319fa86be0ddd9c4d85c3abdd58979; Mon, 11 Apr 2022 02:00:42 +0000 (UTC) In-Reply-To: <87ee24xuv6.fsf@ditto.jhoto.spork.org> (Brian Cully's message of "Sun, 10 Apr 2022 21:08:29 -0400") X-Mailer: WebService/1.1.20048 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.187.33; envelope-from=luangruo@yahoo.com; helo=sonic308-10.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:288165 Archived-At: Brian Cully writes: > That would be because the only way that USB has to disambiguate > otherwise identical devices is by serial number. You can verify this > yourself, if you like, by looking at the output of =E2=80=98lsusb -v=E2= =80=99. I have > demonstrated that libinput does not use that information to name devices > and has no apparent problem re-using the same name across multiple > devices. libinput is libinput. It is a driver for the X server, but it is otherwise completely unrelated to the X input extension, which can only operate correctly if each name uniquely identifies a device. > Is libinput being used for your mice? I suspect that the > discrepancy may arrive from different driver usage. libinput is the device driver being used, yes. > So, I=E2=80=99d originally flashed my microcontroller because I thought > it would be the easiest way to test things, and while I do have > duplicate devices in my home, they=E2=80=99re Steam Controllers and I did= n=E2=80=99t > think it worth digging them out of storage for this. However, in the > interest of using =E2=80=9Creal=E2=80=9D devices, here=E2=80=99s the outp= ut of =E2=80=98libinput > list-devices=E2=80=99 with them plugged in. > > ---[snip]--- > Device: Valve Software Steam Controller > Kernel: /dev/input/event30 > Group: 4 > Seat: seat0, default > Capabilities: keyboard pointer=20 > =E2=8B=AE > Device: Valve Software Steam Controller > Kernel: /dev/input/event29 > Group: 5 > Seat: seat0, default > Capabilities: keyboard pointer=20 > ---[snip]--- > > They work in X just fine. Then either the names are different, or the devices behave identically in every way, and nobody has yet had a reason to treat the devices differently. If the second "Valve Software Steam Controller" was a foot pedal, I'm certain it would not be working correctly in software designed for that foot pedal. Anyway, that "they work fine in X" proves this is not a problem in practice, so we will wait until someone actually complains in real word usage. > Here are the logs about their mouse functionality: Did you try asking for the device name using the xinput tool? What does it say? Also, what happens if you run `xinput list-props "Valve Software Steam Controller"'? Can you show the output?