LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Sony Cyber-shot DSC-P73 Camera (https://www.linuxquestions.org/questions/linux-hardware-18/sony-cyber-shot-dsc-p73-camera-312266/)

trebek 04-12-2005 12:16 AM

Sony Cyber-shot DSC-P73 Camera
 
I've been trying desperately to install this digital camera onto my linux box. I operate mandrake 9.1 and so far i know my USB is working cause i mounted a memory flash drive there, but the camera is not picked up. The memory stick inside the camera is not detected. I was told by a coworker that i would be under sda1 when plugged into the system, but it does not. I also attempted to connect the camera before booting linux or even turning the system on. Nothing.

Any help would appreciated. Thanks in advanced.

Simon Bridge 04-12-2005 01:24 AM

I had the same problem with the P73 that I had...

AFAIK: it is not compatable with linux. I have yet to get any Sony memory-stick pro device to work under linux. What I ended up doing, is getting a removable media reader - these are very cheap and easy to install - and reading the stick via that.

(Be aware: you do not have to install the camera to get your photos, only the stick.)

Sony inform me that third party drivers probably won't work with memory stick pro devices - even if there is not a memory stick pro in the machine.

gphoto recommend using usb_storage and mounting /dev/sda1 with mnt -t vfat /dev/sda1 /mnt/camera - but if you really want to use the camera itself then you could investigate gphoto as an alternative. I do not actually know if the sony dsc's are supported in gphoto...

Anyhoo - look in lsmod - you need usb_storage as well as usb-ohci. The camera should look just like a removable media device. An internal usb card reader needs usb-ehci and usb_storage.

dmesg will let you know if something is detected.
usb devices are usually sda0, sda1 and so forth ... there dosn't seem to be any way of working out where it will be without mounting all the possible device labels in turn.

trebek 04-13-2005 01:37 PM

This is the best answer i've gotten so far in all forums i've been to. I guess i'll try this commands and with all sda's that show up there. I also would like to know how do you 'safely remove hardware', like in windows, when using the card reader?

Simon Bridge 04-13-2005 07:55 PM

"safely remove hardware" lol

You can remove the hardware safely at any time - it least where the hardware is concerned. However - before you unplug your camera it is a good idea to unmount the volume. That's all.

Window$ makes it seem more dire than it is. It's just that the kernel has no way of knowing that the fs has been removed. Though it does seem that a command which returns an error to the effect that there is no fs at the mountpoint should be a bit of a hint.

on trying the sda-b-c etc. don't hold your breath. Chances are you'll be better off with a card reader anyway. I got my 7-card reader off DSE (NZ) for just under NZ$20 - which is about US$10 or so. USB card readers can also be pretty cheap.

you can write a script to try the sda1 etc mountpoint to see what mounts... but you may want to look at dmesg to see if your camera is even seen.

Brian1 04-13-2005 08:14 PM

Quick note on multi-slot card readers. Most require Multilun support compiled in the kernel. Not all require it but most do. I don't know if Mandrake includes the multilun support by default or not. Redhat/FC* don't. They require kernel recompile. If you wish to make sure to have no issues then buy a single type media card reader.

A few post to look over. It does get kind of complicated.
http://www.linuxquestions.org/questi...36#post1401136
http://www.linuxquestions.org/questi...331#post498331

Brian1
" Google the Linux way @ http://www.google.com/linux "

trebek 04-13-2005 10:37 PM

Ok, i got an idea.

I do believe that at least the system knows that something is plugged but cannot recognize or mount it. I'll perform the lsmod and dmesg commands before and after pluggin the camera in so we can tell that way if my assumption is correct or not. I'll post the results in this same reply soon.

If not, as soon as i can, i'll just purchase a card reader.

Simon Bridge 04-14-2005 10:26 PM

Quote:

Originally posted by Brian1
Quick note on multi-slot card readers. Most require Multilun support compiled in the kernel. Not all require it but most do. I don't know if Mandrake includes the multilun support by default or not. Redhat/FC* don't. They require kernel recompile. If you wish to make sure to have no issues then buy a single type media card reader.
Brian1
Well, I have FC2 and an internal USB 7-in-1 card reader from DSE. Required only usb-ehci and usb-storage support compiled in the kernel out of the box. No hitches and no worries.

trebek 04-15-2005 02:26 PM

I did see the usb-ehci module listed when typing lsmod or dmesg. The usb-storage i didn't see, i guess i need to either download and install the module or just load it. Is this correct?

Brian1 04-15-2005 05:47 PM

Do a ' modprobe usb-storage '.

Brian1
" Google the Linux way @ http://www.google.com/linux "

amw2320 04-15-2005 07:12 PM

P73 does work
 
The P73 does work under linux. When you are in usb mode be sure to set it to PTP, it is recognized as another camera (a P70 I think), but works perfectly. I still haven't figured out the permissions to access it as someone other than root though.

trebek 04-15-2005 11:46 PM

I'll be doing all this just now!!! :study:

Ok, 'modprobe usb-storage' gave no results.

I did what amw2320 suggested and i got this back from dmesg:
Code:

hub.c: new USB device 00:1f.2-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x54c/0x10) is not claimed by any active driver.
usb.c: USB disconnect on device 00:1f.2-1 address 2
hub.c: new USB device 00:1f.2-1, assigned address 3
usb.c: USB device 3 (vend/prod 0x54c/0x4e) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
3Com  3c990.c  v1.0.0b  10/2000
3Com  3c990.c  v1.0.0b  10/2000
PORTMAN_PCS loaded -------

