Es schrieb Ole Andre Schistad:
>
> hermann pitton wrote:
>
> >Es schrieb hermann pitton:
> >
> >
> >>Hi Ole Andre,
> >>
> >>Something about how to use it is still in this thread:
> >>http://www.riverside.org/archive/html/video4linux/2003-10/msg00146.html
> >>
> >>
> >
> >Sorry, that link was wrong. Meant was this one:
> >http://www.riverside.org/archive/html/video4linux/2003-10/msg00020.html
> >
> >Hermann
> >
> >
> Okay, once I had the wits to check the kernel itself I got the evdev
> module up and running. I can use the remote control as a keyboard, using
> the builtin keycodes, but I am having difficulties both changing the
> default keys (so that it'll work with the keymapping of mplayer etc) and
> integrating lirc.
>
> If I'm reading your replies in the mentioned thread, you yourself also
> have a cinergy card, right? Were you able to program it with kdb? When
> run kdb 0 it lists the following:
>
> /dev/input/event0
> bustype : (null)
> vendor : 0x0
> product : 0x0
> version : 0
> name : "saa7134 IR (Terratec Cinergy 40"
> bits ev : EV_KEY
>
> bits: KEY_NUMLOCK
> bits: KEY_KP7
> bits: KEY_KP8
> bits: KEY_KP9
> bits: KEY_KP4
> bits: KEY_KP5
> etc
>
> How do I program this? If I try to load a map through kbd -f, the
> program exits with the following:
>
> /dev/input/event0
> device has no map
>
> This is consistent with the listing above, as it indicates that the
> device isn't programmable.. however, the programmability is in the
> DRIVER not in the remote itself so it strikes me as quite strange that
> I'm getting this particular response.. it doesn't make much sense to me
> anyway.
>
> Perhaps I can edit this in the source instead - there are presumably a
> set of generic scancodes used for a given button. Not sure where
> though, pointers anyone?
>
> Alternatively, if only I could get lirc to recognize the remote all of
> these would be gone. The CVS version is actually seeing the keypresses,
> and I can record a config file with irrecord - it just doesn't work. Has
> anyone had time to experiment with lirc's evdev support yet? The lirc
> mailinglist is a vacuum on this subject - not a single thread discussing
> these devices, so I suspect that v4l is the most active user (if any
> exist) of this particular functionality.
>
> Fingers crossed,
>
> Ole Andre
>
Hi Ole Andre,
still setting up this machine again, but went back to 2.6.0-test6 as a
starting point as soon as possible. Yes you are right, at the moment on
2.4.22 it is not possible to load keymaps on this downport inputlayer,
sorry didn't test before. Lirc I still don't try, because I can't
imagine to get it more easy as with input on 2.6.0-test6 and up. (test8
and 9 don't know the status ...)
Attached are the files you get on test6. Following "./list" with loaded
evdev,
"./kbd 2 > FV3Kout" gives the standard layout. When loaded again
modified it should have only the plain numbers, like in the attached
file.
You have nothing else to do as to replace the key numbers (that's
enough) you want from "./kbd 1 > keyboardout" for your app.
You can load every layout at runtime with "./kbd -f layoutx 2". -that's
all-
Hermann
/dev/input/event0
bustype : BUS_I8042
vendor : 0x2
product : 0x1
version : 0
name : "PS/2 Generic Mouse"
phys : "isa0060/serio1/input0"
bits ev : EV_SYN EV_KEY EV_REL
/dev/input/event1
bustype : BUS_I8042
vendor : 0x1
product : 0x2
version : 43778
name : "AT Translated Set 2 keyboard"
phys : "isa0060/serio0/input0"
bits ev : EV_SYN EV_KEY EV_LED EV_REP
/dev/input/event2
bustype : (null)
vendor : 0x0
product : 0x0
version : 0
name : "saa7134 IR (LifeView FlyVIDEO30"
bits ev : EV_SYN EV_KEY EV_REP
open /dev/input/event3: No such device
0x0000 = 116 # KEY_POWER
0x0002 = 372 # KEY_ZOOM
0x0003 = 79 # KEY_KP1
0x0004 = 80 # KEY_KP2
0x0005 = 81 # KEY_KP3
0x0006 = 129 # KEY_AGAIN
0x0007 = 75 # KEY_KP4
0x0008 = 76 # KEY_KP5
0x0009 = 77 # KEY_KP6
0x000b = 71 # KEY_KP7
0x000c = 72 # KEY_KP8
0x000d = 73 # KEY_KP9
0x000e = 386 # KEY_TUNER
0x000f = 82 # KEY_KP0
0x0010 = 96 # KEY_KPENTER
0x0011 = 393 # KEY_VIDEO
0x0012 = 402 # KEY_CHANNELUP
0x0013 = 403 # KEY_CHANNELDOWN
0x0014 = 115 # KEY_VOLUMEUP
0x0015 = 392 # KEY_AUDIO
0x0017 = 114 # KEY_VOLUMEDOWN
0x0018 = 176 # KEY_EDIT
0x001a = 121 # KEY_F22
0x001b = 113 # KEY_MUTE
/dev/input/event1
bustype : BUS_I8042
vendor : 0x1
product : 0x2
version : 43778
name : "AT Translated Set 2 keyboard"
phys : "isa0060/serio0/input0"
bits ev : EV_SYN EV_KEY EV_LED EV_REP
map: 187 keys, size: 512/576
0x0001 = 67 # KEY_F9
0x0002 = 65 # KEY_F7
0x0003 = 63 # KEY_F5
0x0004 = 61 # KEY_F3
0x0005 = 59 # KEY_F1
0x0006 = 60 # KEY_F2
0x0007 = 88 # KEY_F12
0x0009 = 68 # KEY_F10
0x000a = 66 # KEY_F8
0x000b = 64 # KEY_F6
0x000c = 62 # KEY_F4
0x000d = 15 # KEY_TAB
0x000e = 41 # KEY_GRAVE
0x000f = 85 # KEY_F13
0x0011 = 56 # KEY_LEFTALT
0x0012 = 42 # KEY_LEFTSHIFT
0x0013 = 182 # KEY_INTL2
0x0014 = 29 # KEY_LEFTCTRL
0x0015 = 16 # KEY_Q
0x0016 = 2 # KEY_1
0x0017 = 89 # KEY_F14
0x001a = 44 # KEY_Z
0x001b = 31 # KEY_S
0x001c = 30 # KEY_A
0x001d = 17 # KEY_W
0x001e = 3 # KEY_2
0x001f = 90 # KEY_F15
0x0021 = 46 # KEY_C
0x0022 = 45 # KEY_X
0x0023 = 32 # KEY_D
0x0024 = 18 # KEY_E
0x0025 = 5 # KEY_4
0x0026 = 4 # KEY_3
0x0027 = 91 # KEY_F16
0x0028 = 90 # KEY_F15
0x0029 = 57 # KEY_SPACE
0x002a = 47 # KEY_V
0x002b = 33 # KEY_F
0x002c = 20 # KEY_T
0x002d = 19 # KEY_R
0x002e = 6 # KEY_5
0x0030 = 91 # KEY_F16
0x0031 = 49 # KEY_N
0x0032 = 48 # KEY_B
0x0033 = 35 # KEY_H
0x0034 = 34 # KEY_G
0x0035 = 21 # KEY_Y
0x0036 = 7 # KEY_6
0x003a = 50 # KEY_M
0x003b = 36 # KEY_J
0x003c = 22 # KEY_U
0x003d = 8 # KEY_7
0x003e = 9 # KEY_8
0x0041 = 51 # KEY_COMMA
0x0042 = 37 # KEY_K
0x0043 = 23 # KEY_I
0x0044 = 24 # KEY_O
0x0045 = 11 # KEY_0
0x0046 = 10 # KEY_9
0x0049 = 52 # KEY_DOT
0x004a = 53 # KEY_SLASH
0x004b = 38 # KEY_L
0x004c = 39 # KEY_SEMICOLON
0x004d = 25 # KEY_P
0x004e = 12 # KEY_MINUS
0x0050 = 122 # KEY_F23
0x0051 = 89 # KEY_F14
0x0052 = 40 # KEY_APOSTROPHE
0x0053 = 120 # KEY_F21
0x0054 = 26 # KEY_LEFTBRACE
0x0055 = 13 # KEY_EQUAL
0x0058 = 58 # KEY_CAPSLOCK
0x0059 = 54 # KEY_RIGHTSHIFT
0x005a = 28 # KEY_ENTER
0x005b = 27 # KEY_RIGHTBRACE
0x005d = 43 # KEY_BACKSLASH
0x0060 = 85 # KEY_F13
0x0061 = 86 # KEY_102ND
0x0062 = 90 # KEY_F15
0x0063 = 91 # KEY_F16
0x0064 = 92 # KEY_F17
0x0065 = 93 # KEY_F18
0x0066 = 14 # KEY_BACKSPACE
0x0067 = 94 # KEY_F19
0x0068 = 95 # KEY_F20
0x0069 = 79 # KEY_KP1
0x006a = 183 # KEY_INTL3
0x006b = 75 # KEY_KP4
0x006c = 71 # KEY_KP7
0x006d = 121 # KEY_F22
0x006f = 123 # KEY_F24
0x0070 = 82 # KEY_KP0
0x0071 = 83 # KEY_KPDOT
0x0072 = 80 # KEY_KP2
0x0073 = 76 # KEY_KP5
0x0074 = 77 # KEY_KP6
0x0075 = 72 # KEY_KP8
0x0076 = 1 # KEY_ESC
0x0077 = 69 # KEY_NUMLOCK
0x0078 = 87 # KEY_F11
0x0079 = 78 # KEY_KPPLUS
0x007a = 81 # KEY_KP3
0x007b = 74 # KEY_KPMINUS
0x007c = 55 # KEY_KPASTERISK
0x007d = 73 # KEY_KP9
0x007e = 70 # KEY_SCROLLLOCK
0x007f = 99 # KEY_SYSRQ
0x0083 = 65 # KEY_F7
0x0084 = 99 # KEY_SYSRQ
0x00ff = 255 # ???
0x0102 = 92 # KEY_F17
0x0103 = 90 # KEY_F15
0x0104 = 85 # KEY_F13
0x0106 = 137 # KEY_CUT
0x010b = 91 # KEY_F16
0x010c = 89 # KEY_F14
0x010d = 144 # KEY_FILE
0x010e = 115 # KEY_VOLUMEUP
0x0110 = 217 # KEY_SEARCH
0x0111 = 100 # KEY_RIGHTALT
0x0112 = 255 # ???
0x0114 = 97 # KEY_RIGHTCTRL
0x0115 = 165 # KEY_PREVIOUSSONG
0x0116 = 164 # KEY_PLAYPAUSE
0x0118 = 156 # KEY_BOOKMARKS
0x011b = 140 # KEY_CALC
0x011c = 115 # KEY_VOLUMEUP
0x011f = 125 # KEY_LEFTMETA
0x0120 = 173 # KEY_REFRESH
0x0121 = 114 # KEY_VOLUMEDOWN
0x0123 = 113 # KEY_MUTE
0x0124 = 152 # KEY_COFFEE
0x0125 = 163 # KEY_NEXTSONG
0x0126 = 151 # KEY_MSDOS
0x0127 = 126 # KEY_RIGHTMETA
0x0128 = 128 # KEY_STOP
0x0129 = 166 # KEY_STOPCD
0x012b = 140 # KEY_CALC
0x012d = 147 # KEY_XFER
0x012f = 127 # KEY_COMPOSE
0x0130 = 159 # KEY_FORWARD
0x0131 = 167 # KEY_RECORD
0x0132 = 115 # KEY_VOLUMEUP
0x0133 = 160 # KEY_CLOSECD
0x0134 = 164 # KEY_PLAYPAUSE
0x0137 = 116 # KEY_POWER
0x0138 = 158 # KEY_BACK
0x013a = 150 # KEY_WWW
0x013b = 166 # KEY_STOPCD
0x013f = 142 # KEY_SLEEP
0x0140 = 157 # KEY_COMPUTER
0x0142 = 114 # KEY_VOLUMEDOWN
0x0143 = 166 # KEY_STOPCD
0x0144 = 168 # KEY_REWIND
0x0147 = 213 # KEY_SOUND
0x0148 = 155 # KEY_MAIL
0x014a = 98 # KEY_KPSLASH
0x014b = 113 # KEY_MUTE
0x014d = 163 # KEY_NEXTSONG
0x014f = 138 # KEY_HELP
0x0150 = 226 # KEY_MEDIA
0x0156 = 153 # KEY_DIRECTION
0x0157 = 140 # KEY_CALC
0x0159 = 255 # ???
0x015a = 96 # KEY_KPENTER
0x015e = 143 # KEY_WAKEUP
0x0160 = 133 # KEY_COPY
0x0162 = 116 # KEY_POWER
0x0164 = 143 # KEY_WAKEUP
0x0166 = 174 # KEY_EXIT
0x0167 = 133 # KEY_COPY
0x0169 = 107 # KEY_END
0x016b = 105 # KEY_LEFT
0x016c = 102 # KEY_HOME
0x016f = 112 # KEY_MACRO
0x0170 = 110 # KEY_INSERT
0x0171 = 111 # KEY_DELETE
0x0172 = 108 # KEY_DOWN
0x0173 = 112 # KEY_MACRO
0x0174 = 106 # KEY_RIGHT
0x0175 = 103 # KEY_UP
0x0177 = 119 # KEY_PAUSE
0x0179 = 118 # KEY_KPPLUSMINUS
0x017a = 109 # KEY_PAGEDOWN
0x017c = 99 # KEY_SYSRQ
0x017d = 104 # KEY_PAGEUP
0x017e = 119 # KEY_PAUSE