Skip to content
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

Failed: Failed to prepare camera: Failed to disable flash #9

Closed
jhub95 opened this issue Oct 19, 2017 · 4 comments
Closed

Failed: Failed to prepare camera: Failed to disable flash #9

jhub95 opened this issue Oct 19, 2017 · 4 comments

Comments

@jhub95
Copy link

jhub95 commented Oct 19, 2017

Hi there,

PiScan is loading, finding my SD card, and finding the two cameras. When it gets to the screen where you can adjust the zoom, focus, etc., whatever option I want to do ends up with the same error and failure to proceed. This is what displays on the screen twice, once for odd and once for even cameras.

Failed: Failed to prepare camera: Failed to disable flash

I'm not sure which log file to give to you to help troubleshoot this. I'm wondering if I've installed CHDK properly, though each camera boots up just fine into CHDK. Both cameras are the same model, Canon PowerShot A810

Thanks for your help.

@duerig
Copy link
Contributor

duerig commented Oct 23, 2017

Hi. Sorry for taking a few days to respond. I'm not sure exactly what is causing your problem. But it might be reasonable to just comment out the line of code that disables flash. I haven't used an A810 camera before, but that particular CHDK command may not be implemented properly for it.

Comment out this line:

https://github.com/Tenrec-Builders/pi-scan/blob/master/src/camera_chdk.py#L97

You can find the file at /home/pi/pi-scan/camera_chdk.py and you can edit it with nano.

Then test by running

python /home/pi/pi-scan/main.py

If it works, then you will need to make the change permanent. Any changes are lost by default when your reboot the Pi (this is to protect the disk image from filesystem corruption). To make the change permanent, run:

sudo mount -o remount,rw /

Then edit /home_org/pi/pi_scan/camera_chdk.py and comment out the line of code. Then reboot:

sudo shutdown -r now

That should make the change permanent and you will now have your own variation which doesn't try to disable flash.

Let me know how it goes.

@jhub95
Copy link
Author

jhub95 commented Oct 24, 2017

Hi, thanks for writing. No problem about the wait. Nice program, BTW.

I made the temporary change as you suggested and then it came up with an error for white balance. So, obviously there's something prohibiting pi-scan from making changes to the cameras. The lenses do turn on, the lens tube extends from the camera body, but other than that there doesn't seem to be much control (it can make them beep too). I followed the instructions here on how to prepare the cameras' SD cards. I'll prepare the cards again and see if that makes a difference.

@duerig
Copy link
Contributor

duerig commented Oct 24, 2017 via email

@jhub95
Copy link
Author

jhub95 commented Oct 25, 2017

Ends up that I didn't have the FULL CHDK package on my SD cards. Jonathon helped me with this through email. Thanks!

@jhub95 jhub95 closed this as completed Oct 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants