diff options
author | Gerd Knorr <devnull@localhost> | 2004-02-22 01:59:35 +0000 |
---|---|---|
committer | Gerd Knorr <devnull@localhost> | 2004-02-22 01:59:35 +0000 |
commit | bf27ea1722664c76261b5f3c11f6310fe6c8bef4 (patch) | |
tree | 42324df12864253409fb4935a67431e45436186e /linux/Documentation/video4linux | |
parent | 229b130306c830b9f1c410ccd6060b65aa68dcec (diff) | |
download | mediapointer-dvb-s2-bf27ea1722664c76261b5f3c11f6310fe6c8bef4.tar.gz mediapointer-dvb-s2-bf27ea1722664c76261b5f3c11f6310fe6c8bef4.tar.bz2 |
- import video4linux drivers.
Diffstat (limited to 'linux/Documentation/video4linux')
-rw-r--r-- | linux/Documentation/video4linux/README.ir | 72 | ||||
-rw-r--r-- | linux/Documentation/video4linux/bttv/MAKEDEV | 28 |
2 files changed, 100 insertions, 0 deletions
diff --git a/linux/Documentation/video4linux/README.ir b/linux/Documentation/video4linux/README.ir new file mode 100644 index 000000000..0da47a847 --- /dev/null +++ b/linux/Documentation/video4linux/README.ir @@ -0,0 +1,72 @@ + +infrared remote control support in video4linux drivers +====================================================== + + +basics +------ + +Current versions use the linux input layer to support infrared +remote controls. I suggest to download my input layer tools +from http://bytesex.org/snapshot/input-<date>.tar.gz + +Modules you have to load: + + saa7134 statically built in, i.e. just the driver :) + bttv ir-kbd-gpio or ir-kbd-i2c depending on your + card. + +ir-kbd-gpio and ir-kbd-i2c don't support all cards lirc supports +(yet), mainly for the reason that the code of lirc_i2c and lirc_gpio +was very confusing and I decided to basically start over from scratch. +Feel free to contact me in case of trouble. Note that the ir-kbd-* +modules work on 2.6.x kernels only through ... + + +how it works +------------ + +The modules register the remote as keyboard within the linux input +layer, i.e. you'll see the keys of the remote as normal key strokes +(if CONFIG_INPUT_KEYBOARD is enabled). + +Using the event devices (CONFIG_INPUT_EVDEV) it is possible for +applications to access the remote via /dev/input/event<n> devices. +You might have to create the special files using "/sbin/MAKEDEV +input". The input layer tools mentioned above use the event device. + +The input layer tools are nice for trouble shooting, i.e. to check +whenever the input device is really present, which of the devices it +is, check whenever pressing keys on the remote actually generates +events and the like. You can also use the kbd utility to change the +keymaps (2.6.x kernels only through). + + +using with lircd +================ + +The cvs version of the lircd daemon supports reading events from the +linux input layer (via event device). The input layer tools tarball +comes with a lircd config file. + + +using without lircd +=================== + +XFree86 likely can be configured to recognise the remote keys. Once I +simply tried to configure one of the multimedia keyboards as input +device, which had the effect that XFree86 recognised some of the keys +of my remote control and passed volume up/down key presses as +XF86AudioRaiseVolume and XF86AudioLowerVolume key events to the X11 +clients. + +It likely is possible to make that fly with a nice xkb config file, +I know next to nothing about that through. + + +Have fun, + + Gerd + +-- +Gerd Knorr <kraxel@bytesex.org> diff --git a/linux/Documentation/video4linux/bttv/MAKEDEV b/linux/Documentation/video4linux/bttv/MAKEDEV new file mode 100644 index 000000000..6c29ba43b --- /dev/null +++ b/linux/Documentation/video4linux/bttv/MAKEDEV @@ -0,0 +1,28 @@ +#!/bin/bash + +function makedev () { + + for dev in 0 1 2 3; do + echo "/dev/$1$dev: char 81 $[ $2 + $dev ]" + rm -f /dev/$1$dev + mknod /dev/$1$dev c 81 $[ $2 + $dev ] + chmod 666 /dev/$1$dev + done + + # symlink for default device + rm -f /dev/$1 + ln -s /dev/${1}0 /dev/$1 +} + +# see http://roadrunner.swansea.uk.linux.org/v4lapi.shtml + +echo "*** new device names ***" +makedev video 0 +makedev radio 64 +makedev vtx 192 +makedev vbi 224 + +#echo "*** old device names (for compatibility only) ***" +#makedev bttv 0 +#makedev bttv-fm 64 +#makedev bttv-vbi 224 |