You are not logged in.

#1 2007-12-26 14:55:48

Ar..
Member
Registered: 2007-12-26
Posts: 5

[SOLVED]digital camera and user

Hello

i have fuji finepix s5700. (PTP)
i can't connect camera as user, user in group "tty dbus hal audio optical storage scanner camera users"

when type:  gphoto2 --list-files

console show me:

*** Błąd ***               
Wystąpił błąd w bibliotece io ('Nie udało się zawłaszczyć urządzenia USB'): Nie udało się zawłaszczyć interfejsu 0 (Operacja niedozwolona). Należy upewnić się, czy żaden inny program lub moduł jądra (taki jak sdc2xx, stv680, spca50x) nie używa tego urządzenia i mamy prawa odczytu/zapisu do urządzenia.
*** Błąd (-53: 'Nie udało się zawłaszczyć urządzenia USB') ***        

W celach diagnostycznych proszę użyć opcji --debug.
Komunikaty diagnostyczne mogą pomóc znaleźć rozwiązanie problemu.
Aby wysyłać komunikaty błędów lub diagnostyczne na listę dyskusyjną
programistów gphoto <gphoto-devel@lists.sourceforge.net>, proszę
uruchomić gphoto2 w sposób następujący:

    env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --list-files

Please make sure there is sufficient quoting around the arguments.

it is posible to downloading pics as user?
3 months ago is works

sorry for english, but on polish forum no one can help me

Last edited by Ar.. (2007-12-26 19:47:43)

Offline

#2 2007-12-26 15:00:18

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: [SOLVED]digital camera and user

can you post outptut of

dmesg [with camera connected]

and

lsusb

just to check if camera is being detected

usb code 01c4  FinePix S5700 Zoom (PTP)

Last edited by Mr Green (2007-12-26 15:02:34)


Mr Green

Offline

#3 2007-12-26 15:19:10

Ar..
Member
Registered: 2007-12-26
Posts: 5

Re: [SOLVED]digital camera and user

lsusb

Bus 002 Device 001: ID 0000:0000  
Bus 001 Device 007: ID 04cb:01c4 Fuji Photo Film Co., Ltd 
Bus 001 Device 003: ID 1131:1001 Integrated System Solution Corp. KY-BT100 Bluetooth Adapter
Bus 001 Device 002: ID 058f:9254 Alcor Micro Corp. Hub
Bus 001 Device 001: ID 0000:0000

dmesg

Linux version 2.6.23-ARCH (root@T-POWA-LX) (gcc version 4.2.2) #1 SMP PREEMPT Fri Dec 21 19:39:35 UTC 2007
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000000fff0000 (usable)
 BIOS-e820: 000000000fff0000 - 000000000fff3000 (ACPI NVS)
 BIOS-e820: 000000000fff3000 - 0000000010000000 (ACPI data)
 BIOS-e820: 00000000ffb00000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
255MB LOWMEM available.
Entering add_active_range(0, 0, 65520) 0 entries of 256 used
Zone PFN ranges:
  DMA             0 ->     4096
  Normal       4096 ->    65520
  HighMem     65520 ->    65520
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->    65520
On node 0 totalpages: 65520
  DMA zone: 32 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 4064 pages, LIFO batch:0
  Normal zone: 479 pages used for memmap
  Normal zone: 60945 pages, LIFO batch:15
  HighMem zone: 0 pages used for memmap
  Movable zone: 0 pages used for memmap
