--[[ CHDK Setup@title CHDK Setup Note : config values are from chdk/core/conf.c--]]function printf(...) print(string.format(...))endset_console_layout(2, 5, 44, 12) printf("Default Setup Running")bi=get_buildinfo()printf("%s %s %s %s %s", bi.version, bi.build_number, bi.platform, bi.platsub, bi.build_date)camera = bi.platform -- common stuff for all camera set_config_value( 1, 1 ) -- show OSD set_config_value( 174, 0 ) -- hide OSD dont/playback/disp/both set_config_value( 12, 1 ) -- batt volts show set_config_value( 13, 1 ) -- batt icon show set_config_value( 14 , 0 ) -- show state set_config_value( 41, 2 ) -- show clock set_config_value( 155, 1 ) -- clock format set_config_value( 57, 0 ) -- user menu as root set_config_value( 121, 0 ) -- remote enable set_config_value( 132, 1 ) -- space icon enable set_config_value( 135, 1 ) -- space MB show set_config_value( 145, 0 ) -- space bar show set_config_value( 203, 0 ) -- show temp set_config_value( 246, 1 ) -- USB icon enable set_config_value( 291, 0 ) -- alt helper set_config_value( 295, 0 ) -- disable shortcuts-- camera specific stuff printf("setting defaults for %s", camera) if ( camera == "g10" ) then set_config_value( 42, 300, 225 ) -- clock pos set_config_value( 23, 0, 140 ) -- batt icon position set_config_value( 24, 38, 140 ) -- batt text position set_config_value( 133, 0, 160 ) -- space icon position set_config_value( 136, 38, 162 ) -- space text position set_config_value( 247, 0, 60 ) -- USB icon position elseif ( camera == "ixus120_sd940" ) then set_config_value( 63, 33 ) -- config ALT mode button ( KEY_PLAYBACK = 33 ) set_config_value( 42, 300, 225 ) -- clock pos set_config_value( 23, 0, 170 ) -- batt icon position set_config_value( 24, 38, 170 ) -- batt text position set_config_value( 133, 0, 190 ) -- space icon position set_config_value( 136, 38, 192 ) -- space text position set_config_value( 247, 0, 60 ) -- USB icon position elseif (camera == "a1200" ) then set_config_value( 42, 300, 225 ) -- clock pos set_config_value( 23, 0, 170 ) -- batt icon position set_config_value( 24, 38, 170 ) -- batt text position set_config_value( 133, 0, 190 ) -- space icon position set_config_value( 136, 38, 192 ) -- space text position set_config_value( 247, 0, 60 ) -- USB icon position elseif ( camera == "sx50hs" ) then set_config_value( 42, 300, 225 ) -- clock pos set_config_value( 23, 0, 170 ) -- batt icon position set_config_value( 24, 38, 170 ) -- batt text position set_config_value( 133, 0, 190 ) -- space icon position set_config_value( 136, 38, 192 ) -- space text position set_config_value( 247, 0, 60 ) -- USB icon position else printf("Warning : no custom settings") endprint("...done")
This script save and rewrite all configuration data from config.c. You can save 10 different configurations.
In config.c I do not find anything about miscelanous position feature.
set_config_value( 26, 1, 1 ) -- miscellaneous values position
Same strange things with State Display and zoom EFL-can't position it with the script. Any help pls.
set_config_value( 25, 1, 1 ) -- state display position
Reloading versions of CHDK usually requires me to use the "Reset Options to Default..." in the CHDK Settings menu, or even requires me to delete the CCHDK2.CFG or CCHDK3.CFG files from the SD card.
Started by PS « 1 2 » Feature Requests
Started by dance621 General Discussion and Assistance
Started by philmoz « 1 2 3 4 » General Discussion and Assistance
Started by hwntw « 1 2 » General Help and Assistance on using CHDK stable releases
Started by reyalp Completed and Working Scripts