I have an Lg Optimus one(LG-P509) running CyanogenMod7 stable. Apparently there is a bug with the camera device. If the screen is turned off while the camera is active, the camera won't initialize again. If I try to start the camera up, it freezes up and crashes with a "Camera not responding" popup. It kicks me back to the home screen afterwards.
The camera is usable again after a reboot, however it can still happen again. I've found that the bug is not limited to the stock camera app, it still happens with other apps that use the camera.
I thought that if it's possible to reload the device for the camera with the command line, I could automate it with a script. I just can't seem to find any documentation on the subject.
What do I need to do to accomplish this?