View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 6 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Sep 11, 2017 11:14 pm 
Offline
Joined: Mon Aug 14, 2006 8:24 pm
Posts: 320
Location: Melbourne, Australia
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
  #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
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.

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?

_________________
Intel DG965WH, Dvico DVB-T Lite x2, HDHR, Gigabyte GT220, KingstonSSD, WD20EARS version=latest


Top
 Profile  
 
PostPosted: Tue Sep 12, 2017 8:00 pm 
Offline
Joined: Mon Apr 10, 2006 3:48 pm
Posts: 997
Location: Lexington, Ky
If your using LinHES it;s done for you if you installed it using pacman

Media Library /( scroll to) Launch Kodi press OK


Top
 Profile  
 
PostPosted: Wed Sep 13, 2017 4:28 pm 
Offline
Joined: Mon Aug 14, 2006 8:24 pm
Posts: 320
Location: Melbourne, Australia
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.

_________________
Intel DG965WH, Dvico DVB-T Lite x2, HDHR, Gigabyte GT220, KingstonSSD, WD20EARS version=latest


Top
 Profile  
 
PostPosted: Tue Sep 19, 2017 8:40 pm 
Offline
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1343
Location: Orlando FL
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?

_________________
My System


Top
 Profile  
 
PostPosted: Thu Sep 21, 2017 10:43 am 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location: SC
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.


Top
 Profile  
 
PostPosted: Mon Sep 25, 2017 11:55 pm 
Offline
Joined: Mon Aug 14, 2006 8:24 pm
Posts: 320
Location: Melbourne, Australia
Thanks for the suggestion brfransen. Unfortunately it does not work. I will try some other variations.

_________________
Intel DG965WH, Dvico DVB-T Lite x2, HDHR, Gigabyte GT220, KingstonSSD, WD20EARS version=latest


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu