-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
114 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
#!/bin/bash | ||
|
||
# ################################################################################# | ||
# | ||
# Indoor system script | ||
# switch on|off screen backlight | ||
# | ||
# ################################################################################# | ||
|
||
#echo 0 > /sys/class/backlight/rpi_backlight/bl_power | ||
echo $1 > /sys/class/backlight/rpi_backlight/bl_power |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
#!/bin/bash | ||
|
||
# ################################################################################# | ||
# | ||
# Indoor system script | ||
# set screen brightness | ||
# | ||
# ################################################################################# | ||
|
||
echo $1 > /sys/class/backlight/rpi_backlight/brightness |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
# ################################################################################# | ||
# | ||
# Indoor system script | ||
# clear screen | ||
# | ||
# ################################################################################# | ||
|
||
echo > /dev/tty1 | ||
echo > /dev/tty1 | ||
echo > /dev/tty1 | ||
echo > /dev/tty1 | ||
echo > /dev/tty1 | ||
echo > /dev/tty1 | ||
echo > /dev/tty1 | ||
echo > /dev/tty1 | ||
echo > /dev/tty1 | ||
echo > /dev/tty1 | ||
echo > /dev/tty1 | ||
echo > /dev/tty1 | ||
echo > /dev/tty1 | ||
echo > /dev/tty1 | ||
echo > /dev/tty1 | ||
echo " #####################################################################################" > /dev/tty1 | ||
echo " # #" > /dev/tty1 | ||
echo " # I N D O O R #" > /dev/tty1 | ||
echo " # #" > /dev/tty1 | ||
echo " # . . . #" > /dev/tty1 | ||
echo " # Alphatech 2017 #" > /dev/tty1 | ||
echo " #####################################################################################" > /dev/tty1 | ||
echo > /dev/tty1 | ||
echo > /dev/tty1 | ||
echo > /dev/tty1 | ||
echo > /dev/tty1 | ||
echo > /dev/tty1 | ||
echo > /dev/tty1 | ||
echo > /dev/tty1 | ||
echo > /dev/tty1 | ||
echo > /dev/tty1 | ||
#clear > /dev/tty1 | ||
#setterm -cursor off > /dev/tty1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
#!/bin/bash | ||
|
||
#cat /sys/module/kernel/parameters/consoleblank | ||
echo 0 >/sys/class/graphics/fb0/blank | ||
#cat /sys/module/kernel/parameters/consoleblank | ||
# ################################################################################# | ||
# | ||
# Indoor system script | ||
# unblank screen | ||
# | ||
# ################################################################################# | ||
|
||
echo 0 > /sys/class/graphics/fb0/blank |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
#! /bin/bash | ||
|
||
# ################################################################################# | ||
# | ||
# Indoor system script | ||
# get USB Audio devide ID, volume, min&max value | ||
# | ||
# ################################################################################# | ||
|
||
VOLUMEID=`amixer controls | grep "PCM Playback Volume" | sed -e 's/,/\n/g' | awk 'NR==1 {print $1}' | sed 's/numid=//'` | ||
VOLUMEVAL=`amixer cget numid=$VOLUMEID | grep ": values" | sed 's/ : values=//' | sed -e 's/,/\n/g' | awk 'NR==1 {print $1}'` | ||
MINVAL=`amixer cget numid=$VOLUMEID | grep "access" | sed -e 's/,/\n/g' | awk 'NR==4 {print $1}' | sed 's/min=//'` | ||
MAXVAL=`amixer cget numid=$VOLUMEID | grep "access" | sed -e 's/,/\n/g' | awk 'NR==5 {print $1}' | sed 's/max=//'` | ||
|
||
echo $VOLUMEID $VOLUMEVAL $MINVAL $MAXVAL |