mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Merge pull request #17 from caquino/caquino/powersave
services cleanup. powersave features and shellcheck fixes
This commit is contained in:
@ -1195,3 +1195,8 @@ dtoverlay=dwc2
|
||||
dtparam=spi=on
|
||||
dtoverlay=spi1-3cs
|
||||
|
||||
# Disable bluetooth
|
||||
dtoverlay=pi3-disable-bt
|
||||
# Disable audio
|
||||
dtparam=audio=off
|
||||
|
||||
|
@ -10,5 +10,7 @@
|
||||
# bits.
|
||||
#
|
||||
# By default this script does nothing.
|
||||
# Powersave (Disable HDMI) ~30ma
|
||||
/opt/vc/bin/tvservice -o
|
||||
/root/pwnagotchi/scripts/startup.sh &
|
||||
exit 0
|
||||
|
@ -5,6 +5,7 @@ defscrollback 1024
|
||||
startup_message off
|
||||
altscreen on
|
||||
autodetach on
|
||||
zombie kr
|
||||
|
||||
activity "activity in %n (%t)"
|
||||
bell_msg "bell in %n (%t)"
|
||||
|
@ -5,6 +5,7 @@ defscrollback 1024
|
||||
startup_message off
|
||||
altscreen on
|
||||
autodetach on
|
||||
zombie kr
|
||||
|
||||
activity "activity in %n (%t)"
|
||||
bell_msg "bell in %n (%t)"
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
for i in `seq 1 $1`;
|
||||
for i in $(seq 1 "$1");
|
||||
do
|
||||
echo 0 >/sys/class/leds/led0/brightness
|
||||
sleep 0.3
|
||||
@ -10,3 +10,8 @@ done
|
||||
|
||||
echo 0 >/sys/class/leds/led0/brightness
|
||||
sleep 0.3
|
||||
|
||||
# Powersave options
|
||||
# Disable power LED ~30ma
|
||||
echo none >/sys/class/leds/led0/trigger
|
||||
echo 1 >/sys/class/leds/led0/brightness
|
||||
|
Reference in New Issue
Block a user