Cluster Display - cjus/hydra-cluster GitHub Wiki
A TFT LCD is used to display cluster stats.
Setup
Download Raspbian Jessie Lite and flash it on an SD chip.
$ sudo dd bs=1m if=./2016-05-27-raspbian-jessie-lite.img of=/dev/disk2
Next download and install the drivers for your TFT display, mine are here.
Copy the drivers on the PI and unpack:
$ tar xvf LCD-show-160811.tar.gz
$ cd LCD-show/
Toggle between LCD and HDMI display
$ ./LCD-hdmi
This toggles the mode to LCD display:
$ ./LCD35-show
To change the display orientation, use one of the following degree values: 0
, 90
, 180
, 270
$ ./LCD35-show 180
Preventing the LCD from sleeping
To prevent the LCD from going into sleep mode you can add a line to your .bashrc
file which instructs the terminal to never blank or power down the display.
$ vi ~/.bashrc
Then add the following lines to the end of your file:
if [ $(tty) == /dev/tty1 ]; then
setterm -blank 0 -powerdown 0
fi
Automatically running a program on boot
When the Pi with the LCD is powered on it should display a monitoring program on the display. To do this edit your .bashrc
file.
$ vi ~/.bashrc
Then add your program:
if [ $(tty) == /dev/tty1 ]; then
/usr/bin/top
fi