[LINUX] MCE Remote unresponsive
#1
I have purchased an 'AIM Windows Media Center Remote' as found here:
http://www.edio21.com/prod_rc126.asp

Image

I have been trying to make this work for hours. I have tried every guide I can find, here and on the net, nothing seems to work.

Ok, what I know...

OS: Ubuntu 9.04 Jaunty
XBMC 9.11alpha1

I have LIRC installed. I have tried both configurations for the MCE (New & Old), neither work.

'irw' shows nothing!

I have tried installing the source modules for lirc and also the module assistant (Which doesn't give me a configuration!?)

The remote uses the standard Microsoft drivers and the RC6 IR Protocol. All should be fine, however... nothing

Here's my current file outputs:

Lircd.conf

Code:
#
# brand:                        HP
# model no. of remote control:  TSGH-IR01
# devices being controlled by this remote: HP Slimline S3100y
#
# RC-6 config file
#
# source: http://home.hccnet.nl/m.majoor/projects_remote_control.htm
#         http://home.hccnet.nl/m.majoor/pronto.pdf
#
# used by: Philips
#
#########
#
# Philips Media Center Edition remote control
# For use with the USB MCE ir receiver
#
# Dan Conti  dconti|acm.wwu.edu
#
# Updated with codes for MCE 2005 Remote additional buttons
# *, #, Teletext, Red, Green, Yellow & Blue Buttons
# Note: TV power button transmits no code until programmed.
# Updated 12th September 2005
# Graham Auld - mce|graham.auld.me.uk
#
# Radio, Print, RecTV are only available on the HP Media Center remote control
#
#
# Updated with codes for MCE 2007 Remote additional buttons
# Visualization, Aspect, SlideShow, Eject
# Note:
# Renamed some buttons: DVD->DVDMenu, More->MoreInfo, Star->Asterisk, Hash->Pound
# Note:
# Blue, Yellow, Green, Red, and Teletext buttons do not exist on the HP remote

begin remote

  name        mceusb
  bits                 16
  flags  RC6|CONST_LENGTH
  eps                  30
  aeps                100

  header       2667   889
  one           444   444
  zero          444   444
  pre_data_bits        21
  pre_data        0x37FF0
  gap              105000
  toggle_bit           22
  rc6_mask    0x100000000


      begin codes

#unused by HP remote
        Blue          0x00007ba1
        Yellow        0x00007ba2
        Green         0x00007ba3
        Red           0x00007ba4
        Teletext      0x00007ba5

#ba6 - bae unused
        BA6           0x00007ba6
        BA7           0x00007ba7
        BA8           0x00007ba8
        BA9           0x00007ba9
        BAA           0x00007baa
        BAB           0x00007bab
        BAC           0x00007bac
        BAD           0x00007bad
        BAE           0x00007bae

        Radio         0x00007baf
        Print         0x00007bb1

#bb2 - bb4 unused
        BB2           0x00007bb2
        BB3           0x00007bb3
        BB4           0x00007bb4
Videos        0x00007bb5
        Pictures      0x00007bb6
        RecTV         0x00007bb7
        Music         0x00007bb8
        TV            0x00007bb9

#bba - bbf unused
        BBA           0x00007bba
        BBB           0x00007bbb
        BBC           0x00007bbc
        BBD           0x00007bbd
        BBE           0x00007bbe
        BBF           0x00007bbf
#bc1 - bca unused
        BC1           0x00007bc1
        BC2           0x00007bc2
        BC3           0x00007bc3
        BC4           0x00007bc4
        BC5           0x00007bc5
        BC6           0x00007bc6
        BC7           0x00007bc7
        BC8           0x00007bc8
        BC9           0x00007bc9
        BCA           0x00007bca

        Eject         0x00007bcb
        SlideShow     0x00007bcc
        Visualization 0x00007bcd

#bce - bcf unused
        BCE           0x00007bce
        BCF           0x00007bcf
#bd1 - bd7 unused
        BD1           0x00007bd1
        BD2           0x00007bd2
        BD3           0x00007bd3
        BD4           0x00007bd4
        BD5           0x00007bd5
        BD6           0x00007bd6
        BD7           0x00007bd7

        Aspect        0x00007bd8
        Guide         0x00007bd9
        LiveTV        0x00007bda
        DVD           0x00007bdb
#NoGap
        Back          0x00007bdc
        OK            0x00007bdd
        Right         0x00007bde
        Left          0x00007bdf
        Down          0x00007be0
        Up            0x00007be1
#NoGap
        Star          0x00007be2
        Hash          0x00007be3
#NoGap
        Replay        0x00007be4
        Skip          0x00007be5
        Stop          0x00007be6
        Pause         0x00007be7
        Record        0x00007be8
        Play          0x00007be9
        Rewind        0x00007bea
        Forward       0x00007beb
#NoGap
        ChanDown      0x00007bec
        ChanUp        0x00007bed
        VolDown       0x00007bee
        VolUp         0x00007bef
#NoGap
        More          0x00007bf0
        Mute          0x00007bf1
        Home          0x00007bf2
        Power         0x00007bf3
#NoGap
        Enter         0x00007bf4
        Clear         0x00007bf5
#NoGap
        Nine          0x00007bf6
        Eight         0x00007bf7
        Seven         0x00007bf8
        Six           0x00007bf9
        Five          0x00007bfa
        Four          0x00007bfb
        Three         0x00007bfc
        Two           0x00007bfd
        One           0x00007bfe
        Zero          0x00007bff
      end codes

end remote


Hardware.conf

Code:
/etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS=""

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false

#Try to load appropriate kernel modules
LOAD_MODULES=true

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER=""
# If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be
# automatically used instead
DEVICE="/dev/lirc0"
MODULES="lirc_mceusb2"

# Default configuration files for your hardware if any
LIRCD_CONF="/etc/lirc/lircd.conf"
LIRCMD_CONF=""
# /etc/lirc/hardware.conf
REMOTE="Windows Media Center Remotes (old version MicroSoft USB ID)"
REMOTE_MODULES="lirc_dev lirc_mceusb"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
REMOTE_LIRCD_CONF="mceusb/lircd.conf.mceusb"
REMOTE_LIRCD_ARGS=""
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""
START_LIRCD="true"
START_LIRCMD=""
FORCE_NONINTERACTIVE_RECONFIGURATION="false"


Any help would be greatly appreciated!
Reply
#2
I have since found this information interesting...

It shows how to add remotes to the system.

I found my code (Formosa), however I do not have a 'lirc_mce2.c' file, when I went oLIRCs CVN, i could only find 'lirc_mce.c'.

I have edited the file and added my remote so I think i'm making progress...

http://forum.xbmc.org/showthread.php?tid=51581

https://help.ubuntu.com/community/Instal...%20remotes
Reply
#3
Nobody got their remote working...?
Reply
#4
Ok, I now have edited the 'lirc_mce.c' file, added my config and now dmesg reports this...

Code:
[257861.136024] usb 5-2: new full speed USB device using uhci_hcd and address 6
[257861.328148] usb 5-2: configuration #1 chosen from 1 choice
[257871.337564] generic-usb 0003:147A:E03C.0006: timeout initializing reports
[257871.337688] generic-usb 0003:147A:E03C.0006: hiddev96,hidraw1: USB HID v1.00 Device [Formosa21 eHome Infrared Transceiver] on usb-0000:00:1d.3-2/input1

I still have no input from XBMC or irw...
Reply
#5
same boat here, with same dmesg output. I suspect we have non MCE compliant IR recievers, as they just seem to be emulating a keyboard port.

See the post here -> http://www.mythtv.org/wiki/Generic_HID_%...22_Remotes.

Looks like we may need buy a more expensive reciever?
Reply
#6
Well, I have now managed to find the 'lirc_mce2.c' file (somehow popped up whilst trying to make this forsaken thing work) and mow my dmesg shows this...

Code:
257404.701005] lirc_dev: IR Remote Control driver registered, major 61
[257404.701734] usbcore: registered new interface driver lirc_mceusb
[257404.701737] lirc_mceusb: USB Microsoft IR Transceiver Driver v0.2
[257842.296537] usb 5-2: USB disconnect, address 4
[257861.136024] usb 5-2: new full speed USB device using uhci_hcd and address 6
[257861.328148] usb 5-2: configuration #1 chosen from 1 choice
[257871.337564] generic-usb 0003:147A:E03C.0006: timeout initializing reports
[257871.337688] generic-usb 0003:147A:E03C.0006: hiddev96,hidraw1: USB HID v1.00 Device [Formosa21 eHome Infrared Transceiver] on usb-0000:00:1d.3-2/input1
[257931.682212] usbcore: deregistering interface driver lirc_mceusb
[257945.928692] lirc_dev: IR Remote Control driver registered, major 61
[257945.930693] usbcore: registered new interface driver lirc_mceusb
[257945.930697] lirc_mceusb: USB Microsoft IR Transceiver Driver v0.2
[258601.731886]
[258601.731889] lirc_mceusb2: Philips eHome USB IR Transceiver and Microsoft MCE 2005 Remote Control driver for LIRC $Revision: 1.44 $
[258601.731891] lirc_mceusb2: Daniel Melander <[email protected]>, Martin Blatter <[email protected]>
[258601.732992] usbcore: registered new interface driver lirc_mceusb2

I think it can see the device for what it is, just still no life from irw though.

What configs should I be using in hardware.conf, etc
Reply
#7
Still haven't got this to work, have been using my Xbox remote but this would be much easier if I could get it going...

I'm now using a new XBMC Live install and the Formosa receiver is now in the list of remotes in the 'lirc_mce' however there is still no action in 'irw'

If someone could at least give me some troubleshooting steps that would be a step in the right direction!

Cheers
Reply
#8
I have a formosa usb IR receiver but a different remote to yourself, lsusb shows:-

Bus 003 Device 002: ID 147a:e017 Formosa Industrial Computing, Inc.

ls -l /dev/lirc*
only shows /dev/lirc so I changed config file to point to /dev/lirc instead of /dev/lirc0 and it has always worked. Like I say I have different remote to you so that could also be a factor.
Reply
#9
ls -l /dev/lirc*

Mine shows this:

Code:
lrwxrwxrwx 1 root root 19 2010-01-22 03:37 /dev/lircd -> /var/run/lirc/lircd
lrwxrwxrwx 1 root root 19 2010-01-22 03:37 /dev/lircd1 -> /var/run/lirc/lircd

I just can't get a response from 'irw'
Reply
#10
Looks like your lirc module is not loaded what does :-

lsmod | grep -i lirc

