Canon PowerShot G7X Mark II - cannot get endless preview

Raymond de Vries <[email protected]> Wed, 10 May 2023 20:50:06 +0200
Newsgroups gmane.comp.multimedia.gphoto.devel
Message-ID <[email protected]>
Hi,

I am trying out my Canon G7X to have an endless preview duration by 
calling 'gp_camera_capture_preview()' in a loop (of course cleaning up 
via gp_file_unref()). This is working well for some time and then 
gp_camera_capture_preview() does not get a preview anymore.

It seems that it is related to the setting 'Power Saving' - 'Display 
Off'. It seems that the preview is only available for that specific 
amount of time, with a maximum value of 3 minutes. Is there any way to 
avoid this?

In general, I am trying to understand better how libgphoto2 is 
communicating with the camera. So any tip or trick is welcome.

I have included a few log files, hoping to provide the information that 
is required. If it matters, this is on Ubuntu 22.04

Thanks a lot,
Raymond

_______________________________________________
Gphoto-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gphoto-devel
CanonG7X_MarkII-logfile.txt (text/plain, 272.3 KB) - not displayed
list-all-output.txt (text/plain, 10 KB)
/main/actions/syncdatetimeutc
Label: Synchronize camera date and time with PC (UTC)
Readonly: 0
Type: TOGGLE
Current: 0
END
/main/actions/uilock
Label: UI Lock
Readonly: 0
Type: TOGGLE
Current: 2
END
/main/actions/autofocusdrive
Label: Drive Canon DSLR Autofocus
Readonly: 0
Type: TOGGLE
Current: 0
END
/main/actions/cancelautofocus
Label: Cancel Canon DSLR Autofocus
Readonly: 0
Type: TOGGLE
Current: 0
END
/main/actions/viewfinder
Label: Canon EOS Viewfinder
Readonly: 0
Type: TOGGLE
Current: 0
END
/main/actions/eosremoterelease
Label: Canon EOS Remote Release
Readonly: 0
Type: RADIO
Current: None
Choice: 0 None
Choice: 1 Press Half
Choice: 2 Press Full
Choice: 3 Release Half
Choice: 4 Release Full
Choice: 5 Immediate
Choice: 6 Press 1
Choice: 7 Press 2
Choice: 8 Press 3
Choice: 9 Release 1
Choice: 10 Release 2
Choice: 11 Release 3
END
/main/actions/eosmoviemode
Label: Movie Mode
Readonly: 0
Type: TOGGLE
Current: 2
END
/main/actions/opcode
Label: PTP Opcode
Readonly: 0
Type: TEXT
Current: 0x1001,0xparam1,0xparam2
END
/main/settings/datetimeutc
Label: Camera Date and Time
Readonly: 0
Type: DATE
Current: 1683747965
Printable: wo 10 mei 2023 21:46:05 CEST
Help: Use 'now' as the current time when setting.

END
/main/settings/datetime
Label: Camera Date and Time
Readonly: 0
Type: DATE
Current: 1683744367
Printable: wo 10 mei 2023 20:46:07 CEST
Help: Use 'now' as the current time when setting.

END
/main/settings/output
Label: Camera Output
Readonly: 0
Type: RADIO
Current: MOBILE2
Choice: 0 Off
Choice: 1 MOBILE2
END
/main/settings/evfmode
Label: EVF Mode
Readonly: 0
Type: RADIO
Current: 1
Choice: 0 1
END
/main/settings/ownername
Label: Owner Name
Readonly: 0
Type: TEXT
Current: 
END
/main/settings/ownername
Label: Owner Name
Readonly: 0
Type: TEXT
Current: 
END
/main/settings/artist
Label: Artist
Readonly: 0
Type: TEXT
Current: 
END
/main/settings/copyright
Label: Copyright
Readonly: 0
Type: TEXT
Current: 
END
/main/settings/depthoffield
Label: Depth of Field
Readonly: 0
Type: TEXT
Current: 0
END
/main/settings/capturetarget
Label: Capture Target
Readonly: 0
Type: RADIO
Current: Internal RAM
Choice: 0 Internal RAM
Choice: 1 Memory card
END
/main/settings/capture
Label: Capture
Readonly: 0
Type: TOGGLE
Current: 0
END
/main/settings/remotemode
Label: Remote Mode
Readonly: 0
Type: TEXT
Current: 0
END
/main/settings/eventmode
Label: Event Mode
Readonly: 0
Type: TEXT
Current: 0
END
/main/settings/testolc
Label: Test OLC
Readonly: 0
Type: TOGGLE
Current: 2
END
/main/status/serialnumber
Label: Serial Number
Readonly: 1
Type: TEXT
Current: 45F5EE7EFA49A625B19442B761BED518
END
/main/status/manufacturer
Label: Camera Manufacturer
Readonly: 1
Type: TEXT
Current: Canon Inc.
END
/main/status/cameramodel
Label: Camera Model
Readonly: 1
Type: TEXT
Current: Canon PowerShot G7 X Mark II
END
/main/status/deviceversion
Label: Device Version
Readonly: 1
Type: TEXT
Current: 1-15.0.1.0
END
/main/status/vendorextension
Label: Vendor Extension
Readonly: 1
Type: TEXT
Current: 
END
/main/status/model
Label: Camera Model
Readonly: 1
Type: TEXT
Current: Canon PowerShot G7 X Mark II
END
/main/status/model
Label: Camera Model
Readonly: 1
Type: TEXT
Current: 60227584
END
/main/status/firmwareversion
Label: Firmware Version
Readonly: 1
Type: TEXT
Current: 1.1.0.0
END
/main/status/batterylevel
Label: Battery Level
Readonly: 1
Type: TEXT
Current: 99%
END
/main/status/batterylevel
Label: Battery Level
Readonly: 1
Type: TEXT
Current: 100%
END
/main/status/eosserialnumber
Label: Serial Number
Readonly: 1
Type: TEXT
Current: 463059000611
END
/main/status/availableshots
Label: Available Shots
Readonly: 1
Type: TEXT
Current: 3467
END
/main/imgsettings/imageformat
Label: Image Format
Readonly: 0
Type: RADIO
Current: Large Fine JPEG
Choice: 0 Large Fine JPEG
END
/main/imgsettings/iso
Label: ISO Speed
Readonly: 0
Type: RADIO
Current: Auto
Choice: 0 Auto
Choice: 1 125
Choice: 2 160
Choice: 3 200
Choice: 4 250
Choice: 5 320
Choice: 6 400
Choice: 7 500
Choice: 8 640
Choice: 9 800
Choice: 10 1000
Choice: 11 1250
Choice: 12 1600
Choice: 13 2000
Choice: 14 2500
Choice: 15 3200
Choice: 16 4000
Choice: 17 5000
Choice: 18 6400
Choice: 19 8000
Choice: 20 10000
Choice: 21 12800
END
/main/imgsettings/whitebalance
Label: WhiteBalance
Readonly: 0
Type: RADIO
Current: Auto
Choice: 0 Auto
END
/main/capturesettings/zoom
Label: Zoom
Readonly: 0
Type: RANGE
Current: 0
Bottom: 0
Top: 1000
Step: 1
END
/main/capturesettings/exposurecompensation
Label: Exposure Compensation
Readonly: 0
Type: RADIO
Current: 0
Choice: 0 -3
Choice: 1 -2.6
Choice: 2 -2.3
Choice: 3 -2
Choice: 4 -1.6
Choice: 5 -1.3
Choice: 6 -1
Choice: 7 -0.6
Choice: 8 -0.3
Choice: 9 0
Choice: 10 0.3
Choice: 11 0.6
Choice: 12 1
Choice: 13 1.3
Choice: 14 1.6
Choice: 15 2
Choice: 16 2.3
Choice: 17 2.6
Choice: 18 3
END
/main/capturesettings/focusmode
Label: Focus Mode
Readonly: 0
Type: RADIO
Current: One Shot
Choice: 0 One Shot
END
/main/capturesettings/continuousaf
Label: Continuous AF
Readonly: 0
Type: RADIO
Current: On
Choice: 0 Off
Choice: 1 On
END
/main/capturesettings/aspectratio
Label: Aspect Ratio
Readonly: 0
Type: RADIO
Current: 16:9
Choice: 0 16:9
END
/main/capturesettings/storageid
Label: Storage Device
Readonly: 0
Type: TEXT
Current: 00010001
END
/main/capturesettings/autoexposuremode
Label: Canon Auto Exposure Mode
Readonly: 0
Type: RADIO
Current: P
Choice: 0 P
Choice: 1 TV
Choice: 2 AV
Choice: 3 Manual
Choice: 4 Bulb
Choice: 5 A_DEP
Choice: 6 DEP
Choice: 7 Custom
Choice: 8 Lock
Choice: 9 Green
Choice: 10 Night Portrait
Choice: 11 Sports
Choice: 12 Portrait
Choice: 13 Landscape
Choice: 14 Closeup
Choice: 15 Flash Off
Choice: 16 C2
Choice: 17 C3
Choice: 18 Creative Auto
Choice: 19 Movie
Choice: 20 Auto
Choice: 21 Handheld Night Scene
Choice: 22 HDR Backlight Control
Choice: 23 SCN
Choice: 24 Food
Choice: 25 Grainy B/W
Choice: 26 Soft focus
Choice: 27 Toy camera effect
Choice: 28 Fish-eye effect
Choice: 29 Water painting effect
Choice: 30 Miniature effect
Choice: 31 HDR art standard
Choice: 32 HDR art vivid
Choice: 33 HDR art bold
Choice: 34 HDR art embossed
Choice: 35 Panning
Choice: 36 HDR
Choice: 37 Self Portrait
Choice: 38 Hybrid Auto
Choice: 39 Smooth skin
Choice: 40 Fv
END
/main/capturesettings/autoexposuremodedial
Label: Canon Auto Exposure Mode Dial
Readonly: 0
Type: RADIO
Current: Auto
Choice: 0 P
Choice: 1 TV
Choice: 2 AV
Choice: 3 Manual
Choice: 4 Bulb
Choice: 5 A_DEP
Choice: 6 DEP
Choice: 7 Custom
Choice: 8 Lock
Choice: 9 Green
Choice: 10 Night Portrait
Choice: 11 Sports
Choice: 12 Portrait
Choice: 13 Landscape
Choice: 14 Closeup
Choice: 15 Flash Off
Choice: 16 C2
Choice: 17 C3
Choice: 18 Creative Auto
Choice: 19 Movie
Choice: 20 Auto
Choice: 21 Handheld Night Scene
Choice: 22 HDR Backlight Control
Choice: 23 SCN
Choice: 24 Food
Choice: 25 Grainy B/W
Choice: 26 Soft focus
Choice: 27 Toy camera effect
Choice: 28 Fish-eye effect
Choice: 29 Water painting effect
Choice: 30 Miniature effect
Choice: 31 HDR art standard
Choice: 32 HDR art vivid
Choice: 33 HDR art bold
Choice: 34 HDR art embossed
Choice: 35 Panning
Choice: 36 HDR
Choice: 37 Self Portrait
Choice: 38 Hybrid Auto
Choice: 39 Smooth skin
Choice: 40 Fv
END
/main/capturesettings/drivemode
Label: Drive Mode
Readonly: 0
Type: RADIO
Current: Single
Choice: 0 Single
Choice: 1 Continuous high speed
Choice: 2 Continuous
Choice: 3 Timer 10 sec
Choice: 4 Timer 2 sec
END
/main/capturesettings/aperture
Label: Aperture
Readonly: 0
Type: RADIO
Current: implicit auto
Choice: 0 implicit auto
END
/main/capturesettings/shutterspeed
Label: Shutter Speed
Readonly: 0
Type: RADIO
Current: auto
Choice: 0 auto
END
/main/capturesettings/meteringmode
Label: Metering Mode
Readonly: 0
Type: RADIO
Current: Evaluative
Choice: 0 Evaluative
END
/main/capturesettings/liveviewsize
Label: Live View Size
Readonly: 0
Type: RADIO
Current: Small
Choice: 0 Small
END
/main/other/d045
Label: Event Emulate Mode
Readonly: 0
Type: MENU
Current: 9
Choice: 0 1
Choice: 1 2
Choice: 2 3
Choice: 3 4
Choice: 4 5
Choice: 5 6
Choice: 6 7
END
/main/other/d04a
Label: PTP Property 0xd04a
Readonly: 0
Type: MENU
Current: 0
Choice: 0 0
Choice: 1 1
Choice: 2 2
Choice: 3 3
END
/main/other/d02e
Label: Size of Output Data from Camera
Readonly: 1
Type: TEXT
Current: 524288
END
/main/other/d02f
Label: Size of Input Data to Camera
Readonly: 1
Type: TEXT
Current: 524288
END
/main/other/5001
Label: Battery Level
Readonly: 1
Type: MENU
Current: 3
Choice: 0 0
Choice: 1 1
Choice: 2 2
Choice: 3 3
END
/main/other/d002
Label: Battery Type
Readonly: 1
Type: MENU
Current: 0
Choice: 0 0
Choice: 1 1
Choice: 2 2
Choice: 3 3
Choice: 4 4
Choice: 5 5
END
/main/other/d003
Label: Battery Mode
Readonly: 1
Type: MENU
Current: 1
Choice: 0 0
Choice: 1 1
Choice: 2 2
Choice: 3 3
END
/main/other/d034
Label: UNIX Time
Readonly: 0
Type: TEXT
Current: 1683751567
END
/main/other/d047
Label: Type of Slideshow
Readonly: 1
Type: TEXT
Current: 0
END
/main/other/d046
Label: DPOF Version
Readonly: 1
Type: TEXT
Current: 257
END
/main/other/d030
Label: Remote API Version
Readonly: 1
Type: TEXT
Current: 256
END
/main/other/d049
Label: Model ID
Readonly: 1
Type: TEXT
Current: 60227584
END
/main/other/d032
Label: Camera Model
Readonly: 1
Type: TEXT
Current: Canon PowerShot G7 X Mark II
END
/main/other/d033
Label: Camera Owner
Readonly: 0
Type: TEXT
Current: (null)
END
/main/other/d031
Label: Firmware Version
Readonly: 1
Type: TEXT
Current: 16842752
END
/main/other/d050
Label: PTP Property 0xd050
Readonly: 1
Type: TEXT
Current: 0
END
/main/other/d051
Label: PTP Property 0xd051
Readonly: 1
Type: TEXT
Current: (null)
END
/main/other/d052
Label: PTP Property 0xd052
Readonly: 1
Type: TEXT
Current: 0
END
/main/other/d053
Label: PTP Property 0xd053
Readonly: 0
Type: TEXT
Current: (null)
END
/main/other/d054
Label: PTP Property 0xd054
Readonly: 0
Type: TEXT
Current: (null)
END
/main/other/d057
Label: PTP Property 0xd057
Readonly: 1
Type: TEXT
Current: 463059000611
END
/main/other/d402
Label: PTP Property 0xd402
Readonly: 1
Type: TEXT
Current: Canon PowerShot G7 X Mark II
END
/main/other/d406
Label: PTP Property 0xd406
Readonly: 0
Type: TEXT
Current: Windows
END
/main/other/d407
Label: PTP Property 0xd407
Readonly: 1
Type: TEXT
Current: 1
END
/main/other/d303
Label: PTP Property 0xd303
Readonly: 1
Type: TEXT
Current: 1
END
list-config-output.txt (text/plain, 1.8 KB)
/main/actions/syncdatetimeutc
/main/actions/uilock
/main/actions/autofocusdrive
/main/actions/cancelautofocus
/main/actions/viewfinder
/main/actions/eosremoterelease
/main/actions/eosmoviemode
/main/actions/opcode
/main/settings/datetimeutc
/main/settings/datetime
/main/settings/output
/main/settings/evfmode
/main/settings/ownername
/main/settings/ownername
/main/settings/artist
/main/settings/copyright
/main/settings/depthoffield
/main/settings/capturetarget
/main/settings/capture
/main/settings/remotemode
/main/settings/eventmode
/main/settings/testolc
/main/status/serialnumber
/main/status/manufacturer
/main/status/cameramodel
/main/status/deviceversion
/main/status/vendorextension
/main/status/model
/main/status/model
/main/status/firmwareversion
/main/status/batterylevel
/main/status/batterylevel
/main/status/eosserialnumber
/main/status/availableshots
/main/imgsettings/imageformat
/main/imgsettings/iso
/main/imgsettings/whitebalance
/main/capturesettings/zoom
/main/capturesettings/exposurecompensation
/main/capturesettings/focusmode
/main/capturesettings/continuousaf
/main/capturesettings/aspectratio
/main/capturesettings/storageid
/main/capturesettings/autoexposuremode
/main/capturesettings/autoexposuremodedial
/main/capturesettings/drivemode
/main/capturesettings/aperture
/main/capturesettings/shutterspeed
/main/capturesettings/meteringmode
/main/capturesettings/liveviewsize
/main/other/d045
/main/other/d04a
/main/other/d02e
/main/other/d02f
/main/other/5001
/main/other/d002
/main/other/d003
/main/other/d034
/main/other/d047
/main/other/d046
/main/other/d030
/main/other/d049
/main/other/d032
/main/other/d033
/main/other/d031
/main/other/d050
/main/other/d051
/main/other/d052
/main/other/d053
/main/other/d054
/main/other/d057
/main/other/d402
/main/other/d406
/main/other/d407
/main/other/d303
list-summary-output.txt (text/plain, 2.3 KB)
Camera summary:
Manufacturer: Canon Inc.
Model: Canon PowerShot G7 X Mark II
  Version: 1-15.0.1.0
  Serial Number: 45F5EE7EFA49A625B19442B761BED518
