You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
2.3 KiB

6 years ago
# RasPi Freezer
![Photo](cad/case2.jpg)
# Usage Instructions
6 years ago
* Plug HDMI into Beamer
* Plug USB into Computer
* booting the Raspberry takes approximately 25 seconds. the green led will light up when ready
6 years ago
* start freeze.exe from the (newly attached) USB-Drive
* press button on device or ALT+X or Alt+PRINTSCREEN to take a screenshot
6 years ago
* simply unplug after use
6 years ago
## Other features
* you can call freeze.exe with the cmdline argument "single" to just do one screenshot, save it and exit
* if HDMI is connected after USB(Power): the device will switch to 1920x1080-32
6 years ago
6 years ago
# Initial setup
## Parts
* Mini-HDMI <-> HDMI Adapter
* Mini-USB <-> USB A Cable
* Micro-SD-Card >= 2GB
* Raspberry Pi Zero or Zero W or Model A (Model B/2B/3 not supported!)
## Hardware
LED LED SW
6 years ago
______||_______|||____
| :::::::::::::::::::: |
| |
|_HDMI________USB__PWR_|
| | nc
v v
Beamer PC
## Build windows snapshot-tool
cd windows-snapshot-tool
mkdir build && cd build
cmake -DCMAKE_TOOLCHAIN_FILE=../Toolchain-cross-mingw32-linux.cmake ../
make
## prepare raspberry pi
install raspbian lite
sudo raspi-config
* ??
* ??
sudo su -
apt update
apt dist-upgrade
6 years ago
apt install python3-pyinotify python3-rpi.gpio cec-utils
6 years ago
apt clean
echo "dtoverlay=dwc2" >> /boot/config.txt
echo "dtoverlay=gpio-poweroff,gpiopin=5,active_low" >> /boot/config.txt
sed -i /boot/config.txt -e "s/^#hdmi_force_hotplug=1$/hdmi_force_hotplug=1$/"
sed -i /boot/config.txt -e "s/^#disable_overscan=1$/disable_overscan=1$/"
6 years ago
echo "libcomposite" >> /etc/modules
apt purge plymouth
systemctl disable getty@tty1
add/change in /boot/cmdline.txt: console=tty3 consoleblank=0 loglevel=3 vt.global_cursor_default=0
(logo.nologo to disable the raspberry)
6 years ago
copy everything to /opt/freezer/
chmod a+x /opt/freezer/display.py
add to /etc/rc.local: cd /tmp && nohup python3 /opt/freezer/display.py 2>&1 &
6 years ago
### read-only root
wget https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/read-only-fs.sh
sudo bash read-only-fs.sh
* continue: y
* jumper: n
* gpio-halt: n
* watchdog: n
* continue: y
6 years ago
### this is how to remount read-write later to make changes to the fs
mount -o remount,rw /
mount -o remount,rw /boot
## ToDo
* Iconwechsel wenn kein RPi angeschlossen
* Windows Installer (cpack)