HP MCE Remote with Lirc not working
#1
Ive configured my Asrock 330 with Ubuntu minimal install and xbmc and everything works nice except for my remote I received today.

Its this remote:
http://cgi.ebay.com/HP-MCE-KIT-REMOTE-CO...20acc372be

Xbmc.log says the following:
Code:
20:06:22 T:3040970640 M:1494953984    INFO: LIRC Initialize: sucessfully started on: /dev/lircd Height:720

I have this in /etc/lirc/hardware.conf
Code:
#Chosen Remote Control
REMOTE="Windows Media Center Remotes (old version MicroSoft USB ID)"

# Arguments which will be used when launching lircd
REMOTE_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.
REMOTE_DRIVER=""
# If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be
# automatically used instead
REMOTE_DEVICE="/dev/lirc0"
REMOTE_DEVICE="/dev/ttyUSB0"
REMOTE_MODULES="lirc_dev lirc_mceusb"

# Default configuration files for your hardware if any
REMOTE_LIRCD_CONF="mceusb/lircd.conf.mceusb"
LIRCMD_CONF=""
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""
START_LIRCD="true"
START_LIRCMD=""
FORCE_NONINTERACTIVE_RECONFIGURATION="false"

Lircd.conf:
Code:
#This configuration has been automatically generated via
#the Ubuntu LIRC package maintainer scripts.
#
#It includes the default configuration for the remote and/or
#transmitter that you have selected during package installation.
#
#Feel free to add any custom remotes to the configuration
#via additional include directives or below the existing
#Ubuntu include directives from your selected remote and/or
#transmitter.

#Configuration for the Windows Media Center Remotes (old version MicroSoft USB ID) remote:
include /usr/share/lirc/remotes/mceusb/lircd.conf.mceusb

/usr/share/lirc/remotes/mceusb/lircd.conf.mceusb:

Code:
#
# brand:                        HP
# model no. of remote control:  TSGH-IR01
# devices being controlled by this remote: HP Slimline S3100y
#
# Derived from MCEUSB2 lircd.conf file (lircd.conf.mceusb) found at:
# https://help.ubuntu.com/community/Install_Lirc_Feisty

#
# 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

Been searching all over the forum and tried several stuff but cant find out why its not working. The IR-receiver flashes when I click on the remote so that part seems to work...

Would really appriciate all help!
Reply
#2
I have never set up a MCE remote, but I just got through configuring another remote in lirc. First run "sudo lsmod | grep lirc_mceusb" to make sure the module is being loaded, if it is not you need to run "sudo modprobe lirc_mceusb" to start it up.

Also make sure lircd is actually running with "ps -A | grep lircd". If it does not show up run "sudo /etc/init.d/lirc restart".

If both of those things work, run "irw" and press some buttons on the remote. If you get values on the screen that means the lircd.config file is set up correctly. The words you get back map to signals being sent with lirc. These should be the same as the values in the /usr/share/xbmc/system/Lircmap.xml file. If you want to change these you can copy /usr/share/xbmc/system/Lircmap.xml and /usr/share/xbmc/system/Keymap.xml to the ~/.xbmc/userdata directory and those get mapped instead. Make sure your "remote device" in that file are the same as the lirc commands you're getting back. Check here for more instructions http://www.xbmc.org/wiki/?title=HOW-TO_s...lk_to_XBMC. Good luck!
Reply
#3
Thanx for your quick reply!

Heres the commands I should try:

Code:
sudo lsmod | grep lirc_mceusb
lirc_mceusb            16992  0
lirc_dev               19892  1 lirc_mceusb

Code:
ps -A | grep lircd
1583 ?        00:00:00 lircd

"irw" doesnt respond to any command at all from the remote though, any idea of what might be wrong? Oo
Reply
#4
That could be either the driver's not working or the config file is not set up with the right codes. try "irrecord -d /dev/lirc0 name_of_file_to_save_to" and follow the instructions to see if the device is properly reading the remote's keypresses. If you can't get anything you probably have the wrong driver set up and need to take a closer look at the hardware.conf file. One thing I found myself having to do was rather than "include /usr/share/lirc/remotes/mceusb/lircd.conf.mceusb" I just copied /usr/share/lirc/remotes/mceusb/lircd.conf.mceusb to /etc/lirc/lircd.conf and did "sudo /etc/init.d/lirc restart". For some reason the include wasn't working on my setup.
Reply
#5
Tried that to clarkdudek, didnt work either :/
The remote however responses and shows dots at irrecord but I cant "record" all the buttons...

