Help, my camera is stuck in factory mode! - General Discussion and Assistance - CHDK Forum  

Help, my camera is stuck in factory mode!

  • 4 Replies
  • 3544 Views
Help, my camera is stuck in factory mode!
« on: 29 / September / 2020, 17:03:42 »
Advertisements
I ran a LUA script calling the SetFactoryMode (as described in https://chdk.fandom.com/wiki/Event_Procedure#FA.Create) on my Canon PowerShot ELPH 160.  However, it did more then turn the LCD off.
When I turn it on (using the power or playback buttons), the green LED turns on and remains on until I disconnect the battery, unless a bootable SD card is inserted and locked, in which case the green LED turns on briefly and then turns off.  The buttons don't respond (pressing the shutter doesn't extend the lens) and I have tried inserting an SD card with CHDK set to auto-run a script calling ClearFactoryMode with no success.
Any suggestions or have I just bricked a $100 camera?

*

Offline reyalp

  • ******
  • 14118
Re: Help, my camera is stuck in factory mode!
« Reply #1 on: 30 / September / 2020, 01:55:30 »
I ran a LUA script calling the SetFactoryMode (as described in https://chdk.fandom.com/wiki/Event_Procedure#FA.Create) on my Canon PowerShot ELPH 160.  However, it did more then turn the LCD off.
When I turn it on (using the power or playback buttons), the green LED turns on and remains on until I disconnect the battery, unless a bootable SD card is inserted and locked, in which case the green LED turns on briefly and then turns off.  The buttons don't respond (pressing the shutter doesn't extend the lens) and I have tried inserting an SD card with CHDK set to auto-run a script calling ClearFactoryMode with no success.
Any suggestions or have I just bricked a $100 camera?
You most likely have not bricked it, ClearFactoryMode should work. When I did this with my a540 (https://chdk.setepontos.com/index.php?topic=4417.20) IIRC, I made a diskboot that called the function directly rather than calling it from Lua. It's conceivable that that something about factory mode prevents CHDK from booting fully or running the autostart script.

I'll post a build to try shortly.
Don't forget what the H stands for.

*

Offline reyalp

  • ******
  • 14118
Re: Help, my camera is stuck in factory mode!
« Reply #2 on: 30 / September / 2020, 02:12:05 »
@RegisteredUser Here's a build that calls ClearFactoryMode at the point spytask would normally start, with task hooks disabled, plus source patch for anyone interested.

Don't forget what the H stands for.

Re: Help, my camera is stuck in factory mode!
« Reply #3 on: 30 / September / 2020, 15:08:50 »
@RegisteredUser Here's a build that calls ClearFactoryMode at the point spytask would normally start, with task hooks disabled, plus source patch for anyone interested.
That worked, thanks!  I was trying to modify CHDK in the manner you described but couldn't figure out how to make a native call using C code.


*

Offline reyalp

  • ******
  • 14118
Re: Help, my camera is stuck in factory mode!
« Reply #4 on: 30 / September / 2020, 16:35:14 »
That worked, thanks!  I was trying to modify CHDK in the manner you described but couldn't figure out how to make a native call using C code.
Glad to hear it worked :)
Don't forget what the H stands for.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal