{"action":"created","issue":{"url":"https://api.github.com/repos/gphoto/libgphoto2/issues/94","repository_url":"https://api.github.com/repos/gphoto/libgphoto2","labels_url":"https://api.github.com/repos/gphoto/libgphoto2/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/gphoto/libgphoto2/issues/94/comments","events_url":"https://api.github.com/repos/gphoto/libgphoto2/issues/94/events","html_url":"https://github.com/gphoto/libgphoto2/issues/94","id":180442225,"number":94,"title":"Cannot take long exposures on Nikon D5100 camera with latest gphoto2","user":{"login":"jonbelanger","id":11507653,"avatar_url":"https://avatars.githubusercontent.com/u/11507653?v=3","gravatar_id":"","url":"https://api.github.com/users/jonbelanger","html_url":"https://github.com/jonbelanger","followers_url":"https://api.github.com/users/jonbelanger/followers","following_url":"https://api.github.com/users/jonbelanger/following{/other_user}","gists_url":"https://api.github.com/users/jonbelanger/gists{/gist_id}","starred_url":"https://api.github.com/users/jonbelanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonbelanger/subscriptions","organizations_url":"https://api.github.com/users/jonbelanger/orgs","repos_url":"https://api.github.com/users/jonbelanger/repos","events_url":"https://api.github.com/users/jonbelanger/events{/privacy}","received_events_url":"https://api.github.com/users/jonbelanger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"msmeissn","id":1862900,"avatar_url":"https://avatars.githubusercontent.com/u/1862900?v=3","gravatar_id":"","url":"https://api.github.com/users/msmeissn","html_url":"https://github.com/msmeissn","followers_url":"https://api.github.com/users/msmeissn/followers","following_url":"https://api.github.com/users/msmeissn/following{/other_user}","gists_url":"https://api.github.com/users/msmeissn/gists{/gist_id}","starred_url":"https://api.github.com/users/msmeissn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msmeissn/subscriptions","organizations_url":"https://api.github.com/users/msmeissn/orgs","repos_url":"https://api.github.com/users/msmeissn/repos","events_url":"https://api.github.com/users/msmeissn/events{/privacy}","received_events_url":"https://api.github.com/users/msmeissn/received_events","type":"User","site_admin":false},"assignees":[{"login":"msmeissn","id":1862900,"avatar_url":"https://avatars.githubusercontent.com/u/1862900?v=3","gravatar_id":"","url":"https://api.github.com/users/msmeissn","html_url":"https://github.com/msmeissn","followers_url":"https://api.github.com/users/msmeissn/followers","following_url":"https://api.github.com/users/msmeissn/following{/other_user}","gists_url":"https://api.github.com/users/msmeissn/gists{/gist_id}","starred_url":"https://api.github.com/users/msmeissn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msmeissn/subscriptions","organizations_url":"https://api.github.com/users/msmeissn/orgs","repos_url":"https://api.github.com/users/msmeissn/repos","events_url":"https://api.github.com/users/msmeissn/events{/privacy}","received_events_url":"https://api.github.com/users/msmeissn/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2016-10-01T06:51:41Z","updated_at":"2016-10-10T08:04:35Z","closed_at":null,"body":"I just compiled libgphoto2 and gphoto2, but the problem persists.\r\n\r\nThe issue is basically this:\r\n\r\nroot@jon-desktop:~# gphoto2 --auto-detect --set-config=/main/settings/capturetarget=0\r\nModel                          Port                                            \r\n----------------------------------------------------------\r\nNikon DSC D5100 (PTP mode)     usb:001,010     \r\nroot@jon-desktop:~# gphoto2 --auto-detect --get-config=/main/settings/capturetarget\r\nModel                          Port                                            \r\n----------------------------------------------------------\r\nNikon DSC D5100 (PTP mode)     usb:001,010     \r\nLabel: Capture Target\r\nType: RADIO\r\nCurrent: Internal RAM\r\nChoice: 0 Internal RAM\r\nChoice: 1 Memory card\r\nroot@jon-desktop:~# env LANG=C gphoto2 --auto-detect --debug --debug-logfile=gphoto2-latest-internalram.log --capture-image-and-download\r\nModel                          Port                                            \r\n----------------------------------------------------------\r\nNikon DSC D5100 (PTP mode)     usb:001,010     \r\nERROR: Could not capture image.\r\nERROR: Could not capture.\r\nNew file is in location /capt0000.nef on the camera                            \r\nFile capt0000.nef exists. Overwrite? [y|n] n\r\nSpecify new filename? [y|n] y\r\nEnter new filename: capt0000-2.nef\r\nSaving file as capt0000-2.nef\r\nDeleting file /capt0000.nef on the camera\r\n\r\nThis is with shutterspeed set to option 51 (30 seconds) (set using stock Ubuntu MATE gphoto2, but the setting persisted into using the latest compiled versions):\r\n\r\n# gphoto2 --auto-detect --set-config=/main/capturesettings/shutterspeed=51\r\nModel                          Port                                            \r\n----------------------------------------------------------\r\nNikon DSC D5100 (PTP mode)     usb:001,009\r\n\r\nThere is an extremely long pause between the shutter closing and the image downloading.  When it does finally download the two ERROR messages appear in the terminal along with the New file messages.  The file does actually download eventually, but these timeouts are causing problems with other software that relies on gphoto2."},"comment":{"url":"https://api.github.com/repos/gphoto/libgphoto2/issues/comments/252556169","html_url":"https://github.com/gphoto/libgphoto2/issues/94#issuecomment-252556169","issue_url":"https://api.github.com/repos/gphoto/libgphoto2/issues/94","id":252556169,"user":{"login":"msmeissn","id":1862900,"avatar_url":"https://avatars.githubusercontent.com/u/1862900?v=3","gravatar_id":"","url":"https://api.github.com/users/msmeissn","html_url":"https://github.com/msmeissn","followers_url":"https://api.github.com/users/msmeissn/followers","following_url":"https://api.github.com/users/msmeissn/following{/other_user}","gists_url":"https://api.github.com/users/msmeissn/gists{/gist_id}","starred_url":"https://api.github.com/users/msmeissn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msmeissn/subscriptions","organizations_url":"https://api.github.com/users/msmeissn/orgs","repos_url":"https://api.github.com/users/msmeissn/repos","events_url":"https://api.github.com/users/msmeissn/events{/privacy}","received_events_url":"https://api.github.com/users/msmeissn/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T08:04:35Z","updated_at":"2016-10-10T08:04:35Z","body":"looking at the timing the image gets added after 60 seconds , here are the interrupts:\r\n\r\n66.152622 _cb_irq                     (2): 0x489700 with status 0\r\n66.152758 _cb_irq                     (3): interrupt (hexdump of 16 bytes)\r\n0000  10 00 00 00 04 00 02 40-ff ff ff ff 2c 49 19 09  .......@....,I..\r\n\r\n66.152817 _cb_irq                     (2): requeuing complete transfer 0x489700\r\n66.248585 _cb_irq                     (2): 0x48ff08 with status 0\r\n66.248641 _cb_irq                     (3): interrupt (hexdump of 16 bytes)\r\n0000  10 00 00 00 04 00 0d 40-ff ff ff ff 07 01 00 00  .......@........\r\n\r\nwhich is weird for a 30 seconds exposure. But as it around 2x30 seconds ... Is the camera taking a dark-reference picture right afterwards?\r\n"}}
{"actor":{"display_login":"msmeissn"}}