I wrote a couple of scripts to help me remember how to do things, and I wanted to document them somewhere.
First are some scripts to change the sound mixer so that sound only comes out of the headphones or the speakers. They basically just call amixer with the proper options:
#!/bin/sh amixer set 'Amp Mode' 'Headphones'
#!/bin/sh amixer set 'Amp Mode' 'Stereo Speakers'
Next is a script to fade the screen in and out, just for fun:
#!/bin/sh echo 0 > /sys/class/backlight/gta01-bl/power for i in `seq 0 100 5000`; do echo $i > /sys/class/backlight/gta01-bl/brightness done for i in `seq 0 100 5000`; do let "o = 5000 - $i" echo $o > /sys/class/backlight/gta01-bl/brightness done sleep 3 echo 5000 > /sys/class/backlight/gta01-bl/brightness
Thats all for now.