Lirc + MCE USB + Xbox 360 remote + Newest build = Angry Wife :(
#1
Guys,

I dunno what changed or what I did but I ended up breaking my install so I went ahead and decided to upgrade which all seemed to go well but now LIRC is apparently broke for me.. It worked before when I was running on live using ubuntu 9.04 but newest xbmc. but now I am on newest ubuntu and xbmc and it is a no go no matter what I try...

This is what happens when I try to manually start the daemon

Code:
* Stopping execution daemon: irexec                                     [fail]
* Stopping remote control daemon(s): LIRC                               [fail]
* Loading LIRC modules                                                  [ OK ]
* Starting remote control daemon(s) : LIRC                              [fail]
* Starting execution daemon: irexec                                     [fail]

here is my lirc configs as well..

Hardware.conf
Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Microsoft_Xbox360"
REMOTE_MODULES=""
REMOTE_DRIVER=""
REMOTE_DEVICE=""
REMOTE_LIRCD_CONF=""
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="true"

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

# Default configuration files for your hardware if any
LIRCMD_CONF=""

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""

lircd.conf
Code:
# TV button sends no signal and toggles Xbox 360/TV mode. TV mode can be
# signals for any device the remote supports. Volume Up, Volume Down and
# Mute always use the TV mode while the Xbox live guide button always sends
# to the xbox.

begin remote

  name  Microsoft_Xbox360
  bits           13
  flags RC6|CONST_LENGTH
  eps            30
  aeps          100

  header       2682   906
  one           438   451
  zero          438   451
  pre_data_bits   24
  pre_data       0x1BFF80
  gap          107066
  toggle_bit_mask 0x8000
  rc6_mask    0x100000000


      begin codes
          OpenClose                0x8BD7
          XboxFancyButton          0x0B9B
          OnOff                    0x8BF3
          Stop                     0x0BE6
          Pause                    0x8BE7
          Rewind                   0x0BEA
          FastForward              0x8BEB
          Prev                     0x0BE4
          Next                     0x8BE5
          Play                     0x0BE9
          Display                  0x8BB0
          Title                    0x0BAE
          DVD_Menu                 0x8BDB
          Back                     0x0BDC
          Info                     0x8BF0
          UpArrow                  0x0BE1
          LeftArrow                0x8BDF
          RightArrow               0x0BDE
          DownArrow                0x8BE0
          OK                       0x0BDD
          Y                        0x8BD9
          X                        0x0B97
          A                        0x8B99
          B                        0x0BDA
          PgDown                   0x0B92
          PgUp                     0x0B93

          VolDown              0x0bee
          VolUp                0x0bef
      Mute               0x0bf1
      TV                       0x0bb9

          Start                    0x0BF2
          Play                     0x8BE9
          Enter                    0x0BF4
          Record                   0x8BE8
          Clear                    0x0BF5
          1                        0x8BFE
          2                        0x0BFD
          3                        0x8BFC
          4                        0x0BFB
          5                        0x8BFA
          6                        0x0BF9
          7                        0x8BF8
          8                        0x0BF7
          9                        0x8BF6
          100                      0x0BE2
          0                        0x8BFF
          Reload                   0x8BE3
      end codes

end remote

when i run lircd -n I get this as a output which confuses me as it use to work fine before newer linux was the backbone...

Code:
root@XBMCLive:~# sudo lircd -n #
lircd-0.8.6[2890]: invalid code found for Microsoft_Xbox360: OpenClose
lircd-0.8.6[2890]: invalid code found for Microsoft_Xbox360: OnOff
lircd-0.8.6[2890]: invalid code found for Microsoft_Xbox360: Pause
lircd-0.8.6[2890]: invalid code found for Microsoft_Xbox360: FastForward
lircd-0.8.6[2890]: invalid code found for Microsoft_Xbox360: Next
lircd-0.8.6[2890]: invalid code found for Microsoft_Xbox360: Display
lircd-0.8.6[2890]: invalid code found for Microsoft_Xbox360: DVD_Menu
lircd-0.8.6[2890]: invalid code found for Microsoft_Xbox360: Info
lircd-0.8.6[2890]: invalid code found for Microsoft_Xbox360: LeftArrow
lircd-0.8.6[2890]: invalid code found for Microsoft_Xbox360: DownArrow
lircd-0.8.6[2890]: invalid code found for Microsoft_Xbox360: Y
lircd-0.8.6[2890]: invalid code found for Microsoft_Xbox360: A
lircd-0.8.6[2890]: invalid code found for Microsoft_Xbox360: Play
lircd-0.8.6[2890]: invalid code found for Microsoft_Xbox360: Record
lircd-0.8.6[2890]: invalid code found for Microsoft_Xbox360: 1
lircd-0.8.6[2890]: invalid code found for Microsoft_Xbox360: 3
lircd-0.8.6[2890]: invalid code found for Microsoft_Xbox360: 5
lircd-0.8.6[2890]: invalid code found for Microsoft_Xbox360: 7
lircd-0.8.6[2890]: invalid code found for Microsoft_Xbox360: 9
lircd-0.8.6[2890]: invalid code found for Microsoft_Xbox360: 0
lircd-0.8.6[2890]: invalid code found for Microsoft_Xbox360: Reload
lircd-0.8.6[2890]: lircd(default) ready, using /var/run/lirc/lircd

I really pissed off my wife by breaking this as it is our main source of tv. any help would be great as I need to get this back online asap. thanks!
Reply
#2
Could you try to fill up the

TRANSMITTER_LIRCD_CONF="
and
REMOTE_DRIVER=""

in your /etc/lirc/hardware.conf file?

here is my example (for different remote):
Quote:#Chosen Remote Control
REMOTE="ATI/NVidia/X10 RF Remote (userspace)"
REMOTE_MODULES=""
REMOTE_DRIVER="atilibusb"
REMOTE_DEVICE=""
REMOTE_LIRCD_CONF="atiusb/lircd.conf.atilibusb"
REMOTE_LIRCD_ARGS=""

Bye
Reply
#3
i got the same setup as you
lircd.conf
Code:
include "/etc/lirc/360.conf"

360.conf
Code:
begin remote

  name  test9
  bits           13
  flags RC6|CONST_LENGTH
  eps            30
  aeps          100

  header       2701   836
  one           465   416
  zero          465   416
  pre_data_bits   24
  pre_data       0x1BFF80
  gap          106304
  toggle_bit_mask 0x8000
  rc6_mask    0x100000000

      begin codes
          1                        0x0BFE
          2                        0x0BFD
          3                        0x0BFC
          4                        0x0BFB
          5                        0x0BFA
          6                        0x0BF9
          7                        0x0BF8
          8                        0x0BF7
          9                        0x0BF6
          100                      0x0BE2
          0                        0x0BFF
          backspace                0x0BE3
          enter                    0x0BF4
          rec                      0x0BE8
          clear                    0x0BF5
          start                    0x0BF2
          vol_down                 0x0BEE
          vol_up                   0x0BEF
          mute                     0x0BF1
          tv                       0x0B9B
          ch_up                    0x0B93
          ch_down                  0x0B92
          yellow                   0x0BD9
          blue                     0x0B97
          green                    0x0B99
          red                      0x0BDA
          down                     0x0BE0
          left                     0x0BDF
          right                    0x0BDE
          up                       0x0BE1
          OK                       0x0BDD
          back                     0x0BDC
          dvdmenu                  0x0BDB
          info                     0x0BF0
          title                    0x0BAE
          display                  0x0BB0
          ffward                   0x0BE5
          ffback                   0x0BE4
          fward                    0x0BEB
          fback                    0x0BEA
          play                     0x0BE9
          stop                     0x0BE6
          pause                    0x0BE7
          open                     0x0BD7
          off                      0x0BF3
          xbox                     0x0B9B
      end codes

end remote

hardware.conf
Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="test9"
REMOTE_MODULES="lirc_dev lirc_mceusb2"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
REMOTE_LIRCD_CONF="mceusb"
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="true"

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

# Default configuration files for your hardware if any
LIRCMD_CONF=""

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""

You are missing hardware loading driver for the ir reciver
Reply
#4
it happens with kernel upgrades ^^ if that module isnt "shipped" with the kernel or you didnt compile the kernel or yourself or if its a module out of the kernel tree
Reply
#5
watson540 Wrote:it happens with kernel upgrades ^^ if that module isnt "shipped" with the kernel or you didnt compile the kernel or yourself or if its a module out of the kernel tree

i am pretty much a linux noob.. how do I get it to work w/ the current kernel Sad
Reply
#6
jeey Wrote:i got the same setup as you
lircd.conf
Code:
include "/etc/lirc/360.conf"

360.conf
Code:
begin remote

  name  test9
  bits           13
  flags RC6|CONST_LENGTH
  eps            30
  aeps          100

  header       2701   836
  one           465   416
  zero          465   416
  pre_data_bits   24
  pre_data       0x1BFF80
  gap          106304
  toggle_bit_mask 0x8000
  rc6_mask    0x100000000

      begin codes
          1                        0x0BFE
          2                        0x0BFD
          3                        0x0BFC
          4                        0x0BFB
          5                        0x0BFA
          6                        0x0BF9
          7                        0x0BF8
          8                        0x0BF7
          9                        0x0BF6
          100                      0x0BE2
          0                        0x0BFF
          backspace                0x0BE3
          enter                    0x0BF4
          rec                      0x0BE8
          clear                    0x0BF5
          start                    0x0BF2
          vol_down                 0x0BEE
          vol_up                   0x0BEF
          mute                     0x0BF1
          tv                       0x0B9B
          ch_up                    0x0B93
          ch_down                  0x0B92
          yellow                   0x0BD9
          blue                     0x0B97
          green                    0x0B99
          red                      0x0BDA
          down                     0x0BE0
          left                     0x0BDF
          right                    0x0BDE
          up                       0x0BE1
          OK                       0x0BDD
          back                     0x0BDC
          dvdmenu                  0x0BDB
          info                     0x0BF0
          title                    0x0BAE
          display                  0x0BB0
          ffward                   0x0BE5
          ffback                   0x0BE4
          fward                    0x0BEB
          fback                    0x0BEA
          play                     0x0BE9
          stop                     0x0BE6
          pause                    0x0BE7
          open                     0x0BD7
          off                      0x0BF3
          xbox                     0x0B9B
      end codes

end remote

hardware.conf
Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="test9"
REMOTE_MODULES="lirc_dev lirc_mceusb2"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
REMOTE_LIRCD_CONF="mceusb"
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="true"

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

# Default configuration files for your hardware if any
LIRCMD_CONF=""

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""

You are missing hardware loading driver for the ir reciver

YAY! half way there...

Code:
root@XBMCLive:~#  sudo /etc/init.d/lirc restart
* Stopping execution daemon: irexec                                     [ OK ]
* Stopping remote control daemon(s): LIRC                               [ OK ]
* Loading LIRC modules                                                  [ OK ]
* Starting remote control daemon(s) : LIRC                              [ OK ]
* Starting execution daemon: irexec                                     [ OK ]

from your config i got lirc to start but still the remote dont work.. would you mind posting ur configs that are in the xbmc directory as well? and are you also on 9.11?
Reply
#7
b00sted4fun Wrote:from your config i got lirc to start but still the remote dont work.. would you mind posting ur configs that are in the xbmc directory as well? and are you also on 9.11?

Yes, but your version of xbmc doesnt matter here.

This is my mapping of the remote
Code:
<remote>
      <three>VolumeUp</three>
      <six>VolumeDown</six>
      <nine>Mute</nine>
      <play>Play</play>
      <pause>Pause</pause>
      <stop>Stop</stop>
      <forward>FastForward</forward>
      <reverse>Rewind</reverse>
      <left>Left</left>
      <right>Right</right>
      <up>Up</up>
      <down>Down</down>
      <select>Select</select>
      <pageplus>PageUp</pageplus>
      <pageminus>PageDown</pageminus>
      <back>ParentDir</back>
      <menu>PreviousMenu</menu>
      <title>ContextMenu</title>
      <info>Info</info>
      <skipplus>SkipNext</skipplus>
      <skipminus>SkipPrevious</skipminus>
      <display>FullScreen</display>
      <start>PreviousMenu</start>
      <record>Screenshot</record>
      <volumeplus>VolumeUp</volumeplus>
      <volumeminus>VolumeDown</volumeminus>
      <mute>Mute</mute>
      <power>XBMC.ShutDown()</power>
      <myvideo>XBMC.ActivateWindow(MyVideos)</myvideo>
      <mymusic>XBMC.ActivateWindow(MyMusic)</mymusic>
      <mypictures>XBMC.ActivateWindow(MyPictures)</mypictures>
      <mytv>XBMC.ActivateWindow(Home)</mytv>
    </remote>

watson540 Wrote:it happens with kernel upgrades ^^ if that module isnt "shipped" with the kernel or you didnt compile the kernel or yourself or if its a module out of the kernel tree

So long that the installed lircd from the lets say ubuntu package system the module should get reinstalled with offical kernel upgrades Smile
Reply
#8
jeey Wrote:Yes, but your version of xbmc doesnt matter here.

This is my mapping of the remote
Code:
<remote>
      <three>VolumeUp</three>
      <six>VolumeDown</six>
      <nine>Mute</nine>
      <play>Play</play>
      <pause>Pause</pause>
      <stop>Stop</stop>
      <forward>FastForward</forward>
      <reverse>Rewind</reverse>
      <left>Left</left>
      <right>Right</right>
      <up>Up</up>
      <down>Down</down>
      <select>Select</select>
      <pageplus>PageUp</pageplus>
      <pageminus>PageDown</pageminus>
      <back>ParentDir</back>
      <menu>PreviousMenu</menu>
      <title>ContextMenu</title>
      <info>Info</info>
      <skipplus>SkipNext</skipplus>
      <skipminus>SkipPrevious</skipminus>
      <display>FullScreen</display>
      <start>PreviousMenu</start>
      <record>Screenshot</record>
      <volumeplus>VolumeUp</volumeplus>
      <volumeminus>VolumeDown</volumeminus>
      <mute>Mute</mute>
      <power>XBMC.ShutDown()</power>
      <myvideo>XBMC.ActivateWindow(MyVideos)</myvideo>
      <mymusic>XBMC.ActivateWindow(MyMusic)</mymusic>
      <mypictures>XBMC.ActivateWindow(MyPictures)</mypictures>
      <mytv>XBMC.ActivateWindow(Home)</mytv>
    </remote>



So long that the installed lircd from the lets say ubuntu package system the module should get reinstalled with offical kernel upgrades Smile

ok, ok I am missing something here.. i used all of your stuff and put the above in my keyboard.xml and still nothing... this is making me a sad panda.
Reply
#9
b00sted4fun Wrote:ok, ok I am missing something here.. i used all of your stuff and put the above in my keyboard.xml and still nothing... this is making me a sad panda.

keyboard.xml ? thats wrong

The correct file is Keymap.xml placed in profile/userdata

Please remeber there are 2 xbox360 remotes, one big and one small. Im using the biggest, dont know if there is any IR code changes between those to motes.


I actually forgot some codes earlier
Code:
<universalremote>
          <obc1>ContextMenu</obc1>
#         <obc3>StepBack</obc3>
#         <obc2>StepForward</obc2>
        <obc3>SkipPrevious</obc3>
        <obc2>SkipNext</obc2>
        </universalremote>

    <remote>
      <three>VolumeUp</three>
      <six>VolumeDown</six>
      <nine>Mute</nine>
      <play>Play</play>
      <pause>Pause</pause>
      <stop>Stop</stop>
      <forward>FastForward</forward>
      <reverse>Rewind</reverse>
      <left>Left</left>
      <right>Right</right>
      <up>Up</up>
      <down>Down</down>
      <select>Select</select>
      <pageplus>PageUp</pageplus>
      <pageminus>PageDown</pageminus>
      <back>ParentDir</back>
      <menu>PreviousMenu</menu>
      <title>ContextMenu</title>
      <info>Info</info>
      <skipplus>SkipNext</skipplus>
      <skipminus>SkipPrevious</skipminus>
      <display>FullScreen</display>
      <start>PreviousMenu</start>
      <record>Screenshot</record>
      <volumeplus>VolumeUp</volumeplus>
      <volumeminus>VolumeDown</volumeminus>
      <mute>Mute</mute>
      <power>XBMC.ShutDown()</power>
      <myvideo>XBMC.ActivateWindow(MyVideos)</myvideo>
      <mymusic>XBMC.ActivateWindow(MyMusic)</mymusic>
      <mypictures>XBMC.ActivateWindow(MyPictures)</mypictures>
      <mytv>XBMC.ActivateWindow(Home)</mytv>
    </remote>
Reply
#10
jeey Wrote:keyboard.xml ? thats wrong

The correct file is Keymap.xml placed in profile/userdata

Please remeber there are 2 xbox360 remotes, one big and one small. Im using the biggest, dont know if there is any IR code changes between those to motes.


I actually forgot some codes earlier
Code:
<universalremote>
          <obc1>ContextMenu</obc1>
#         <obc3>StepBack</obc3>
#         <obc2>StepForward</obc2>
        <obc3>SkipPrevious</obc3>
        <obc2>SkipNext</obc2>
        </universalremote>

    <remote>
      <three>VolumeUp</three>
      <six>VolumeDown</six>
      <nine>Mute</nine>
      <play>Play</play>
      <pause>Pause</pause>
      <stop>Stop</stop>
      <forward>FastForward</forward>
      <reverse>Rewind</reverse>
      <left>Left</left>
      <right>Right</right>
      <up>Up</up>
      <down>Down</down>
      <select>Select</select>
      <pageplus>PageUp</pageplus>
      <pageminus>PageDown</pageminus>
      <back>ParentDir</back>
      <menu>PreviousMenu</menu>
      <title>ContextMenu</title>
      <info>Info</info>
      <skipplus>SkipNext</skipplus>
      <skipminus>SkipPrevious</skipminus>
      <display>FullScreen</display>
      <start>PreviousMenu</start>
      <record>Screenshot</record>
      <volumeplus>VolumeUp</volumeplus>
      <volumeminus>VolumeDown</volumeminus>
      <mute>Mute</mute>
      <power>XBMC.ShutDown()</power>
      <myvideo>XBMC.ActivateWindow(MyVideos)</myvideo>
      <mymusic>XBMC.ActivateWindow(MyMusic)</mymusic>
      <mypictures>XBMC.ActivateWindow(MyPictures)</mypictures>
      <mytv>XBMC.ActivateWindow(Home)</mytv>
    </remote>


ya i got the bigger one as well... and i thought the same thing until I read this...

http://wiki.xbmc.org/?title=Keymap.xml

i am so lost and confused. as I stated it worked good in 9.04 as soon as i went to 9.11 build all hell broke loose.
Reply
#11
I assume that you mappped the remote your self ?

You could swap your mapping config with mine, and everything should work as normal

Without you having to change the mappings
Reply
#12
Here are some notes I made for getting my 360 remote working with camelot: (note this is for a clean install of xbmc live 9.11)

for new camelot build, in /etc/lirc for the xbox360 remote, only need to update lircd.conf, leave hardware.conf at default

Lircmap.xml goes into: /.xbmc/userdata

remote.xml goes into: /.xbmc/userdata/keymaps

lircmd.conf isn't needed:
xbmc@xbmc06:/etc/lirc$ sudo mv lircmd.conf lircmd.conf.orig

Lircmap.xml:
https://docs.google.com/Doc?docid=0Advgh...NGNk&hl=en

remote.xml:
https://docs.google.com/Doc?docid=0Advgh...NjRx&hl=en

lircd.conf:
https://docs.google.com/Doc?docid=0Advgh...N2Z2&hl=en
Reply
#13
gabbott Wrote:Here are some notes I made for getting my 360 remote working with camelot: (note this is for a clean install of xbmc live 9.11)

for new camelot build, in /etc/lirc for the xbox360 remote, only need to update lircd.conf, leave hardware.conf at default

Lircmap.xml goes into: /.xbmc/userdata

remote.xml goes into: /.xbmc/userdata/keymaps

lircmd.conf isn't needed:
xbmc@xbmc06:/etc/lirc$ sudo mv lircmd.conf lircmd.conf.orig

Lircmap.xml:
https://docs.google.com/Doc?docid=0Advgh...NGNk&hl=en

remote.xml:
https://docs.google.com/Doc?docid=0Advgh...NjRx&hl=en

lircd.conf:
https://docs.google.com/Doc?docid=0Advgh...N2Z2&hl=en

I fugging love you.
Reply
#14
Glad I could help. One note, with that setup the Red (B) button on the remote is mapped to toggle subs on and off. Something I added since it wasn't setup to do anything anyway.
Reply
#15
gabbott Wrote:Glad I could help. One note, with that setup the Red (B) button on the remote is mapped to toggle subs on and off. Something I added since it wasn't setup to do anything anyway.

thanks again man!
Reply

Logout Mark Read Team Forum Stats Members Help
Lirc + MCE USB + Xbox 360 remote + Newest build = Angry Wife :(0