Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[SOLVED] remote only works on xbmc (not system) restart
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Solved: remote only works on xbmc (not system) restart
4th Jun, 2014, 12:58 AM
Post: #1
Ollie Smith Offline
Registered
Posts: 3
Joined: Jun 2014
Reputation: 0
remote only works on xbmc (not system) restart
Hello,
I have xbian RC2 and i've managed to setup a gpio ir receiver with lirc which is an absolute pain and took way too long. the problem is it only works if i "stop xbmc" and "start xbmc" again from ssh

anyway through perserverance i do the following to get ir working from a clean xbian RC2

Setp 1: add "lirc_rpi gpio_in_pin=14" to /etc/modules

Setp 2: mv /etc/lirc/hardware/lirc_rpi.conf /etc/lirc/hardware.conf

Step 3: remove -u from LIRCD_ARGS="-u" in above file (fixes double input glitch)

Step 4: copy my lircd.conf to /etc/lirc/

My lircd.conf (Click to View)
# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.9.1-git(default) on Fri May 30 23:08:50 2014
#
# contributed by
#
# brand: /home/xbian/remote10.conf
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote

name Trust_RC-2400
bits 13
flags RC6|CONST_LENGTH
eps 30
aeps 100

header 2779 824
one 517 384
zero 517 384
pre_data_bits 24
pre_data 0x1BFF82
gap 106205
toggle_bit_mask 0x8000
rc6_mask 0x100000000

begin codes
KEY_POWER 0x0BF3
KEY_IMAGES 0x0BB6
KEY_RADIO 0x0BAF
KEY_VIDEO 0x0BB5
KEY_AUDIO 0x0BB8
KEY_RECORD 0x0BE8
KEY_PAUSE 0x0BE7
KEY_STOP 0x0BE6
KEY_FRAMEBACK 0x0BE4
KEY_PLAY 0x0BE9
KEY_FRAMEFORWARD 0x0BE5
KEY_REWIND 0x0BEA
KEY_HOME 0x0BF2
KEY_FASTFORWARD 0x0BEB
KEY_BACK 0x0BDC
KEY_INFO 0x0BF0
KEY_VOLUMEUP 0x0BEF
KEY_VOLUMEDOWN 0x0BEE
KEY_CHANNELUP 0x0BED
KEY_CHANNELDOWN 0x0BEC
KEY_UP 0x0BE1
KEY_DOWN 0x0BE0
KEY_LEFT 0x0BDF
KEY_RIGHT 0x0BDE
KEY_OK 0x0BDD
KEY_MUTE 0x0BF1
KEY_SEARCH 0x0BB7
KEY_EPG 0x0BD9
KEY_TV 0x0BDA
KEY_MENU 0x0BDB
KEY_1 0x0BFE
KEY_2 0x0BFD
KEY_3 0x0BFC
KEY_4 0x0BFB
KEY_5 0x0BFA
KEY_6 0x0BF9
KEY_7 0x0BF8
KEY_8 0x0BF7
KEY_9 0x0BF6
KEY_ZOOMIN* 0x0BE2
KEY_0 0x0BFF
KEY_ZOOMOUT# 0x0BE3
KEY_CLEAR 0x0BF5
KEY_SUBTITLE 0x0BA5
KEY_ENTER 0x0BF4
KEY_RED 0x0BA4
KEY_GREEN 0x0BA3
KEY_YELLOW 0x0BA2
KEY_BLUE 0x0BA1
end codes

end remote

Step 5: copy my Lircmap.xml to /home/xbian/.xbmc/userdata

