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
4th Jun, 2014, 01:03 AM
Post: #2
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: remote only works on xbmc (not system) restart
This is a known issue waiting to be fixed. Can you maybe add it on github to bring it to mk01's attention again?

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
4th Jun, 2014, 01:39 AM
Post: #3
Ollie Smith Offline
Registered
Posts: 3
Joined: Jun 2014
Reputation: 0
RE: remote only works on xbmc (not system) restart
(4th Jun, 2014 01:03 AM)CurlyMo Wrote:  This is a known issue waiting to be fixed. Can you maybe add it on github to bring it to mk01's attention again?

Added to xbian-packages-lirc as an issue. thanks for the quick reply
Find all posts by this user
Quote this message in a reply
4th Jun, 2014, 01:54 AM
Post: #4
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: remote only works on xbmc (not system) restart
Please add all issues to the main xbian repository here:
https://github.com/xbianonpi/xbian/

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
4th Jun, 2014, 02:44 AM
Post: #5
Ollie Smith Offline
Registered
Posts: 3
Joined: Jun 2014
Reputation: 0
RE: remote only works on xbmc (not system) restart
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"

also put the issue in the right place
Find all posts by this user
Quote this message in a reply
4th Jun, 2014, 03:23 AM
Post: #6
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: remote only works on xbmc (not system) restart
Nice one for the wiki Smile

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
14th Jun, 2014, 08:42 PM
Post: #7
prelsidente Offline
Registered
Posts: 1
Joined: Jun 2014
Reputation: 0
RE: remote only works on xbmc (not system) restart
(4th Jun, 2014 02:44 AM)Ollie Smith Wrote:  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"

also put the issue in the right place

It broke my xbian startup.

Then I tried just "start on stopping mountall" and "start on stopping mountall and started networking", but same problem with remote control. I'm running Xbian RC2 and this remote control issue is really annoying since it makes me have to ssh and restart xbmc service each time I reboot xbian.
Find all posts by this user
Quote this message in a reply
22nd Jun, 2014, 07:33 AM
Post: #8
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: remote only works on xbmc (not system) restart
@prelsidente

see my comment at https://github.com/xbianonpi/xbian/issues/549#issuecomment-45655011

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


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

Current time: 12th May, 2025, 05:20 AM Powered By MyBB, © 2002-2025 MyBB Group.