[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] ps2: Fix lost scancodes by recent changes
From: |
OGAWA Hirofumi |
Subject: |
Re: [Qemu-devel] [PATCH] ps2: Fix lost scancodes by recent changes |
Date: |
Sat, 24 Dec 2016 07:49:10 +0900 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Hi,
Hervé Poussineau <address@hidden> writes:
>> [Q_KEY_CODE_RO] = 0x73,
>> + [Q_KEY_CODE_HIRAGANA] = 0x70,
>> + [Q_KEY_CODE_HENKAN] = 0x79,
>> + [Q_KEY_CODE_YEN] = 0x7d,
>> [Q_KEY_CODE_KP_COMMA] = 0x7e,
>>
>> [Q_KEY_CODE__MAX] = 0,
>
> Can you also add the keycodes for scancode set 1:
> + [Q_KEY_CODE_HIRAGANA] = 0x70,
> + [Q_KEY_CODE_HENKAN] = 0x79,
> + [Q_KEY_CODE_YEN] = 0x7d,
Current linux can't use set1, so untested.
> and scancode set 3:
> + [Q_KEY_CODE_HIRAGANA] = 0x87,
> + [Q_KEY_CODE_HENKAN] = 0x86,
> + [Q_KEY_CODE_YEN] = 0x51,
Boot with "i8042.direct=1", then set set3.
# echo 3 > /sys/devices/platform/i8042/serio0/set
# cat /sys/devices/platform/i8042/serio0/set
3
HENKAN, HIRAGANA seems to be working, but YEN is not working. I'm not
sure if it is your patch, testing, or kernel problem.
Can you point what is problem?
# lsinput
[...]
/dev/input/event4
bustype : BUS_I8042
vendor : 0x1
product : 0x3
version : 43907
name : "AT Raw Set 3 keyboard"
phys : "isa0060/serio0/input0"
bits ev : EV_SYN EV_KEY EV_MSC EV_LED EV_REP
# input-event
/dev/input/event4
bustype : BUS_I8042
vendor : 0x1
product : 0x3
version : 43907
name : "AT Raw Set 3 keyboard"
phys : "isa0060/serio0/input0"
bits ev : EV_SYN EV_KEY EV_MSC EV_LED EV_REP
waiting for events
[... on qemu monitor "sendkey henkan" ...]
06:49:58.061932: EV_KEY KEY_HENKAN (0x5c) pressed
06:49:58.061932: EV_SYN code=0 value=0
06:49:58.149812: EV_MSC MSC_SCAN 134
06:49:58.149812: EV_KEY KEY_HENKAN (0x5c) released
06:49:58.149812: EV_SYN code=0 value=0
06:49:58.333876: EV_MSC MSC_SCAN 135
[... on qemu monitor "sendkey hiragana" ...]
06:49:58.333876: EV_KEY KEY_KATAKANAHIRAGANA (0x5d) pressed
06:49:58.333876: EV_SYN code=0 value=0
06:49:58.421889: EV_MSC MSC_SCAN 135
06:49:58.421889: EV_KEY KEY_KATAKANAHIRAGANA (0x5d) released
06:49:58.421889: EV_SYN code=0 value=0
06:49:58.893893: EV_MSC MSC_SCAN 81
[... on qemu monitor "sendkey yen" ...]
06:49:58.893893: EV_KEY KEY_VOLUMEDOWN (0x72) pressed
06:49:58.893893: EV_SYN code=0 value=0
06:49:58.973841: EV_MSC MSC_SCAN 81
06:49:58.973841: EV_KEY KEY_VOLUMEDOWN (0x72) released
06:49:58.973841: EV_SYN code=0 value=0
timeout, quitting
--
OGAWA Hirofumi <address@hidden>
Re: [Qemu-devel] [PATCH] ps2: Fix lost scancodes by recent changes, Eric Blake, 2016/12/23