Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RISOLTO] Macchina fotografica digitale
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
gnu-statix
Tux's lil' helper
Tux's lil' helper


Joined: 16 Nov 2003
Posts: 84
Location: Switzerland, Lugano

PostPosted: Tue May 23, 2006 9:36 am    Post subject: [RISOLTO] Macchina fotografica digitale Reply with quote

Ho problemi a far funzionare la macchina digitale come utente non root.

Attacco la macchina digitale e hotplug cambia correttamente il gruppo di /proc/bus/usb/... dando al gruppo i permessi rw, però da user non riesco ad accederci.
Pensavo ci fosse un problema di capability... che però sembrano ok:
# cat /proc/sys/kernel/cap-bound
-257

Ho provato anche a settare il device con i permessi 777, ma niente!

Suggerimenti?

PS. Da root funziona!

Grazie mille,
ciao
_________________
"Se in un primo momento l'idea non è assurda,
allora non c'è nessuna speranza che si realizzi." - Albert Einstein


Last edited by gnu-statix on Sun May 28, 2006 3:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
misterwine
Guru
Guru


Joined: 14 Nov 2005
Posts: 341
Location: Zelarino (VE)

PostPosted: Tue May 23, 2006 10:30 am    Post subject: Reply with quote

Quando provi ad accedere alla periferica in questione come normale utente che tipo di errore ti da?? "Non hai i permessi per accedervi"?? Il tuo utente fa parte del gruppo usb?
_________________
"Se in un primo momento l' idea non è assurda,
allora non c'è nessuna speranza che si realizzi." (A.Einstein)
Back to top
View user's profile Send private message
gnu-statix
Tux's lil' helper
Tux's lil' helper


Joined: 16 Nov 2003
Posts: 84
Location: Switzerland, Lugano

PostPosted: Tue May 23, 2006 3:37 pm    Post subject: Reply with quote

Ecco un po' di info:

Code:

$ gphoto2 --summary

*** Error ***
An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (Operation not permitted). Make sure no other program or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device.
*** Error (-53: 'Could not claim the USB device') ***

For debugging messages, please use the --debug option.
Debugging messages may help finding a solution to your problem.
If you intend to send any error or debug messages to the gphoto
developer mailing list <gphoto-devel@lists.sourceforge.net>, please run
gphoto2 as follows:

    env LANG=C gphoto2 --debug --summary

Please make sure there is sufficient quoting around the arguments.


Code:

# lsusb
Bus 003 Device 001: ID 0000:0000
Bus 003 Device 002: ID 0a5c:200a Broadcom Corp.
Bus 004 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 002 Device 002: ID 046d:c50e Logitech, Inc. MX-1000 Cordless Mouse Receiver
Bus 001 Device 004: ID 04a9:30ef Canon, Inc. EOS 350D (ptp)
Bus 001 Device 001: ID 0000:0000



Code:

# ls -l /proc/bus/usb/001/
total 0
-rw-rw-r-- 1 root usb     43 May 23 17:09 001
-rw-rw---- 1 root plugdev 57 May 23 17:33 004


Code:

groups=10(wheel),18(audio),19(cdrom),80(cdrw),85(usb),100(users),409(plugdev),1000(david)

_________________
"Se in un primo momento l'idea non è assurda,
allora non c'è nessuna speranza che si realizzi." - Albert Einstein
Back to top
View user's profile Send private message
misterwine
Guru
Guru


Joined: 14 Nov 2005
Posts: 341
Location: Zelarino (VE)

PostPosted: Tue May 23, 2006 5:07 pm    Post subject: Reply with quote

Guarda, prova a guardare il file /etc/group se nella riga 'usb' c'è il tuo utente. Se non c'è aggiungilo (da root) e riloggati...
_________________
"Se in un primo momento l' idea non è assurda,
allora non c'è nessuna speranza che si realizzi." (A.Einstein)
Back to top
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Tue May 23, 2006 6:02 pm    Post subject: Reply with quote

ma quanto la monti che errore da?
_________________
Running Fast!
Back to top
View user's profile Send private message
gnu-statix
Tux's lil' helper
Tux's lil' helper