Vendor Extension ID: 0xb (1.0)
Vendor Extension Description: 

Capture Formats: JPEG
Display Formats: Association/Directory, Script, DPOF, MS Wave, JPEG, Defined Type, Unknown(b103), Unknown(b982), Unknown(b105), Unknown(bf01)

Device Capabilities:
	File Download, File Deletion, File Upload
	No Image Capture, No Open Capture, Canon EOS Capture 2

Storage Devices Summary:
store_00010001:
	StorageDescription: SD
	VolumeLabel: 
	Storage Type: Removable RAM (memory card)
	Filesystemtype: Digital Camera Layout (DCIM)
	Access Capability: Read-Write
	Maximum Capability: 31902433280 (30424 MB)
	Free Space (Bytes): 30908055552 (29476 MB)
	Free Space (Images): -1

Device Property Summary:
Event Emulate Mode(0xd045):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,7] value: 0
Property 0xd04a:(readwrite) (type=0x2) Enumeration [0,1,2,3] value: 0
Size of Output Data from Camera(0xd02e):(read only) (type=0x6) 524288
Size of Input Data to Camera(0xd02f):(read only) (type=0x6) 524288
Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3] value: 3% (3)
Battery Type(0xd002):(read only) (type=0x4) Enumeration [0,1,2,3,4,5] value: Unknown (0)
Battery Mode(0xd003):(read only) (type=0x6) Enumeration [0,1,2,3] value: Normal (1)
UNIX Time(0xd034):(readwrite) (type=0x6) 1683750704
Type of Slideshow(0xd047):(read only) (type=0x4) 0
DPOF Version(0xd046):(read only) (type=0x4) 257
Remote API Version(0xd030):(read only) (type=0x6) 256
Model ID(0xd049):(read only) (type=0x6) 60227584
Camera Model(0xd032):(read only) (type=0xffff) 'Canon PowerShot G7 X Mark II'
Camera Owner(0xd033):(readwrite) (type=0x4002) a[0] 
Firmware Version(0xd031):(read only) (type=0x6) 16842752
Property 0xd050:(read only) (type=0x2) 0
Property 0xd051:(read only) (type=0x4004) a[2] 14337,47490
Property 0xd052:(read only) (type=0x2) 0
Property 0xd053:(readwrite) (type=0x4002) a[0] 
Property 0xd054:(readwrite) (type=0x4002) a[0] 
Property 0xd057:(read only) (type=0xffff) '463059000611'
Property 0xd402:(read only) (type=0xffff) 'Canon PowerShot G7 X Mark II'
Property 0xd406:(readwrite) (type=0xffff) 'Windows'
Property 0xd407:(read only) (type=0x6) 1
Property 0xd303:(read only) (type=0x2) 1