Still, i typed 'ls /dev' and nothing showed for sda1.


amw2320 04-16-2005 11:16 AM

Make sure you have libgphoto2 and gphoto2, I'm pretty sure that they both come with mandrake.


After plugging in the camera, type: gphoto2 --auto-detect

Model Port
----------------------------------------------------------
Sony DSC-F707V (PTP mode) usb:


gphoto2 -a will show the camera abilites


Abilities for camera : Sony DSC-F707V (PTP mode)
Serial port support : no
USB support : yes
Capture choices :
: Capture not supported by the driver
Configuration support : yes
Delete files on camera support : yes
File preview (thumbnail) support : yes
File upload support : yes

there is alot you can do from the command line with gphoto2 like: gphoto2 -P to download all pictures

I personally use digiKam, it's a great looking KDE frontend for libgphoto2.

Hope that works

trebek 04-16-2005 11:36 AM

Excellent, thanks a lot!! :cool:

I'll do this as soon as i get back home from work.

Yesterday i was attempting to mount a bunch of stuff. I got a usb stick working, so i know the usb port is fine. The last text i wrote about the dmesg results didn't appear like that before having the computer run without the camera plugged in. So i guess at least it was recognized in some way.

Simon Bridge 04-16-2005 11:39 PM

Quote:

Originally posted by trebek
I'll be doing all this just now!!! :study:

Ok, 'modprobe usb-storage' gave no results.
That's OK, the module is called usb_storage :)

Quote:

I did what amw2320 suggested and i got this back from dmesg:
Code:

hub.c: new USB device 00:1f.2-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x54c/0x10) is not claimed by any active driver.
usb.c: USB disconnect on device 00:1f.2-1 address 2
hub.c: new USB device 00:1f.2-1, assigned address 3
usb.c: USB device 3 (vend/prod 0x54c/0x4e) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
3Com  3c990.c  v1.0.0b  10/2000
3Com  3c990.c  v1.0.0b  10/2000
PORTMAN_PCS loaded -------


... yup, that's fine - but to use PTP, you must have some camera interface software that supports PTP. Wot I have been talking about is to use the camera as a mass media device - the default (normal) mode reccommended by Sony. I think the one called gphoto is the best one. The gphoto developers also recommend using normal node if at all possible. But - then - it's not possible, so you can avoid the expence of new hardware or commit yourself to download and install new software.

If I try to connect (mount the memory stick) via the camera in PTP or normal mode, I just get: "no media present" regardless.

Quote:

Still, i typed 'ls /dev' and nothing showed for sda1. [/B]
Saaay what?! I read this bit to mean that /dev/sda1 does not exist...

If I do ls /dev I get a whole swath of block special devices flooding the screen.
If I do ls /dev/sda1, it shows up all right. If it wasn't there I'd get the error message...

/dev/sda1:no such file or directory

If you do not have the /dev/sda block special devices then where is your usb going? Perhaps you should look again, this time using ls /dev/sda1 ?

Anyhoo - you wouldn't look at the block special device to see if your camera is there, you'd look in the mountpoint... you go like this (as root):
Code:

mount -t vfat /dev/sda1 /mnt/camera
ls /mnt/camera

(provided the mountpoint /mnt/camera exists)
... and you'll see the 101 directory.

Of course, if you use gphoto, then you'll be using that interface.

Simon Bridge 04-16-2005 11:52 PM

Re: P73 does work - with PTP and gphoto that is
 
Quote:

Originally posted by amw2320
[snip] I still haven't figured out the permissions to access it as someone other than root though.
You can't - only root can mount file systems (man mount).
Presumably, if you access a memstick through a card reader you can configure fstab for /dev/sda1 like the floppy, so the stick is detected when you plug it in and an entry will show in some sort of user mount tool.

However: I usually access photos via a script file. Since I'm always doing the same commands... in which case, sudo is good: see man sudo.

The script goes something like this
Code:

