if you want to rotate the display of your raspberry 7 inch touchscreen (with latest raspian) you need to do the following
- install xinput
sudo apt-get install xinput
- get the name of your display
- flip your display
xinput --set-prop 'FT5406 memory based driver' 'Coordinate Transformation Matrix' 0 -1 1 1 0 0 0 0 1
- add flipping to /boot/config.txt
display_rotate=1 (for 90 degrees)
although been the best videoplayer on the raspberry the documentation is quite spread out over the net. so here the most useful commands to start a omxplayer:
--loop run a video in a loop
--win 'x1 y1 x2 y2' run video in a window defined by upper left corner(x1,y1) and right bottom corner(x2,y2)
--no-osd display without showing information
--blank showing video and blacking the rest of the screen
if you want to want to start a midori on a raspberry pi via ssh you have to type following command
DISPLAY=:0 midori www.yourdomaingoes.here
if you want to show youtube videos on raspberry pi you better do not go with a web browser but with the omxplayer.
this is a preinstalled videoplayer which is specially made for raspberry pis and works perfectly.
more info on the omxplayer can be found here
to show youtube videos you need the help of youtube-dl. because the package you get via apt-get is not the last version you better install via wget
sudo wget https://yt-dl.org/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+x /usr/local/bin/youtube-dl
to play a video go to the terminal and type
omxplayer `youtube-dl -g [yotubeurl]`
To run our internal information system we decided to go with raspberry pis and to configure them to show a website that shows the information.
This task is pretty simple but information how to do that is quite spread all over the internet. So I decided to put them together here. I decided to go for midori because chromium is not available for rasbian jessie in the moment.
What you need to do:
- install midori and unclutter sudo apt-get install midori unclutter
- edit /etc/xdg/lxsession/LXDE-pi/autostart (wheezy) or ~/.config/lxsession/LXDE-pi/autostart (jessie)
@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@xset s off
@xset s noblank
@midori -e Fullscreen -a [your url]
if the image on your screen is cut off from any direction go to /boot/config.txt and adjust the overscan attributes.