I was able to get this remote working by doing the following:

1 .. Patching the lirc 0.7.2 code using the diff provided below (very simple).

2 .. Building lirc to use the "Linux Input Layer" driver

3 .. Starting the lirc daemon with the option "-d /dev/hiddev0" to tell it to 
use the right dev file, instead of /dev/input/event0

4 .. Using the lircd.conf file attached (very similar to the existing MCE 
remote lircd.conf, hex codes just transposed and moved over a few bits).

For the reference of others the remote looks like this:

http://www.eyo.com.au/img/ups,kvm,usb/hdtv5remote.jpg

Good luck,

Andrew Speer
--- hw_devinput.c.0	2005-08-28 22:11:52.000000000 +0930
+++ hw_devinput.c	2005-08-28 22:11:52.000000000 +0930
@@ -130,12 +130,9 @@
 	logprintf(LOG_DEBUG, "time %ld.%06ld  type %d  code %d  value %d",
 		event.time.tv_sec, event.time.tv_usec,
 		event.type, event.code, event.value);
-
-	code = event.value ? 0x80000000 : 0;
-	code |= ((event.type & 0x7fff) << 16);
-	code |= event.code;
-
-	repeat_flag = (event.value == 2) ? 1:0;
+	
+	code = event.value & 0x7fff;
+	repeat_flag = (event.value & 0x8000) ? 1 : 0;
 
 	logprintf(LOG_DEBUG, "code %.8llx", code);
 
# this config file was automatically generated
# using lirc-0.7.0(dvico) on Sat Jun 18 00:56:01 2005
#
# contributed by anonymous
#
# brand:                       DVICO
# model no. of remote control: MCE Remote
#

begin remote

  name           DVICO
  bits           32
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  pre_data_bits   0
  pre_data        0x0
  post_data_bits  0
  post_data       0x0
  gap             195956
  toggle_bit      0


      begin codes
          ok                       0x0000000000005EFE
          dtv                      0x00000000000002FE
          mp3                      0x0000000000000EFE
          dvd                      0x0000000000001AFE
          cpf                      0x0000000000001EFE
          setup                    0x00000000000016FE
          tv_onoff                 0x00000000000046FE
          guide                    0x0000000000000AFE
          back                     0x00000000000049FE
          more                     0x00000000000059FE
          dvd_menu                 0x0000000000004DFE
          alt_tab                  0x00000000000055FE
          replay                   0x0000000000000FFE
          skip                     0x00000000000012FE
          up                       0x00000000000051FE
          down                     0x00000000000053FE
          left                     0x0000000000005BFE
          right                    0x0000000000005FFE
          start                    0x00000000000042FE
          vol_up                   0x00000000000015FE
          vol_down                 0x00000000000005FE
          ch_up                    0x00000000000011FE
          ch_down                  0x00000000000009FE
          snapshot                 0x00000000000052FE
          live                     0x0000000000005AFE
          folder_open              0x00000000000019FE
          1                        0x0000000000000BFE
          2                        0x00000000000017FE
          3                        0x0000000000001BFE
          4                        0x00000000000007FE
          5                        0x00000000000050FE
          6                        0x00000000000054FE
          7                        0x00000000000048FE
          8                        0x0000000000004CFE
          9                        0x00000000000058FE
          0                        0x00000000000003FE
          aspect                   0x00000000000013FE
          fullscreen               0x0000000000001FFE
          rewind                   0x00000000000043FE
          playpause                0x00000000000047FE
          fastforward              0x0000000000004FFE
          stop                     0x0000000000000DFE
          mute                     0x00000000000057FE
          record                   0x00000000000001FE
          white_onoff              0x0000000000004EFE
      end codes

end remote


_______________________________________________
mythtv-users mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Reply via email to