#! /bin/sh
sudo mount -t vfat /dev/sda1 /mnt/camera
cd /mnt/camera/dcim/101msdcf
sudo mv -iv --targetdirectory=/home/$me/photos/todo/*.jpg
sudo rm *
sudo umount /mnt/camera
sudo -k
cd /home/me/photos/todo
echo -e "all done now"

But you have to set yourself up to use sudo to begin with.

Simon Bridge 04-16-2005 11:54 PM

Great! Then you shouldn't need gphoto ... unless the usb port is in a nasty place?

Quote:

Originally posted by trebek
Excellent, thanks a lot!! :cool:

I'll do this as soon as i get back home from work.

Yesterday i was attempting to mount a bunch of stuff. I got a usb stick working, so i know the usb port is fine. The last text i wrote about the dmesg results didn't appear like that before having the computer run without the camera plugged in. So i guess at least it was recognized in some way.


trebek 04-18-2005 01:50 AM

Actually that's what i think, it is not thrown as sda1. Maybe it is detected but we can't find the name to mount anywhere.

I will make sure now that actually that thing is detected with the dmesg to see what happens. I think we are getting close to fixing this issue.

:study:

I attempted dmesg and putting the camera on usb-normal to see what happens, and here's the result:
Code:

hub.c: connect-debounce failed, port 1 disabled
hub.c: new USB device 00:1f.2-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x54c/0x4e) is not claimed by any active driver.
usb.c: USB disconnect on device 00:1f.2-1 address 2
hub.c: new USB device 00:1f.2-1, assigned address 3
usb.c: USB device 3 (vend/prod 0x54c/0x4e) is not claimed by any active driver.
usb.c: USB disconnect on device 00:1f.2-1 address 3
hub.c: new USB device 00:1f.2-1, assigned address 4
usb.c: USB device 4 (vend/prod 0x54c/0x10) is not claimed by any active driver.

I see some differences: for instance, the other one with PTP showed that the usb whatever, after the third time, something got recognized. :scratch: But with this one the first part is very similar but nothing gets done.

Now, if i understood correctly, if i want to use gphoto, i need to set it to usb normal, mount it (we haven't figured out how yet) and then pick up with this app.

Ok, now look at this, i typed dmesg again while i wrote all this, and here's what i got:
Code:

Usb.c: USB disconnect on device 00:1f.2-1 address 4
UDP: short packet: 0.0.0.0:65535 65535/425 to 255.255.255.255:65535
hub.c: new USB device 00:1f.2-1, assigned address 5
usb.c: USB device 5 (vend/prod 0x54c/0x10) is not claimed by any active driver.

Any ideas?

Oh, and by the way, i noticed on my desktop an icon for gtkam, that didn't appear when linux booted until i connected the camera, this could mean it's detected some how but not mounted properly. Can i like update gtkam so maybe the updates come with device drivers for new cameras? I saw a big list and sony cameras are listed there.

Simon Bridge 04-18-2005 10:57 PM

That's right - I gather that gphoto mounts the camera for you ... did you try clicking that icon?

Anyway - my info is that gphoto/gtkam requires the PTP setting. Use the "normal" setting if you want to use the native linux usb_storage utility. (This is from the readme file in the gphoto tarball.)

If you want to use gtkam then you will have to find the drivers for your camera. A huge list are included with the default installation. Lots of reading I'm afraid - I got as far as the designers explaining why they think I shouldn't use their product.

At this stage, you should consider why you want to use the camera to access the photos on the memory stick. Is there a particular advantage in doing this that you wish to exploit? After all, you can get at the stick contents anyway, unless I've misread another post <grrr>

trebek 04-19-2005 03:18 AM

I did double click on the icon and looked for the camera on a big list. Some Sony cameras that are similar to mine were listed by mine wasn't. I guess i need to download the driver.

As for you inquiry about my main goal here, i figured that if i ever want to be a good linux user, i can never count on windows for nothing, and of course, i do like this research and going around things i've yet to understand and memorize. And of course, i haven't been able to access my memory stick through linux yet, only on windows and that really pisses me off. I mean, how can i not do it. I MUST.

And to finish up, this is what i will try next:

1. get gphoto and install it.
2. connect the camera using PTP mode.
3. find out the name that will appear on /dev.
4. mount it to some directory

I remember you mentioned something about not being able to access the mount point as a user different than root, but that's ok, i don't mind having to type and copy things through the terminal. I mean, it would be very 'windowish' to do so.

Simon Bridge 04-19-2005 04:26 AM

If you are using gphoto, then that program will handle everything you want to do just like camera apps in windows.

trebek 04-19-2005 11:40 AM

Oh man that's great. I'm gonna try it for sure. :D

Guess what, my camera is not on this list from 'www.gphoto.org':

.
.
.
.
.
.
"Sony DSC-P50 (PTP mode)"
"Sony DSC-P52 (PTP mode)"
"Sony DSC-P71 (PTP mode)"
"Sony DSC-P72 (PTP mode)"
"Sony DSC-P92 (PTP mode)"
"Sony DSC-P93 (PTP mode)"
"Sony DSC-S75 (PTP mode)"
.
.
.
.
.
.

Simon Bridge 04-20-2005 01:23 AM

You can probably use gphoto with your camera by pretending it is a P72 - I think the only difference between the two is the "pro" part, so you can use the relly humungous memsticks. It only costs you time (hair, fingernails, sanity) to try. Whereas your only other option would be to install a card reader. This would be easier, but costs in terms of money.

trebek 04-20-2005 08:23 AM

In that case i'll try both options, money is not an issue. I mean, this sounds like i have enough, which i don't, but how expensive can a card reader be? At least a simple one just so i can connect my camera to the computer. But anyways, i'll just go ahead and download this gphoto deal and see how do i do. I'll let you guys know what's going on.

Simon Bridge 04-21-2005 01:53 AM

Money is not an issue!?! Then give me some ;)

As prev stated, my 7-card internal USB reader cost a mere NZ$20.00 - which is something like US$14.00 - new. It works with the default installation of FC2 - though I doubt I could read more than one card at a time.

You can get dedicated USB memory stick readers quite happily. Remember tho - it will not connect your camera to your computer... just the memory stick.

Ignore the CD they'll give you with the device, it only contains more stuff to make windows crash more often. Your kernel should be able to handle a reader without other assistance.

trebek 04-21-2005 11:25 AM

JAJAJAJAJA good one. Gotta work hard for it. I do have $14 dollars for a card reader. Not $1400 for a new computer. Jejejeje.

Ok then, i think a card reader is the way to go. I attempted everything again and no luck. I'll let you know how it goes.

trebek 04-26-2005 11:42 AM

I am yet to put it. But now i got myself a Toshiba satellite and that's probably gonna make me play games instead of trying to get my camera working with linux.

I'll try it up since you all have helped me quite a bit for this. I feel like i owe you getting this camera going.

trebek 08-19-2005 02:20 AM

I have fedora core 3 now, now do i set it up from there? :scratch:

Simon Bridge 08-19-2005 05:51 PM

Update: my P43 and P73 are autodetected in FC4.
I was able to use gphoto with the p43 in RH9 and FC2 (get the latest version). You have to set the transfer method (in the camera) to "PTP" - gphoto detects it as something odd - but it works. Should be the same with the P73 as well.

You do not need to set up the card reader in FC3 - it is autodetected and the correct modules are loaded. You will want to add an entry to fstab so inserted cards can be mounted without you being root - and you write a simple script to grab everything in the stick.

trebek 08-20-2005 06:01 PM

The mounting, jejeje, is no problem cause i am running as root. I very seldon use other users than root.

And what do you mean write a little script to grab everything from the reader? Is it not done by mounting the device to a directory and opening the folder later on? I am bdazzled.:scratch:

Simon Bridge 08-21-2005 01:10 AM

Quote:

The mounting, jejeje, is no problem cause i am running as root. I very seldon use other users than root.
Then I hope you have a great firewall! Absolutely do not run linux as root - especially not online! You are just negating most of your security advantages.

Now, perhaps there's nothing on your machine you don't mind getting hacked... however, the hackers do not want your machine or it's contents, they want to use your bandwidth to attack someone else.

Always use a user account.

Quote:

And what do you mean write a little script to grab everything from the reader? Is it not done by mounting the device to a directory and opening the folder later on? I am bdazzled
Sure you can ... however, manually mounting, then copying all the files over, and whatever else you like to do with it, can be tedious if you do it a lot. Imagine inserting the card, clicking an icon, and all the photos are in the right place and the card is nicely unmounted for you so you don't have to remember.

trebek 08-22-2005 02:52 AM

Oh man, that sounds really neat, problem is, i wouldn't know where to start, of course. However, it sure sounds like the next thing to do as soon as i at least can fetch everything from my card inside the camera. Dude, thanks for the help, most helpfull. :)

Simon Bridge 08-22-2005 03:37 AM

1. make yourself a user account
2. edit your user groups so you are a member of the wheel group (so you can sudo).

get back to me

trebek 12-07-2006 11:59 PM

I got it working, kubuntu came with an app to do this. I know have no problems at all.

Thanks man. I learned some other stuff while researching for all these things.

Simon Bridge 12-08-2006 04:08 AM

That was a while!

Do you still do everything logged in as root?

You know - FC4 comes with gphoto, and gphoto will automagically handle your camera. (It'll call it something else, but who cares.) There have been a lot of advances since we were last talking about this (2005).

trebek 12-08-2006 09:48 AM

I am no longer doing things as root!!! I have learned so much since then. You have no idea how many problems and research i've done on this and many other issues. To learn, you need to have problems and mess things up.


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