i have designed a usb-stick with a momentary switch that can switch power on the raspberry pi.
This includes system shutdown!!all through USB. it is not bigger than a normal flash drive but contains a lot of stuff.
So when the button is pressed, the power turns on. When pressed again, the usb stick sends a signal to the Raspberry-Pi to shutdown/halt the system. when the system i halted, the RPI send a signal back to the usb stick wich will turn the power off (with a little delay).
Now what i still need is the ability to light up the keyboard leds at the very moment that the system is halted. or at least before the system and USB stops functioning.
I found a little python script that can light up the keyboard leds. Called Python-keyboardleds.
i just need something, to do that at the very last moment before shutdown so the power can be turned off. Any help is welcome, since i am not really familiar with this sort of stuff.
When i get it working i would like "ladyada" to maybe make/produce them so everyone can enjoy this "Pi-Power-USB-Stick"! (ladyada contact me!! : ) )

