2009-09-16, 18:41
Hi, I'm trying to figure out how to run a set of bash commands, or exec a bash script after XBMC has booted, and I can't seem to figure it out, in ubuntu forums or here, so I decided to ask.
the script/commands are as follows
#!/bin/bash
echo xbmc | sudo -S aticonfig --set-dispattrib=tmds2i,positionX:0
echo xbmc | sudo -S aticonfig --set-dispattrib=tmds2i,positionY:0
echo xbmc | sudo -S aticonfig --set-dispattrib=tmds2i,sizeX:1920
echo xbmc | sudo -S aticonfig --set-dispattrib=tmds2i,sizeY:1080
obviously, i'm echoing the sudo password in case it needs it, i tried to put it in .xinitrc, i tried to put it in xsession (but figured that runXBMC overwrites it) so that failed.
my setup is..
ubuntu bare system + xbmc + xbmc live helper (to autostart it) no gnome/kde or anything, just boots straight to xbmc!
any help would be nice! thanks (if you're curious, my tv underscans the res for some reason, and those set of commands, fixes it, i hate having a black border)
i'm hoping there's a easy solution, if not, my last resort i guess would be to make a python script to run at xbmc boot to do it! but that requires me to learn some python
the script/commands are as follows
#!/bin/bash
echo xbmc | sudo -S aticonfig --set-dispattrib=tmds2i,positionX:0
echo xbmc | sudo -S aticonfig --set-dispattrib=tmds2i,positionY:0
echo xbmc | sudo -S aticonfig --set-dispattrib=tmds2i,sizeX:1920
echo xbmc | sudo -S aticonfig --set-dispattrib=tmds2i,sizeY:1080
obviously, i'm echoing the sudo password in case it needs it, i tried to put it in .xinitrc, i tried to put it in xsession (but figured that runXBMC overwrites it) so that failed.
my setup is..
ubuntu bare system + xbmc + xbmc live helper (to autostart it) no gnome/kde or anything, just boots straight to xbmc!
any help would be nice! thanks (if you're curious, my tv underscans the res for some reason, and those set of commands, fixes it, i hate having a black border)
i'm hoping there's a easy solution, if not, my last resort i guess would be to make a python script to run at xbmc boot to do it! but that requires me to learn some python