How do I get gphoto2 to fetch a photo from a Sony alpha 6000?












0














How do I get gphoto2 to fetch a photo from a Sony alpha 6000?



I'm currently running gphoto2 on a Beaglebone black, but I suspect it should work on any Linux system with a USB port.



I use



gphoto2 --capture-image-and-download --force-overwrite --filename test.jpg


with another camera to pull in a snapshot.
But when I unplug that camera and plug in the Sony alpha 6000 to the same USB port and run the same command, gphoto2 tells me



ERROR: Could not capture image.
ERROR: Could not capture.


While trying to debug, I try



gphoto2 --abilities


and then gphoto2 responds with



Abilities for camera             : Sony Alpha-A6000
Serial port support : no
USB support : yes
Capture choices :
: Image
Configuration support : yes
Delete selected files on camera : yes
Delete all files on camera : no
File preview (thumbnail) support : yes
File upload support : yes


When I type



gphoto2 --set-config f-number=8


and then repeat the command a few times,
I see the f-number on the LCD screen of the camera change every time I run the command, one step closer to 8, until it reaches "F8.0".



When I type



gphoto2 --get-config f-number


then gphoto2 tells me



Label: F-Number
Type: RANGE
Current: 8
Bottom: 0
Top: 655.35
Step: 0.01


So apparently gphoto2 is recognizing that this is a "Sony Alpha-A6000" and I'm getting two-way communication over the USB cable.










share|improve this question















migrated from photo.stackexchange.com May 17 '14 at 2:15


This question came from our site for professional, enthusiast and amateur photographers.















  • What have you tried so far? Please add your attempts in the question so people won't suggest things you've already done.
    – Saaru Lindestøkke
    May 15 '14 at 17:52










  • Have you tried reading the gphoto2 documentation, the wiki, asking for support there? This seems to be more of a software question that a photography one.
    – MikeW
    May 15 '14 at 20:24
















0














How do I get gphoto2 to fetch a photo from a Sony alpha 6000?



I'm currently running gphoto2 on a Beaglebone black, but I suspect it should work on any Linux system with a USB port.



I use



gphoto2 --capture-image-and-download --force-overwrite --filename test.jpg


with another camera to pull in a snapshot.
But when I unplug that camera and plug in the Sony alpha 6000 to the same USB port and run the same command, gphoto2 tells me



ERROR: Could not capture image.
ERROR: Could not capture.


While trying to debug, I try



gphoto2 --abilities


and then gphoto2 responds with



Abilities for camera             : Sony Alpha-A6000
Serial port support : no
USB support : yes
Capture choices :
: Image
Configuration support : yes
Delete selected files on camera : yes
Delete all files on camera : no
File preview (thumbnail) support : yes
File upload support : yes


When I type



gphoto2 --set-config f-number=8


and then repeat the command a few times,
I see the f-number on the LCD screen of the camera change every time I run the command, one step closer to 8, until it reaches "F8.0".



When I type



gphoto2 --get-config f-number


then gphoto2 tells me



Label: F-Number
Type: RANGE
Current: 8
Bottom: 0
Top: 655.35
Step: 0.01


So apparently gphoto2 is recognizing that this is a "Sony Alpha-A6000" and I'm getting two-way communication over the USB cable.










share|improve this question















migrated from photo.stackexchange.com May 17 '14 at 2:15


This question came from our site for professional, enthusiast and amateur photographers.















  • What have you tried so far? Please add your attempts in the question so people won't suggest things you've already done.
    – Saaru Lindestøkke
    May 15 '14 at 17:52










  • Have you tried reading the gphoto2 documentation, the wiki, asking for support there? This seems to be more of a software question that a photography one.
    – MikeW
    May 15 '14 at 20:24














0












0








0


1





How do I get gphoto2 to fetch a photo from a Sony alpha 6000?



I'm currently running gphoto2 on a Beaglebone black, but I suspect it should work on any Linux system with a USB port.



I use



gphoto2 --capture-image-and-download --force-overwrite --filename test.jpg


with another camera to pull in a snapshot.
But when I unplug that camera and plug in the Sony alpha 6000 to the same USB port and run the same command, gphoto2 tells me



ERROR: Could not capture image.
ERROR: Could not capture.


While trying to debug, I try



gphoto2 --abilities


and then gphoto2 responds with



Abilities for camera             : Sony Alpha-A6000
Serial port support : no
USB support : yes
Capture choices :
: Image
Configuration support : yes
Delete selected files on camera : yes
Delete all files on camera : no
File preview (thumbnail) support : yes
File upload support : yes


When I type



gphoto2 --set-config f-number=8


and then repeat the command a few times,
I see the f-number on the LCD screen of the camera change every time I run the command, one step closer to 8, until it reaches "F8.0".



When I type



gphoto2 --get-config f-number


then gphoto2 tells me



Label: F-Number
Type: RANGE
Current: 8
Bottom: 0
Top: 655.35
Step: 0.01


So apparently gphoto2 is recognizing that this is a "Sony Alpha-A6000" and I'm getting two-way communication over the USB cable.










share|improve this question















How do I get gphoto2 to fetch a photo from a Sony alpha 6000?



I'm currently running gphoto2 on a Beaglebone black, but I suspect it should work on any Linux system with a USB port.



I use



gphoto2 --capture-image-and-download --force-overwrite --filename test.jpg


with another camera to pull in a snapshot.
But when I unplug that camera and plug in the Sony alpha 6000 to the same USB port and run the same command, gphoto2 tells me



ERROR: Could not capture image.
ERROR: Could not capture.


While trying to debug, I try



gphoto2 --abilities


and then gphoto2 responds with



Abilities for camera             : Sony Alpha-A6000
Serial port support : no
USB support : yes
Capture choices :
: Image
Configuration support : yes
Delete selected files on camera : yes
Delete all files on camera : no
File preview (thumbnail) support : yes
File upload support : yes


When I type



gphoto2 --set-config f-number=8


and then repeat the command a few times,
I see the f-number on the LCD screen of the camera change every time I run the command, one step closer to 8, until it reaches "F8.0".



When I type



gphoto2 --get-config f-number


then gphoto2 tells me



Label: F-Number
Type: RANGE
Current: 8
Bottom: 0
Top: 655.35
Step: 0.01


So apparently gphoto2 is recognizing that this is a "Sony Alpha-A6000" and I'm getting two-way communication over the USB cable.







camera timelapse






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 5 '15 at 6:17









fixer1234

17.7k144581




17.7k144581










asked May 15 '14 at 17:43









David Cary

588921




588921




migrated from photo.stackexchange.com May 17 '14 at 2:15


This question came from our site for professional, enthusiast and amateur photographers.






migrated from photo.stackexchange.com May 17 '14 at 2:15


This question came from our site for professional, enthusiast and amateur photographers.














  • What have you tried so far? Please add your attempts in the question so people won't suggest things you've already done.
    – Saaru Lindestøkke
    May 15 '14 at 17:52










  • Have you tried reading the gphoto2 documentation, the wiki, asking for support there? This seems to be more of a software question that a photography one.
    – MikeW
    May 15 '14 at 20:24


















  • What have you tried so far? Please add your attempts in the question so people won't suggest things you've already done.
    – Saaru Lindestøkke
    May 15 '14 at 17:52










  • Have you tried reading the gphoto2 documentation, the wiki, asking for support there? This seems to be more of a software question that a photography one.
    – MikeW
    May 15 '14 at 20:24
















What have you tried so far? Please add your attempts in the question so people won't suggest things you've already done.
– Saaru Lindestøkke
May 15 '14 at 17:52




What have you tried so far? Please add your attempts in the question so people won't suggest things you've already done.
– Saaru Lindestøkke
May 15 '14 at 17:52












Have you tried reading the gphoto2 documentation, the wiki, asking for support there? This seems to be more of a software question that a photography one.
– MikeW
May 15 '14 at 20:24




Have you tried reading the gphoto2 documentation, the wiki, asking for support there? This seems to be more of a software question that a photography one.
– MikeW
May 15 '14 at 20:24










1 Answer
1






active

oldest

votes


















0














Please tell me if there's a better way than this:



edit libgphoto2-2.5.4camlibsptp2library.c
and add the lines marked by "+":



    {"Sony:Alpha-A3000",          0x054c, 0x074e, 0},
+
+ /* Sony alpha 6000: JB and DC added 2014-05-19 */
+ {"Sony:Alpha-A6000", 0x054c, 0x094e, PTP_CAP},

