Forum

Full Version: Microsoft MCE (1039) remote configuration
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
(17th Feb, 2013 07:27 AM)CurlyMo Wrote: [ -> ]What did the if condition check reveal (adding the echo's?)

Sorry Mo, the pi must have crashed as it stopped loading properly after my last post. I could ssh in but the screen was black on my tv. I'll have to revisit this tomorrow as I will be killed if we can't watch a film tonight Smile

Thanks for your help so far, and your patience. I'll be back tomorrow Smile I'll redo everything we have done so far...
I went through this whole post again and did all the same but there was no change. It did not like my echo statements as written.
Sorry, then i'm clueless. Let's hope someone else can help us Smile
Ok no worries - thanks for the help anyway! Big Grin
Hi CurlyMo, i have the same problem. Tongue

Output - lsusb, dmesg and /proc/bus/input/devices
http://pastebin.com/An9JTaa8
So none of the buttons work, and mode2 doesn't output anything as well?
(22nd Feb, 2013 08:09 AM)CurlyMo Wrote: [ -> ]So none of the buttons work, and mode2 doesn't output anything as well?

Only numeric buttons doesn't work - other buttons works.

Code:
root@else ~ # irw
00000000800100e2 00 KEY_MEDIA devinput
0000000080010166 00 KEY_INFO devinput
00000000800100ae 00 KEY_EXIT devinput
000000008001016d 00 KEY_EPG devinput
0000000080010172 00 KEY_SUBTITLE devinput
0000000080010077 00 KEY_PAUSE devinput
0000000080010080 00 KEY_STOP devinput
...

Output from mode2 for button "0".

---

EDIT 2013-02-21_23-21 GMT+1

Code:
irrecord -a test4

Code:
begin remote

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

  header       2601   929
  one           420   466
  zero          420   466
  pre_data_bits   21
  pre_data       0x37FF0
  gap          105993
  toggle_bit_mask 0x0
  rc6_mask    0x100000000

      begin codes
          KEY_NUMERIC_1            0x7BFE
          KEY_NUMERIC_2            0xFBFD
          KEY_NUMERIC_3            0x7BFC
          KEY_NUMERIC_4            0xFBFB
          KEY_NUMERIC_5            0x7BFA
          KEY_NUMERIC_6            0xFBF9
          KEY_NUMERIC_7            0x7BF8
          KEY_NUMERIC_8            0xFBF7
          KEY_NUMERIC_9            0x7BF6
          KEY_NUMERIC_0            0xFBFF
      end codes

end remote

---

EDIT 2013-02-21_23-26 GMT+1

On Arch Linux (amd64) works fine with this file.
Can you do:
Code:
sudo wget -O - https://raw.github.com/xbianonpi/xbian/xbian-beta1/etc/lirc/remotes/devinput.conf > /etc/lirc/remotes/devinput.conf
sudo /etc/init.d/lirc restart
They should now be included.
(22nd Feb, 2013 08:27 AM)CurlyMo Wrote: [ -> ]Can you do:
Code:
sudo wget -O - https://raw.github.com/xbianonpi/xbian/xbian-beta1/etc/lirc/remotes/devinput.conf > /etc/lirc/remotes/devinput.conf
sudo /etc/init.d/lirc restart
They should now be included.

Doesn't work Sad
That's strange - i tried it before!

Code:
root@else ~ # wget -O - https://raw.github.com/xbianonpi/xbian/xbian-beta1/etc/lirc/remotes/devinput.conf > /etc/lirc/remotes/devinput.conf
--2013-02-21 23:29:24--  https://raw.github.com/xbianonpi/xbian/xbian-beta1/etc/lirc/remotes/devinput.conf
Resolving raw.github.com (raw.github.com)... 199.27.76.133
Connecting to raw.github.com (raw.github.com)|199.27.76.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 34757 (34K) [text/plain]
Saving to: `STDOUT'

100%[==========================================>] 34,757      --.-K/s   in 0.05s  

2013-02-21 23:29:34 (728 KB/s) - written to stdout [34757/34757]

root@else ~ # /etc/init.d/lirc restart
[ ok ] Stopping remote control daemon(s): LIRC:.
[ ok ] Loading LIRC modules:.
[ ok ] Starting remote control daemon(s) : LIRC :.
root@else ~ # irw
00000000800100e2 00 KEY_MEDIA devinput
^C
root@else ~ #

---

Info: ... on RaspBMC works this out-of-the-box.
Then, can you do:
Code:
sudo wget -O - http://pastebin.com/raw.php?i=5hwXqTwJ >> /etc/lirc/remotes/mceusb.conf
sudo /etc/init.d/lirc restart
(22nd Feb, 2013 08:40 AM)CurlyMo Wrote: [ -> ]Then, can you do:
Code:
sudo wget -O - http://pastebin.com/raw.php?i=5hwXqTwJ >> /etc/lirc/remotes/mceusb.conf
sudo /etc/init.d/lirc restart

I have tried almost everything, too - doesn't work - i do not understand!

Code:
vi /etc/lirc/lircd.conf
include "/etc/lirc/remotes/devinput.conf"
include "/etc/lirc/remotes/xbox.conf"
include "/etc/lirc/remotes/smt1000t.conf"
include "/etc/lirc/remotes/srm7500.conf"
include "/etc/lirc/remotes/mceusb.conf"
But did you already try to create a full map yourself with irrecord?
(22nd Feb, 2013 08:56 AM)CurlyMo Wrote: [ -> ]But did you already try to create a full map yourself with irrecord?

I create a fullmap with (irrecord -a) - doesn't work - xbian ignores the conf file.

---

I found the problem.

---

I create /etc/lirc/remotes/mceusb.conf with this content.

Edit /etc/lirc/lircd.conf

Code:
#include "/etc/lirc/remotes/devinput.conf"
#include "/etc/lirc/remotes/xbox.conf"
#include "/etc/lirc/remotes/smt1000t.conf"
#include "/etc/lirc/remotes/srm7500.conf"
include "/etc/lirc/remotes/mceusb.conf"

Your /etc/lirc/hardware.conf

Code:
...
    elif [ $(dmesg | grep mceusb | wc -l) -gt 0 ]; then
        if [ $(cat /proc/bus/input/devices | grep 'Media Center Ed.' | wc -l) -gt 0 ]; then
            if [ $(cat /proc/bus/input/devices | grep -m 1 -A 4 'Media Center Ed.' | grep -o event[0-9] | sed -e 's/event//g') -eq 0 ]; then
                . /etc/lirc/hardware/mceusb_event0.conf
            elif [ $(cat /proc/bus/input/devices | grep -m 1 -A 4 'Media Center Ed.' | grep -o event[0-9] | sed -e 's/event//g') -eq 1 ]; then
                . /etc/lirc/hardware/mceusb_event1.conf
            elif [ $(cat /proc/bus/input/devices | grep -m 1 -A 4 'Media Center Ed.' | grep -o event[0-9] | sed -e 's/event//g') -eq 2 ]; then
                . /etc/lirc/hardware/mceusb_event2.conf
            else
                . /etc/lirc/hardware/mceusb.conf
            fi
        else
            . /etc/lirc/hardware/mceusb.conf
        fi
...

Code:
root@else ~ # cat /proc/bus/input/devices | grep 'Media Center Ed.' | wc -l
1
root@else ~ # cat /proc/bus/input/devices | grep -m 1 -A 4 'Media Center Ed.' | grep -o event[0-9] | sed -e 's/event//g'
0

Ok, lirc use /etc/lirc/hardware/mceusb_event0.conf
I edit following lines ...

Code:
DRIVER="devinput"
to
Code:
#DRIVER="devinput"

... , ...

Code:
DEVICE="/dev/input/event1"
to
Code:
DEVICE="/dev/lirc0"

... and it works! Cool

But, the cursor keys UP, DOWN, LEFT, RIGHT and ENTER are recognized by xbmc twice - when i stop lirc, then works only the cursor keys UP, DOWN, LEFT, RIGHT and ENTER. Rolleyes
(http://forum.xbmc.org/showthread.php?tid=90078&pid=721137#pid721137)

Happy bug fixing!

I'll stick with RaspBMC Heart - everything works out-of-the-box!
Quote:I create a fullmap with (irrecord -a) - doesn't work - xbian ignores the conf file.
What do you mean by this. If Lirc did indeed skip the config, then how does that relate to your comment here:

Quote:EDIT 2013-02-21_23-21 GMT+1
...
(22nd Feb, 2013 07:53 PM)CurlyMo Wrote: [ -> ]
Quote:I create a fullmap with (irrecord -a) - doesn't work - xbian ignores the conf file.
What do you mean by this. If Lirc did indeed skip the config, then how does that relate to your comment here:

Huh
Pages: 1 2 3 4
Reference URL's