[LIVE] Alpha 2 + XBOX IR fails | LIRC loads - IRW doesn't show codes
#1
Exclamation 
First off... sorry for the long post, but I have been reading a ton and I cannot get this to work. I wanted to provide as much info as possible.

Running:
XBMC Live Alpha 2 (HDD Install)
ASRock ION 330
Original XBOX DVD Remote with IR Receiver (connected with USB dongle)

Problem: XBOX remote control doesn't work. If I run "irw" or "irw /dev/lircd" it shows a flashing cursor, but when I press the remote control buttons nothing appears. If I run "irw /dev/lirc0" I get "connection: Connection refused".
Things I know: XBOX remote + IR work flawless on my XBOX

lsusb shows:
Code:
Bus 002 Device 004: ID 045e:0284 Microsoft Corp. Xbox DVD Playback Kit

lsmod | grep mce shows:
Code:
lirc_mceusb            15520  0
lirc_dev               10804  4 lirc_mceusb,lirc_atiusb

ls -al /dev/li* shows:
Code:
crw-rw---- 1 root root 61, 0 2009-11-29 13:01 /dev/lirc0
lrwxrwxrwx 1 root root    19 2009-11-29 13:01 /dev/lircd -> /var/run/lirc/lircd

grep lirc /var/log/daemon.log shows:
Code:
Nov 28 14:42:24 XBMCLive lircd-0.8.6[1140]: lircd(default) ready, using /var/run/lirc/lircd
Nov 28 14:42:33 XBMCLive lircd-0.8.6[1140]: accepted new client on /var/run/lirc/lircd
Nov 28 14:42:33 XBMCLive lircd-0.8.6[1140]: could not get file information for /dev/lirc0
Nov 28 14:42:33 XBMCLive lircd-0.8.6[1140]: default_init(): No such file or directory
Nov 28 14:42:33 XBMCLive lircd-0.8.6[1140]: Failed to initialize hardware
Nov 28 20:08:29 XBMCLive lircd-0.8.6[1133]: lircd(default) ready, using /var/run/lirc/lircd
Nov 28 20:08:38 XBMCLive lircd-0.8.6[1133]: accepted new client on /var/run/lirc/lircd
Nov 28 20:08:38 XBMCLive lircd-0.8.6[1133]: could not get file information for /dev/lirc0
Nov 28 20:08:38 XBMCLive lircd-0.8.6[1133]: default_init(): No such file or directory
Nov 28 20:08:38 XBMCLive lircd-0.8.6[1133]: Failed to initialize hardware
Nov 28 23:17:51 XBMCLive lircd-0.8.6[1150]: lircd(default) ready, using /var/run/lirc/lircd
Nov 28 23:18:00 XBMCLive lircd-0.8.6[1150]: accepted new client on /var/run/lirc/lircd
Nov 28 23:18:00 XBMCLive lircd-0.8.6[1150]: could not get file information for /dev/lirc0
Nov 28 23:18:00 XBMCLive lircd-0.8.6[1150]: default_init(): No such file or directory
Nov 28 23:18:00 XBMCLive lircd-0.8.6[1150]: Failed to initialize hardware
Nov 28 23:20:56 XBMCLive lircd-0.8.6[1150]: accepted new client on /var/run/lirc/lircd
Nov 28 23:21:19 XBMCLive lircd-0.8.6[1150]: removed client
Nov 28 23:21:46 XBMCLive lircd-0.8.6[1150]: accepted new client on /var/run/lirc/lircd
Nov 28 23:22:01 XBMCLive lircd-0.8.6[1150]: removed client
Nov 28 23:23:21 XBMCLive lircd-0.8.6[1150]: accepted new client on /var/run/lirc/lircd
Nov 28 23:23:34 XBMCLive lircd-0.8.6[1150]: removed client
Nov 28 23:31:00 XBMCLive lircd-0.8.6[764]: lircd(default) ready, using /var/run/lirc/lircd
Nov 28 23:31:10 XBMCLive lircd-0.8.6[764]: accepted new client on /var/run/lirc/lircd
Nov 28 23:33:58 XBMCLive lircd-0.8.6[764]: accepted new client on /var/run/lirc/lircd
Nov 28 23:34:09 XBMCLive lircd-0.8.6[764]: removed client
You can see when the first time I connected the IR to XBMC...

ps aux | grep lircd shows:
Code:
root       777  0.0  0.0   3028   604 ?        S<s  23:46   0:00 /usr/sbin/lircd --output=/var/run/lirc/lircd --device=/dev/lirc0
root      5496  0.0  0.0   3040   784 pts/0    S+   23:49   0:00 grep lircd

/etc/lirc/lircd.conf contains:
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 (new version Philips et al.) remote:
include "/usr/share/lirc/remotes/mceusb/lircd.conf.mceusb"

/usr/share/lirc/remotes/mceusb/lircd.conf.mceusb is default and un-touched.

/etc/lirc/hardware.conf contains:
Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Windows Media Center Remotes (new version Philips et al.)"
REMOTE_MODULES="lirc_dev lirc_mceusb2"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
REMOTE_LIRCD_CONF="mceusb/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=""

grep lirc /home/xbmc/.xbmc/temp/xbmc.log shows:
Code:
13:01:31 T:3077490576 M:1765711872    INFO: LIRC Initialize: sucessfully started on: /dev/lircd

/etc/modprobe.d/blacklist.conf contains:
Code:
# This file lists those modules which we don't want to be loaded by
# alias expansion, usually so some other driver will be loaded for the
# device instead.

# evbug is a debug tool that should be loaded explicitly
blacklist evbug

# these drivers are very simple, the HID drivers are usually preferred
blacklist usbmouse
blacklist usbkbd

# replaced by e100
blacklist eepro100

# replaced by tulip
blacklist de4x5

# causes no end of confusion by creating unexpected network interfaces
blacklist eth1394

# snd_intel8x0m can interfere with snd_intel8x0, doesn't seem to support much
# hardware on its own (Ubuntu bug #2011, #6810)
blacklist snd_intel8x0m

# Conflicts with dvb driver (which is better for handling this device)
blacklist snd_aw2

# causes failure to suspend on HP compaq nc6000 (Ubuntu: #10306)
blacklist i2c_i801

# replaced by p54pci
blacklist prism54

# replaced by b43 and ssb.
blacklist bcm43xx

# most apps now use garmin usb driver directly (Ubuntu: #114565)
blacklist garmin_gps

# replaced by asus-laptop (Ubuntu: #184721)
blacklist asus_acpi

# low-quality, just noise when being used for sound playback, causes
# hangs at desktop session start (Ubuntu: #246969)
blacklist snd_pcsp

# ugly and loud noise, getting on everyone's nerves; this should be done by a
# nice pulseaudio bing (Ubuntu: #77010)
blacklist pcspkr

# EDAC driver for amd76x clashes with the agp driver preventing the aperture
# from being initialised (Ubuntu: #297750). Blacklist so that the driver
# continues to build and is installable for the few cases where its
# really needed.
blacklist amd76x_edac

# for XBOX DVD Remote IR receiver
blacklist xpad
I did add the blacklist xpad and it is the only change to any file that I have kept.

-------------------------------------

I followed many posts including this post: http://forum.xbmc.org/showpost.php?p=256595&postcount=7 but then LIRC wouldn't load so I copied back my hardware.conf & lircd.conf backups.

Can anyone suggest some next action steps to troubleshoot this?
Thank you very much for your assistance!

EDIT:
I wanted to make sure the USB dongle was working, so I used it on my main PC with an XBOX controller and I was successful. So now I'm 100% convinced that it is not a hardware issue and just something silly with the config.
Reply
#2
Your using an "Original XBOX DVD Remote" but your lirc configs are for Windows Media Center Remotes.

Try these

hardware.conf


Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="None"
REMOTE_MODULES="lirc_atiusb lirc_dev"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF=""
REMOTE_LIRCD_ARGS="-r"

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
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="lircd.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="true"
START_LIRCMD=""
lircd.conf
Code:
# this config file was automatically generated
# using lirc-0.8.3-CVS(default) on Fri Feb  8 09:34:50 2008
#
# brand: Microsoft Xbox DVD Receiever (also works with generic)
# remote control: Xbox remote or any remote using RCA DVD player codes

begin remote

  name  XboxDVDDongle
  bits            8
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  gap          163983
  toggle_bit_mask 0x0

      begin codes
          LEFT                     0xA9
          UP                       0xA6
          RIGHT                    0xA8
          DOWN                     0xA7
          SELECT                   0x0B
          1                        0xCE
          2                        0xCD
          3                        0xCC
          4                        0xCB
          5                        0xCA
          6                        0xC9
          7                        0xC8
          8                        0xC7
          9                        0xC6
          0                        0xCF
          MENU                     0xF7
          DISPLAY                  0xD5
          REWIND                   0xE2
          FFWD                     0xE3
          PLAY                     0xEA
          PAUSE                    0xE6
          STOP                     0xE0
          SKIP-                    0xDD
          SKIP+                    0xDF
          TITLE                    0xE5
          INFO                     0xC3
          BACK                     0xD8
      end codes

end remote
Reply
#3
That worked! Thanks a ton! Big Grin

I was under the impression that the MCE ones would work for the XBOX device. I guess not.
Reply
#4
Hmm.. i still cant get thsi working.. What are the steps exactly for a fresh LIVE install . ?
HTPC SPECS:Samsung Series 850 58" PDP
[email protected] (full Screen)
XBMCLive : 10.00
HDD: 500GB WD Blue MOBO:P5n7a-VM
GPU: Geforce 9300/nforce 730i/PCI/SSE2
MEMORY: 2 GIG 1066MHZ DDR3 (single)
CPU: Intel® Core™2 Duo CPU E7500 @ 2.93GHz
Reply
#5
not sure what changed but my remote is working. . Could we get this sticky and have a better explaination on the steps. .
HTPC SPECS:Samsung Series 850 58" PDP
[email protected] (full Screen)
XBMCLive : 10.00
HDD: 500GB WD Blue MOBO:P5n7a-VM
GPU: Geforce 9300/nforce 730i/PCI/SSE2
MEMORY: 2 GIG 1066MHZ DDR3 (single)
CPU: Intel® Core™2 Duo CPU E7500 @ 2.93GHz
Reply
#6
Sad 
Hi, I've just installed XBMC Live and also tried the xbox remote and ir dongle. My problem is sftp with filezilla. To be able to put the .conf files in XBMC in the first place, not just being able to I can't see where you put them because I cannot sftp to it. XBMC finds my mac ok and I can add my Movies and Tv Shows but what concerns me is where do you even put these files as I cannot see them in XBMC Live. I just see a database folder.

I'm assuming when you are able to sftp (frustratingly I can't even tho I've followed advice on the threads in the forums) your able to see the internal file structure of XBMC itself else how the hell do you put the .conf files anywhere for the remote to work. And what about the redcloud driver or am I wrong about that. Using the xbox for 2 years I know all about it in that context but this seems like a whole other issue. Doh' comes to mind cos I am at a loss. Could someone please point me in any direction that is the right one, THANKS.

I'm in now as password wasn't xbmc but I don't know where to place the .conf filesHuh
Reply

Logout Mark Read Team Forum Stats Members Help
[LIVE] Alpha 2 + XBOX IR fails | LIRC loads - IRW doesn't show codes0