LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-29-2005, 12:34 PM   #1
$in
LQ Newbie
 
Registered: Dec 2003
Distribution: Slackware current
Posts: 27

Rep: Reputation: 15
gphoto2 can't detect canon powershot a95


need some help here.
i can't get to work my canon powershot a95. i compiled from source libgphoto2, ghoto2 and gtkam. when i try gphoto2 --auto-detect i get nothing. the same goes for trying with gtkam. some time ago i borrowed some hp digicam and it worked alright.
tried google and but nothing helped
i'm using slack 10.2 and 2.4.31 kernel.
what do i do..?

Code:
root@hanuman:/home/pegazeka# lsmod
Module                  Size  Used by    Tainted: PF 
usb-storage            62432   0  (unused)
bsd_comp                4216   0  (autoclean)
8139too                13928   0  (unused)
mii                     2272   0  [8139too]
crc32                   2880   0  [8139too]
uhci                   24284   0  (unused)
ehci-hcd               17516   0  (unused)
usbcore                59148   1  [usb-storage uhci ehci-hcd]
ppp_deflate             3032   2  (autoclean)
zlib_deflate           18744   0  (autoclean) [ppp_deflate]
ppp_async               6528   1  (autoclean)
ppp_generic            19556   3  (autoclean) [bsd_comp ppp_deflate ppp_async]
slhc                    4592   1  (autoclean) [ppp_generic]
nvidia               3768972   6 
ham                    14748   2 
hamcore               511424   0  [ham]
snd-pcm-oss            36736   0 
snd-mixer-oss          12376   1  [snd-pcm-oss]
snd-cmipci             17920   5 
gameport                1420   0  [snd-cmipci]
snd-pcm                54344   1  [snd-pcm-oss snd-cmipci]
snd-opl3-lib            5860   0  [snd-cmipci]
snd-hwdep               4352   0  [snd-opl3-lib]
snd-timer              13764   1  [snd-pcm snd-opl3-lib]
snd-mpu401-uart         3136   0  [snd-cmipci]
snd-rawmidi            12480   0  [snd-mpu401-uart]
snd-seq-device          3812   0  [snd-opl3-lib snd-rawmidi]
snd                    32772   2  [snd-pcm-oss snd-mixer-oss snd-cmipci snd-pcm snd-opl3-lib snd-hwdep snd-timer snd-mpu401-uart snd-rawmidi snd-seq-device]
snd-page-alloc          4712   0  [snd-mixer-oss snd-pcm snd-hwdep snd-timer snd-rawmidi snd-seq-device snd]
soundcore               3396   4  [snd]
ide-scsi                9392   0 
agpgart                45508   3 
apm                     9452   2 
root@hanuman:/home/pegazeka#
Code:
root@hanuman:/home/pegazeka# lspci
00:00.0 Host bridge: VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333]
00:01.0 PCI bridge: VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333 AGP]
00:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
00:0b.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
00:0d.0 Communication controller: Ambient Technologies Inc HaM controllerless modem (rev 02)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8233A ISA Bridge
00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:11.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 23)
00:11.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 23)
00:14.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 50)
00:14.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 50)
00:14.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 51)
01:00.0 VGA compatible controller: nVidia Corporation NV11 [GeForce2 MX/MX 400] (rev b2)
root@hanuman:/home/pegazeka#
 
Old 11-29-2005, 02:56 PM   #2
brokenflea
Member
 
Registered: Nov 2003
Distribution: Slackware 11.0, FreeBSD
Posts: 284

Rep: Reputation: 30
what's the output of dmesg | tail.

and also, here's what worked for me but i give no guarantees if this would work for you or not. but try it anyways.

1. using root create a group called "camera" (without the quotes...)

2. Still as root - add your user to that group (the non-root user)

3. Log out and then back in (to reset your groups).

4. Either rename /etc/hotplug/usb.usermap.new to usb.usermap or copy its contents across (cat usb.usermap.new >> usb.usermap).

Now, when you plug in the camera it should appear under /proc/bus/usb/devices and you should be able to access it through gphoto2/digikam/whatever other front-end you choose.
 
Old 11-29-2005, 02:56 PM   #3
Furlinastis
Member
 
Registered: Dec 2004
Location: Ball of Confusion
Distribution: Artix,Arch,Slackware,Bluewhite64
Posts: 261

Rep: Reputation: 40
Code:
mount -t vfat /dev/sda1 /mnt/camera
always works for me. That's assuming you've created the directory /mnt/camera and only have one usb device plugged in.
 
Old 11-29-2005, 05:45 PM   #4
$in
LQ Newbie
 
Registered: Dec 2003
Distribution: Slackware current
Posts: 27

Original Poster
Rep: Reputation: 15
dmesg | tail

Code:
root@hanuman:/home/pegazeka# mount -t vfat /dev/sda1 /mnt/1
mount: /dev/sda1 is not a valid block device
root@hanuman:/home/pegazeka# dmesg | tail
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
PPP BSD Compression module registered
PPP Deflate Compression module registered
root@hanuman:/home/pegazeka#

Code:
root@hanuman:/home/pegazeka# mount -t vfat /dev/sda1 /mnt/1
mount: /dev/sda1 is not a valid block device
Furlinastis, i'll try that with the groups and get back with the results

