LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 07-24-2007, 07:37 AM   #1
AriciU
Member
 
Registered: Jul 2007
Location: Bucharest, Romania
Distribution: Ubuntu 7.04, Slackware 12
Posts: 87

Rep: Reputation: 15
My USB Camera doesn't work


Slackware 12 + xfce.

Camera is a Canon PowerShot SD10 witch should be seen as a USB Mass Storage Device.

I've added myself to plugdev and am using the default SMP kernel that comes with Slack 12.

When i connect my camera and turn it ON dmesg only shows me these lines:

Quote:
usb 2-4: new full speed USB device using ohci_hcd and address 5
usb 2-4: configuration #1 chosen from 1 choice
It doesn't say anything about "usb device xx mounted as /dev/sdXX" like it should've done.

Here's the output of lsusb:

Quote:
lsusb
Bus 1 Device 1: ID 0000:0000
Bus 3 Device 2: ID 03f0:1104 Hewlett-Packard DeskJet 959c
Bus 3 Device 1: ID 0000:0000
Bus 2 Device 5: ID 04a9:309b Canon, Inc. Digital IXUS (ptp)
Bus 2 Device 2: ID 1532:0101
Bus 2 Device 1: ID 0000:0000
Hope you can help me out with this.

Ooh... i forgot, my printer (using USB) is not working either... i can't get slack to detect it so i can use it
 
Old 07-24-2007, 07:42 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Quote:
Originally Posted by AriciU
Slackware 12 + xfce.

Camera is a Canon PowerShot SD10 witch should be seen as a USB Mass Storage Device.

I've added myself to plugdev and am using the default SMP kernel that comes with Slack 12.

When i connect my camera and turn it ON dmesg only shows me these lines:



It doesn't say anything about "usb device xx mounted as /dev/sdXX" like it should've done.

Here's the output of lsusb:



Hope you can help me out with this.

Ooh... i forgot, my printer (using USB) is not working either... i can't get slack to detect it so i can use it
Hi,

Post your '/etc/fstab' plus your 'dmesg' output after a reboot. Place in a vbcode window(# or Quote) on the top of the reply window to make easier read.

How have you configured your printer?
 
Old 07-24-2007, 09:08 AM   #3
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
Is /etc/rc.d/rc.hplip executeable? For your printer. Also /etc/rc.d/rc.cups? If not then do chmod +x on both files.
 
Old 07-24-2007, 09:20 AM   #4
AriciU
Member
 
Registered: Jul 2007
Location: Bucharest, Romania
Distribution: Ubuntu 7.04, Slackware 12
Posts: 87

Original Poster
Rep: Reputation: 15
Code:
/dev/sda4        swap             swap        defaults         0   0
/dev/sda3        /                ext3        defaults         1   1
/dev/sdb2        /media/sdb2      ext2        defaults         1   2
/dev/sdb4        /media/sdb4      ext2        defaults         1   2
/dev/hdb1        /media/hdb1      ntfs-3g     defaults         1   1
/dev/hdb2        /media/hdb2      ntfs-3g     defaults         1   1
/dev/sda1        /media/sda1      ntfs-3g     defaults         1   1
/dev/sdb1        /media/sdb1      ntfs-3g     defaults         1   1
#/dev/cdrom       /mnt/cdrom       auto        noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
dmesg: http://pastebin.ca/631953
 
Old 07-24-2007, 09:22 AM   #5
AriciU
Member
 
Registered: Jul 2007
Location: Bucharest, Romania
Distribution: Ubuntu 7.04, Slackware 12
Posts: 87

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by simcox1
Is /etc/rc.d/rc.hplip executeable? For your printer. Also /etc/rc.d/rc.cups? If not then do chmod +x on both files.
I made them executables... still can't print. On firefox / Print for example the only "printer name" that gets detected is "Postscript/default" and i can't change it to anything else.
 
Old 07-24-2007, 09:28 AM   #6
AriciU
Member
 
Registered: Jul 2007
Location: Bucharest, Romania
Distribution: Ubuntu 7.04, Slackware 12
Posts: 87

Original Poster
Rep: Reputation: 15
Ok, this is weird. I just plugged in my Nokia phone and it detected it:

Quote:
scsi6 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 6
usb-storage: waiting for device to settle before scanning
scsi 6:0:0:0: Direct-Access PQ: 0 ANSI: 0
SCSI device sdc: 994069 512-byte hdwr sectors (509 MB)
sdc: Write Protect is off
sdc: Mode Sense: 03 00 00 00
sdc: assuming drive cache: write through
SCSI device sdc: 994069 512-byte hdwr sectors (509 MB)
sdc: Write Protect is off
sdc: Mode Sense: 03 00 00 00
sdc: assuming drive cache: write through
sdc:
sd 6:0:0:0: Attached scsi removable disk sdc
sd 6:0:0:0: Attached scsi generic sg2 type 0
usb-storage: device scan complete
A link appears on my desktop to 508M Removable Volume but when i double click it i get an error saying "Unable to mount 508M removable volume".
 
Old 07-24-2007, 09:31 AM   #7
AriciU
Member
 
Registered: Jul 2007
Location: Bucharest, Romania
Distribution: Ubuntu 7.04, Slackware 12
Posts: 87

Original Poster
Rep: Reputation: 15
Ok. I did "mount /dev/sdb /media/nokia" and i can access the stuff on the phone's memory card correctly. I just can't access it from that link that pops out on the desktop.

What can be wrong with my camera though since it's not getting recognised?
 
Old 07-24-2007, 10:02 AM   #8
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
Have you set the default printer in the cups web interface?

http://localhost:631
 
Old 07-24-2007, 10:09 AM   #9
AriciU
Member
 
Registered: Jul 2007
Location: Bucharest, Romania
Distribution: Ubuntu 7.04, Slackware 12
Posts: 87

Original Poster
Rep: Reputation: 15
Got it working, thanks. Didn't have rc.cups started.

Last edited by AriciU; 07-24-2007 at 10:30 AM.
 
Old 07-24-2007, 11:16 AM   #10
AriciU
Member
 
Registered: Jul 2007
Location: Bucharest, Romania
Distribution: Ubuntu 7.04, Slackware 12
Posts: 87

Original Poster
Rep: Reputation: 15
I installed gphoto2 and gtkam and i can copy/view pictures on the camera fine.

Why doesn't HAL automaticly detect it and mount it though?

Why does the link that pops out on my desktop when i connect my Nokia phone gives a "cannot mount" error when clicking it and makes me have to manually mount it?
 
Old 07-24-2007, 11:48 AM   #11
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Rep: Reputation: 48
Quote:
Originally Posted by AriciU
I installed gphoto2 and gtkam and i can copy/view pictures on the camera fine.

Why doesn't HAL automaticly detect it and mount it though?
Your Canon camera probably uses the PTP protocol so it can't be mounted like a regular USB device. It can only be accessed via a program that "speaks" PTP like gphoto2.

As for your Nokia phone, I don't know why it wouldn't mount from the desktop icon... You issue the manual mount command (that works) as root or user?
 
Old 07-24-2007, 12:00 PM   #12
AriciU
Member
 
Registered: Jul 2007
Location: Bucharest, Romania
Distribution: Ubuntu 7.04, Slackware 12
Posts: 87

Original Poster
Rep: Reputation: 15
I mount it as root.
 
Old 07-24-2007, 12:00 PM   #13
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Rep: Reputation: 48
Canon

Based on your lsusb:
Code:
Bus 2 Device 5: ID 04a9:309b Canon, Inc. Digital IXUS (ptp)
I would try adding this somewhere in your udev rules:
Code:
ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="309b", MODE="0660", GROUP="plugdev"
This should let udev tell hal tell you.

I have a file /etc/udev/rules.d/45-libgphoto2.rules that looks like this:

Code:
# udev rules file for libgphoto2 devices (udev >= 0.98)
#
SUBSYSTEM!="usb_device", GOTO="libgphoto2_rules_end"
ACTION!="add", GOTO="libgphoto2_rules_end"
#... bla bla bla
ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="314f", MODE="0660", GROUP="plugdev"
#... bla bla
LABEL="libgphoto2_rules_end"
 
Old 07-24-2007, 12:08 PM   #14
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Rep: Reputation: 48
Quote:
Originally Posted by AriciU
I mount it as root.
Then it is most likely a permission problem.

Maybe add a rule similar to the camera for your Nokia phone, or better yet, check your rules to see where usb devices are picked up and set mode="0660" (and group="plugdev", although this should be there)
 
Old 07-24-2007, 12:47 PM   #15
AriciU
Member
 
Registered: Jul 2007
Location: Bucharest, Romania
Distribution: Ubuntu 7.04, Slackware 12
Posts: 87

Original Poster
Rep: Reputation: 15
ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="309b", MODE="0660", OWNER="root", GROUP="plugdev"

This line was already in my 90-libgphoto2.rules

I can't figure out witch file contains the usb devices rules (nokia phone).

EDIT: found this line in 80-libmtp.rules:

Quote:
# Nokia Mobile Phones (MTP mode)
SYSFS{idVendor}=="0421", SYSFS{idProduct}=="04e1", SYMLINK+="libmtp-%k", MODE="660", GROUP="audio"
This is the error i get by the way when it finds my Nokia phone and the shorcut appears on the desktop:

Quote:
A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.Volume" member "Mount" error name "(unset)" destination "org.freedesktop.Hal")

Last edited by AriciU; 07-24-2007 at 12:56 PM.
 
  


Reply



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
USB ports work with flash drive but not camera M$ISBS Linux - Hardware 3 04-06-2007 09:14 PM
Unknown USB Camera : How do I make it work ? koodoo Linux - Newbie 13 08-15-2005 09:03 AM
USB HP PhotoSmart Camera wont work chrisknight Linux - Software 10 04-11-2005 10:24 PM
Plug and work USB camera Danathar Fedora 2 12-06-2004 10:41 AM
USB camera suddenly doesn't work, supermount may be to blame mrsolo Linux - Hardware 5 08-18-2004 01:02 PM

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

All times are GMT -5. The time now is 01:31 PM.

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