Copy OSD settings from one camera to another? How? - page 2 - General Help and Assistance on using CHDK stable releases - CHDK Forum
supplierdeeply

Copy OSD settings from one camera to another? How?

  • 18 Replies
  • 2382 Views
*

Offline srsa_4c

  • ******
  • 4025
Re: Copy OSD settings from one camera to another? How?
« Reply #10 on: 28 / May / 2018, 15:26:44 »
Advertisements
Quick patch attached for osd. Seems to work.
Looks OK to me.
Quote
I'm not sure if gps and usermenu need any? What happens if a user menu has items that don't exist on the current platform?
Can't say much to GPS as I'm not familiar with it.
I added cam specific items to the user menu on an s3is, copied the cfg to my sx280. The user menu showed up as empty there. I don't know what's going on behind the scenes, though.

*

Offline reyalp

  • ******
  • 12149
Re: Copy OSD settings from one camera to another? How?
« Reply #11 on: 28 / May / 2018, 17:24:11 »
Can't say much to GPS as I'm not familiar with it.
Me neither, don't have any GPS cams. I don't see anything that looks obviously camera specific, the battery related stuff appears to use percent.
Quote
I added cam specific items to the user menu on an s3is, copied the cfg to my sx280. The user menu showed up as empty there. I don't know what's going on behind the scenes, though.
I tried adding ND filter override and some non-platforms pecific items and copying to a non-ND. Items before the ND item showed up, following did not. I guess this is from user_menu_restore, which stops if find_menu_item fails. Looks like if it continued in that case, it could just drop the invalid item and keep the rest. In any case it doesn't seem like there's a need to add a separate platformid field.
Don't forget what the H stands for.

*

Offline reyalp

  • ******
  • 12149
Re: Copy OSD settings from one camera to another? How?
« Reply #12 on: 28 / May / 2018, 19:44:07 »
Here's an updated patch that skips over user menu items that aren't valid for the current platform. It seems to work, but I'm not very familiar with the user menu code.
Don't forget what the H stands for.

*

Offline srsa_4c

  • ******
  • 4025
Re: Copy OSD settings from one camera to another? How?
« Reply #13 on: 29 / May / 2018, 16:07:03 »
Here's an updated patch that skips over user menu items that aren't valid for the current platform. It seems to work, but I'm not very familiar with the user menu code.
Loaded patched CHDK to the 2 cams I mentioned previously. Added cam-specific and common menu entries and some modules to user menu, then copied the file to the other cam. The resulting behaviour was messy (disappeared entry reappearing while editing, etc.). I did not update any modules on the cards, don't know if that has any significance.


*

Offline reyalp

  • ******
  • 12149
Re: Copy OSD settings from one camera to another? How?
« Reply #14 on: 29 / May / 2018, 16:35:09 »
Loaded patched CHDK to the 2 cams I mentioned previously. Added cam-specific and common menu entries and some modules to user menu, then copied the file to the other cam. The resulting behaviour was messy (disappeared entry reappearing while editing, etc.).
Thanks for testing, guess I have to take a closer look at the code.

Quote
I did not update any modules on the cards, don't know if that has any significance.
I don't think modules are affected.

How were you copying the CFGs to the card? I don't think this explains what you saw, but I have found using chdkptp a bit tricky because files can be saved by the camera before rebooting. Uploading with -nolua and then rebooting immediately should be OK.
Don't forget what the H stands for.

*

Offline srsa_4c

  • ******
  • 4025
Re: Copy OSD settings from one camera to another? How?
« Reply #15 on: 29 / May / 2018, 17:01:57 »
How were you copying the CFGs to the card?
With USB connected, switched cam on, used chdkptp gui to upload that single file, hit disconnect button, switched cam off. I would assume the config in RAM isn't likely to get saved to file when I don't use the CHDK menu.

*

Offline reyalp

  • ******
  • 12149
Re: Copy OSD settings from one camera to another? How?
« Reply #16 on: 29 / May / 2018, 17:10:12 »
Quote
How were you copying the CFGs to the card?
With USB connected, switched cam on, used chdkptp gui to upload that single file, hit disconnect button, switched cam off. I would assume the config in RAM isn't likely to get saved to file when I don't use the CHDK menu.
I may not be remembering correctly, but I think it can be saved on exiting alt (and PTP lua implicitly enters/exits alt) but shouldn't be unless settings changed. In any case, this shouldn't explain what you saw, you'd just not get the new file.
« Last Edit: 29 / May / 2018, 17:18:51 by reyalp »
Don't forget what the H stands for.

*

Offline srsa_4c

  • ******
  • 4025
Re: Copy OSD settings from one camera to another? How?
« Reply #17 on: 10 / June / 2018, 16:53:48 »
Before it gets forgotten, I'd vote for committing the patch - without the user menu related parts for now.


*

Offline reyalp

  • ******
  • 12149
Re: Copy OSD settings from one camera to another? How?
« Reply #18 on: 10 / June / 2018, 19:40:36 »
Before it gets forgotten, I'd vote for committing the patch - without the user menu related parts for now.
Done, and thanks for the reminder.
Don't forget what the H stands for.

 

Related Topics