From nobody Mon Jan 29 22:17:13 2024 X-Original-To: x11@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TP2j929kcz59Wbd for ; Mon, 29 Jan 2024 22:17:17 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mail.evolve.de (mail.evolve.de [213.239.217.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail.evolve.de", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TP2j85s2qz4bCQ for ; Mon, 29 Jan 2024 22:17:16 +0000 (UTC) (envelope-from freebsd@grem.de) Authentication-Results: mx1.freebsd.org; none Received: by mail.evolve.de (OpenSMTPD) with ESMTP id 5f245357; Mon, 29 Jan 2024 22:17:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=grem.de; h=content-type :content-transfer-encoding:mime-version:subject:from:in-reply-to :date:cc:message-id:references:to; s=20180501; bh=sTuYiR1LtNrfcG CGU2X/VW16AtM=; b=dsZRP+++C5SgmqTGhwy+nmODyayMhpTgKu6HVXa0jIqzjm X98ayqf/VBRfNuffwP8GFS1PoJm2aFba7FJi3QLnkOr4TmB6HaVYC84n1bK5/d6i ixEa9t0Ul3dtZCtdckHR+k2B9GICg5MRaisG5lti0Wo2PCiANYuNrQS7HmrVyhjh VVuUoXsWOaKSeSzZU+LlYcvfrR/syxXPWN9mNn6Sx3RkMzZ4Z+AZZ8uG0iVCuxCf YZotJq+uYvJ2R/Ff+4a582IDDluccLgRnm1VPRFuTv9xpspGTquendtieVMH8nMM xSoTg182S6g8TLKsbJxvMZbXn/kBJOrJw0PsYh2Q== DomainKey-Signature: a=rsa-sha1; c=nofws; d=grem.de; h=content-type :content-transfer-encoding:mime-version:subject:from:in-reply-to :date:cc:message-id:references:to; q=dns; s=20180501; b=fdwijFbB xywSB1nOY6TFrf1y4IUsc/a6S6aGURGZfzYZQgMpQ46IO73V9G35YUE45HgahWr0 ogpBc2ogAeLYkTlLw0bQo+aPi1YWO8kMl/neBIv0Z9xOsmU/K1CtSKadhPKZqyqZ JKhyF+dZltNYh4CLVaNFHOUg3YmY+DeEzQrat0P0sCip3toGJJxt8WkqNd3R6UN1 lmc4VjHPURragYRnpd3RUorOC+AL6eilQqBMAeUY0Nw8OEPRr6TvQfBBuJVRan2n dU/FxcVRXLE3DVgCKOlAQm5NVNKE2hiC956wFxTld1yt5iUHaNAeedRnWwQI7ZcV U+ITNeKJVtPLCw== Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id d6307cab (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 29 Jan 2024 22:17:14 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org Mime-Version: 1.0 (1.0) Subject: Re: libinput recognizies my keyboard, but not its arrow keys From: Michael Gmelin In-Reply-To: <20240129210518.GA1505@dell4> Date: Mon, 29 Jan 2024 23:17:13 +0100 Cc: x11@freebsd.org Message-Id: References: <20240129210518.GA1505@dell4> To: William Bulley X-Mailer: iPhone Mail (20H240) X-Rspamd-Queue-Id: 4TP2j85s2qz4bCQ X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:24940, ipnet:213.239.192.0/18, country:DE] > On 29. Jan 2024, at 22:05, William Bulley wrote: >=20 > =EF=BB=BFAccording to Michael Gmelin on Mon, 01/29/24 at= 15:38: >>=20 >> It's always a bit hard to support remotely, hence my questions to be >> crystal clear what you tried. >=20 > You've been very clear and I thank you from the bottom of my heart!! >=20 > Too bad I can't buy you a beer! >=20 >> This is what I use in in /usr/local/etc/X11/xorg.conf.d/99-myinput.conf: >>=20 >> Section "InputClass" >> Identifier "libinput keyboard catchall" >> MatchIsKeyboard "on" >> MatchDevicePath "/dev/input/event*" >> Driver "libinput" >> Option "XkbRules" "evdev" >> # Option "Ignore" "on" >> EndSection >>=20 >> Section "InputClass" >> Identifier "libinput touchpad catchall" >> MatchIsTouchpad "on" >> MatchDevicePath "/dev/input/event*" >> Driver "libinput" >> Option "MiddleEmulation" "on" >> Option "DisableWhileTyping" "off" >> EndSection >>=20 >> (the touchpad section is probably not what you need). >>=20 >> So maybe - as a last "simple" solution, you could try: >>=20 >> setxkbmap -model pc105 -layout us >>=20 >> in your .xinitrc and place 99-myinput.conf from above as the only >> xorg configuration in /usr/local/etc/X11/xorg.conf.d/ >=20 > Well I did both of those things, and, for some crazy reason it > worked! My keyboard's arrow keys now work!!! >=20 > To be completely honest, I only altered the keyboard section of > the file in my /usr/local/etc/X11/xorg.conf.d/ leaving the mouse > section and the graphics card "Device" section alone. >=20 > Here is the new "keyboard" section in my configuration file: >=20 > Section "InputClass" > Identifier "libinput keyboard catchall" > MatchIsKeyboard "on" > MatchDevicePath "/dev/input/event*" > Driver "libinput" > Option "XkbRules" "evdev" > EndSection >=20 > My understanding was the contents of the "Identifier" line > did not matter -- anything could be put there. I had this: >=20 > Identifier "Keyboard0" >=20 > I have the MatchIsKeyboard line and the Driver line, so it > must be that the key (no pun intended) addition to that > section is that MatchDevicePath line. Who knew?!?!? >=20 > Maybe the Option line is important, too, but that is > something I can check later. You are a life saver!!! >=20 If I remember correctly, setting XkbRules actually matters, as it affects ke= yboard rule composition. It should also be possible to pass it in the `-rule= s` parameter to setxkbmap (personally, I=E2=80=99m trying to configure as mu= ch as possible in my ~/.xinitrc, as it makes setting up new environments qui= te easy and is part of my home directory backup). > I don't know how to thank you enough!!! Thanks! Thanks! I=E2=80=99m really happy to hear that - having your keyboard work properly i= s essential. Cheers Michael