Thread: [Fremantle Maemo5] N900 camera focus limits
View Single Post
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#4
Originally Posted by Copernicus View Post
I should note that, when you provide a focus value that is far away from the current value (say, 200 or more points distant), the camera makes an audible "click" noise as it changes the focus. I don't know if this is standard, but it kind of makes me nervous! For now, I'm first querying the current focus value (via VIDIOC_G_CTRL), and then incrementing (or decrementing) it stepwise by small amounts.

I haven't found any yet, but are there any reports out there of damaging the N900 camera by trying to change focus too quickly?

EDIT: Aha, yeah, this is definitely a problem: Bug 9085. Long story short, Maemo's camera focus driver moves the focus too quickly, and therefore can damage the camera. So, best to never assign values to V4L2_CID_FOCUS_ABSOLUTE that vary significantly from the current value.

Also, I should note that after closing my app, I can hear the camera make that clicking noise; so, it seems that you'll also need to reset the focus back to its original state (carefully!) before letting go control of the camera, if you're playing with manual focus.
Tell your findings to CSSU and their camera-ui rewrite, pretty please. It's manual control does the "clicking" all the time, and I've had camera focus damaged in few of my devices. I suspected that camera-ui2 may be responsible for it, but haven't had any proofs (and wasn't aware of the bug you sourced), so - given the amount of "tensions" in the Community - didn't wanted it to be marked as FUD.

Thanks for your research,
/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 

The Following 5 Users Say Thank You to Estel For This Useful Post: