|
|
2012-02-11
, 22:27
|
|
|
Posts: 323 |
Thanked: 189 times |
Joined on Oct 2010
@ Brazil
|
#2
|
|
|
2012-02-11
, 22:33
|
|
|
Posts: 323 |
Thanked: 189 times |
Joined on Oct 2010
@ Brazil
|
#3
|
|
|
2012-02-12
, 00:09
|
|
Posts: 1,101 |
Thanked: 1,184 times |
Joined on Aug 2008
@ Spain
|
#4
|
|
|
2012-02-12
, 00:10
|
|
Posts: 121 |
Thanked: 53 times |
Joined on Aug 2006
@ Alexandria, VA, USA
|
#5
|
|
|
2012-02-12
, 00:27
|
|
|
Posts: 323 |
Thanked: 189 times |
Joined on Oct 2010
@ Brazil
|
#6
|
I'm not sure I understand your problem. Is it that the camera app won't start? That happened to me once after I colored black the little white stripe on the inside of the back cover of the phone. A piece of white tape fixed the problem.
That interface is read only, by reading it you are calling rx51_show_shutter() which reads the gpio.
Look at the file arch/arm/mach-omap2/rx51_camera_btn.c
You'll need to modify rx51_show_shutter() and if you want a writable interface you need to add a function to write it.
|
|
2012-02-12
, 11:38
|
|
Posts: 85 |
Thanked: 5 times |
Joined on Nov 2009
|
#7
|
|
|
2012-02-12
, 14:57
|
|
Posts: 1,101 |
Thanked: 1,184 times |
Joined on Aug 2008
@ Spain
|
#8
|
No, the problem is that the optical sensor (hardware) looks like is broke. The back cover is fine, I even tried with other back cover that I have spare here and nothing happened.
Oh no, that was my main fear... so I should rewrite some of the code, and then I need to recompile and learn how to synchronize with the kernel... oh my... I'll loose all the rest of my leisure time on this... OR I could try to replace the optical sensor for an equivalent one. Thank you for the answer, sorry if I'm not happy for it
| The Following User Says Thank You to maacruz For This Useful Post: | ||
|
|
2012-02-13
, 09:36
|
|
|
Posts: 323 |
Thanked: 189 times |
Joined on Oct 2010
@ Brazil
|
#9
|
sudo hal-set-property --udi /org/freedesktop/hal/devices/platform_cam_shutter --key button_state_value --bool false
sudo hal-get-property --udi /org/freedesktop/hal/devices/platform_cam_shutter --key button_state_value
sudo hal-set-property --udi /org/freedesktop/hal/devices/platform_cam_shutter --key button_state_value --bool true
| The Following User Says Thank You to Temporal For This Useful Post: | ||
<skip>
I noticed lots of camera-ui instances working in the background some hours before it happened, because I like to put all the hildon things to priority level -20 (I could try to do it via script upon start but whatevs), but I thought it was somewhat normal.
As it was the third time, I payed attention and then took a look at everything. Well, the flashlight_gtk didn't show up after opening lens cover.
</skip>
After some digging, noticed that nobody anymore is detecting the lens cover open. It stays shut forever. The "dmesg | grep cam" shows
cam_shutter (gpio 100) is now closed
cam_launch (gpio 69) is now inactive
cam_focus (gpio 68) is now inactive
Yes I tried the search, but it is overcrowded with fcam related problems, I couldn't find anything of value for this problem.
So, I believe I could live without the detector If I could manage to change the gpio value manually. Is it possible?
Thanks.
Love and Goodness are not a property. Are not a franchising. They are present in each one of us, and must be cultivated with KNOWLEDGE.
Last edited by Temporal; 2012-02-11 at 21:52.