Running CHDK with battery door open - page 7 - General Discussion and Assistance - CHDK Forum supplierdeeply

Running CHDK with battery door open

  • 72 Replies
  • 31008 Views
Re: Running CHDK with battery door open
« Reply #60 on: 01 / February / 2014, 18:55:52 »
Advertisements
But the delay is something that's worth discussing. A fast startup might be important for some. Hard to decide I think.
As I pointed out earlier, an added 1/2 second delay in a 3 second start-up sequence really seems irrelevant.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Running CHDK with battery door open
« Reply #61 on: 01 / February / 2014, 19:10:07 »
Just to be clear, I'm not mandating that anyone else use the build time option.
I won't lose any sleep if no one else implements it, or it gets removed.

To me, running the the battery door open, is a specialist/advanced/developer feature - so I chose the build option mechanism to make the feature available if someone really wants it. AFAIK it's never been requested for the G12, G1X or SX40.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: Running CHDK with battery door open
« Reply #62 on: 01 / February / 2014, 19:23:31 »
Yes, I can follow that. One thing would be great though: those who start to script should somehow know about this feature. Maybe it could be mentioned in the scripting guide or so?

Re: Running CHDK with battery door open
« Reply #63 on: 01 / February / 2014, 19:36:58 »
Just to be clear, I'm not mandating that anyone else use the build time option. I won't lose any sleep if no one else implements it, or it gets removed.
FWIW - it's been built-in to the G10 and SD940 since the ports were released.  I agree that it's not a big deal either way - more a "nice to have".  But given the concerns about making it generally available on other cameras, I'll withdraw from the discussion.
Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline reyalp

  • ******
  • 14117
Re: Running CHDK with battery door open
« Reply #64 on: 09 / February / 2014, 20:39:31 »
A couple of thoughts:
1) While the *initial* override cannot be controlled by a cfg option, the override in kbd task could depend on an option as soon as the cfg is loaded. So if the battery door override option is off, the camera would boot visibly and then shut down, leaving a very narrow window for the battery or SD card to be pulled.  One thing to check would be how this interacts with the "hold the power button to open the lens" behavior, since shutting down in the middle of that might undesirable. If this works, the the effect of opening the door after boot could be completely controlled by the option.

2) We don't have to do the delay unless the battery door is actually open when the code gets to that point. This might require checking the associated MMIO directly, or storing the real physw_status value before we override it. That said, I measured the required delay for D10 to be about 20ms so it's probably not worth worrying about.

I've implemented OPT_RUN_WITH_BATT_COVER_OPEN on d10. The attached patch has code to turn on an LED for the duration of the wait and time it with get_tick_count.
Don't forget what the H stands for.

Re: Running CHDK with battery door open
« Reply #65 on: 09 / February / 2014, 21:21:25 »
If this works, the the effect of opening the door after boot could be completely controlled by the option.

Is there a use case for wanting to open the battery door after boot?  The whole point of this discussion (AFAIK) is to allow the camera to boot with the battery door open - perhaps to reduce wear & tear on the door while scripting or to allow external power options that won't fit through the Canon provided hole/slot.

Quote
We don't have to do the delay unless the battery door is actually open when the code gets to that point.
Clever idea.  I didn't think the delay was that big a deal but this would make it irrelevant.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14117
Re: Running CHDK with battery door open
« Reply #66 on: 09 / February / 2014, 21:45:42 »
Is there a use case for wanting to open the battery door after boot?
I don't think there is much of a use case for this, the main point is that it would protect people from opening the door while the camera was running unless they turned the "ignore" option on. There would only be a brief window at startup where it was different from the default behavior, so you'd really have to try to remove the SD card or battery quickly while booting to get into trouble.
Quote
Clever idea.  I didn't think the delay was that big a deal but this would make it irrelevant.
Yeah I think for 20ms it's not worth it. If it was a significant fraction of a second I would want to avoid it, since people do care about the power to shooting time and CHDK already slows it down.
Don't forget what the H stands for.

Re: Running CHDK with battery door open
« Reply #67 on: 09 / February / 2014, 22:10:27 »
There would only be a brief window at startup where it was different from the default behavior, so you'd really have to try to remove the SD card or battery quickly while booting to get into trouble.
Thanks - got it now.  The startup delay is inserted regardless of the cfg setting (which it obviously can't yet know) but once running the door override is configurable.

Quote
Yeah I think for 20ms it's not worth it. If it was a significant fraction of a second I would want to avoid it, since people do care about the power to shooting time and CHDK already slows it down.
Well, as I mentioned earlier,  the G10 seems to need more than 1/16 of second  (0.0625 seconds) but works well at 1/8.  I really don't think anyone could tell its there.
Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline openuas

  • **
  • 58
  • OpenUAS
    • OpenUAS
Re: Running CHDK with battery door open
« Reply #68 on: 10 / February / 2014, 19:34:19 »
"is there a use case for wanting to open the battery door after boot?"

Yes, there are use cases, running the camera on external power via external battery with a fake battery still in to connect the power. E.g. nightsky shots, week long interval shot etc. etc. One always can chip away a little of the batter door, but still... software is nicer ;)

*

Offline reyalp

  • ******
  • 14117
Re: Running CHDK with battery door open
« Reply #69 on: 10 / February / 2014, 23:42:10 »
Yes, there are use cases, running the camera on external power via external battery with a fake battery still in to connect the power.
In that case, you would probably be booting with the door open, which we have already agreed is a desirable feature for some users. The question is there a reason to boot with the door closed, and then open it while the camera is running?
Don't forget what the H stands for.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal