2012-09-22, 22:51
Im having an issue with my remote.xml
I set the red button to run a bash script
<red>System.exec("./tvon.sh")</red>
which works but it switches the video mode to windowed and changes the resolution ?
anyone have any idea whats going on ?
I'm using xbmcbuntu
Thanks
**********************
Kind of the solution (at least the one I'm using)
I changed from a bash script to a python script so now I have this in my keymap.xml
<red>XBMC.RunScript("tvon.py")</red>
for anyone that wants to know I put tvon.py in /usr/share/xbmc/system/keymap
and it sends a serial string to my tv
I set the red button to run a bash script
<red>System.exec("./tvon.sh")</red>
which works but it switches the video mode to windowed and changes the resolution ?
anyone have any idea whats going on ?
I'm using xbmcbuntu
Thanks
**********************
Kind of the solution (at least the one I'm using)
I changed from a bash script to a python script so now I have this in my keymap.xml
<red>XBMC.RunScript("tvon.py")</red>
for anyone that wants to know I put tvon.py in /usr/share/xbmc/system/keymap
and it sends a serial string to my tv
Code:
import serial
ser = serial.Serial(port = "/dev/ttyUSB0", baudrate=19200)
ser.close()
ser.open()
ser.write("[sab0001")
ser.close()