Extended time lapse with Internet connection and power saving - page 14 - General Help and Assistance on using CHDK stable releases - CHDK Forum

Extended time lapse with Internet connection and power saving

  • 130 Replies
  • 41617 Views
*

Offline reyalp

  • ******
  • 14121
Re: Extended time lapse with Internet connection and power saving
« Reply #130 on: 17 / September / 2024, 13:49:58 »
Advertisements
Power button doesn't work even if I don't use CHDK. So it must be "blocked" before chdk loads.
Probably, but not certain. CHDK is loaded before the camera visibly does anything, so it could be standard firmware behavior that happens after that point. We could confirm this with CHDK build that blinks in the bootloader, but there's probably no need.

Quote
So inside camera_init() I should replace
Code: [Select]
print('Unpressing power button')
cli_cmd('=post_levent_to_ui"UnpressPowerButton"')
with
Code: [Select]
print('Unpressing play button')
cli_cmd('=post_levent_to_ui"UnpressPBButton"')
Well, it's not clear you need it, but if you do that should be the correct syntax.

Also, I mentioned in the previous post that for most cameras CHDK would manipulate the state of the play button seen by the firmware when entering/leaving alt, but it turns out M3 doesn't.
Quote
Is the last line correct? Shouldn't be "UnpressPlayButton"? I am not currently at home, so I can't check. But where can I find syntax for this? Or appropriate library?
I believe PBButton should be correct for this. The levent name comes from strings in the firmware, you can iterate over them with get_levent_def_by_index but I've attached a list for M3 here. The available events vary some by camera model, though most of the common ones are available.
Don't forget what the H stands for.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal