[arch-general] USB Access of Nikon D3500 DSLR
Dear Friends When I am connecting my machine to the camera with an USB-micro-USB cable, system is showing it all right with 'lsusb': ... Bus 001 Device 005: ID 04b0:0445 Nikon Corp. NIKON DSC D3500 ... The relevant part from 'usb-devices' too I am quoting here: ... T: Bus=01 Lev=01 Prnt=01 Port=07 Cnt=04 Dev#= 5 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=04b0 ProdID=0445 Rev=01.00 S: Manufacturer=NIKON S: Product=NIKON DSC D3500 S: SerialNumber=0000005508485 C: #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=2mA I: If#=0x0 Alt= 0 #EPs= 3 Cls=06(still) Sub=01 Prot=01 Driver=(none) ... Can you please help me? The filesystem is not showing anything, like it does with a thumb-drive or music-player. Do I to install some packages? Thank you in advance. dipankar das Kolkata, India
On 05.06.21 10:05, das via arch-general wrote:
Dear Friends
When I am connecting my machine to the camera with an USB-micro-USB cable, system is showing it all right with 'lsusb':
... Bus 001 Device 005: ID 04b0:0445 Nikon Corp. NIKON DSC D3500 ... The relevant part from 'usb-devices' too I am quoting here:
... T: Bus=01 Lev=01 Prnt=01 Port=07 Cnt=04 Dev#= 5 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=04b0 ProdID=0445 Rev=01.00 S: Manufacturer=NIKON S: Product=NIKON DSC D3500 S: SerialNumber=0000005508485 C: #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=2mA I: If#=0x0 Alt= 0 #EPs= 3 Cls=06(still) Sub=01 Prot=01 Driver=(none) ...
Is your camera setup as "Mass storage" under "Setup menu", "USB"? At least my older camera works fine with this setting under (Arch)-Linux. Here are the dmsg i get: usb 1-1.1: new high-speed USB device number 7 using xhci_hcd usb 1-1.1: New USB device found, idVendor=04b0, idProduct=0419, bcdDevice= 1.11 usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 1-1.1: Product: NIKON DSC D300 usb 1-1.1: Manufacturer: NIKON usb 1-1.1: SerialNumber: xxxxxxxxxxxx usb-storage 1-1.1:1.0: USB Mass Storage device detected scsi host0: usb-storage 1-1.1:1.0 RPf
On Sat, Jun 5, 2021 at 8:53 PM Roland Pfeifer via arch-general < arch-general@lists.archlinux.org> wrote:
Is your camera setup as "Mass storage" under "Setup menu", "USB"? At least my older camera works fine with this setting under (Arch)-Linux. Here are the dmsg i get: usb 1-1.1: new high-speed USB device number 7 using xhci_hcd usb 1-1.1: New USB device found, idVendor=04b0, idProduct=0419, bcdDevice= 1.11 usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 1-1.1: Product: NIKON DSC D300 usb 1-1.1: Manufacturer: NIKON usb 1-1.1: SerialNumber: xxxxxxxxxxxx usb-storage 1-1.1:1.0: USB Mass Storage device detected scsi host0: usb-storage 1-1.1:1.0
Dear Friend Though 'lsusb' and 'usb-devices' are showing it, the system is not showing it at all. And obviously it is not getting mounted like a pen-drive or a mass-storage. Thanking You --dd
On 05.06.21 18:58, das via arch-general wrote:
On Sat, Jun 5, 2021 at 8:53 PM Roland Pfeifer via arch-general < arch-general@lists.archlinux.org> wrote:
Is your camera setup as "Mass storage" under "Setup menu", "USB"? At least my older camera works fine with this setting under (Arch)-Linux. Here are the dmsg i get: usb 1-1.1: new high-speed USB device number 7 using xhci_hcd usb 1-1.1: New USB device found, idVendor=04b0, idProduct=0419, bcdDevice= 1.11 usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 1-1.1: Product: NIKON DSC D300 usb 1-1.1: Manufacturer: NIKON usb 1-1.1: SerialNumber: xxxxxxxxxxxx usb-storage 1-1.1:1.0: USB Mass Storage device detected scsi host0: usb-storage 1-1.1:1.0
Dear Friend
Though 'lsusb' and 'usb-devices' are showing it, the system is not showing it at all. And obviously it is not getting mounted like a pen-drive or a mass-storage.
One thing is after a kernel update modules may not get loaded. So you may need a restart so usb-devices might get mounted. Is a normal pen-drive working? Identify your cam with lsusb first. This is the output for "lsusb -v -s B:D" where B stands for bus and D for device (as seen with lsusb) in mass storage mode (cam shows up like pen drive): Bus 001 Device 007: ID 04b0:0419 Nikon Corp. NIKON DSC D300 Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x04b0 Nikon Corp. idProduct 0x0419 bcdDevice 1.11 iManufacturer 1 NIKON iProduct 2 NIKON DSC D300 iSerial 3 xxxxxxxxxx bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 0x0020 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self Powered MaxPower 2mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 80 Bulk-Only iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Device Qualifier (for other device speed): bLength 10 bDescriptorType 6 bcdUSB 2.00 bDeviceClass 0 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 bNumConfigurations 1 can't get debug descriptor: Resource temporarily unavailable Device Status: 0x0001 Self Powered ----------------------------------------------------------------- and here for Ptp (needs something like gphoto for transfering pictures) Bus 001 Device 009: ID 04b0:041a Nikon Corp. NIKON DSC D300 Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x04b0 Nikon Corp. idProduct 0x041a bcdDevice 1.11 iManufacturer 1 NIKON iProduct 2 NIKON DSC D300 iSerial 3 xxxxxxxxxxxxx bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 0x0027 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self Powered MaxPower 2mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 3 bInterfaceClass 6 Imaging bInterfaceSubClass 1 Still Image Capture bInterfaceProtocol 1 Picture Transfer Protocol (PIMA 15470) iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0008 1x 8 bytes bInterval 9 Device Qualifier (for other device speed): bLength 10 bDescriptorType 6 bcdUSB 2.00 bDeviceClass 0 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 bNumConfigurations 1 can't get debug descriptor: Resource temporarily unavailable Device Status: 0x0001 Self Powered
On 05.06.21 20:04, Roland Pfeifer via arch-general wrote:
On 05.06.21 18:58, das via arch-general wrote:
On Sat, Jun 5, 2021 at 8:53 PM Roland Pfeifer via arch-general < arch-general@lists.archlinux.org> wrote:
Is your camera setup as "Mass storage" under "Setup menu", "USB"? At least my older camera works fine with this setting under (Arch)-Linux. Here are the dmsg i get: usb 1-1.1: new high-speed USB device number 7 using xhci_hcd usb 1-1.1: New USB device found, idVendor=04b0, idProduct=0419, bcdDevice= 1.11 usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 1-1.1: Product: NIKON DSC D300 usb 1-1.1: Manufacturer: NIKON usb 1-1.1: SerialNumber: xxxxxxxxxxxx usb-storage 1-1.1:1.0: USB Mass Storage device detected scsi host0: usb-storage 1-1.1:1.0
Dear Friend
Though 'lsusb' and 'usb-devices' are showing it, the system is not showing it at all. And obviously it is not getting mounted like a pen-drive or a mass-storage.
One thing is after a kernel update modules may not get loaded. So you may need a restart so usb-devices might get mounted.
Is a normal pen-drive working?
simpler to read the difference from "usb-devices": Mass-storage Usb Mode: T: Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 10 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=04b0 ProdID=0419 Rev=01.11 S: Manufacturer=NIKON S: Product=NIKON DSC D300 S: SerialNumber=000004176493 C: #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=2mA I: If#=0x0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage --------------------------------------------------------- Ptp-Mode Usb Mode: T: Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 11 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=04b0 ProdID=041a Rev=01.11 S: Manufacturer=NIKON S: Product=NIKON DSC D300 S: SerialNumber=000004176493 C: #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=2mA I: If#=0x0 Alt= 0 #EPs= 3 Cls=06(still) Sub=01 Prot=01 Driver=(none)
On 21/06/05 01:35, das via arch-general wrote:
Dear Friends
When I am connecting my machine to the camera with an USB-micro-USB cable, system is showing it all right with 'lsusb':
... Bus 001 Device 005: ID 04b0:0445 Nikon Corp. NIKON DSC D3500 ...
Can you please help me? The filesystem is not showing anything, like it does with a thumb-drive or music-player. Do I to install some packages?
Thank you in advance.
dipankar das Kolkata, India
Wihtout knowing your DE/WM and file manager but you might want to check if installing gvfs-gphoto2 will help. I use a Canon EOS 5D and usually pull my photos with gphoto2 command line tool but occasionally access pics on my camera with pcmanfm and the above mentioned gvfs plugin Frank -- Frank Zimmermann Jami: rhoihesse Matrix: @zimbi:matrix.org
On Sat, Jun 5, 2021 at 9:38 PM Frank <frank.zimmermann.berlin@freenet.de> wrote:
Wihtout knowing your DE/WM and file manager but you might want to check if installing gvfs-gphoto2 will help.
I use a Canon EOS 5D and usually pull my photos with gphoto2 command line tool but occasionally access pics on my camera with pcmanfm and the above mentioned gvfs plugin
Dear Friend Could not guess the full form of DE, but by WM you mean window manager? If that, then I am using mate with lightDM you meant that, then I use mate-dektop with lightdm. And I already have installed gvfs-gphoto2, with no help. How will my camera get discovered? If I use gdm, will the problem go away? Thanking You dipankar das
Can you please help me? The filesystem is not showing anything, like it does with a thumb-drive or music-player. Do I to install some packages? You may need gvfs-gphoto2 for the file manager to see it.
Photo cameras are usually offering PTP (Picture Transfer Protocol) or its extension MTP (Media Transfer Protocol), not mass storage. The protocols, aside from giving access to photos, may allow controlling the camera remotely.
On Sun, Jun 6, 2021 at 2:26 AM mpan via arch-general < arch-general@lists.archlinux.org> wrote:
You may need gvfs-gphoto2 for the file manager to see it.
Photo cameras are usually offering PTP (Picture Transfer Protocol) or its extension MTP (Media Transfer Protocol), not mass storage. The protocols, aside from giving access to photos, may allow controlling the camera remotely.
Thank you friends for your trying to help. But none of the suggestions worked. In fact I had already tried those before writing to the mailing list. Finally one of my friends (not in mailing list) suggested me to install 'shotwell' ( https://archlinux.org/packages/community/x86_64/shotwell/), and it solved the problem. After installing 'shotwell', when I made the camera 'on' after connecting to my PC's USB the camera got mounted and the icon came up on the Desktop. I reported it here as an information service. Thank you all. dd
Thank you friends for your trying to help. But none of the suggestions worked. In fact I had already tried those before writing to the mailing list. Finally one of my friends (not in mailing list) suggested me to install 'shotwell' ( https://archlinux.org/packages/community/x86_64/shotwell/), and it solved the problem. After installing 'shotwell', when I made the camera 'on' after connecting to my PC's USB the camera got mounted and the icon came up on the Desktop. I reported it here as an information service. Thank you all. Shotwell is a pictures browser, unrelated to handling cameras by the file manager or desktop environment. It seems to be a coincidence caused by installation of one of the dependencies of the shotwell package. Therefore the issue is not solved.
Of all its dependencies the only ones I see, that do relate to photos access and wouldn’t be installed already on Arch Linux as the base dependencies, is libgphoto2 and whatever it needs. Which would be installed as a dependency of gvfs-gphoto2 suggested above. 1) If you open access to the camera, what is the path to its mountpoint? The one displayed by the file manager. 2) Is this actually Arch Linux? Not “Arch derivative”?
Am 07.06.21 um 14:35 schrieb mpan via arch-general:
Thank you friends for your trying to help. But none of the suggestions worked. In fact I had already tried those before writing to the mailing list. Finally one of my friends (not in mailing list) suggested me to install 'shotwell' ( https://archlinux.org/packages/community/x86_64/shotwell/), and it solved the problem. After installing 'shotwell', when I made the camera 'on' after connecting to my PC's USB the camera got mounted and the icon came up on the Desktop. I reported it here as an information service. Thank you all. Shotwell is a pictures browser, unrelated to handling cameras by the file manager or desktop environment. It seems to be a coincidence caused by installation of one of the dependencies of the shotwell package. Therefore the issue is not solved.
Of all its dependencies the only ones I see, that do relate to photos access and wouldn’t be installed already on Arch Linux as the base dependencies, is libgphoto2 and whatever it needs. Which would be installed as a dependency of gvfs-gphoto2 suggested above.
It might simply be an incidental restart between the tests. libgphoto2 installs udev rules that might require a system restart or a reload of the udev rules. gvfs-gphoto2 installs a systemd user service and a gvfs monitor, which might require a restart of the user session.
On Mon, Jun 7, 2021 at 8:45 PM ProgAndy via arch-general < arch-general@lists.archlinux.org> wrote:
libgphoto2 installs udev rules that might require a system restart or a reload of the udev rules.
gvfs-gphoto2 installs a systemd user service and a gvfs monitor, which might require a restart of the user session.
Dear Friend Suggested by some webpage when I was searching about the camera, I had already installed gvfs-gphoto2 and libgphoto2 on the system -- though I did not know how to use that.. And even did restart too. But nothing helped, till I installed shotwell. Though, as I am seeing, shotwell is getting the camera data-card at gphoto2://NIKON_NIKON_DSC_D3500_0000005508485/, so it is using gphoto2 obviously. --dd
On 6/8/21 10:16 AM, das via arch-general wrote:
On Mon, Jun 7, 2021 at 8:45 PM ProgAndy via arch-general < arch-general@lists.archlinux.org> wrote:
libgphoto2 installs udev rules that might require a system restart or a reload of the udev rules.
gvfs-gphoto2 installs a systemd user service and a gvfs monitor, which might require a restart of the user session.
Dear Friend
Suggested by some webpage when I was searching about the camera, I had already installed gvfs-gphoto2 and libgphoto2 on the system -- though I did not know how to use that.. And even did restart too. But nothing helped, till I installed shotwell. Though, as I am seeing, shotwell is getting the camera data-card at gphoto2://NIKON_NIKON_DSC_D3500_0000005508485/, so it is using gphoto2 obviously.
--dd
Out of curiosity, has a rule been added to /etc/udev/rules.d, maybe by shotwell ? To mount my android phone I had to add such a rule. ~Z
On Tue, Jun 8, 2021 at 2:57 PM Zero via arch-general < arch-general@lists.archlinux.org> wrote:
Out of curiosity, has a rule been added to /etc/udev/rules.d, maybe by shotwell ?
To mount my android phone I had to add such a rule.
Dear Zero There is no such rule in /etc/udev/rules.d/ Though at this moment my camera is not attached to the system, and hence there is no such icon on Desktop. Maybe the rule will be added when I attach it. I will check it later and tell you if that is added. -- dd
On Tue, Jun 8, 2021 at 8:21 PM das <dipankard@gmail.com> wrote:
On Tue, Jun 8, 2021 at 2:57 PM Zero via arch-general < arch-general@lists.archlinux.org> wrote:
Out of curiosity, has a rule been added to /etc/udev/rules.d, maybe by shotwell ?
To mount my android phone I had to add such a rule.
Dear Zero
There is no such rule in /etc/udev/rules.d/
Though at this moment my camera is not attached to the system, and hence there is no such icon on Desktop. Maybe the rule will be added when I attach it. I will check it later and tell you if that is added.
Dear Zero At this moment my camera is mounted. When I open it, caja is showing the path : gphoto2://NIKON_NIKON_DSC_D3500_0000005508485/DCIM/100D3500. But, there is no added rule in /etc/udev/rules.d/. Just showing the usual two. Hope it helps. --dd
But, there is no added rule in /etc/udev/rules.d/. Just showing the usual two.
Udev rules from packages are installed in /usr/lib/udev/rules.d/ (and they don't appear or disappear when the device is plugged in) -- damjan
On Mon, Jun 7, 2021 at 6:05 PM mpan via arch-general < arch-general@lists.archlinux.org> wrote:
1) If you open access to the camera, what is the path to its mountpoint? The one displayed by the file manager. 2) Is this actually Arch Linux? Not “Arch derivative”?
Dear Friend 1) When I right-click 'Open' the icon on the desktop, my browser caja is showing: gphoto2://NIKON_NIKON_DSC_D3500_0000005508485/ In caja window on the left panel a new entry _Devices_ has come up, below it shows 'Nikon DSC 3500' and there is a 'mount/umount' icon on the right of it. When this 'Nikon DSC 3500' entry is clicked, in the right panel the caja window shows a directory 'DCIM', a subdirectory '100D3500' and the photos that are there on the data-card.And, mount showing nothing that seems relevant. 2) This is AL, no derivative, uname -a gave this: Linux ru.ddnet 5.10.42-1-lts #1 SMP Thu, 03 Jun 2021 12:54:28 +0000 x86_64 GNU/Linux. -- dd
participants (7)
-
Damjan Georgievski
-
das
-
Frank
-
mpan
-
ProgAndy
-
Roland Pfeifer
-
Zero