Code:
<lircmap>
    <remote device="devinput">
    <altname>Trust_RC-2400</altname>
        <left>KEY_LEFT</left>
        <right>KEY_RIGHT</right>
        <up>KEY_UP</up>
        <down>KEY_DOWN</down>
        <select>KEY_OK</select>
        <start>KEY_HOME</start>
        <back>KEY_BACK</back>
        <play>KEY_PLAY</play>
        <pause>KEY_PAUSE</pause>
        <stop>KEY_STOP</stop>
        <forward>KEY_FASTFORWARD</forward>
        <reverse>KEY_REWIND</reverse>
        <volumeplus>KEY_VOLUMEUP</volumeplus>
        <volumeminus>KEY_VOLUMEDOWN</volumeminus>
        <pageplus>KEY_CHANNELUP</pageplus>
        <pageminus>KEY_CHANNELDOWN</pageminus>
        <subtitle>KEY_SUBTITLE</subtitle>
        <skipplus>KEY_FRAMEFORWARD</skipplus>
        <skipminus>KEY_FRAMEBACK</skipminus>
        <mute>KEY_MUTE</mute>
        <power>KEY_POWER</power>
        <myvideo>KEY_VIDEO</myvideo>
        <mymusic>KEY_AUDIO</mymusic>
        <mypicture>KEY_IMAGES</mypicture>
        <one>KEY_1</one>
        <two>KEY_2</two>
        <three>KEY_3</three>
        <four>KEY_4</four>
        <five>KEY_5</five>
        <six>KEY_6</six>
        <seven>KEY_7</seven>
        <eight>KEY_8</eight>
        <nine>KEY_9</nine>
        <zero>KEY_0</zero>
        <red>KEY_RED</red>
        <green>KEY_GREEN</green>
        <yellow>KEY_YELLOW</yellow>
        <blue>KEY_BLUE</blue>
        <menu>KEY_MENU</menu>
        <clear>KEY_CLEAR</clear>
        <info>KEY_INFO</info>
    </remote>
</lircmap>

irw Snippet
Terminal

root@xbian:~# irw
000000037ff04be1 00 KEY_UP Trust_RC-2400
000000037ff04be0 00 KEY_DOWN Trust_RC-2400
000000037ff04be0 01 KEY_DOWN Trust_RC-2400
000000037ff04bdf 00 KEY_LEFT Trust_RC-2400
000000037ff04bdf 01 KEY_LEFT Trust_RC-2400
000000037ff04bde 00 KEY_RIGHT Trust_RC-2400
000000037ff04bf3 00 KEY_POWER Trust_RC-2400
000000037ff04bfe 00 KEY_1 Trust_RC-2400
000000037ff04bfd 00 KEY_2 Trust_RC-2400
000000037ff04bfd 01 KEY_2 Trust_RC-2400
000000037ff04bfc 00 KEY_3 Trust_RC-2400
000000037ff04bfb 00 KEY_4 Trust_RC-2400
000000037ff04bfb 01 KEY_4 Trust_RC-2400
000000037ff04bfa 00 KEY_5 Trust_RC-2400
000000037ff04bf9 00 KEY_6 Trust_RC-2400
000000037ff04bf6 00 KEY_9 Trust_RC-2400
000000037ff04bf6 01 KEY_9 Trust_RC-2400
000000037ff04bf6 02 KEY_9 Trust_RC-2400
000000037ff04bf7 00 KEY_8 Trust_RC-2400
000000037ff04bf8 00 KEY_7 Trust_RC-2400
000000037ff04be2 00 KEY_ZOOMIN* Trust_RC-2400
000000037ff04bff 00 KEY_0 Trust_RC-2400
000000037ff04bff 01 KEY_0 Trust_RC-2400
000000037ff04be3 00 KEY_ZOOMOUT# Trust_RC-2400
000000037ff04be3 01 KEY_ZOOMOUT# Trust_RC-2400

So, after restart of system, irw allways shows up fine but xbmc only responds after ssh stop/start.

Fixed it by delaying xbmc start
Modified /etc/init/xbmc-preload.conf

"start on starting mountall"
to
"start on stopping mountall and started networking and net-device-up wlan0"
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
remote only works on xbmc (not system) restart - Ollie Smith - 4th Jun, 2014 12:58 AM
RE: remote only works on xbmc (not system) restart - CurlyMo - 4th Jun, 2014, 01:03 AM
RE: remote only works on xbmc (not system) restart - Ollie Smith - 4th Jun, 2014, 01:39 AM
RE: remote only works on xbmc (not system) restart - CurlyMo - 4th Jun, 2014, 01:54 AM
RE: remote only works on xbmc (not system) restart - Ollie Smith - 4th Jun, 2014, 02:44 AM
RE: remote only works on xbmc (not system) restart - prelsidente - 14th Jun, 2014, 08:42 PM
RE: remote only works on xbmc (not system) restart - CurlyMo - 4th Jun, 2014, 03:23 AM
RE: remote only works on xbmc (not system) restart - mk01 - 22nd Jun, 2014, 07:33 AM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 5th Jun, 2025, 07:00 PM Powered By MyBB, © 2002-2025 MyBB Group.