/* Nikon Coolpix 2500: M. Meissner, 05 Oct 2003 */


Then run



cd libgphoto2-2.5.4
make
sudo make install


to install that library where gphoto2 can find it.



IMPORTANT:
Turn the mode dial on the top of the camera to "Superior Auto".
It definitely won't take snapshots with the mode dial in the "Movie" position.



Then



gphoto2 --capture-image-and-download --force-overwrite --filename test.jpg





share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f755374%2fhow-do-i-get-gphoto2-to-fetch-a-photo-from-a-sony-alpha-6000%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Please tell me if there's a better way than this:



    edit libgphoto2-2.5.4camlibsptp2library.c
    and add the lines marked by "+":



        {"Sony:Alpha-A3000",          0x054c, 0x074e, 0},
    +
    + /* Sony alpha 6000: JB and DC added 2014-05-19 */
    + {"Sony:Alpha-A6000", 0x054c, 0x094e, PTP_CAP},

    /* Nikon Coolpix 2500: M. Meissner, 05 Oct 2003 */


    Then run



    cd libgphoto2-2.5.4
    make
    sudo make install


    to install that library where gphoto2 can find it.



    IMPORTANT:
    Turn the mode dial on the top of the camera to "Superior Auto".
    It definitely won't take snapshots with the mode dial in the "Movie" position.



    Then



    gphoto2 --capture-image-and-download --force-overwrite --filename test.jpg





    share|improve this answer


























      0














      Please tell me if there's a better way than this:



      edit libgphoto2-2.5.4camlibsptp2library.c
      and add the lines marked by "+":



          {"Sony:Alpha-A3000",          0x054c, 0x074e, 0},
      +
      + /* Sony alpha 6000: JB and DC added 2014-05-19 */
      + {"Sony:Alpha-A6000", 0x054c, 0x094e, PTP_CAP},

      /* Nikon Coolpix 2500: M. Meissner, 05 Oct 2003 */


      Then run



      cd libgphoto2-2.5.4
      make
      sudo make install


      to install that library where gphoto2 can find it.



      IMPORTANT:
      Turn the mode dial on the top of the camera to "Superior Auto".
      It definitely won't take snapshots with the mode dial in the "Movie" position.



      Then



      gphoto2 --capture-image-and-download --force-overwrite --filename test.jpg





      share|improve this answer
























        0












        0








        0






        Please tell me if there's a better way than this:



        edit libgphoto2-2.5.4camlibsptp2library.c
        and add the lines marked by "+":



            {"Sony:Alpha-A3000",          0x054c, 0x074e, 0},
        +
        + /* Sony alpha 6000: JB and DC added 2014-05-19 */
        + {"Sony:Alpha-A6000", 0x054c, 0x094e, PTP_CAP},

        /* Nikon Coolpix 2500: M. Meissner, 05 Oct 2003 */


        Then run



        cd libgphoto2-2.5.4
        make
        sudo make install


        to install that library where gphoto2 can find it.



        IMPORTANT:
        Turn the mode dial on the top of the camera to "Superior Auto".
        It definitely won't take snapshots with the mode dial in the "Movie" position.



        Then



        gphoto2 --capture-image-and-download --force-overwrite --filename test.jpg





        share|improve this answer












        Please tell me if there's a better way than this:



        edit libgphoto2-2.5.4camlibsptp2library.c
        and add the lines marked by "+":



            {"Sony:Alpha-A3000",          0x054c, 0x074e, 0},
        +
        + /* Sony alpha 6000: JB and DC added 2014-05-19 */
        + {"Sony:Alpha-A6000", 0x054c, 0x094e, PTP_CAP},

        /* Nikon Coolpix 2500: M. Meissner, 05 Oct 2003 */


        Then run



        cd libgphoto2-2.5.4
        make
        sudo make install


        to install that library where gphoto2 can find it.



        IMPORTANT:
        Turn the mode dial on the top of the camera to "Superior Auto".
        It definitely won't take snapshots with the mode dial in the "Movie" position.



        Then



        gphoto2 --capture-image-and-download --force-overwrite --filename test.jpg






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 20 '14 at 0:01









        David Cary

        588921




        588921






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f755374%2fhow-do-i-get-gphoto2-to-fetch-a-photo-from-a-sony-alpha-6000%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Index of /

            Tribalistas

            Listed building