come back with?
Reply
#11
xbmc@XBMCLive:~$ lsmod | grep -i lirc
lirc_mceusb 15264 1
lirc_dev 10804 3 lirc_mceusb


Halfway there!!!

I've got 'irw' to respond with this little baby...

http://lirc.sourceforge.net/remotes/

Obviously, I went to 'AIM' and selected my remote and it gave me the lircd.conf file

Code:
#
# this config file was automatically generated
# using lirc-0.8.5(default) on Wed Jul 29 12:58:06 2009
#
# contributed by
#
# brand:                       AIM
# model no. of remote control: RC126
# devices being controlled by this remote:
#

begin remote

  name  AIM-RC126
  bits           13
  flags RC6|CONST_LENGTH
  eps            30
  aeps          100

  header       2700   855
  one           486   419
  zero          486   419
  pre_data_bits   24
  pre_data       0x1BFF83
  gap          107341
  min_repeat      1
  toggle_bit_mask 0x8000
  rc6_mask    0x100000000

      begin codes
          Power                    0x1BF3
          Record                   0x1BE8
          Stop                     0x1BE6
          Pause                    0x1BE7
          Rewind                   0x1BEA
          Forward                  0x1BEB
          Previous                 0x1BE4
          Play                     0x1BE9
          Next                     0x1BE5
          Zoomout                  0x1BD9
          Zoomin                   0x1BDA
          Eject                    0x1BB7
          Select                   0x1BDB
          Menu                     0x1BF2
          Back                     0x1BDC
          Info                     0x1BF0
          Up                       0x1BE1
          Down                     0x1BE0
          Left                     0x1BDF
          Right                    0x1BDE
          OK                       0x1BDD
          Vol+                     0x1BEF
          Vol-                     0x1BEE
          Chan+                    0x1BED
          Chan-                    0x1BEC
          Mute                     0x1BF1
          PICTURES                 0x1BB6
          VIDEOS                   0x1BB5
          MUSIC                    0x1BB8
          1                        0x1BFE
          2                        0x1BFD
          3                        0x1BFC
          4                        0x1BFB
          5                        0x1BFA
          6                        0x1BF9
          7                        0x1BF8
          8                        0x1BF7
          9                        0x1BF6
          0                        0x1BFF
          Star                     0x1BE2
          Hash                     0x1BE3
          Clear                    0x1BF5
          Keyboard                 0x1BA5
          Edit                     0x1BF4
          Red                      0x1BA4
          Green                    0x1BA3
          Yellow                   0x1BA2
          Blue                     0x1BA1
      end codes

end remote

Still no response from XBMC, but i'm nearly there...
Reply
#12
Is the lircd daemon actually running when you try xbmc? ps -ef|grep -i lirc
Should show you if it's started. If it's not running try /etc/init.d/lirc start
Also if irw is working try using irrecord to generate a lircd.conf file, try :-
irrecord /tmp/lircd.test (<- this file can be called anything and you can put it anywhere doesn't have to be tmp) see if that generates anything. From memory irrecord will not work if lirc is running so you will need to stop it before running irrecord.
Reply
#13
I have no idea what happened, however it's working!

I reconfigured Lirc, chose 'Windows MCE (all)' in the first menu, then 'none' in the second and she came to life, controlling XBMC (After a restart).

I then proceeded to do full re-install of XBMC Live to see if I could get it to work from a clean install, and... it worked straight out of the box!?

Can XBCM retain files or what? I used the partitioning during install...
Reply
#14
if you do a ls -l /dev/lirc* do you now have a lirc or lirc0 device? I am guesing reconfiguring lirc has fixed something somewhere along the line.
Reply
#15
I too bought a remote that looks like the "Air" RC126 one you mention. It's black with orange buttons (the North American version, according to the box it came in).

The IR receiver it came with is marked as an "IR605A/Q".

lsusb output says:
Code:
Bus 003 Device 005: ID 147a:e03e Formosa Industrial Computing, Inc.

Adding the entry according to https://help.ubuntu.com/community/Instal...%20remotes worked perfectly, I am up and running. Phew. Only two hours! Rofl
Reply

Logout Mark Read Team Forum Stats Members Help
[LINUX] MCE Remote unresponsive0