DMI 2.2 present.
ACPI: RSDP 000F6950, 0014 (r0 IntelR)
ACPI: RSDT 0FFF3000, 0028 (r1 IntelR AWRDACPI 42302E31 AWRD        0)
ACPI: FACP 0FFF3040, 0074 (r1 IntelR AWRDACPI 42302E31 AWRD        0)
ACPI: DSDT 0FFF30C0, 3B93 (r1 INTELR AWRDACPI     1000 MSFT  100000C)
ACPI: FACS 0FFF0000, 0040
ACPI: PM-Timer IO Port: 0x4008
Allocating PCI resources starting at 20000000 (gap: 10000000:efb00000)
swsusp: Registered nosave memory region: 000000000009f000 - 00000000000a0000
swsusp: Registered nosave memory region: 00000000000a0000 - 00000000000f0000
swsusp: Registered nosave memory region: 00000000000f0000 - 0000000000100000
Built 1 zonelists in Zone order.  Total pages: 65009
Kernel command line: BOOT_IMAGE=ArchLinux ro root=801
Local APIC disabled by BIOS -- you can enable it with "lapic"
mapped APIC to ffffb000 (0120c000)
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 1024 (order: 10, 4096 bytes)
Detected 1494.577 MHz processor.
Console: colour dummy device 80x25
console [tty0] enabled
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 253816k/262080k available (2444k kernel code, 7812k reserved, 818k data, 296k init, 0k highmem)
virtual kernel memory layout:
    fixmap  : 0xfff80000 - 0xfffff000   ( 508 kB)
    pkmap   : 0xff800000 - 0xffc00000   (4096 kB)
    vmalloc : 0xd0800000 - 0xff7fe000   ( 751 MB)
    lowmem  : 0xc0000000 - 0xcfff0000   ( 255 MB)
      .init : 0xc0435000 - 0xc047f000   ( 296 kB)
      .data : 0xc03630a9 - 0xc042f99c   ( 818 kB)
      .text : 0xc0100000 - 0xc03630a9   (2444 kB)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
SLUB: Genslabs=22, HWalign=64, Order=0-1, MinObjects=4, CPUs=1, Nodes=1
Calibrating delay using timer specific routine.. 2992.35 BogoMIPS (lpj=4986165)
Security Framework v1.0.0 initialized
Mount-cache hash table entries: 512
CPU: After generic identify, caps: 3febf9ff 00000000 00000000 00000000 00000000 00000000 00000000 00000000
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 256K
CPU: Hyper-Threading is disabled
CPU: After all inits, caps: 3febf9ff 00000000 00000000 0000b080 00000000 00000000 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU0: Intel P4/Xeon Extended MCE MSRs (12) available
CPU0: Thermal monitoring enabled
Compat vDSO mapped to ffffe000.
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 11k freed
Early unpacking initramfs... done
ACPI: Core revision 20070126
ACPI: Looking for DSDT in initramfs... error, file /DSDT.aml not found.
ACPI: setting ELCR to 0200 (from 0a20)
CPU0: Intel(R) Pentium(R) 4 CPU 1500MHz stepping 07
SMP motherboard not detected.
Local APIC not detected. Using dummy APIC emulation.
Brought up 1 CPUs
Booting paravirtualized kernel on bare hardware
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: PCI BIOS revision 2.10 entry at 0xfb150, last bus=2
PCI: Using configuration type 1
Setting up standard PCI resources
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S1 S4 S5)
ACPI: Using PIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI quirk: region 4000-407f claimed by ICH4 ACPI/GPIO/TCO
PCI quirk: region 4080-40bf claimed by ICH4 GPIO
PCI: Transparent bridge - 0000:00:1e.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.HUB0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 *5 6 7 9 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 *9 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNK0] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNK1] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 15 devices
ACPI: ACPI bus type pnp unregistered
SCSI subsystem initialized
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq".  If it helps, post a report
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
ACPI: RTC can wake from S4
Time: tsc clocksource has been installed.
pnp: 00:00: iomem range 0xf0000-0xf3fff could not be reserved
pnp: 00:00: iomem range 0xf4000-0xf7fff could not be reserved
pnp: 00:00: iomem range 0xf8000-0xfbfff could not be reserved
pnp: 00:00: iomem range 0xfc000-0xfffff could not be reserved
PCI: Bridge: 0000:00:01.0
  IO window: disabled.
  MEM window: e6000000-e7ffffff
  PREFETCH window: e4000000-e5ffffff
PCI: Bridge: 0000:00:1e.0
  IO window: c000-cfff
  MEM window: e8000000-e80fffff
  PREFETCH window: disabled.
