-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no video camera flash - red lens #24
Comments
Me too for yellow lens (nikon) 177+rc1 |
Hello |
gzoul8, maurink6630, can you please check what kind of camera device you have? Grab the app aLogCat from the market, start the camera, start alogcat and filter for 'CameraCommon' there. Please tell me whether it says 'Detected SOC camera' or 'Detected BAYER camera' (it should say the latter). |
Also, no flash light for video camera. |
i am on the #15 issue. |
I have this issue too =( |
For me with green lense |
If the flash light doesn't work with SOC camera, something is fishy on your device. What version are you on? To all, does running 'echo 1 > /sys/class/leds/torch-flash/flash_light' in an adb shell turn on the flash light for you (substitute 1 by 0 to turn it off again)? |
Actually, it would be interesting to also know the full kernel version string (under Settings -> About phone) of all of you. I wonder whether the problem is in the used kernel. |
Did the test, flashlight working, works on Torch app, works when taking photos (automatic and always on mode), just don't work when I try to activate while recording a video (or before recording). Kernel Version: I have this problem since early beta's, I'm using Cyanogen since Beta2, and I think it never worked for me. Always use Nordic as a base. Actually using Jboogie3 LiquidArc based on RC1, but will update to RC1v2 this night. |
The torch app uses a different path (/sys/class/leds/spotlight), which is why I asked for testing the flash_light file directly.
Thanks. |
FLASH.TXT: http://www.mediafire.com/?3cajp946zchpi08 What i've done (never used logcat before) |
Thanks. The difference between camera 'always on' flash and video light seems to be that the mode passed to setFlashMode is 1 for camera and 3 for video.
That will capture all system calls the media server is doing. Enable the camera in video mode, press Enter in the adb window a few times (as start marker) and start toggling light on and off. strace should spew out a lot of lines. If it does not (sometimes happened to me as well), restart strace until it does. Then please provide the output. Sample output for me (SOC camera): write(13, "1933", 4) = 4 You clearly can see the flashlight file being set to a value of 100 ;) |
There's one possibility for the video flashlight: As the difference between camera and video is flash-mode being set to on for camera and torch for video, I can just convert torch to on for the bayer camera. That doesn't help for the focus light, though (handled in the camera binary), so I'd like to try to find the root cause prior to trying this hack. |
, 0xbea07c08) = 0 recv(356872, 0x81, 1, MSG_EOR|MSG_TRUNC|MSG_NOSIGNAL|MSG_MORE|0xffff0000) = 1 |
There's no open() line in there, even when restarting strace and/or after pressing Ctrl-C to end strace? |
Sorry, this time i tried to be more precise, i will only paste the output from turn flashlight on/off. Is there a way to send kill signal only to strace? CTRL^C closes adb and returns to prompt for me... , 0xbea07c08) = 0 recv(356872, 0x81, 1, MSG_EOR|MSG_TRUNC|MSG_NOSIGNAL|MSG_MORE|0xffff0000) = 1 |
You didn't read my question :) About stopping strace, I don't think there's any good way to stop it except Ctrl-C. |
And I still would be interested in whether 'echo 1 > /sys/class/leds/torch-flash/flash_light' does anything. |
'echo 1 > /sys/class/leds/torch-flash/flash_light' == Nothing. Also tried with different values between 1 and 255. |
I think that's our problem, it's likely that the camera lib tries to write to exactly that file. |
Can anyone additionally post the output of 'dmesg' right after booting the phone? I'd like to understand the actual kernel init differences between the camera modules. |
Also, if anyone of you feels like flashing a Moto ROM, where the LED is working: dmesg output of there would be interesting, as well as results of playing around with the various /sys/class/leds/*/brightness files. There must be some subtle difference, but it's very hard to find it out if one doesn't have the hardware. :-( |
My dmesg My strace -p For me adb shell "echo 1 > /sys/class/leds/torch-flash/flash_light" light my flashlight, echo 0 to disable it. I'm working right now, maybe at night I can flash froyo or gingerbread to post the results. |
for me (bayer camera) "echo 1 > /sys/class/leds/torch-flash/flash_light" light my flashlight too kernel 2.6.32.9-ga28fcc4 |
Oops, I've tried with the wrong file: I can confirm "echo 1 > /sys/class/leds/torch-flash/flash_light" lights the flash. My previous test was using /sys/class/leds/torch-flash/brightness. |
Ok, thanks. I've thought about this a bit more, and found I need to be more systematical ;-) I'll list what we have found out so far and which facts stand anyway:
So what does that leave us with? At the moment, I can only see
So what we could try is:
Those are the files referenced by the camera libraries.
|
I don't have the special file: /dev/bd7885. This is what I have under /dev in my device: http://pastebin.com/m2JBUjeB |
I don't have /dev/bd7885 too. |
maniac. is there a way to capture the /sys tree istead of doing it manually? i am not linux/adb savy. |
Doing an 'ls -lR /sys' should be sufficient. |
i´ve tryed nordic177 and the led worked while focusing here you have the /sys tree comparison i would try to help more on this. i really want this problem to be solved cm7 camera app didn´t work on nordic177 rom thx |
Didn't the CM7 app work in a sense of 'it crashed', or didn't it work in a sense of 'LED flash didn't work'? |
In any case, I think we need to pursue the strace route. |
Well, I looked at the logcat output posted by antonyps again, and something is fishy there: D/LibCommonCamera( 1929): CameraCommonHal: openCameraHardware() D/LibCommonCamera( 1929): CameraCommon: Detected BAYER device D/CameraSettings( 1929): CameraSettings constructor D/CameraHal( 1929): CameraHal constructor D/CameraHal( 1929): Model ID: MB525 2b4e0022ffd800000160a8f20f02200d D/CameraHal( 1929): Software ID 2.3.4 I/CameraCompFactory( 1929): assuming HP 5MP camera module implementation I/CameraCompFactory( 1929): no flash component implementation on this platformIt looks like the camera lib for whatever reason thinks there's no flash built into the device. This may very well be an explanation for the flash not working. Question now is why it thinks there's no flash... probably some missing file and/or system property. |
Having the logcat output while starting the blur camera app on a stock ROM perhaps would be helpful. |
Oooooh, I think I have found something. What happens if you add the following entries to /system/build.prop and reboot afterwards: ro.media.capture.maxres=5m |
When trying, please also post the logcat output while starting the camera for confirmation. |
the build.prop thing. do you want me to try it on cm7 or stock rom ? |
Please try it on CM7, the stock ROM already has those properties. And yes, copying Camera.apk should have been enough. Anyway, most likely doesn't matter now :) |
it worked! i can´t do the logcat right now. if you really need it i´ll do it as soon as i can. |
Great :) Logcat is not that important. |
no flash for video camera, red lens.(177+rc1)
can turn on turch,and take a video,but the flash option in the video camera is not working.
The text was updated successfully, but these errors were encountered: