Need some Lirc help on Oneiric........
#1
I re-installed my XBMC box recently with Oneiric Ocelot mini.iso (minimal install w. no gui). I backed up my previous Lirc config files and remote.xml, & Lircmap.xml from the previous Dharma installation where my Harmony remote was working great with the Xbox DVD Playback Kit.

I now have Lirc installed and configured on my new Onieric XBMC installation with Eden nightlies and have restored all my backed up config files to the appropriate locations. However the remote is not yet working. So I did some investigation.

Whenever I do a:
Code:
lsusb
at the terminal I get this:

Code:
xbmc@XBMC:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0d8c:0103 C-Media Electronics, Inc. CM102-A+/102S+ AudiController
[b]Bus 002 Device 003: ID 045e:0284 Microsoft Corp. Xbox DVD Playback Kit[/b]
Bus 002 Device 004: ID 046d:c517 Logitech, Inc. LX710 Cordless Desktop Laser

So as you can see the Xbox DVD dongle is showing up.

Now on to step 2...........my Lirc hardware.conf file looks like this:
Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="XBOX DVD Playback Kit"
REMOTE_MODULES="lirc_dev lirc_atiusb"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
REMOTE_LIRCD_CONF="atiusb/lircd.conf.atiusb"
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="false"

# 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=""
REMOTE_SOCKET=""
TRANSMITTER_SOCKET=""

Lirc is successfully starts and is running, but it doesn't appear to be loading lirc_ati usb because I am not able to see /dev/lirc0. Anybody have any ideas on how to troubleshoot why lirc_atiusb is not loading? Any help appreciated.

-hogfan
Image
Reply
#2
It's all changed in the new version. You need to compile the lirc_xbox driver and use that instead.

Take a look at this link for the full, detailed, procedure http://ubuntuforums.org/showpost.php?p=1...stcount=19

I also tried various versions of lirc and I found it to work using version 0.9.0

You're hardware.conf file should be as follows

Code:
REMOTE="Hauppauge Nova-T 500"
REMOTE_MODULES="lirc_xbox lirc_dev"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF=""
REMOTE_LIRCD_ARGS="-r"
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""
START_LIRCD="true"
START_LIRCMD=""
LOAD_MODULES="true"
LIRCMD_CONF=""
FORCE_NONINTERACTIVE_RECONFIGURATION="true"

Hope that helps.
Reply
#3
Thanks, I'll be following this thread. If the eventclients don't get fixed by the time Eden goes live, I'll have to fire up LIRC and use my Xbox remote and dongle instead of my Wii remote. This thread could come in handy.
Reply
#4
Thanks a TON! That got me back up and running. It seems Lirc is always changing.

-hogfan
Image
Reply
#5
Hmmm, something's not working. I followed the linked tutorial, everything seemed to go fine, but my remote's not working and irw isn't picking anything up.

Here's my /etc/lirc/hardware.conf file:
Code:
xbmc@XBMC:~$ cat /etc/lirc/hardware.conf
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="none"
REMOTE_MODULES="lirc_xbox 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=""

#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=""
lsusb doesn't show the XBox remote dongle, but lsmod shows the lirc xbox driver loaded:
Code:
xbmc@XBMC:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 1bcf:0c31 Sunplus Innovation Technology Inc.
Bus 001 Device 004: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 002 Device 003: ID 045e:0745 Microsoft Corp. Nano Transceiver v1.0 for Bluetooth
xbmc@XBMC:~$ lsmod
Module                  Size  Used by
lirc_xbox              17539  0
lirc_dev               18700  1 lirc_xbox
snd_hda_codec_hdmi     31426  1
snd_hda_codec_realtek   254125  1
snd_hda_intel          28358  1
snd_hda_codec          91754  3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep              13276  1 snd_hda_codec
snd_pcm                80435  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_seq_midi           13132  0
joydev                 17393  1
snd_rawmidi            25241  1 snd_seq_midi
snd_seq_midi_event     14475  1 snd_seq_midi
snd_seq                51567  2 snd_seq_midi,snd_seq_midi_event
btusb                  18160  0
snd_timer              28932  2 snd_pcm,snd_seq
bluetooth             148839  1 btusb
snd_seq_device         14172  3 snd_seq_midi,snd_rawmidi,snd_seq
snd                    55902  11  snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
psmouse                63474  0
soundcore              12600  1 snd
serio_raw              12990  0
snd_page_alloc         14108  2 snd_hda_intel,snd_pcm
mei                    36466  0
lp                     17455  0
parport                40930  1 lp
uvesafb                28404  0
usbhid                 41905  0
hid                    77367  1 usbhid
usb_storage            44173  0
uas                    17699  0
i915                  509290  4
drm_kms_helper         32889  1 i915
ahci                   21634  2
libahci                25761  1 ahci
r8168                 202039  0
drm                   196290  5 i915,drm_kms_helper
i2c_algo_bit           13199  1 i915
video                  18908  1 i915
xhci_hcd               77120  0
xbmc@XBMC:~$
I also don't have lirc0 under /dev, I just have lircd.

If anyone has any ideas, I'm all ears. With the eventclients borked, all I have is a keyboard right now, and it sucks.

Edit:
Okay, I feel like a complete 'tard. The dongle had come a bit loose from the USB cable. Reseating it and the cable fixed the issue. Everything's working now.
Reply
#6
Yep, If it doesn't show up when you do a
Code:
lsusb
then there a physical connectivity issue. I didn't buy the adapter to convert the Xbox connector to USB, I followed the guide to solder a usb cable directly onto the dongle when I set mine up. I had your issue once before and one of the soldering points had come loose. Always check that that lsusb first. If you don't get that, you won't get much else Smile


-hogfan
Image
Reply
#7
Damnit it's broken again. Apparently I turned on automatic security updates when I did my minimal install of Oneiric. Everything was working great until a few days ago. I can still see the Xbox DVD dongle with

Code:
lsusb

I followed the instructions in the post linked above again to recompile the Xbox lirc driver after purging lirc with apt. After first putting my hardware.conf file back like it was, Lirc wouldn't start (failed to load Kernel modules). I set "load modules" to false and saved the hardware.conf and lirc started, but still nothing. I changed load modules back to true and restarted lirc and this time it started.....but still no working remote.

Any suggestions to get this working again. Lirc works great when it works, but it seems like the smallest changes break it every time!

Any help is appreciated.

BTW, I'm not seeing

Code:
Module                  Size  Used by
lirc_xbox              17539  0
lirc_dev               18700  1 lirc_xbox
when I do lsmod so I guess it isn't loading the modules, but I don't know why it's not. I have completely removed lirc and recompiled the driver and re-installed 3 times and still no luck.

-hogfan
Image
Reply
#8
Ok, it looks like it is continuing to fail to load the kernel modules. It never really did start when I had load modules set to true, because I had "True" rather than "true" typed in there. Here is the error:

Code:
xbmc@XBMC:~$ sudo service lirc stop
* Stopping remote control daemon(s): LIRC                               [ OK ]
xbmc@XBMC:~$ sudo service lirc start
* Loading LIRC modules                                                  [ OK ]
* Unable to load LIRC kernel modules. Verify your
* selected kernel modules in /etc/lirc/hardware.conf

And here is my current hardware.conf:

Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Hauppauge Nova-T 500"
REMOTE_MODULES="lirc_xbox 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=""

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

-hogfan
Image
Reply
#9
Recompiled everything again and re-installed lirc and still a no go. This time I rebooted after setting up my config files. I went to terminal and stopped lirc. Then I ran

Code:
sudo mode2 -r -d /dev/lirc0

I can see the button presses on my Harmony remote show up in the terminal, so everything is working physically.

When I try to start lirc back up from terminal I get this:

Code:
* Loading LIRC modules                                                                  [ OK ]
* Starting remote control daemon(s) : LIRC                                                     Driver `lirc_xbox' not supported.
Supported drivers:
        accent
        alsa_usb
        asusdh
        atilibusb
        atwf83
        audio
        audio_alsa
        awlibusb
        bte
        bw6130
        commandir
        creative
        creative_infracd
        default
        devinput
        dfclibusb
        dsp
        dvico
        ea65
        ftdi
        i2cuser
        irlink
        irman
        livedrive_midi
        livedrive_seq
        logitech
        macmini
        mp3anywhere
        mplay
        mplay2
        mouseremote
        mouseremote_ps2
        null
        pcmak
        pinsys
        pixelview
        samsung
        sb0540
        silitek
        srm7500libusb
        tira
        tira_raw
        udp
        uirt2
        uirt2_raw
        usb_uirt_raw
        usbx
                                                                                         [fail]

If I do lsmod I can now see:

Code:
xbmc@XBMC:~$ lsmod
Module                  Size  Used by
rfcomm                 38408  0
bluetooth             148839  3 rfcomm
vesafb                 13489  1
snd_usb_audio         100930  0
snd_pcm                80435  1 snd_usb_audio
snd_page_alloc         14115  1 snd_pcm
snd_hwdep              13276  1 snd_usb_audio
snd_usbmidi_lib        24558  1 snd_usb_audio
nvidia              10782577  40
snd_seq_midi           13132  0
snd_rawmidi            25241  2 snd_usbmidi_lib,snd_seq_midi
snd_seq_midi_event     14475  1 snd_seq_midi
snd_seq                51567  2 snd_seq_midi,snd_seq_midi_event
snd_timer              28932  2 snd_pcm,snd_seq
psmouse                73673  0
snd_seq_device         14172  3 snd_seq_midi,snd_rawmidi,snd_seq
serio_raw              12990  0
shpchp                 32356  0
snd                    55902  8 snd_usb_audio,snd_pcm,snd_hwdep,snd_usbmidi_lib,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
lirc_xbox              17539  0
lirc_dev               18700  1 lirc_xbox
soundcore              12600  1 snd
wmi                    18744  0
i2c_nforce2            12906  0
lp                     17455  0
parport                40930  1 lp
ahci                   21634  2
libahci                25727  1 ahci
forcedeth              58103  0

So the module is loaded. So now how can I get lirc to start up? There is no reason it should not work if I have the remote working in mode2 to display the codes.....other than Lirc just being a pain in the ass. Thanks for any suggestions at this point. As soon as I get this working again I am going to clone the damn drive with clonezilla.

-hogfan
Image
Reply
#10
I was able to get it working again!

I had to edit my /etc/hardware.conf file and remove the lirc_xbox from the Remote modules line, leaving only lirc_dev. Hope this helps somebody. Now go clone this drive to prevent future breakage.

-hogfan
Image
Reply
#11
(2012-01-04, 14:09)MindGuerrillas Wrote: Take a look at this link for the full, detailed, procedure http://ubuntuforums.org/showpost.php?p=1...stcount=19

ha ha thats my post, I'm setting up another frontend and had to find how I did it earlier. Thanks
Reply
#12
(2012-04-01, 09:15)mrplow Wrote: ha ha thats my post, I'm setting up another frontend and had to find how I did it earlier. Thanks

That's Hilarious. I do that a lot, myself; I often have to go find my own forum posts to remember how I did something.

Your post was excellent, by the way.
http://ubuntuforums.org/showpost.php?p=1...stcount=19

Followed the instructions line-for-line, except I updated lircd.conf to "include" a new conf file I made in /usr/share/lirc/remotes/xbox/lircd.conf.xbox, so it works just like the mceusb receiver in /usr/share/lirc/remotes/mceusb/lircd.conf.mceusb.

Then all you have to do is add "lirc_xbox" to "REMOTE_MODULES" under /etc/lirc/hardware.conf and point the conf file "REMOTE_LIRCD_CONF" to "xbox/lircd.conf.xbox".

This makes it easy to change back later.

Thanks for the how-to.
Reply
#13
Thanks guys. This worked for me on Frodo too.

Just for info, in a fresh install of Frodo with everything running as default I experienced strange behaviour where pressing a button on the Xbox DVD remote seemed to put the IR receiving (lirc) into a loop and spazzed out XBMC.

Following the steps/links above worked for me to get my Xbox DVD Dongle remote working again.
Reply

Logout Mark Read Team Forum Stats Members Help
Need some Lirc help on Oneiric........0