Do in the editor of choice, I use nano,
Code: Select all
nano play.sh
Put this in there and save.
Code: Select all
#!/bin/bash
# prevent screensaver from powering down display
setterm -blank off -powerdown off > /dev/tty0
# clear the display and turn off the flashing cursor
clear > /dev/tty0
setterm -cursor off > /dev/tty0
#You don't have to use -d it just makes it come up nicer on my old TV
omxplayer -d "$1" > /dev/tty0
clear > /dev/tty0
# turn the cursor back on when done with omxplayer
setterm -cursor on > /dev/tty0
Run this bit,
Code: Select all
cp play.sh /usr/bin/. && chmod +x /usr/bin/play.sh
Code: Select all
sudo play.sh ~/somemovie.avi
Referencing here, http://www.raspberrypi.org/phpBB3/viewt ... =35&t=5543