thank you for the quick replies!

edit:
tried that and nothing happend, still the same, the camera can't be detected

Last edited by $in; 11-29-2005 at 06:42 PM.
 
Old 11-29-2005, 07:08 PM   #5
Furlinastis
Member
 
Registered: Dec 2004
Location: Ball of Confusion
Distribution: Artix,Arch,Slackware,Bluewhite64
Posts: 261

Rep: Reputation: 40
"mount: /dev/sda1 is not a valid block device"

that's telling you there is no device at /dev/sda1 and you might try a different file.

try cat /proc/bus/usb/devices and look to see if the camera is being detected...but after that, I'm lost
 
Old 11-29-2005, 11:50 PM   #6
Namaseit
Member
 
Registered: Dec 2003
Distribution: Slackware
Posts: 325

Rep: Reputation: 30
cat /proc/partitions

if its going to be recognized as a mass storage device you'll see it in that listing.
 
Old 11-30-2005, 12:51 AM   #7
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 3,215
Blog Entries: 4

Rep: Reputation: 1500Reputation: 1500Reputation: 1500Reputation: 1500Reputation: 1500Reputation: 1500Reputation: 1500Reputation: 1500Reputation: 1500Reputation: 1500Reputation: 1500
Quote:
Originally posted by brokenflea
1. using root create a group called "camera" (without the quotes...)

2. Still as root - add your user to that group (the non-root user)

3. Log out and then back in (to reset your groups).

4. Either rename /etc/hotplug/usb.usermap.new to usb.usermap or copy its contents across (cat usb.usermap.new >> usb.usermap).

Now, when you plug in the camera it should appear under /proc/bus/usb/devices and you should be able to access it through gphoto2/digikam/whatever other front-end you choose.
How d'ya like that! I've been plagiarised...

Here's a link to my site which fully explains all the above.

http://members.optusnet.com.au/rkelsen/camera.html

Note: Step 4 of that process won't work unless you install the packages from the site linked to above. The packages are a bit old now (August 2004), but work fine for me on Slackware 10.2 with a Canon Powershot A85.

P.S. No hard feelings brokenflea. Just remember to credit your sources next time...
 
Old 11-30-2005, 05:07 AM   #8
lockout
LQ Newbie
 
Registered: Sep 2005
Location: Riga, LV
Distribution: Slackware/Gentoo
Posts: 26

Rep: Reputation: 15
I also pwn a Canon95a camera and some time ago I wanted to get it functional in slackware.
I wanted to mount camera as any flash drive (i guess that was my mistake). Here's what ive had done:
1. plug the camera into usb, turn the device on
2. do a lsusb, find the bus number the camera is on
3. do a usbmosules --device /proc/bus/usb/[bus/slot id], this lists required modules for device to function (well i think so)
4. do a modprobe on the found modules
5. do a mount /dev/sdaX /mnt/camera -t auto to mount the device

Well sadly it didnt work for me (maby it works for someone else), sinc then i have given up a bit on accesing my camera from linux. Still I recently downloaded libgphoto and stuff packages, so I will be testing same crap soon.

:^)

Last edited by lockout; 11-30-2005 at 05:08 AM.
 
Old 11-30-2005, 05:19 AM   #9
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 3,215
Blog Entries: 4

Rep: Reputation: 1500Reputation: 1500Reputation: 1500Reputation: 1500Reputation: 1500Reputation: 1500Reputation: 1500Reputation: 1500Reputation: 1500Reputation: 1500Reputation: 1500
Quote:
Originally posted by lockout
Well sadly it didnt work for me (maby it works for someone else), sinc then i have given up a bit on accesing my camera from linux.
In my experience, Canon cameras support only PTP. This means that you cannot access the camera like a storage device. You must use libgphoto. There are some Slackware packages of the required software at the site in my previous post.
 
Old 11-30-2005, 05:27 AM   #10
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 52
There are packages for a newer version (2.1.6) of gphoto/libgphoto in linuxpackages.net. Those worked fine for a guy with a Kodak camera I talked to in ##slackware@freenode.net
 
Old 11-30-2005, 05:46 AM   #11
$in
LQ Newbie
 
Registered: Dec 2003
Distribution: Slackware current
Posts: 27

Original Poster
Rep: Reputation: 15
rkelsen, thank you very very much! you saved the day

this was the crucial thing:
Quote:
2. Be sure to have the camera in 'playback' mode, or it won't be detected.
LoL

i was like "dough!!!" :c)

and thank you everyone else for the replies!
 
Old 11-30-2005, 05:58 AM   #12
lockout
LQ Newbie
 
Registered: Sep 2005
Location: Riga, LV
Distribution: Slackware/Gentoo
Posts: 26

Rep: Reputation: 15
Heh nice one!!!!1111oneoene

:^)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Canon PowerShot A400 - does anyone use it? ditch* Linux - General 7 03-31-2006 10:41 PM
Canon Powershot sd500 with gphoto2 amenon Linux - Hardware 1 10-15-2005 11:49 AM
canon power shot a95 not recognized fof3 Linux - Newbie 17 09-28-2005 02:13 AM
Canon PowerShot S50 oskar_27de Linux - Hardware 0 11-03-2003 05:12 AM
Canon Powershot Cameras psx-dude Slackware 14 08-28-2003 10:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration