Thread: OK ROM comes
View Single Post
Member: scm6079
at: 05:20 AM 06/10/2009
Well - I need to get to sleep so I can wake up and code at my real job in the morning. Wait ... it is morning. Oh, well. I did find some more on the camera flash for those interested. There is a daemon for the camera named camd that runs when the camera application is started. It is linked to the hardware via the linux i2c subsystems. The device can be queried for the current status as so:

root@castle:/sys/class/i2c-adapter/i2c-2/2-0033# cat torch_current
0mA* 50mA 75mA 100mA 150mA 200mA 250/400mA 250/500mA

root@castle:/sys/class/i2c-adapter/i2c-2/2-0033# cat flash_current
150mA 200mA 300mA 400mA 500mA* 700mA 900mA 1200mA

There is a "file" called mode that recognizes the command "shutdown" - and power is terminated by echoing a 0 into the avin file.

root@castle:/sys/class/i2c-adapter/i2c-2/2-0033# echo -n shutdown > mode

Anyways... always fun... I can't wait to see what else gets done by a programmer defined "morning."

_Scott