Joined: 16 Nov 2003
Posts: 84
Location: Switzerland, Lugano

PostPosted: Sat May 27, 2006 10:42 am    Post subject: Reply with quote

Sì, sono dentro nel gruppo usb. Cmq uso il gruppo plugdev e per togliere dubbi sui permessi ho settato il device 777, ma niente.

Code:

0.410152 gphoto2-camera(2): Initializing camera...
0.410309 gphoto2-port-usb(1): Looking for USB device (vendor 0x4a9, product 0x30ef)... found.
0.410456 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting 0, inep 81, outep 02, intep 83, class 06, subclass 01
0.410586 gphoto2-camera(2): Loading '/usr/lib/gphoto2/2.1.6/libgphoto2_ptp2.so'...
0.410846 gphoto2-port(2): Opening USB port...
0.411039 gphoto2-port(0): Could not query kernel driver of device.
0.411186 gphoto2-port(0): Could not claim interface 0 (Operation not permitted). Make sure no other program or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device.
0.411349 context(0): An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (Operation not permitted). Make sure no other program or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device.

*** Error ***
An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (Operation not permitted). Make sure no other program or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device.
*** Error (-53: 'Could not claim the USB device') ***

For debugging messages, please use the --debug option.
Debugging messages may help finding a solution to your problem.
If you intend to send any error or debug messages to the gphoto
developer mailing list <gphoto-devel@lists.sourceforge.net>, please run
gphoto2 as follows:

    env LANG=C gphoto2 --debug --debug --summary

Please make sure there is sufficient quoting around the arguments.

0.412066 gp-camera(2): Freeing camera...
0.412196 gphoto2-port(2): Freeing port...
0.412326 gphoto2-port(2): Closing port...
0.412488 gphoto2-port(0): Could not release interface 0 (Operation not permitted).
0.412653 libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list...
0.412782 libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty
0.412909 gphoto2-filesystem(2): Internally deleting all folders from '/'...

_________________
"Se in un primo momento l'idea non è assurda,
allora non c'è nessuna speranza che si realizzi." - Albert Einstein
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Sat May 27, 2006 5:28 pm    Post subject: Reply with quote

gnu-statix wrote:
*** Error ***
An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (Operation not permitted). Make sure no other program or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device.
*** Error (-53: 'Could not claim the USB device') ***

For debugging messages, please use the --debug option.
Debugging messages may help finding a solution to your problem.
If you intend to send any error or debug messages to the gphoto
developer mailing list <gphoto-devel@lists.sourceforge.net>, please run
gphoto2 as follows:

env LANG=C gphoto2 --debug --debug --summary

Please make sure there is sufficient quoting around the arguments.


Hai fatto quello che dice?
Ovvero: hai controllato che non ci siano altri moduli del kernel che cercano di accedere a quel device?
O anche hai provato ad avviare gphoto2 con le opzioni di debug?
_________________
Ciao da me!
Back to top
View user's profile Send private message
gnu-statix
Tux's lil' helper
Tux's lil' helper


Joined: 16 Nov 2003
Posts: 84
Location: Switzerland, Lugano

PostPosted: Sun May 28, 2006 3:00 pm    Post subject: Reply with quote

randomaze wrote:


Hai fatto quello che dice?
Ovvero: hai controllato che non ci siano altri moduli del kernel che cercano di accedere a quel device?
O anche hai provato ad avviare gphoto2 con le opzioni di debug?


Le info di debug di gphoto2 non dicevano molto di più.
Ho debuggato con strace e ho scovato cosa non andava... ho dovuto cambiare i permessi anche a /dev/bus/usb/001/004

Ho controllato il file /etc/udev/rules.d/50-udev.rules backuppato dell'ultima installazione di gentoo con fotocamera funzionante per vedere se era cambiato qualcosa, ma la riga che ho dovuto modificare per risolvere era identica. Prima bastava cambiare i permessi e gruppo solo a /proc/bus/usb/001/004 da hotplug.

Ciao
_________________
"Se in un primo momento l'idea non è assurda,
allora non c'è nessuna speranza che si realizzi." - Albert Einstein
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum