Kodi Community Forum

Full Version: IR Remote not work!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a configurated lirc. irw worked.
I have a /home/xbmc/.xbmc/userdata/Lircmap.xml with right "device="
I have a default /home/xbmc/.xbmc/userdata/keymaps/remote.xml

xbmc.log:
NOTICE: special://masterprofile/ is mapped to: /home/xbmc/.xbmc/userdata
NOTICE: special://profile/ is mapped to: special://masterprofile/
INFO: LIRC Initialize: sucessfully started on: /dev/lircd
INFO: Loading special://xbmc/system/keymaps/remote.xml
INFO: Loading special://profile/keymaps/remote.xml
INFO: Loading special://xbmc/system/Lircmap.xml
INFO: Loading special://profile/Lircmap.xml

But! Remote control not worked :-( No scancode for remote is in log.
What might be wrong?
have you configured lirc? You need to have a /etc/lirc/lircd.conf and hardware.conf working with your remote.
outleradam Wrote:have you configured lirc?
I says: "irw work".
The same problem with AverMedia RM-FP (Volar X).
irw works.
"userdata/Lircmap.xml" present.
In "xbmc.log" apear strings like
Code:
16:28:24 T:3078637456 M:1825767424   DEBUG: LIRC: Update - NEW at 46963:0000000080010072 00 VOL_DOWN AverMedia_RM-FP (VOL_DOWN)
but nothing changes in XBMC.
Lircmap.xml
Code:
<lircmap>
        <remote device="AverMedia_RM-FP">
#               <>SOURCE</>
                <power>POWER</power>
                <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>
                <display>DISPLAY</display>
#               <>CH_RTN</>
#               <>SNAPSHOT</>
#               <>16-CH_PREV</>
                <channelplus>CHAN_UP</channelplus>
                <volumeminus>VOL_DOWN</volumeminus>
                <volumeplus>VOL_UP</volumeplus>
                <channelminus>CHAN_DOWN</channelminus>
#               <>FULLSCREEN</>
                <mute>MUTE</mute>
#               <>AUDIO</>
                <record>RECORD</record>
                <play>PLAY</play>
                <stop>STOP</stop>
                <pause>PAUSE</pause>
                <reverse>REW</reverse>
                <forward>FFWD</forward>
#               <>TELETEXT</>
                <skipminus>BACK</skipminus>
                <skipplus>FWD</skipplus>
#               <>EPG</>
                <menu>MENU</menu>
        </remote>
</lircmap>
I followed http://doc.ubuntu-fr.org/avermedia_avert...x_usb_a815 installing dvb-t device.

I've also inserted
Code:
options usbhid quirks=0x07ca:0xa815:0x04
into /etc/modprobe.d/usbhid, as it is written here: http://www.linuxtv.org/wiki/index.php/AV...%28A815%29
Without that remote works incorrectly. For example. I press "Volume Down" button ONCE and XBMC decreases volume to "0%". Then I press "Volume Up" ONCE and XBMC increases volume up to "100%".
A part of xbmc.log without "/etc/modprobe.d/usbhid" modifications
Code:
16:50:16 T:3060406160 M:1825488896   DEBUG: LIRC: Update - NEW at 52624:0000000080010072 00 VOL_DOWN AverMedia_RM-FP (VOL_DOWN)
16:50:16 T:3060406160 M:1825488896   DEBUG: SDLKeyboard: scancode: 37, sym: 306, unicode: 0, modifier: 0
16:50:16 T:3060406160 M:1825488896   DEBUG: SDLKeyboard: scancode: 64, sym: 308, unicode: 0, modifier: 40
16:50:16 T:3060406160 M:1825488896   DEBUG: OnKey: 61602 pressed, action is 0
16:50:16 T:3060406160 M:1825488896   DEBUG: SDLKeyboard: scancode: 20, sym: 45, unicode: 45, modifier: 140
16:50:16 T:3060406160 M:1825488896   DEBUG: OnKey: 61629 pressed, action is 89
16:50:16 T:3060406160 M:1825488896   DEBUG: ------ Window Init (DialogVolumeBar.xml) ------
16:50:16 T:3060406160 M:1825488896   DEBUG: Alloc resources: 0.01ms (0.00 ms skin load)
16:50:16 T:3060406160 M:1825488896   DEBUG: Load home-button-focus.gif: 0.8ms (bundled)
16:50:16 T:3060406160 M:1825488896   DEBUG: SDLKeyboard: scancode: 20, sym: 45, unicode: 45, modifier: 140
16:50:16 T:3060406160 M:1825488896   DEBUG: OnKey: 61629 pressed, action is 89
16:50:16 T:3060406160 M:1825488896   DEBUG: SDLKeyboard: scancode: 20, sym: 45, unicode: 45, modifier: 140
16:50:16 T:3060406160 M:1825488896   DEBUG: OnKey: 61629 pressed, action is 89
16:50:16 T:3060406160 M:1825488896   DEBUG: SDLKeyboard: scancode: 20, sym: 45, unicode: 45, modifier: 140
16:50:16 T:3060406160 M:1825488896   DEBUG: OnKey: 61629 pressed, action is 89
16:50:16 T:3060406160 M:1825488896   DEBUG: SDLKeyboard: scancode: 20, sym: 45, unicode: 45, modifier: 140
16:50:16 T:3060406160 M:1825488896   DEBUG: OnKey: 61629 pressed, action is 89
16:50:16 T:3060406160 M:1825488896   DEBUG: SDLKeyboard: scancode: 20, sym: 45, unicode: 45, modifier: 140
16:50:16 T:3060406160 M:1825488896   DEBUG: OnKey: 61629 pressed, action is 89
16:50:16 T:3060406160 M:1825488896   DEBUG: SDLKeyboard: scancode: 20, sym: 45, unicode: 45, modifier: 140
16:50:16 T:3060406160 M:1825488896   DEBUG: OnKey: 61629 pressed, action is 89
16:50:16 T:3060406160 M:1825488896   DEBUG: SDLKeyboard: scancode: 20, sym: 45, unicode: 45, modifier: 140
16:50:16 T:3060406160 M:1825488896   DEBUG: OnKey: 61629 pressed, action is 89
16:50:16 T:3060406160 M:1825488896   DEBUG: SDLKeyboard: scancode: 20, sym: 45, unicode: 45, modifier: 140
16:50:16 T:3060406160 M:1825488896   DEBUG: OnKey: 61629 pressed, action is 89
16:50:16 T:3060406160 M:1825488896   DEBUG: SDLKeyboard: scancode: 20, sym: 45, unicode: 45, modifier: 140
16:50:16 T:3060406160 M:1825488896   DEBUG: OnKey: 61629 pressed, action is 89
and so on.

I use fresh svn build (rev 24892).
Please, help me make my remote to work.
I think this is a problem -
man irw:
"irw will connect to any Unix domain socket and will print the data that it receives to stdout. If you don't give it a socket name argument it will watch /var/run/lirc/lircd."

But xbmc.log:
"INFO: LIRC Initialize: sucessfully started on: /dev/lircd"

# irw /dev/lircd - not worked
# irw /var/run/lirc/lircd - works as well as simply
# irw

How to configure XBMC to LIRC Initialize on /var/run/lirc/lircd?
Or lircd to use socket /dev/lircd instead /var/run/lirc/lircd?
@Stager
The simplest way is to make a symlink from /var/run/lirc/lircd to /dev/lircd:
Code:
ln -s /var/run/lirc/lircd /dev/lircd

This Symlink will be deleted at the next reboot, so you should add the following line to the Script /etc/init.d/lirc:
Code:
[ -h "/dev/lircd" ]||ln -s /var/run/lirc/lircd /dev/lircd

I added the line at the end of the start)-Block, this means before these lines
Code:
;;
    stop)
        if $START_LIRCMD; then
...

Edit: This solved my problems with Lirc too Smile
Theoreticaly, another way - set
REMOTE_SOCKET="/dev/lircd"
in /etc/lirc/hardware.conf

But it works strangely - after reboot "irw /dev/lircd" not worked. Ir control XBMC - too.
If say "/etc/init.d/lirc restart" - "irw /dev/lircd" worked. If after this restart XBMC - ir control worked too.
I just had a similar problem setting my xbox remote on a fresh live install. This solution fixed it, thanks!