Skip to contentSkip to conversation

Asus PC-39 IR Control: dead keys

DISCUSSION Roman 2 participants 3 messages Nov 20, 2008 – Nov 21, 2008 Media (V4L/DVB)

lore
Share & tools
lore

Roman

author
#0 lore raw

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:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#1 lore raw

Hi Roman,

Am Donnerstag, den 20.11.2008, 22:19 +0100 schrieb Roman:

Quoted 22 lines

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.

Quoted 3 lines

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:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

author
#2 lore raw

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

Quoted 47 lines · hermann pitton

Hi Roman,

Am Donnerstag, den 20.11.2008, 22:19 +0100 schrieb Roman:

Quoted 18 lines

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.

Quoted 4 lines

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.

Quoted 11 lines

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:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list