Article View: pl.comp.os.linux
Article #907276Re: Klawiatura VIIDO HB030B - brak polskich znaków
From: marrgol
Date: Fri, 13 Oct 2023 17:53
Date: Fri, 13 Oct 2023 17:53
70 lines
4495 bytes
4495 bytes
On 2023-10-13 at 17:47 colnet wrote:
>> Jeśli koniecznie ma być „z Altem”, to można spróbować przemapować
>> dla tej klawiatury klawisz „command” na „prawy” Alt za pomocą udev hwdb.
>
> Jeśli jest inna metoda to napisz lub jakiś link daj bo nawet nie wiem jak ją nazwać.
No to spróbujmy. Zainstaluj evtest i wykonaj (jako root):
evtest | grep -v 'Event code'
Dostaniesz coś takiego:
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: AT Translated Set 2 keyboard
/dev/input[…]
/dev/input/event26: Chicony USB Keyboard
/dev/input/event27: […]
Select the device event number [0-28]: 26
Wpisz numer dla tej klawiatury BT (np. u mnie 26 dla Chicony USB)
i klepnij Enter. Dostaniesz:
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x4f2 product 0x402 version 0x111
Input device name: "Chicony USB Keyboard"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event type 4 (EV_MSC)
Event type 17 (EV_LED)
Key repeat handling:
Repeat type 20 (EV_REP)
Repeat code 0 (REP_DELAY)
Value 250
Repeat code 1 (REP_PERIOD)
Value 33
Properties:
Testing ... (interrupt to exit)
Teraz na klawiaturze BT wciśnij kolejno x, command, x, Ctrl-C.
Wynik powinien wyglądać podobnie do tego:
Event: time 1697218373.692616, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7001b
Event: time 1697218373.692616, type 1 (EV_KEY), code 45 (KEY_X), value 1
Event: time 1697218373.692616, -------------- SYN_REPORT ------------
xEvent: time 1697218373.764661, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7001b
Event: time 1697218373.764661, type 1 (EV_KEY), code 45 (KEY_X), value 0
Event: time 1697218373.764661, -------------- SYN_REPORT ------------
Event: time 1697218377.220693, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e6
Event: time 1697218377.220693, type 1 (EV_KEY), code 100 (KEY_RIGHTALT), value 1
Event: time 1697218377.220693, -------------- SYN_REPORT ------------
Event: time 1697218377.284647, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e6
Event: time 1697218377.284647, type 1 (EV_KEY), code 100 (KEY_RIGHTALT), value 0
Event: time 1697218377.284647, -------------- SYN_REPORT ------------
Event: time 1697218379.092645, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7001b
Event: time 1697218379.092645, type 1 (EV_KEY), code 45 (KEY_X), value 1
Event: time 1697218379.092645, -------------- SYN_REPORT ------------
xEvent: time 1697218379.156638, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7001b
Event: time 1697218379.156638, type 1 (EV_KEY), code 45 (KEY_X), value 0
Event: time 1697218379.156638, -------------- SYN_REPORT ------------
Event: time 1697218384.620619, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e4
Event: time 1697218384.620619, type 1 (EV_KEY), code 97 (KEY_RIGHTCTRL), value 1
Event: time 1697218384.620619, -------------- SYN_REPORT ------------
Event: time 1697218384.644607, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70006
Event: time 1697218384.644607, type 1 (EV_KEY), code 46 (KEY_C), value 1
Event: time 1697218384.644607, -------------- SYN_REPORT ------------
^C
Pokaż wszystko, co się wyświetliło od polecenia evtest do wciśnięcia Ctrl-C.
Technical Details
Message-ID:
<ugc06t$3amhr$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.chmurka.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mailReferences:
<56e49c1b-3730-49fd-a05a-1e4b66377906n@googlegroups.com> <ug9hho$2lqq9$1@dont-email.me> <198caf55-ac10-48a2-b1f7-40c3645b40f9n@googlegroups.com> <ugbm38$388c0$1@dont-email.me> <a3e00c02-6a1f-4f19-bea9-5950678b40a5n@googlegroups.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.chmurka.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: marrgol <marrgol@address.invalid> Newsgroups: pl.comp.os.linux Subject: Re: Klawiatura VIIDO HB030B - brak polskich znaków Date: Fri, 13 Oct 2023 19:53:33 +0200 Organization: A noiseless patient Spider Lines: 71 Message-ID: <ugc06t$3amhr$1@dont-email.me> References: <56e49c1b-3730-49fd-a05a-1e4b66377906n@googlegroups.com> <ug9hho$2lqq9$1@dont-email.me> <198caf55-ac10-48a2-b1f7-40c3645b40f9n@googlegroups.com> <ugbm38$388c0$1@dont-email.me> <a3e00c02-6a1f-4f19-bea9-5950678b40a5n@googlegroups.com> MIME-Version: 1.0 Injection-Date: Fri, 13 Oct 2023 17:53:33 -0000 (UTC) Injection-Info: dont-email.me; posting-host="8cf82f228282dde3be982d86cdf43541"; logging-data="3496507"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19nX475Xovn4/5E6bA0aNGy" User-Agent: Mozilla/5.0 (rv:102.0) Gecko/20100101, Thunderbird/102.14.0 Cancel-Lock: sha1:TgkcwMG1p2wEGVdYkdqtUVFM8gM= In-Reply-To: <a3e00c02-6a1f-4f19-bea9-5950678b40a5n@googlegroups.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit