I have read on this blog that you can reduce power consumption:
https://www.jeffgeerling.com/blogs/jeff-geerling/raspberry-pi-zero-conserve-energy
By disabling the HDMI port.
He says that I should add this line:
/usr/bin/tvservice -o
to /etc/rc.local
But I don't know where and how, my /etc/rc.local file is like this:
_IP= || true
if [ "" ]; then
printf "My IP address is %s\n" ""
fi
# disable console blanking on PiTFT
sudo sh -c "TERM=linux setterm -blank 0 >/dev/tty0"
exit 0
Where to add this line, and would it work?
sudo
prefix before it as well?sudo
in the previous line is also redundant -/etc/rc.local
is executed by/as root (or possibly the kernel) before other users are even considered... OTOH/etc/local
is an SysVinit
thing - does it still get considered/run ifsystemd
is run as the first process as "Jessie" and later ("Stretch" is out on Debian has it made it to Raspbian yet?) uses that by default - although if you are a SysVinit
hold-out like me you may not know/care...! 8-)