xbmc.log says this:
DEBUG: CButtonTranslator::Load - no userdata Lircmap.xml found, skipping

should that be a problem?
Reply
#6
I've got the exact same remote from Ebay, but mine is crap.
I tried it also on the Asrock ion 330, as soon as I connect the remote everything seems to be working out of the box. (XBMC Live) But the suspend mode doesn't work anymore. Disconnect the receiver and suspend works again. Can't wake the Asrock with this config.

Also the led is contant flashing. When I turn off my TV (Panasonic Plasma) the flashing stops.
I ordered a XBOX (female) --> USB converter from Ebay. Going to try my old XBOX DVD Kit IR Reveiver, read some promising stories about that.
Logitech DiNovo Mini works like a charm, but I want to use my Harmony One.

Maybe the remote is just a cheap clone or something.
Reply
#7
asrock_xbmc Wrote:Tried that to clarkdudek, didnt work either :/
The remote however responses and shows dots at irrecord but I cant "record" all the buttons...

xbmc.log says this:
DEBUG: CButtonTranslator::Load - no userdata Lircmap.xml found, skipping

should that be a problem?

Do some of the buttons get recorded into the file you specified using irrecord? The function of that program is to create a lircd.conf file for /etc/lirc. I would first try to get output from irw before you begin to worry about the xbmc.log, but that may just mean that you haven't defined a custom Lircmap.xml file in ~/.xbmc/userdata. If you want to test your custom made lircd.conf file just copy the file created from irrecord to /etc/lirc/lircd.conf and run "sudo /etc/init.d/lirc restart".
Reply
#8
It works nice to get all the dots but when I enter the name for the next button it says:
Now hold the button "stop:
Sorry something went wrong.
Try Again.

Over and over again... I get no response there...
Reply
#9
I have the same HP IR receiver on my ASRock 333 Live install, but am using the MCE v2 remote codes on my Logitech Harmony (didn't get the HP remote itself). Have you tired setting up the remote as the newer MCE version rather than the old Microsoft version?
Reply
#10
I successfully have recorded all the buttons with irrecord to get my own config. Still same error though, irw wont show any response at all :/
any more suggestions?
Reply
#11
50% success, now got the IRW to respond to the buttons.
I solved it by replacing lircd.conf with my own config instead of doing the include /usr/share/lirc/remotes/mceusb/lircd.conf.mceusb....

However xbmc does not respond, someone who is good at this who might see what the final bit of the puzzle is for me? Smile


Got it to work now, the biggest problem from the start was the link in /etc/lirc/lircd.conf, its better to place all the settings directly in that file.
The other problem was some minor problems in /home/xbmc/.xbmc/userdata/Lircmap.xml, make sure the commands there matches the output from IRW.

Hope that helps some1 else, otherwise feel free to pm me with your problems and Ill try to help.

Big thanx for everyone who helped me!
Reply
#12
Smile 
so I am having the same problem with the remote I just got today. I have spent the last few hours trying to get this to work.

Would you be willing to show me your lircd.conf and hardware.conf files? I want to know what you tweaked on these.

This would be a huge help to me.
Reply
#13
Same Remote - similar problem. Mine is that irw only recognizes directional arrows and "OK", nothing else. If you could post your .conf files, that would be hugely helpful.

Thanks.
Reply
#14
Sorry havent been here in a while, have you solved it?
Otherwise I will give it to you happily?
Reply
#15
I have ordered 2 of them because the real microsoft remote is harder and harder to get. So any ready to use config files are very welcome ;-)

How is the receiver detected ? is it the standard philips/ehome receiver? Some say it will work out of the box others have problems with it, very strange.
Case: Ahanix MCE301 Mainboard: M3N78-VM :CPU X2 4200 MHz SSD: 2x OCZ agility 30G Ram: 2G Remote: MS MCE. MSI Geforece 210 & Asrock 330 ION.
Reply

Logout Mark Read Team Forum Stats Members Help
HP MCE Remote with Lirc not working0