From 8f6e8fb87b0fa4e8f9f4c8bebfb959ee133e8b76 Mon Sep 17 00:00:00 2001 From: Dan Puttick Date: Tue, 31 Jan 2017 17:09:13 -0500 Subject: [PATCH] Change method for turning off display autosleep Previous strategy using setterm wasn't working. Switched to using consoleblank=0 in boot partition cmdline.txt --- circlean/boot_partition/cmdline.txt | 2 +- circlean/root_partition/opt/groomer/init.sh | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/circlean/boot_partition/cmdline.txt b/circlean/boot_partition/cmdline.txt index 2b1f363..f8d365d 100755 --- a/circlean/boot_partition/cmdline.txt +++ b/circlean/boot_partition/cmdline.txt @@ -1 +1 @@ -dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait fastboot noswap ro +dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait fastboot noswap ro consoleblank=0 diff --git a/circlean/root_partition/opt/groomer/init.sh b/circlean/root_partition/opt/groomer/init.sh index e23f744..5c68def 100755 --- a/circlean/root_partition/opt/groomer/init.sh +++ b/circlean/root_partition/opt/groomer/init.sh @@ -25,9 +25,6 @@ clean(){ trap clean EXIT TERM INT -# Stop hdmi display from sleeping after a period of time -setterm -powersave off -blank 0 - # Start music ./music.sh & echo $! > /tmp/music.pid