Forum
Microsoft MCE (1039) remote configuration - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Hardware (/forum-7.html)
+--- Forum: Remotes and CEC support (/forum-26.html)
+--- Thread: Microsoft MCE (1039) remote configuration (/thread-444.html)

Pages: 1 2 3 4


RE: Microsoft MCE (1039) remote configuration - wolfylee - 17th Feb, 2013 07:44 AM

(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...


RE: Microsoft MCE (1039) remote configuration - wolfylee - 18th Feb, 2013 01:05 AM

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.


RE: Microsoft MCE (1039) remote configuration - CurlyMo - 18th Feb, 2013 01:13 AM

Sorry, then i'm clueless. Let's hope someone else can help us Smile


RE: Microsoft MCE (1039) remote configuration - wolfylee - 18th Feb, 2013 01:31 AM

Ok no worries - thanks for the help anyway! Big Grin


RE: Microsoft MCE (1039) remote configuration - _nico - 22nd Feb, 2013 08:04 AM

Hi CurlyMo, i have the same problem. Tongue

Output - lsusb, dmesg and /proc/bus/input/devices
http://pastebin.com/An9JTaa8


RE: Microsoft MCE (1039) remote configuration - CurlyMo - 22nd Feb, 2013 08:09 AM

So none of the buttons work, and mode2 doesn't output anything as well?


RE: Microsoft MCE (1039) remote configuration - _nico - 22nd Feb, 2013 08:14 AM

(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.


RE: Microsoft MCE (1039) remote configuration - CurlyMo - 22nd Feb, 2013 08:27 AM

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.


RE: Microsoft MCE (1039) remote configuration - _nico - 22nd Feb, 2013 08:32 AM

(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.


RE: Microsoft MCE (1039) remote configuration - CurlyMo - 22nd Feb, 2013 08:40 AM

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



RE: Microsoft MCE (1039) remote configuration - _nico - 22nd Feb, 2013 08:49 AM

(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"



RE: Microsoft MCE (1039) remote configuration - CurlyMo - 22nd Feb, 2013 08:56 AM

But did you already try to create a full map yourself with irrecord?


RE: Microsoft MCE (1039) remote configuration - _nico - 22nd Feb, 2013 05:22 PM

(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!


RE: Microsoft MCE (1039) remote configuration - CurlyMo - 22nd Feb, 2013 07:53 PM

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



RE: Microsoft MCE (1039) remote configuration - _nico - 22nd Feb, 2013 07:58 PM

(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