From: Grant on
On Mon, 11 Jan 2010 08:15:01 +0100, Henrik Carlqvist <Henrik.Carlqvist(a)deadspam.com> wrote:

>Grant <g_r_a_n_t_(a)bugsplatter.id.au> wrote:
>> I don't have slack-12 installed anywhere, but on slack-11.0:
>>
>> grant(a)deltree:~$ /sbin/lsusb
>> Bus 001 Device 001: ID 1d6b:0001
>
>henca(a)mugin:~> cat /etc/slackware-version
>Slackware 12.0.0
>henca(a)mugin:~> /sbin/lsusb
>henca(a)mugin:~> echo $?
>1
>henca(a)mugin:~> su
>Password:
>bash-3.1# /sbin/lsusb
>Bus 1 Device 1: ID 0000:0000
>bash-3.1# echo $?
>0
>bash-3.1#
>
>On the above system I do not have any usbfs in fstab. An strace on lsusb
>as a normal user shows:
>
>open("/dev/bus/usb/1/1", O_RDWR) = -1 EACCES (Permission denied)
>open("/dev/bus/usb/1/1", O_RDONLY) = -1 EACCES (Permission denied)
>
>So on this system a normal user is able to execute /sbin/lsusb when the
>entire path is given, but a normal user lacks priveleges to check the
>hardware. As allways YMMV depending on your version of Slackware and
>different configurations.

Maybe mine's different 'cos I run a custom kernel? No usbfs in
/etc/fstab. I'm interested in USB right now 'cos I bought a new
USB card for old box running slack-11.0 to get USB2.0 fast transfer
speed.

Plugged in card, recompiled kernel to add OHCI to suit card, plugged
my camera in, and:

grant(a)deltree:~$ /sbin/lsusb
Bus 004 Device 001: ID 1d6b:0001
Bus 003 Device 001: ID 1d6b:0001
Bus 002 Device 001: ID 1d6b:0001
Bus 001 Device 002: ID 04a9:3177 Canon, Inc.
Bus 001 Device 001: ID 1d6b:0002

There's my camera :)

Absolutely no idea what to do next... Probably have to RTFM ;)

Grant.
--
http://bugs.id.au
From: Jim Diamond on
On 2010-01-10 at 23:23 AST, Grant <g_r_a_n_t_(a)bugsplatter.id.au> wrote:
> On Sun, 10 Jan 2010 21:06:23 -0400, Jim Diamond <Jim.Diamond(a)nospam.AcadiaU.ca> wrote:
>
>>On 2010-01-10 at 03:32 AST, Bud <Bud(a)bud.invalid> wrote:
>>> On 2010-01-09, Jim Diamond wrote:
>>> I writ:
>>>>> You have to be root to use the command i.e. username]$lsusb
>>
>>>> Of course, this is not true. You should really try out such simple
>>>> things before spreading misinformation to the rest of the world.
>>
>>> Certainly, other ways but if you are new to Linux, you will have to
>>> explain that it can't get a result from just a user and using only
>>> lsusb. Simple to just change to root and back again.
>>Is that simpler than preceding "lsusb" with "/sbin/" ? Hmmmm.
>>
>>> Perhaps I should have said as a user use /usr/sbin/lsusb and the
>>> result will follow.
>>**sigh**
>>/usr/sbin/lsusb will work on some Linux distributions, but not on
>>Slackware 12.2 or 13.0.
>
> So why get hung up on a path?

Was that a rhetorical question?

If not, who were you asking?

Jim
From: Henrik Carlqvist on
Grant <g_r_a_n_t_(a)bugsplatter.id.au> wrote:
> I'm interested in USB right now 'cos I bought a new USB card for old box
> running slack-11.0 to get USB2.0 fast transfer speed.

> Bus 001 Device 002: ID 04a9:3177 Canon, Inc. Bus 001 Device 001: ID
> 1d6b:0002
>
> There's my camera :)
>
> Absolutely no idea what to do next... Probably have to RTFM ;)

I don't know if Slack 11 uses hotplug or udev. However, the next thing to
do would probably be to write a rule that gives normal users read and
write access to your camera device. Once that is done it is time to
install gphoto2. Maybe you prefer a graphical frontend like digikam to
libgphoto, i prefer to write some alisases to gphoto2 myself to list,
download and delete files from the camera.

Some cameras can be used as USB disks, but Canon usually requires gphoto2.

regards Henrik
--
The address in the header is only to prevent spam. My real address is:
hc3(at)poolhem.se Examples of addresses which go to spammers:
root(a)localhost postmaster(a)localhost

From: Lew Pitcher on
I'm back from my unexpectedly long vacation in Montreal, and I find that on
January 11, 2010 16:36, in alt.os.linux.slackware,
Henrik.Carlqvist(a)deadspam.com wrote:

> Grant <g_r_a_n_t_(a)bugsplatter.id.au> wrote:
>> I'm interested in USB right now 'cos I bought a new USB card for old box
>> running slack-11.0 to get USB2.0 fast transfer speed.
>
>> Bus 001 Device 002: ID 04a9:3177 Canon, Inc. Bus 001 Device 001: ID
>> 1d6b:0002
>>
>> There's my camera :)
>>
>> Absolutely no idea what to do next... Probably have to RTFM ;)

A quick search of the Linux USB site doesn't show any native kernel support
for that Canon camera. However, most usb devices don't need kernel support
these days; the basic USB communications is handled by the kernel, and
individual device support is handled by userland libraries.

Another quick search shows that libgphoto (the library used by most camera
and photo management software on Linux) only got support for the OP's
camera (a Canon A580, USB ID 04a9:3177) in late 2009.

I'm afraid that stock Slackware 11.0 is too backlevel for this camera. The
OP /might/ be able to find a recently-created replacement package for the
Slack11 libgphoto. OTOH, it might be easier if he just built a new
libgphoto from source, with the Canon A580 patch included.

> I don't know if Slack 11 uses hotplug or udev.

Slack 11 was a "dual kernel" release, primarily offering a 2.4 kernel, but
also offering a 2.6 kernel. It used hotplug, to be compatible with 2.4.

> However, the next thing to
> do would probably be to write a rule that gives normal users read and
> write access to your camera device.

This may not be necessary, so long as the user has been added to the proper
groups.

> Once that is done it is time to
> install gphoto2. Maybe you prefer a graphical frontend like digikam to
> libgphoto, i prefer to write some alisases to gphoto2 myself to list,
> download and delete files from the camera.
>
> Some cameras can be used as USB disks, but Canon usually requires gphoto2.

USB Disk support will require the appropriate rule/group and kernel support
for the device. This appears unnecessary, given the (recent) support in
libgphoto

HTH
--
Lew Pitcher
Master Codewright & JOAT-in-training | Registered Linux User #112576
Me: http://pitcher.digitalfreehold.ca/ | Just Linux: http://justlinux.ca/
---------- Slackware - Because I know what I'm doing. ------


From: Grant on
On Mon, 11 Jan 2010 17:03:03 -0500, Lew Pitcher <lpitcher(a)teksavvy.com> wrote:

>I'm back from my unexpectedly long vacation in Montreal, and I find that on
>January 11, 2010 16:36, in alt.os.linux.slackware,
>Henrik.Carlqvist(a)deadspam.com wrote:
>
>> Grant <g_r_a_n_t_(a)bugsplatter.id.au> wrote:
>>> I'm interested in USB right now 'cos I bought a new USB card for old box
>>> running slack-11.0 to get USB2.0 fast transfer speed.
>>
>>> Bus 001 Device 002: ID 04a9:3177 Canon, Inc. Bus 001 Device 001: ID
>>> 1d6b:0002
>>>
>>> There's my camera :)
>>>
>>> Absolutely no idea what to do next... Probably have to RTFM ;)
>
>A quick search of the Linux USB site doesn't show any native kernel support
>for that Canon camera. However, most usb devices don't need kernel support
>these days; the basic USB communications is handled by the kernel, and
>individual device support is handled by userland libraries.
>
>Another quick search shows that libgphoto (the library used by most camera
>and photo management software on Linux) only got support for the OP's
>camera (a Canon A580, USB ID 04a9:3177) in late 2009.

Well, my cam served as test for new USB card, it was first thing I
found within arm's reach.
>
>I'm afraid that stock Slackware 11.0 is too backlevel for this camera. The
>OP /might/ be able to find a recently-created replacement package for the
>Slack11 libgphoto. OTOH, it might be easier if he just built a new
>libgphoto from source, with the Canon A580 patch included.
>
>> I don't know if Slack 11 uses hotplug or udev.
>
>Slack 11 was a "dual kernel" release, primarily offering a 2.4 kernel, but
>also offering a 2.6 kernel. It used hotplug, to be compatible with 2.4.

This box is 2.6.27.43 plus some upgrades to important stuff.
>
>> However, the next thing to
>> do would probably be to write a rule that gives normal users read and
>> write access to your camera device.
>
>This may not be necessary, so long as the user has been added to the proper
>groups.
>
>> Once that is done it is time to
>> install gphoto2. Maybe you prefer a graphical frontend like digikam to
>> libgphoto, i prefer to write some alisases to gphoto2 myself to list,
>> download and delete files from the camera.
>>
>> Some cameras can be used as USB disks, but Canon usually requires gphoto2.
>
>USB Disk support will require the appropriate rule/group and kernel support
>for the device. This appears unnecessary, given the (recent) support in
>libgphoto

Yes, the Canon (low end) compacts don't offer mass storage vs picture
format like my old Nikon dSLR does. Not a problem as I usually read
the cam in the Canon windoze app, or pull out the SD memory card and
read that direct with Slackware.

Grant.
--
http://bugs.id.au