From: Arjen Baart Date: Sun, 3 May 2020 14:41:51 +0000 (+0200) Subject: Startup script startpwm X-Git-Url: http://www.andromeda.nl/gitweb/?a=commitdiff_plain;h=a51e9cdf9977a490d7b83fcc85bb272e6ef6bb96;p=wakeup.git Startup script startpwm --- diff --git a/src/startpwm b/src/startpwm new file mode 100755 index 0000000..9bba7ca --- /dev/null +++ b/src/startpwm @@ -0,0 +1,28 @@ +#!/bin/bash + +# +# Start the pwm generator with real time priority. +# + +PATH=$PATH:/usr/local/bin + +# Initialize the shared memory segment. + +lightcontrol -r 0 -g 0 -b 0 -w 0 + +chrt -f 50 pwm & + + +# Create a sequence of light colors to test if the generator is working +# The sequence is red - green - blue - white. + + +lightcontrol -r 100 -g 0 -b 0 -w 0 +sleep 2 +lightcontrol -r 0 -g 100 -b 0 -w 0 +sleep 2 +lightcontrol -r 0 -g 0 -b 100 -w 0 +sleep 2 +lightcontrol -r 0 -g 0 -b 0 -w 100 +sleep 2 +lightcontrol -r 0 -g 0 -b 0 -w 0