LinHES Forums http://forum.linhes.org/ |
|
Starting Kodi by Remote Control Button http://forum.linhes.org/viewtopic.php?f=25&t=24682 |
Page 1 of 1 |
Author: | nicom [ Mon Sep 11, 2017 11:14 pm ] |
Post subject: | Starting Kodi by Remote Control Button |
I have been trying to get a button on the remote control to start kodi. I created a bash script called StartKodi.sh which simply contains "bash /usr/LH/bin/kodi.sh". The script works fine from the command line although I do get a number of messages. I then modified my ~/remotes/harmony700/lircrc.txt-harmony file to include the following Code: begin As you see I also use the red button to restart X with the help of a bash script which works fine but I cannot get the kodi script to work. As you can also see I have tried different combinations to no avail.#Red button for restart X prog = irexec button = red config = /home/mythtv/RestartX.sh end begin #Yellow button to start Kodi prog = irexec button = yellow # config = /usr/LH/bin/kodi.sh # config = "bash /home/mythtv/StartKodi.sh" config = /home/mythtv/StartKodi.sh end When I run the script from the command line I do get a number of messages/warnings which I don't know is affecting things. I am not running a screensaver. Code: [mythtv@vm-r84 ~]$ bash StartKodi.sh /usr/LH/bin/stop xss.sh: line 8: xscreensaver-command: command not found sh: lsb release: command not found /usr/lib/kodi-xrandr: Failed to get size of gamma for output default libpng warning: iCCP: known incorrect sRGB profile /usr/lib/kodi-xrandr: Failed to get size of gamma for output default /usr/LH/bin/kodi.sh: line 7: 25010 Terminated stop xss.sh [mythtv@vm-r84 ~]$ Am I missing something? |
Author: | tscholl [ Tue Sep 12, 2017 8:00 pm ] |
Post subject: | Re: Starting Kodi by Remote Control Button |
If your using LinHES it;s done for you if you installed it using pacman Media Library /( scroll to) Launch Kodi press OK |
Author: | nicom [ Wed Sep 13, 2017 4:28 pm ] |
Post subject: | Re: Starting Kodi by Remote Control Button |
I have no problem starting Kodi from the menu. As I said I can even start it from the command line. What I am trying to do is assign a button on the remote to do it. |
Author: | mattbatt [ Tue Sep 19, 2017 8:40 pm ] |
Post subject: | Re: Starting Kodi by Remote Control Button |
I did a quick search on my 8.4 install and it seems like all of the remote template files are located under /usr/MythVantage/templates/remotes/ I don't have a directory for ~/remotes/ . Is this a special file you have somehow assigned outside of the LinHES settings GUI? |
Author: | brfransen [ Thu Sep 21, 2017 10:43 am ] |
Post subject: | Re: Starting Kodi by Remote Control Button |
mattbatt the ~/remotes directory is if you create a custom remote template: http://linhes.org/projects/linhes/wiki/ ... -Templates nicom, the screensaver cmd is coming from the /usr/LH/bin/kodi.sh script and those messages can be ignored. There shouldn't be any need to use the StartKodi.sh unless there is some other command than /usr/LH/bin/kodi.sh. Try changing your config line to: Code: /usr/LH/bin/kodi.sh & The "&" will background the task which I have found with irexec is sometimes needed.
|
Author: | nicom [ Mon Sep 25, 2017 11:55 pm ] |
Post subject: | Re: Starting Kodi by Remote Control Button |
Thanks for the suggestion brfransen. Unfortunately it does not work. I will try some other variations. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |