xbmc live and streamzap
#1
Hi,

Installed xbmc-live on a zotac ionitx 330. Everything seems to work ok so far except the remote. I'm using a streamzap. It works on the minimyth, and on my other ubuntu karmic box.

If I push buttons on the remote, I get no action at all on the screen.

if I open a bash box and do an irw /dev/lircd, things seem to work as expected:

[email protected]:/etc/lirc# irw /dev/lircd
00000000000028d4 00 DOWN Streamzap_PC_Remote
00000000000028d4 01 DOWN Streamzap_PC_Remote
00000000000028d4 02 DOWN Streamzap_PC_Remote
00000000000028d4 03 DOWN Streamzap_PC_Remote
00000000000028d4 04 DOWN Streamzap_PC_Remote
00000000000028d3 00 RIGHT Streamzap_PC_Remote
00000000000028d3 01 RIGHT Streamzap_PC_Remote
00000000000028d3 02 RIGHT Streamzap_PC_Remote
00000000000028d3 03 RIGHT Streamzap_PC_Remote
00000000000028d3 04 RIGHT Streamzap_PC_Remote
00000000000028d3 05 RIGHT Streamzap_PC_Remote
00000000000028d0 00 UP Streamzap_PC_Remote
00000000000028d0 01 UP Streamzap_PC_Remote
00000000000028d0 02 UP Streamzap_PC_Remote
00000000000028d0 03 UP Streamzap_PC_Remote
00000000000028d0 04 UP Streamzap_PC_Remote
00000000000028c8 00 8 Streamzap_PC_Remote
00000000000028c8 01 8 Streamzap_PC_Remote
00000000000028c8 02 8 Streamzap_PC_Remote
00000000000028c8 03 8 Streamzap_PC_Remote
00000000000028c8 04 8 Streamzap_PC_Remote

lircd.conf seems reasonable:

[email protected]:/etc/lirc# ls -la
total 28
drwxr-xr-x 2 root root 4096 2010-07-15 03:03 .
drwxr-xr-x 81 root root 4096 2010-07-19 02:32 ..
-rwxr-xr-x 1 root root 1148 2010-07-15 03:03 hardware.conf
-rwxr-xr-x 1 root root 1167 2010-07-15 03:03 hardware.conf.old
-rw-r--r-- 1 root root 539 2010-07-15 03:03 lircd.conf
-rw-r--r-- 1 root root 561 2010-07-12 03:56 lircd.conf.dpkg-old
-rw-r--r-- 1 root root 121 2009-10-17 06:06 lircmd.conf


[email protected]:/etc/lirc# cat lircd.conf
#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 Streamzap PC Remote remote:
include "/usr/share/lirc/remotes/streamzap/lircd.conf.streamzap"

So what am I missing?

Thanks!
Reply
#2
Have you checked/configured your /etc/lirc/hardware.conf ?
Reply
#3
No, I didn't. It doesn't right, particularly the CONF files. And shouldn't REMOTE_DEVICE be /dev/lircd? But I'm not sure enough to play too much at this point, so any pointers would be appreciated.

Thanks!

[email protected]:/etc/lirc# cat hardware.conf
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Streamzap PC Remote"
REMOTE_MODULES="lirc_dev lirc_streamzap"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
REMOTE_LIRCD_CONF="streamzap/lircd.conf.streamzap"
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=""
REMOTE_SOCKET=""
TRANSMITTER_SOCKET=""
Reply
#4
Yes, in your case REMOTE_DEVICE should be /dev/lircd
Reply
#5
Ok, I'm still not getting it. It can't be this hard.



[email protected]:~# ls -la /dev/lir*
crw-rw---- 1 root root 61, 0 2010-07-20 00:25 /dev/lirc0
lrwxrwxrwx 1 root root 19 2010-07-20 00:25 /dev/lircd -> /var/run/lirc/lircd

[email protected]:~# ls -la /var/run/lirc/
total 4
drwxr-xr-x 2 root root 80 2010-07-20 00:25 .
drwxr-xr-x 12 root root 440 2010-07-20 01:26 ..
srw-rw-rw- 1 root root 0 2010-07-20 00:25 lircd
-rw-r--r-- 1 root root 4 2010-07-20 00:25 lircd.pid

[email protected]:~# irw /dev/lircd
00000000000028c8 00 8 Streamzap_PC_Remote
00000000000028c8 01 8 Streamzap_PC_Remote
00000000000028c8 02 8 Streamzap_PC_Remote
00000000000028c8 03 8 Streamzap_PC_Remote
00000000000028c8 04 8 Streamzap_PC_Remote
00000000000028c8 05 8 Streamzap_PC_Remote
00000000000028c9 00 9 Streamzap_PC_Remote
00000000000028c9 01 9 Streamzap_PC_Remote
00000000000028c9 02 9 Streamzap_PC_Remote
00000000000028c9 03 9 Streamzap_PC_Remote
00000000000028c9 04 9 Streamzap_PC_Remote
00000000000028c9 05 9 Streamzap_PC_Remote
00000000000028c9 06 9 Streamzap_PC_Remote
^C
[email protected]:~# irw /dev/lirc0
connect: Connection refused
[email protected]:~# exit
exit
[email protected]:~$ irw /dev/lircd
00000000000028d4 00 DOWN Streamzap_PC_Remote
00000000000028d4 01 DOWN Streamzap_PC_Remote
00000000000028d4 02 DOWN Streamzap_PC_Remote
00000000000028d4 03 DOWN Streamzap_PC_Remote
00000000000028d4 04 DOWN Streamzap_PC_Remote
00000000000028d4 05 DOWN Streamzap_PC_Remote
00000000000028d3 00 RIGHT Streamzap_PC_Remote
00000000000028d3 01 RIGHT Streamzap_PC_Remote
00000000000028d3 02 RIGHT Streamzap_PC_Remote
00000000000028d3 03 RIGHT Streamzap_PC_Remote
00000000000028d3 04 RIGHT Streamzap_PC_Remote
00000000000028d3 05 RIGHT Streamzap_PC_Remote
^C
[email protected]:~$ irw /dev/lirc0
connect: Permission denied


Googling, there's apparently supposed to be a .lircrc that defines the client-side actions (which I'm assuming is what xbmc is going to do with the signals), but it's not anywhere.
[email protected]:~$ sudo find /usr -iname .lircrc
[email protected]:~$ sudo find /home -iname .lircrc
[email protected]:~$ sudo find / -iname .lircrc |grep -v proc

There is nothing in the debug log:

[email][email protected]:~/.xbmc[/email]/temp$ cat xbmc.log |grep lirc
[email][email protected]:~/.xbmc[/email]/temp$

As I said, it can't be this hard. The same physical remote and the same physical receiver work on the same physical box for minimyth. But of course, the minimyth lirc configuration files have to be completely different (side rant avoided). So what am I missing here?
Reply
#6
XBMC don't have a configuration for your remote so you must make one yourself. It's a files called Lircmap.xml in ~/.xbmc/userdata/Lircmap.xml
More about the file here http://wiki.xbmc.org/index.php?title=Lir...ircmap.xml
And the available button strings http://wiki.xbmc.org/?title=Keymap.xml

To give you a little start, here is my config:
Code:
<lircmap>
  <remote device="VLSystem_MPlay_Blast">
    <left>Left</left>
    <right>Right</right>
    <up>Up</up>
    <down>Down</down>
    <select>Ok</select>
    <volumeplus>Vol+</volumeplus>
    <volumeminus>Vol-</volumeminus>
    <play>Play</play>
    <pause>Pause</pause>
    <stop>Stop</stop>
    <forward>Ffwd</forward>
    <reverse>Rew</reverse>
    <pageplus>Ch+_Lang</pageplus>
    <pageminus>Ch-_Page</pageminus>
    <back>Back</back>
    <menu>Guide</menu>
    <skipplus>Next</skipplus>
    <skipminus>Prev</skipminus>
    <mute>Mute</mute>
    <power>PwrOff</power>
    <myvideo>Movies</myvideo>
    <mymusic>Music</mymusic>
    <mypictures>Photos</mypictures>
    <mytv>Television</mytv>
    <one>1</one>
    <two>2</two>
    <three>3</three>
    <four>4</four>
    <five>5</five>
    <six>6</six>
    <seven>7</seven>
    <eight>8</eight>
    <nine>9</nine>
    <zero>0</zero>
    <info>Detail</info>
  </remote>
</lircmap>

And your start like this:
Code:
<lircmap>
  <remote device="Streamzap_PC_Remote">
    <right>RIGHT</right>
    <down>DOWN</down>
    ...
    ...
  </remote>
</lircmap>
Reply
#7
Thanks! that was the final clue...xbmc doesn't actually set up the streamzap 'middle' interface between lirc and xbmc. Just because it configured a streamzap on install, didn't mean installation was complete. Silly me. I had just about gotten to that point and you confirmed it. So between your pointers (I couldn't figure out from any of the config files where we tell it to find Lircmap.xml) and this post:

http://forum.xbmc.org/showthread.php?tid=29085

which already has a Lircmap.xml for streamzap made up, it's working now.

For future noobs working with this, the .lircrc that is used in other projects is not relevant here. Use the Lircmap.xml and keymap.xml instead.

Once again, thanks.
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
xbmc live and streamzap00
This forum uses Lukasz Tkacz MyBB addons.