PCI: Setting latency timer of device 0000:00:1e.0 to 64
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 5, 131072 bytes)
TCP bind hash table entries: 8192 (order: 4, 98304 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
checking if image is initramfs... it is
Freeing initrd memory: 1497k freed
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16ac)
apm: overridden by ACPI.
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Boot video device is 0000:01:00.0
vesafb: framebuffer at 0xe4000000, mapped to 0xd0880000, using 1536k, total 4096k
vesafb: mode is 1024x768x8, linelength=1024, pages=4
vesafb: protected mode interface info at c000:02e5
vesafb: pmi: set display start = c00c031e, set palette = c00c0394
vesafb: pmi: ports = 3b4 3b5 3ba 3c0 3c1 3c4 3c5 3c6 3c7 3c8 3c9 3cc 3ce 3cf 3d0 3d1 3d2 3d3 3d4 3d5 3da 
vesafb: scrolling: redraw
vesafb: Pseudocolor: size=8:8:8:8, shift=0:0:0:0
Console: switching to colour frame buffer device 128x48
fb0: VESA VGA frame buffer device
isapnp: Scanning for PnP cards...
Switched to high resolution mode on CPU 0
isapnp: No Plug & Play device found
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:09: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input0
PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Using IPI No-Shortcut mode
Freeing unused kernel memory: 296k freed
libata version 2.21 loaded.
ata_piix 0000:00:1f.1: version 2.12
PCI: Setting latency timer of device 0000:00:1f.1 to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max UDMA/100 cmd 0x000101f0 ctl 0x000103f6 bmdma 0x0001f000 irq 14
ata2: PATA max UDMA/100 cmd 0x00010170 ctl 0x00010376 bmdma 0x0001f008 irq 15
ata1.01: ATA-6: WDC WD1600JB-00GVA0, 08.02D08, max UDMA/100
ata1.01: 312581808 sectors, multi 16: LBA48 
ata1.01: configured for UDMA/100
ata2.00: ATAPI: BENQ    DVD LS DW1655, BCDB, max UDMA/33
ata2.00: configured for UDMA/33
scsi 0:0:1:0: Direct-Access     ATA      WDC WD1600JB-00G 08.0 PQ: 0 ANSI: 5
scsi 1:0:0:0: CD-ROM            BENQ     DVD LS DW1655    BCDB PQ: 0 ANSI: 5
sd 0:0:1:0: [sda] 312581808 512-byte hardware sectors (160042 MB)
sd 0:0:1:0: [sda] Write Protect is off
sd 0:0:1:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:1:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:1:0: [sda] 312581808 512-byte hardware sectors (160042 MB)
sd 0:0:1:0: [sda] Write Protect is off
sd 0:0:1:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:1:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2 < sda5 sda6 >
sd 0:0:1:0: [sda] Attached SCSI disk
sr0: scsi3-mmc drive: 48x/48x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
8139cp 0000:02:03.0: This (id 10ec:8139 rev 10) is not an 8139C+ compatible chip
8139cp 0000:02:03.0: Try the "8139too" driver instead.
8139too Fast Ethernet driver 0.9.28
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
PCI: setting IRQ 11 as level-triggered
ACPI: PCI Interrupt 0000:02:03.0[A] -> Link [LNKD] -> GSI 11 (level, low) -> IRQ 11
eth0: RealTek RTL8139 at 0xd080c000, 00:80:48:10:b3:9a, IRQ 11
eth0:  Identified 8139 chip type 'RTL-8139C'
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 9
PCI: setting IRQ 9 as level-triggered
ACPI: PCI Interrupt 0000:02:02.0[A] -> Link [LNKC] -> GSI 9 (level, low) -> IRQ 9
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11
ACPI: PCI Interrupt 0000:00:1f.5[b] -> Link [LNKB] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:1f.5 to 64
intel8x0_measure_ac97_clock: measured 51011 usecs
intel8x0: clocking to 48000
input: Power Button (FF) as /devices/virtual/input/input2
ACPI: Power Button (FF) [PWRF]
input: Power Button (CM) as /devices/virtual/input/input3
ACPI: Power Button (CM) [PWRB]
input: Sleep Button (CM) as /devices/virtual/input/input4
ACPI: Sleep Button (CM) [SLPB]
ACPI: Fan [FAN] (on)
ACPI: CPU0 (power states: C1[C1] C2[C2])
ACPI: Processor [CPU0] (supports 2 throttling states)
ACPI: Thermal Zone [THRM] (55 C)
sd 0:0:1:0: Attached scsi generic sg0 type 0
sr 1:0:0:0: Attached scsi generic sg1 type 5
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
Linux agpgart interface v0.102
agpgart: Detected an Intel i850 Chipset.
intel_rng: FWH not detected
agpgart: AGP aperture is 64M @ 0xe0000000
USB Universal Host Controller Interface driver v3.0
ACPI: PCI Interrupt 0000:00:1f.2[D] -> Link [LNKD] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:1f.2 to 64
uhci_hcd 0000:00:1f.2: UHCI Host Controller
uhci_hcd 0000:00:1f.2: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:1f.2: irq 11, io base 0x0000d000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ACPI: PCI Interrupt Link [LNK1] enabled at IRQ 11
ACPI: PCI Interrupt 0000:00:1f.4[C] -> Link [LNK1] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:1f.4 to 64
uhci_hcd 0000:00:1f.4: UHCI Host Controller
uhci_hcd 0000:00:1f.4: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:1f.4: irq 11, io base 0x0000d800
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:1f.3[b] -> Link [LNKB] -> GSI 11 (level, low) -> IRQ 11
PPP generic driver version 2.4.2
usb 1-1: new full speed USB device using uhci_hcd and address 2
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usb 1-1.1: new full speed USB device using uhci_hcd and address 3
input: ImPS/2 Generic Wheel Mouse as /devices/platform/i8042/serio1/input/input5
rtc_cmos 00:04: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one month
gameport: EMU10K1 is pci0000:02:02.1/gameport0, io 0xc400, speed 864kHz
parport_pc 00:0a: reported by Plug and Play ACPI
parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,EPP,ECP,DMA]
gameport: NS558 PnP Gameport is pnp00:0d/gameport0, io 0x201, speed 764kHz
input: PC Speaker as /devices/platform/pcspkr/input/input6
usb 1-1.1: configuration #1 chosen from 1 choice
lp0: using parport0 (interrupt-driven).
ppdev: user-space parallel port driver
Bluetooth: Core ver 2.11
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: HCI USB driver ver 2.9
usbcore: registered new interface driver hci_usb
Marking TSC unstable due to: possible TSC halt in C2.
Time: acpi_pm clocksource has been installed.
EXT3 FS on sda1, internal journal
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda5, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Adding 522072k swap on /dev/sda6.  Priority:-1 extents:1 across:522072k
eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
ip_tables: (C) 2000-2006 Netfilter Core Team
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
nvidia: module license 'NVIDIA' taints kernel.
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 5
PCI: setting IRQ 5 as level-triggered
ACPI: PCI Interrupt 0000:01:00.0[A] -> Link [LNKA] -> GSI 5 (level, low) -> IRQ 5
NVRM: loading NVIDIA Linux x86 Kernel Module  71.86.01  Wed Sep  5 20:14:16 PDT 2007
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 4x mode
agpgart: Putting AGP V2 device at 0000:01:00.0 into 4x mode
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 4x mode
agpgart: Putting AGP V2 device at 0000:01:00.0 into 4x mode
Bluetooth: L2CAP ver 2.8
Bluetooth: L2CAP socket layer initialized
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
eth0: no IPv6 routers present
usb 1-1.3: new full speed USB device using uhci_hcd and address 4
usb 1-1.3: configuration #1 chosen from 1 choice
usb 1-1.3: USB disconnect, address 4
usb 1-1.3: new full speed USB device using uhci_hcd and address 5
usb 1-1.3: configuration #1 chosen from 1 choice
usb 1-1.3: USB disconnect, address 5
usb 1-1.3: new full speed USB device using uhci_hcd and address 6
usb 1-1.3: configuration #1 chosen from 1 choice
usb 1-1.3: USB disconnect, address 6
usb 1-1.3: new full speed USB device using uhci_hcd and address 7
usb 1-1.3: configuration #1 chosen from 1 choice

Offline

#4 2007-12-26 17:12:16

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: [SOLVED]digital camera and user

I've got an S5700 as well - well featured camera for the price:)  Anyway, I'd never noticed this before because I always transfer files using an SD card reader but I dug out the usb lead, connected my S5700 and got the same error.

The problem is that there is no udev rule for the S5700 camera, so the device entry in /dev/bus/usb/ will be in the root group (easy to confirm by running "gphoto2 --list-files" as root, which works just fine) and not the camera group.

The solution is to unplug the camera, add:

ATTRS{idVendor}=="04cb", ATTRS{idProduct}=="01c4", MODE="0660", GROUP="camera"

either to /etc/udev/rules.d/54-gphoto.rules or to your local.rules file, if you have one like me, and then connect the camera again.

EDIT: The reason why the camera used to work a couple of months ago was because the udev rules were broken and now they are fixed.  When they were broken ALL devices got assigned to the camera group, regardless!

Last edited by azleifel (2007-12-26 17:32:57)

Offline

#5 2007-12-26 19:42:13

Ar..
Member
Registered: 2007-12-26
Posts: 5

Re: [SOLVED]digital camera and user

azleifel thx for help

when I add

ATTRS{idVendor}=="04cb", ATTRS{idProduct}=="01c4", MODE="0660", GROUP="camera"

to 54-gphoto.rules, i have same error, but when make local.rules and put this rule, user can downloading pics.

thank You !

but why 54-gphoto.rules don't accept this rule for my camera?

Offline

#6 2007-12-26 22:28:05

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: [SOLVED]digital camera and user

Ar.. wrote:

azleifel thx for help

when I add

ATTRS{idVendor}=="04cb", ATTRS{idProduct}=="01c4", MODE="0660", GROUP="camera"

to 54-gphoto.rules, i have same error, but when make local.rules and put this rule, user can downloading pics.

thank You !

but why 54-gphoto.rules don't accept this rule for my camera?

I'm not sure why putting the line in 54-gphoto.rules didn't work for you.  I tried it here, i.e. only in 54-gphoto.rules and not local.rules as well, and it works just fine.  Assuming that libgphoto2 is up to date on your system then I would first ask where you put the line in 54-gphoto.rules?  I put it at the end of the list of devices like so:

# udev rules file for libgphoto2 devices (for udev 0.98 version)
# Created from this library:
#   libgphoto2      2.4.0          gcc, ltdl, EXIF
#   libgphoto2_port 0.8.0          gcc, ltdl, USB, serial without locking
#
ACTION!="add", GOTO="libgphoto2_rules_end"
SUBSYSTEM=="usb", GOTO="libgphoto2_rules_begin"
SUBSYSTEM=="usb_device", GOTO="libgphoto2_rules_begin"
SUBSYSTEM!="usb_device", GOTO="libgphoto2_rules_end"
LABEL="libgphoto2_rules_begin"

ATTRS{idVendor}=="0553", ATTRS{idProduct}=="0202", MODE="0660", GROUP="camera"
ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="0403", MODE="0660", GROUP="camera"
[Cut]
ATTRS{idVendor}=="2770", ATTRS{idProduct}=="905c", MODE="0660", GROUP="camera"
ATTRS{idVendor}=="04cb", ATTRS{idProduct}=="01c4", MODE="0660", GROUP="camera"

LABEL="libgphoto2_rules_end"

Offline

#7 2007-12-27 20:08:15

Ar..
Member
Registered: 2007-12-26
Posts: 5

Re: [SOLVED]digital camera and user

when I put as first on list, didn't work, but when I put at end of list it's works correctly

Thank You very muche!

Offline

#8 2007-12-28 21:56:18

TheBodziO
Member
From: Dukla, Poland
Registered: 2006-07-28
Posts: 230
Website

Re: [SOLVED]digital camera and user

Also helped with my Nikon P50 (vendor and product ids 04b0 and 0169 respectively). Thanks! big_smile

I think that http://wiki.archlinux.org/index.php/Gphoto2 needs an update regarding the method of solving the problem that was presented in this thread. I would gladly do it myself, unfortunately I can't because of lack of time sad.


It's not the best thing when they call you a "member" you know… wink

Offline

#9 2007-12-29 20:07:28

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: [SOLVED]digital camera and user

Ar.. wrote:

when I put as first on list, didn't work, but when I put at end of list it's works correctly

Thank You very muche!

The story continues...  Following a hunch, I did a little Google research and found an interesting article at http://www.greenjames.com/?p=3.

The key part is towards the end, beginning "After installing the udev rules file, you need to edit a line..."  Translating it to the current problem, if you edit 54-gphoto.rules and change

PROGRAM="check-ptp-camera 06/01/01", MODE="0660", GROUP="camera"

(about line 757) to

PROGRAM="/lib/udev/check-ptp-camera", MODE="0660", GROUP="camera"

then it doesn't matter where the udev rule for the S5700 is in the list.  At least, it works for me!  I'm off now to see whether a bug has been filed against libghoto2 for this problem.

EDIT: Actually, it occurred to me that if the check-ptp-camera script does what it says in the filename then there should be no need to set up a udev rule specifically for the S5700, which is a PTP camera.  Tested it without the udev rule for the S5700 and it doesn't work at all.  Ho hum.

Last edited by azleifel (2007-12-30 00:38:18)

Offline

#10 2008-01-02 15:10:46

uastasi
Member
From: Salento - Italy
Registered: 2007-11-27
Posts: 247

Re: [SOLVED]digital camera and user

azleifel wrote:
Ar.. wrote:

when I put as first on list, didn't work, but when I put at end of list it's works correctly

Thank You very muche!

The story continues...  Following a hunch, I did a little Google research and found an interesting article at http://www.greenjames.com/?p=3.

The key part is towards the end, beginning "After installing the udev rules file, you need to edit a line..."  Translating it to the current problem, if you edit 54-gphoto.rules and change

PROGRAM="check-ptp-camera 06/01/01", MODE="0660", GROUP="camera"

(about line 757) to

PROGRAM="/lib/udev/check-ptp-camera", MODE="0660", GROUP="camera"

then it doesn't matter where the udev rule for the S5700 is in the list.  At least, it works for me!  I'm off now to see whether a bug has been filed against libghoto2 for this problem.

EDIT: Actually, it occurred to me that if the check-ptp-camera script does what it says in the filename then there should be no need to set up a udev rule specifically for the S5700, which is a PTP camera.  Tested it without the udev rule for the S5700 and it doesn't work at all.  Ho hum.

Editing that line worked for me too. Now i can download photos being a normal user using gphoto2!


Till the last battle, till the last bottle.
aur - twitter

Offline

#11 2008-04-13 16:39:13

H2O
Member
Registered: 2007-10-09
Posts: 19

Re: [SOLVED]digital camera and user

OK. I have the same problem with Fuji FP 6500 fd. I've made the change in PROGRAM line in 54-gphoto.rules and it worked ONCE. Now I have the same issue everytime I plug in the camera. I've googled, tried even the print-camera-list tool from libgphoto and nothing... I really don't know what to do. As root I can use digikam and download the photos but as a regular user it sais "Could not claim the USB device". It's just hopeless...

edit: ok, I've found this topic on Fedora forumhttp://www.fedoraforum.org/forum/showthread.php?t=170607&highlight=camera

The solution was to change mode on the line
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0644"

to

SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0666"

now I'll check will it work always or again just once...

Last edited by H2O (2008-04-13 16:49:23)

Offline

#12 2008-04-13 17:39:39

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: [SOLVED]digital camera and user

That's curious.  My FinePix S5700 is still works every time, though I have to use a local udev rules file because the camera isn't listed in 54-gphoto.rules.  Setting up a local rule has got to be less drastic than fiddling with the default udev rules (and it will survive updates too).

Offline

Board footer

Powered by FluxBB