darktable
darktable copied to clipboard
D40 detected and working in gphoto2 but no camera with tethering support available for use
Is there an existing issue for this?
- [x] I checked and did not find my issue in the already reported ones
Describe the bug
Nikon D40 connected to motherboard USB port but taking photos does not import. selecting tethering displays an error. Clicking the Settings Gear triggers /usr/libexec/gvfs-gphoto2-volume-monitor if the SD card is inserted?
Steps to reproduce
- click other > tethering
- No camera with tethering support available for use...
Expected behavior
Connect to camera, and if not report something useful?
Logfile | Screenshot | Screencast
Linux HOSTNAME 6.14.0-36-generic #36~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Oct 15 15:45:17 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
env LANG=C gphoto2 --auto-detect
Model Port
----------------------------------------------------------
Nikon DSC D40 (PTP mode) usb:003,033
gphoto2 --port usb: --capture-tethered
Waiting for events from camera. Press Ctrl-C to abort.
UNKNOWN PTP Property 5001 changed, "batterylevel" to "35%"
UNKNOWN PTP Property d103 changed, "maximumshots" to "5.000000"
FOLDERADDED 100NCD40 /store_00010001/DCIM
UNKNOWN PTP Event 400c, Param1 00010001
UNKNOWN PTP Property d103 changed, "maximumshots" to "6.000000"
Saving file as DSC_0001.JPG
UNKNOWN PTP Event 400c, Param1 00010001
UNKNOWN PTP Property d103 changed, "maximumshots" to "7.000000"
^C
Cancelling...
darktable 5.3.0~git970.5d23285b-1+13463.1
Copyright (C) 2012-2025 Johannes Hanika and other contributors.
Compile options:
Bit depth -> 64 bit
Exiv2 -> 0.27.6
Lensfun -> 0.3.4
Debug -> DISABLED
SSE2 optimizations -> ENABLED
OpenMP -> ENABLED
OpenCL -> ENABLED
Lua -> ENABLED - API version 9.6.0
Colord -> ENABLED
gPhoto2 -> ENABLED
OSMGpsMap -> ENABLED - map view is available
GMIC -> ENABLED - Compressed LUTs are supported
GraphicsMagick -> ENABLED
ImageMagick -> DISABLED
libavif -> DISABLED
libheif -> ENABLED
libjxl -> ENABLED
LibRaw -> ENABLED - Version 0.22.0-PreRC1
OpenJPEG -> ENABLED
OpenEXR -> ENABLED
WebP -> ENABLED
See https://www.darktable.org/resources/ for detailed documentation.
See https://github.com/darktable-org/darktable/issues/new/choose to report bugs.
0.0001 [dt starting]
darktable -d camctl
0.5298 [camera_control] creating new context 0x583e32707ff0
0.5396 [camera_control] loaded 2668 camera drivers
4.0671 [camera_control] loaded 42 port drivers
4.1558 [camera_control] 1 cameras connected
4.1559 [camera_control] found new Nikon DSC D40 (PTP mode) on port usb:003,031
276.7745 [camera_control] destroy darktable camcontrol
darktable -d all
darktable 5.3.0~git970.5d23285b-1+13463.1
Copyright (C) 2012-2025 Johannes Hanika and other contributors.
Compile options:
Bit depth -> 64 bit
Exiv2 -> 0.27.6
Lensfun -> 0.3.4
Debug -> DISABLED
SSE2 optimizations -> ENABLED
OpenMP -> ENABLED
OpenCL -> ENABLED
Lua -> ENABLED - API version 9.6.0
Colord -> ENABLED
gPhoto2 -> ENABLED
OSMGpsMap -> ENABLED - map view is available
GMIC -> ENABLED - Compressed LUTs are supported
GraphicsMagick -> ENABLED
ImageMagick -> DISABLED
libavif -> DISABLED
libheif -> ENABLED
libjxl -> ENABLED
LibRaw -> ENABLED - Version 0.22.0-PreRC1
OpenJPEG -> ENABLED
OpenEXR -> ENABLED
WebP -> ENABLED
See https://www.darktable.org/resources/ for detailed documentation.
See https://github.com/darktable-org/darktable/issues/new/choose to report bugs.
0.0001 [dt starting]
darktable -d all
0.0001 application_directory: /usr/bin
0.0001 darktable.datadir: /usr/share/darktable
0.0002 darktable.plugindir: /usr/lib/x86_64-linux-gnu/darktable
0.0002 darktable.localedir: /usr/share/locale
0.0002 darktable.sharedir: /usr/share
0.0002 darktable.configdir: /home/USERNAME/.config/darktable
0.0002 darktable.cachedir: /home/USERNAME/.cache/darktable
0.0002 darktable.tmpdir: /tmp
0.0003 [memory] at startup
max address space (vmpeak): 125148 kB
cur address space (vmsize): 125148 kB
max used memory (vmhwm ): 28676 kB
cur used memory (vmrss ): 28676 kB
0.0003 new_xdg_data_dirs: /usr/share:/usr/share/ubuntu:/usr/share/gnome:/home/USERNAME/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
0.1585 [init sql] library: /home/USERNAME/.config/darktable/library.db, data: /home/USERNAME/.config/darktable/data.db
0.1766 [sql] ./src/common/tags.c:685, function dt_set_darktable_tags(): exec "DELETE FROM memory.darktable_tags"
0.1767 [sql] ./src/common/tags.c:690, function dt_set_darktable_tags(): prepare "INSERT INTO memory.darktable_tags (tagid) SELECT DISTINCT id FROM data.tags WHERE name LIKE 'darktable|%%'"
0.1825 [dt_worker_threads] using 7 worker threads
0.1837 [undo] init
... SQL stuff
0.2280 [dt_configure_runtime_performance] found a sufficient 64-bit system with 15676 Mb ram and 8 cores
0.2280 [dt_get_sysresource_level] switched to `default'
0.2280 total mem: 15676MB
0.2281 available mem: 7838MB
0.2281 singlebuff: 122MB
0.2281 mipmap cache: 1959MB
...SQL stuff
0.2291 [pwstorage_new] Creating new context 0x5a273a4759b0
0.2291 [pwstorage_new] no storage backend. not storing username/password. please change in preferences, security tab
0.2523 [add_job] 00 detect opencl devices | queue: DT_JOB_QUEUE_SYSTEM_BG | priority: 0
0.2524 [run_job+] 06 detect opencl devices | queue: DT_JOB_QUEUE_SYSTEM_BG | priority: 0
0.2524 [wb_presets] loading wb_presets from `/usr/share/darktable/wb_presets.json'
0.2524 [opencl_init] opencl disabled via darktable preferences
0.2526 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL'
0.2528 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL.so'
0.2533 [opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded, preference 'default path'
0.2533 [opencl_init] 0 platforms detected, error: Unknown OpenCL error
0.2533 [opencl_init] FINALLY: opencl PREFERENCE=OFF is NOT AVAILABLE and NOT ENABLED.
0.2533 [run_job-] 06 detect opencl devices | queue: DT_JOB_QUEUE_SYSTEM_BG | priority: 0
...
0.5317 [camera_control] loaded 2668 camera drivers
0.5865 [dt_get_system_gui_ppd] system ppd is 1.000000
0.5865 [screen resolution] setting the screen resolution to 96.000000 dpi
...
0.9047 [input device] Input devices found:
...
0.9048 Wacom HID 4998 Pen (Eraser) (no cursor), source: GDK_SOURCE_ERASER, mode: GDK_MODE_SCREEN, 2 axes, 0 keys
0.9048 GDK_AXIS_X
0.9048 GDK_AXIS_Y
0.9048 Wacom HID 4998 Pen (no cursor), source: GDK_SOURCE_PEN, mode: GDK_MODE_SCREEN, 2 axes, 0 keys
0.9048 GDK_AXIS_X
0.9048 GDK_AXIS_Y
0.9048 Wayland Touch (no cursor), source: GDK_SOURCE_TOUCHSCREEN, mode: GDK_MODE_SCREEN, 2 axes, 0 keys
0.9048 GDK_AXIS_X
0.9048 GDK_AXIS_Y
0.9048 Wayland Keyboard (no cursor), source: GDK_SOURCE_KEYBOARD, mode: GDK_MODE_SCREEN, 0 axes, 0 keys
0.9048 Wayland Pointer (with cursor), source: GDK_SOURCE_MOUSE, mode: GDK_MODE_SCREEN, 2 axes, 0 keys
0.9048 GDK_AXIS_X
0.9048 GDK_AXIS_Y
...
1.8664 [dt_get_system_gui_ppd] system ppd is 1.000000
1.8664 [screen resolution] setting the screen resolution to 96.000000 dpi
1.8683 [dt_init] startup took 1.868251 seconds
1.8683 [memory] after successful startup
max address space (vmpeak): 2454052 kB
cur address space (vmsize): 2393760 kB
max used memory (vmhwm ): 171260 kB
cur used memory (vmrss ): 170824 kB
1.9354 [dt_get_system_gui_ppd] system ppd is 1.000000
1.9355 [screen resolution] setting the screen resolution to 96.000000 dpi
1.9418 [sql] ./src/common/collection.c:876, function _dt_collection_compute_count(): prepare "SELECT COUNT(DISTINCT sel.id) FROM (SELECT mi.id, filename, version FROM main.images AS mi WHERE (flags & 256) != 256 AND (( (film_id IN (SELECT id FROM main.film_rolls WHERE folder LIKE '%'))) AND ( (id NOT IN (SELECT imgid FROM main.module_order)) AND (1=1)))) AS sel ORDER BY filename, version ASC LIMIT ?1, ?2"
1.9455 [sql] ./src/libs/collect.c:2263, function _list_view(): prepare "SELECT folder, film_rolls_id, COUNT(*) AS count, status FROM main.images AS mi JOIN (SELECT fr.id AS film_rolls_id, folder, status FROM main.film_rolls AS fr JOIN memory.film_folder AS ff ON ff.id = fr.id) ON film_id = film_rolls_id WHERE (1=1) GROUP BY folder ORDER BY film_rolls_id DESC"
1.9472 [sql] ./src/libs/metadata_view.c:512, function gui_update(): prepare "SELECT id, COUNT(id) FROM main.images WHERE id IN (SELECT imgid FROM main.selected_images)"
1.9487 [sql] ./src/libs/tools/timeline.c:596, function _time_read_bounds_from_collection(): prepare "SELECT MIN(db.datetime_taken) AS dt FROM main.images AS db, memory.collected_images AS col WHERE db.id=col.imgid AND db.datetime_taken > 1"
1.9487 [sql] ./src/libs/tools/timeline.c:612, function _time_read_bounds_from_collection(): prepare "SELECT MAX(db.datetime_taken) AS dt FROM main.images AS db, memory.collected_images AS col WHERE db.id=col.imgid"
1.9487 [sql] ./src/libs/tools/timeline.c:673, function _block_get_at_zoom(): prepare "SELECT db.datetime_taken AS dt, col.imgid FROM main.images AS db LEFT JOIN memory.collected_images AS col ON db.id=col.imgid WHERE dt > 0 ORDER BY dt ASC"
1.9568 [lighttable] expose took 0.0007 sec
1.9668 [sql] ./src/libs/lib.c:739, function dt_lib_init_presets(): prepare "DELETE FROM data.presets WHERE operation=?1"
1.9670 [sql] ./src/libs/lib.c:831, function dt_lib_init_presets(): prepare "SELECT name FROM data.presets WHERE operation=?1 AND op_version=?2 ORDER BY writeprotect DESC, name, rowid"
1.9671 [undo] clear list for 2047 (length 0)
1.9671 [undo] clear list for 2047 (length 0)
2.0638 [undo] clear list for 2047 (length 0)
2.0638 [undo] clear list for 2047 (length 0)
2.1107 LUA ERROR : cannot open /home/USERNAME/.config/darktable/luarc: No such file or directory
2.1312 [dt_get_system_gui_ppd] system ppd is 1.000000
2.1312 [screen resolution] setting the screen resolution to 96.000000 dpi
2.1361 [lighttable] expose took 0.0000 sec
2.1499 [color profile] colord gave us a new screen profile: '/home/USERNAME/.local/share/icc/edid-863620566f4e60325b0edd177bb3fff9.icc' (size: 1584)
2.1696 [lighttable] expose took 0.0000 sec
2.1847 [lighttable] expose took 0.0000 sec
4.0638 [camera_control] loaded 42 port drivers
4.1577 [camera_control] 1 cameras connected
4.1577 [camera_control] found new Nikon DSC D40 (PTP mode) on port usb:003,034
4.1670 [lighttable] expose took 0.0000 sec
4.3031 [lighttable] expose took 0.0000 sec
4.3265 [lighttable] expose took 0.0000 sec
4.3459 [lighttable] expose took 0.0000 sec
4.3768 [lighttable] expose took 0.0000 sec
4.3929 [lighttable] expose took 0.0000 sec
4.4095 [lighttable] expose took 0.0000 sec
4.4251 [lighttable] expose took 0.0000 sec
4.4424 [lighttable] expose took 0.0000 sec
4.4609 [lighttable] expose took 0.0000 sec
4.4776 [lighttable] expose took 0.0000 sec
4.4937 [lighttable] expose took 0.0000 sec
4.5004 [lighttable] expose took 0.0000 sec
^C 22.9637 [db maintenance] main: [0/53 pages], data: [3/88 pages]
22.9638 [db backup] checking snapshots existence
22.9639 [db backup] found file: library.db-pre-5.3.0
22.9640 [db backup] found file: library.db-pre-4.6.1
22.9640 [db backup] last snap: 20251206133823; curr date: 20251206153815
22.9665 [undo] clear list for 2047 (length 0)
22.9665 [undo] clear list for 2047 (length 0)
23.0101 [dt_control_shutdown] closing control threads
23.7705 [run_job-] 06 synchronize sidecars | queue: DT_JOB_QUEUE_SYSTEM_FG | priority: 4
24.1862 [dt_control_shutdown] joined kicker
24.1863 [dt_control_shutdown] joined num_thread 0
24.1864 [dt_control_shutdown] joined num_thread 1
24.1865 [dt_control_shutdown] joined num_thread 2
24.1865 [dt_control_shutdown] joined num_thread 3
24.1865 [dt_control_shutdown] joined num_thread 4
24.1865 [dt_control_shutdown] joined num_thread 5
24.1866 [dt_control_shutdown] joined worker 0
24.1866 [dt_control_shutdown] joined worker 1
24.1867 [dt_control_shutdown] joined worker 2
24.1982 Session fullpipe cache report. hits/run=0.00, hits/test=0.000
24.2046 [undo] clear list for 2047 (length 0)
24.2046 [undo] clear list for 2047 (length 0)
24.2046 [image cache cleaup report] fill 0.00/50.00 MB (0.00%)
24.2176 [camera_control] destroy darktable camcontrol
24.2205 [pwstorage_new] Destroying context 0x5a273a4759b0
24.2208 [sql] ./src/common/database.c:5103, function dt_database_optimize(): exec "PRAGMA optimize"
Commit
No response
Where did you obtain darktable from?
darktable.org / GitHub release
darktable version
5.3.0~git970.5d23285b-1+13463.1
What OS are you using?
Linux
What is the version of your OS?
Ubuntu 24.04
Describe your system
HP x360 1040 G8 16GB, Wayland
dpkg -l libgtk* | grep -e '^i' | grep -e 'libgtk-*[0-9]'
ii libgtk-3-0t64:amd64 3.24.41-4ubuntu1.3 amd64 GTK graphical user interface library
ii libgtk-3-0t64:i386 3.24.41-4ubuntu1.3 i386 GTK graphical user interface library
ii libgtk-3-bin 3.24.41-4ubuntu1.3 amd64 programs for the GTK graphical user interface library
ii libgtk-3-common 3.24.41-4ubuntu1.3 all common files for the GTK graphical user interface library
ii libgtk-4-1:amd64 4.14.5+ds-0ubuntu0.6 amd64 GTK graphical user interface library
ii libgtk-4-bin 4.14.5+ds-0ubuntu0.6 amd64 programs for the GTK graphical user interface library
ii libgtk-4-common 4.14.5+ds-0ubuntu0.6 all common files for the GTK graphical user interface library
ii libgtk-4-media-gstreamer 4.14.5+ds-0ubuntu0.6 amd64 GStreamer media backend for the GTK graphical user interface library
ii libgtk2.0-0t64:amd64 2.24.33-4ubuntu1.1 amd64 GTK graphical user interface library - old version
ii libgtk2.0-bin 2.24.33-4ubuntu1.1 amd64 programs for the GTK graphical user interface library
ii libgtk2.0-common 2.24.33-4ubuntu1.1 all common files for the GTK graphical user interface library
ii libgtk3-perl 0.038-3 all Perl bindings for the GTK+ graphical user interface library
Are you using OpenCL GPU in darktable?
I dont know
If yes, what is the GPU card and driver?
No response
Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip
can't import any picture so never got there.
Tested the exact same configuration using Entangle and it can connect and take photos