Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: [Fwd: Re: Re: NOVA-t remote control]



Ed Wildgoose wrote:

Unfortunately just like with the DVB driver patch, I can't seem to get
it to detect several keys such as the "red" key, and the bottom left
"prev track" key.  Nothing comes back, and some basic hacking of the
driver tends to suggest that some of these keys must be being
transmitted in a peculiar way?

I would be interested to know if a) you get your remote detected by the
same driver? b) whether you know how to get these other keys working?

Here is my patched version of the key_map for my remote control. It is just here for reference and testing purposes.

One notable difference is that i've chosen to make the numeric keys generate BTN_# events instead of KEY_#. This stops the keybard driver from inserting them into the keyboard buffer. This stops the numbers from the remote getting into all my other applications whenever I use it to change channels. Also this stops VDR from reading the same key once from the event driver and again from the keyboard driver.

As I said earlier, I don't expect this to get merged as is. Something like the loadable keymap of the full feature driver would be much better.

Looking at the loadkeys code it doesn't support BTN_# keys in the key map, more work to do if we head in that direction...

Jon


--- dvb-kernel-cvs/linux/drivers/media/dvb/ttpci/budget-ci.c	2003-08-08 17:15:32.000000000 +0100
+++ dvb-kernel/linux/drivers/media/dvb/ttpci/budget-ci.c	2003-08-30 19:51:21.000000000 +0100
@@ -145,59 +145,52 @@
 
 
 
-
-/* from reading the following remotes:
-   Zenith Universal 7 / TV Mode 807 / VCR Mode 837
-   Hauppauge (from NOVA-CI-s box product)
-   i've taken a "middle of the road" approach and note the differences
+/* Key mapping for use with Hauppage remote supplied
+ * with recent Nova-T cards
 */
 static  u16 key_map[64] = {
 	/* 0x0X */
-	KEY_0, KEY_1, KEY_2, KEY_3, KEY_4, KEY_5, KEY_6, KEY_7, KEY_8,
-	KEY_9,
-	KEY_ENTER,
+	BTN_0, BTN_1, BTN_2, BTN_3, BTN_4, BTN_5, BTN_6, BTN_7, BTN_8, BTN_9,
 	0,
-	KEY_POWER,              /* RADIO on Hauppauge */
-	KEY_MUTE,
+	KEY_RED,
+	0,
+	KEY_MENU,
 	0,
-	KEY_A,                  /* TV on Hauppauge */
+	KEY_MUTE,
 	/* 0x1X */
 	KEY_VOLUMEUP, KEY_VOLUMEDOWN,
+	0, 0, 0,
+	0, 0, 0,
+	KEY_REWIND, 
+	0, 0, 0,
 	0, 0,
-	KEY_B,
-	0, 0, 0, 0, 0, 0, 0,
-	KEY_UP, KEY_DOWN,
-	KEY_OPTION,             /* RESERVED on Hauppauge */
-	0,
+	BTN_FORWARD,
+	KEY_EXIT,
 	/* 0x2X */
 	KEY_CHANNELUP, KEY_CHANNELDOWN,
-	KEY_PREVIOUS,           /* Prev. Ch on Zenith, SOURCE on Hauppauge */
+	0, 0,
+	BTN_BACK,
+	KEY_OK,
 	0, 0, 0,
-	KEY_CYCLEWINDOWS,       /* MINIMIZE on Hauppauge */
-	0,
-	KEY_ENTER,              /* VCR mode on Zenith */
-	KEY_PAUSE,
-	0,
-	KEY_RIGHT, KEY_LEFT,
-	0,
-	KEY_MENU,               /* FULL SCREEN on Hauppauge */
+	KEY_BLUE,
+	0, 0, 0, 0,
+	KEY_GREEN,
 	0,
 	/* 0x3X */
+	KEY_PLAYPAUSE,
 	0,
-	KEY_PREVIOUS,           /* VCR mode on Zenith */
 	KEY_REWIND,
 	0,
 	KEY_FASTFORWARD,
-	KEY_PLAY, KEY_STOP,
+	KEY_PLAY,
+	KEY_STOP,
 	KEY_RECORD,
-	KEY_TUNER,              /* TV/VCR on Zenith */
-	0,
-	KEY_C,
-	0,
-	KEY_EXIT,
-	0,
-	KEY_TUNER,              /* VCR mode on Zenith */
+	KEY_YELLOW,
+	0, 0,
+	KEY_GOTO,
 	0,
+	KEY_POWER,
+	0, 0,
 };
 
 

Home | Main Index | Thread Index