* Asus PC-39 IR Control: dead keys
@ 2008-11-20 21:19 Roman
2008-11-21 2:27 ` hermann pitton
0 siblings, 1 reply; 3+ messages in thread
From: Roman @ 2008-11-20 21:19 UTC (permalink / raw)
To: video4linux-list
Hi all
The keys defined with numbers bigger than 255 in the IR_KEYTAB_TYPE
ir_codes_asus_pc39[IR_KEYTAB_SIZE] do not get recognized by X11 nor the
console.
- showkey shows the keycode but no scancode
- xev does not react at all on those keys
- neither does the console
- lineak, as far as I can see, just reacts on keycodes below 256 too, or
in other word on what xev does react.
How to solve this? How do I get the keys such as KEY_DVD or KEY_ZOOM
(>255) get to work with an (X) app?
The only solution I can see by now, as long as X11 and the kernel
(right?) do not react on key above 255 is
- to find me some unused keys below 256,
- fill IR_KEYTAB_TYPE ir_codes_asus_pc39[IR_KEYTAB_SIZE] wiht the best
fitting,
- and recompile the driver module saa7134 with the new key definitions.
This is probably NOT the way to go.
Any suggestions?
Greets and thanks
Roman
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Asus PC-39 IR Control: dead keys
2008-11-20 21:19 Asus PC-39 IR Control: dead keys Roman
@ 2008-11-21 2:27 ` hermann pitton
2008-11-21 19:04 ` Roman
0 siblings, 1 reply; 3+ messages in thread
From: hermann pitton @ 2008-11-21 2:27 UTC (permalink / raw)
To: Roman; +Cc: video4linux-list
Hi Roman,
Am Donnerstag, den 20.11.2008, 22:19 +0100 schrieb Roman:
> Hi all
>
> The keys defined with numbers bigger than 255 in the IR_KEYTAB_TYPE
> ir_codes_asus_pc39[IR_KEYTAB_SIZE] do not get recognized by X11 nor the
> console.
>
> - showkey shows the keycode but no scancode
> - xev does not react at all on those keys
> - neither does the console
> - lineak, as far as I can see, just reacts on keycodes below 256 too, or
> in other word on what xev does react.
>
> How to solve this? How do I get the keys such as KEY_DVD or KEY_ZOOM
> (>255) get to work with an (X) app?
>
> The only solution I can see by now, as long as X11 and the kernel
> (right?) do not react on key above 255 is
> - to find me some unused keys below 256,
> - fill IR_KEYTAB_TYPE ir_codes_asus_pc39[IR_KEYTAB_SIZE] wiht the best
> fitting,
> - and recompile the driver module saa7134 with the new key definitions.
>
> This is probably NOT the way to go.
>
> Any suggestions?
Gerd coded the v4l input layer support when 2.6.x was firstly released
and lirc did not even compile for a long time after that.
You might remember, that on my P7131 Dual replacement card the IR
receiver is broken and I don't like to molest others with your report,
until we have something more clear.
First, preload ir-common with debug=1.
Any unknown keys now? Should not ever happen.
The <= 256 X limitation is known, but input.h should still be valid for
a multimedia keyboard.
You can try with Gerd's input utils too.
http://dl.bytesex.org/cvs-snapshots
You should be able to dump the keymap of your keyboard and remote > to
files.
You then can modify the keymap of the remote with valid keys your
keyboard provides and load it on the fly with something like
./ir-kbd -f my-new-keymap-file.
Cheers,
Hermann
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Asus PC-39 IR Control: dead keys
2008-11-21 2:27 ` hermann pitton
@ 2008-11-21 19:04 ` Roman
0 siblings, 0 replies; 3+ messages in thread
From: Roman @ 2008-11-21 19:04 UTC (permalink / raw)
To: hermann pitton; +Cc: video4linux-list
Hi Hermann
I did not know about those tool written by Gerd.
I think they will do. I downloaded and compiled. The tools are working well.
Until the day X might also accept keycodes above 255 I can now map them
to some keycode within 0 -255.
Thanks for the hint and thanks to Gerd for writing them.
Greets
Roman
hermann pitton schrieb:
> Hi Roman,
>
> Am Donnerstag, den 20.11.2008, 22:19 +0100 schrieb Roman:
>
>> Hi all
>>
>> The keys defined with numbers bigger than 255 in the IR_KEYTAB_TYPE
>> ir_codes_asus_pc39[IR_KEYTAB_SIZE] do not get recognized by X11 nor the
>> console.
>>
>> - showkey shows the keycode but no scancode
>> - xev does not react at all on those keys
>> - neither does the console
>> - lineak, as far as I can see, just reacts on keycodes below 256 too, or
>> in other word on what xev does react.
>>
>> How to solve this? How do I get the keys such as KEY_DVD or KEY_ZOOM
>> (>255) get to work with an (X) app?
>>
>> The only solution I can see by now, as long as X11 and the kernel
>> (right?) do not react on key above 255 is
>> - to find me some unused keys below 256,
>> - fill IR_KEYTAB_TYPE ir_codes_asus_pc39[IR_KEYTAB_SIZE] wiht the best
>> fitting,
>> - and recompile the driver module saa7134 with the new key definitions.
>>
>> This is probably NOT the way to go.
>>
>> Any suggestions?
>>
>
> Gerd coded the v4l input layer support when 2.6.x was firstly released
> and lirc did not even compile for a long time after that.
>
> You might remember, that on my P7131 Dual replacement card the IR
> receiver is broken and I don't like to molest others with your report,
> until we have something more clear.
>
> First, preload ir-common with debug=1.
> Any unknown keys now? Should not ever happen.
>
> The <= 256 X limitation is known, but input.h should still be valid for
> a multimedia keyboard.
>
> You can try with Gerd's input utils too.
>
> http://dl.bytesex.org/cvs-snapshots
>
> You should be able to dump the keymap of your keyboard and remote > to
> files.
>
> You then can modify the keymap of the remote with valid keys your
> keyboard provides and load it on the fly with something like
> ./ir-kbd -f my-new-keymap-file.
>
> Cheers,
> Hermann
>
>
>
>
>
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-11-21 19:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-20 21:19 Asus PC-39 IR Control: dead keys Roman
2008-11-21 2:27 ` hermann pitton
2008-11-21 19:04 ` Roman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox