LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-10-2008, 10:43 AM   #1
ninja master
Member
 
Registered: May 2008
Distribution: gentoo amd64 xwrt
Posts: 407

Rep: Reputation: 30
camera works on kde, but not on xfce?


im using gtkam, on a kodak zd710.

i get the error

Code:
Could not list folders in '/'.

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.
its odd because the camera works fine under kde with the same program. now when i hit connect on the camera under xfce, nothing pops up saying that its connecting and would like to know how i want to manage it.

Code:
edit
under "add camera" in gtkam it detects kodak zd710 on usb, but on apply it says that it cannot initialize the camera.

Code:
edit... again
ok it initializes and detects the camera when gtkam is run as root.

Last edited by ninja master; 12-10-2008 at 10:49 AM.
 
Old 12-11-2008, 03:37 AM   #2
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
sounds like you are not a member of usb/video/sound stuff

Code:
groups
---> should report your name and what groups you belong to
if you see one missing add yourself to the appropiate group please
 
Old 12-17-2008, 11:09 AM   #3
ninja master
Member
 
Registered: May 2008
Distribution: gentoo amd64 xwrt
Posts: 407

Original Poster
Rep: Reputation: 30
arg, how does one do that. i can remember commands i use frequently like top and ps aux, but not the user commands because i dont add users on a daily basis.
 
Old 12-17-2008, 06:55 PM   #4
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
1) firstly to assist others who may find this post....pls post the ouput of groups and tell us which one you know you are missing.

a good ninja master knows there are grasshoppers not yet at the higher level and need assistance.

2) what I would do...if edit grub to run level 3....by putting 3 at end of kernel line....booting into root and issuing this command

Code:
usermod -a -G (put group here) username
but as you can see...you have not advised what group you are missing oh wise one.

then if you

cat /etc/group

the offending groupname should show

.....:localname

then su to your localname and startx

or issue reboot

3) you can also do this with local user booted up...but you need to logout of session and reboot in to see the change
 
Old 12-21-2008, 03:28 AM   #5
ninja master
Member
 
Registered: May 2008
Distribution: gentoo amd64 xwrt
Posts: 407

Original Poster
Rep: Reputation: 30
as far as i know, im under "users" 100

im saying its odd that as a "users" user that the camera utility works under kde, but not xfce. i know i did something previously to allow my user to access the camera under kde. i think what i did previously had to deal with adding "users" to the udev camera group.
 
Old 12-21-2008, 03:43 AM   #6
ninja master
Member
 
Registered: May 2008
Distribution: gentoo amd64 xwrt
Posts: 407

Original Poster
Rep: Reputation: 30
ok i found udev 45. following the syntax of the file, issuing a "lsusb" with the camera plugged in and activated i plug in the information into the udev rules, and instead of giving it a specific "camera" user group i simply add in "users" that i am already a member of =)

thanks linux questions. with out you guys i couldnt document all of my errors. =)
 
Old 12-21-2008, 03:46 AM   #7
ninja master
Member
 
Registered: May 2008
Distribution: gentoo amd64 xwrt
Posts: 407

Original Poster
Rep: Reputation: 30
Code:
# Kodak ZD710
SYSFS{idVendor}=="040a", SYSFS{bDeviceClass}=="05c0", MODE="0660", GROUP="users"
this is the entry i had made to udev 45*
 
Old 12-21-2008, 04:42 AM   #8
ninja master
Member
 
Registered: May 2008
Distribution: gentoo amd64 xwrt
Posts: 407

Original Poster
Rep: Reputation: 30
unfortunately restarting udev did not solve the problem. it might take a reboot, but next reboot is schedualed for computer rebuild.
 
Old 12-21-2008, 05:06 PM   #9
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
hmmmm...I am still waiting to see output of

groups

login as the intended user pls and run command as is
 
Old 12-22-2008, 01:44 AM   #10
ninja master
Member
 
Registered: May 2008
Distribution: gentoo amd64 xwrt
Posts: 407

Original Poster
Rep: Reputation: 30
Code:
mkultra@mkultra:~$ groups
users floppy audio video cdrom
 
Old 12-22-2008, 03:41 AM   #11
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
thanks for that.

ok groups looks fine.

now as a local user try

Code:
lsmod | grep usbcore
its small output so here is mine
lsmod | grep usbcore
usbcore 144624 6 snd_usb_audio,snd_usb_lib,uvcvideo,uhci_hcd,ehci_hcd

I want to see that your sound usb and sound usb lib is there

uvcvideo is my module driver for a different cam

2) in reading your first post...xfce as root works so I assumed it was just a permissions issue.

but you may need to post a link to our full lsusb and lsmod outputs....
as I am going away..... a long time link would be better...if you do not have one try
www.ripway.com

if you answer now try...but I may not see it in time...but others will with luck?
http://paste.debian.net/
 
Old 12-22-2008, 06:46 AM   #12
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
separate to above ...this may explain why kde works?
http://www.linuxquestions.org/questi...165#post348165
 
Old 12-23-2008, 01:13 AM   #13
ninja master
Member
 
Registered: May 2008
Distribution: gentoo amd64 xwrt
Posts: 407

Original Poster
Rep: Reputation: 30
well grep usbcore fumbled things up so here are full lsmod outputs

Code:
A hypocrite is a person who ... but who isn't?
                -- Don Marquis

mkultra@mkultra:~$ lsmod | grep usbcore
mkultra@mkultra:~$ /sbin/lsmod | grep usbcore
mkultra@mkultra:~$ /bin/lsmod | grep usbcore
mkultra@mkultra:~$ lsmod | grep usbcore
mkultra@mkultra:~$ su
Password:
root@mkultra:/home/mkultra# lsmod | grep usbcore
root@mkultra:/home/mkultra# lsmod
Module                  Size  Used by
snd_seq_dummy           6660  0
snd_seq_oss            32896  0
snd_seq_midi_event     10112  1 snd_seq_oss
snd_seq                50256  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_pcm_oss            40352  0
snd_mixer_oss          17920  1 snd_pcm_oss
ipv6                  234724  30
lp                     13348  0
parport_pc             27556  0
parport                34632  2 lp,parport_pc
fuse                   45588  1
serio_raw               9092  0
snd_emu10k1           136128  0
snd_ac97_codec         98724  1 snd_emu10k1
emu10k1_gp              6656  0
evdev                  12672  1
ac97_bus                5760  1 snd_ac97_codec
tulip                  52256  0
gameport               14472  2 emu10k1_gp
psmouse                40336  0
snd_util_mem            7424  1 snd_emu10k1
snd_usb_audio          79584  5
nvidia               7099460  34
snd_pcm                72068  6 snd_pcm_oss,snd_emu10k1,snd_ac97_codec,snd_usb_audio
snd_timer              22532  5 snd_seq,snd_emu10k1,snd_pcm
snd_page_alloc         11528  2 snd_emu10k1,snd_pcm
snd_usb_lib            18432  1 snd_usb_audio
snd_rawmidi            22560  2 snd_emu10k1,snd_usb_lib
snd_seq_device         10380  5 snd_seq_dummy,snd_seq_oss,snd_seq,snd_emu10k1,snd_rawmidi
snd_hwdep              10756  2 snd_emu10k1,snd_usb_audio
snd                    47716  18 snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_emu10k1,snd_ac97_codec,snd_usb_audio,snd_pcm,snd_timer,snd_rawmidi,snd_seq_device,snd_hwdep
soundcore               9824  1 snd
cdc_acm                16928  0
i2c_piix4              11020  0
i2c_core               22528  2 nvidia,i2c_piix4
intel_agp              25236  1
agpgart                30664  2 nvidia,intel_agp
shpchp                 32788  0
sg                     30224  0
ext3                  124808  1
jbd                    43924  1 ext3
mbcache                10496  1 ext3
uhci_hcd               25996  0
usb_storage            84288  0
ehci_hcd               35468  0
pata_acpi               8832  0
ata_generic             8836  0
root@mkultra:/home/mkultra# exit
exit
mkultra@mkultra:~$ lsmod
Module                  Size  Used by
snd_seq_dummy           6660  0
snd_seq_oss            32896  0
snd_seq_midi_event     10112  1 snd_seq_oss
snd_seq                50256  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_pcm_oss            40352  0
snd_mixer_oss          17920  1 snd_pcm_oss
ipv6                  234724  30
lp                     13348  0
parport_pc             27556  0
parport                34632  2 lp,parport_pc
fuse                   45588  1
serio_raw               9092  0
snd_emu10k1           136128  0
snd_ac97_codec         98724  1 snd_emu10k1
emu10k1_gp              6656  0
evdev                  12672  1
ac97_bus                5760  1 snd_ac97_codec
tulip                  52256  0
gameport               14472  2 emu10k1_gp
psmouse                40336  0
snd_util_mem            7424  1 snd_emu10k1
snd_usb_audio          79584  5
nvidia               7099460  34
snd_pcm                72068  6 snd_pcm_oss,snd_emu10k1,snd_ac97_codec,snd_usb_audio
snd_timer              22532  5 snd_seq,snd_emu10k1,snd_pcm
snd_page_alloc         11528  2 snd_emu10k1,snd_pcm
snd_usb_lib            18432  1 snd_usb_audio
snd_rawmidi            22560  2 snd_emu10k1,snd_usb_lib
snd_seq_device         10380  5 snd_seq_dummy,snd_seq_oss,snd_seq,snd_emu10k1,snd_rawmidi
snd_hwdep              10756  2 snd_emu10k1,snd_usb_audio
snd                    47716  18 snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_emu10k1,snd_ac97_codec,snd_usb_audio,snd_pcm,snd_timer,snd_rawmidi,snd_seq_device,snd_hwdep
soundcore               9824  1 snd
cdc_acm                16928  0
i2c_piix4              11020  0
i2c_core               22528  2 nvidia,i2c_piix4
intel_agp              25236  1
agpgart                30664  2 nvidia,intel_agp
shpchp                 32788  0
sg                     30224  0
ext3                  124808  1
jbd                    43924  1 ext3
mbcache                10496  1 ext3
uhci_hcd               25996  0
usb_storage            84288  0
ehci_hcd               35468  0
pata_acpi               8832  0
ata_generic             8836  0
 
Old 12-28-2008, 01:06 AM   #14
aus9
Guru
 
Registered: Oct 2003
Posts: 5,055

Rep: Reputation: Disabled
ok well no response shows usbcore module not loaded...IMHO not a good sign

You appear to have normal usb stuff so with root powers pls try

Code:
modprobe usbcore

then try insmod usbcore if above fails

can you post any errors pls.
being on holidays I have not studied your output to the nth degree so hoping
 
Old 12-29-2008, 12:32 PM   #15
ninja master
Member
 
Registered: May 2008
Distribution: gentoo amd64 xwrt
Posts: 407

Original Poster
Rep: Reputation: 30
Code:
They finally got King Midas, I hear.  Gild by association.

mkultra@mkultra:~$ su
Password:
root@mkultra:/home/mkultra# modprobe usbcore
FATAL: Module usbcore not found.
root@mkultra:/home/mkultra# insmod usbcore
insmod: can't read 'usbcore': No such file or directory
root@mkultra:/home/mkultra# exit
exit
mkultra@mkultra:~$
im switching distros very soon, slackware does not have an official x86_64 port so i probably will switch to debian.
 
  


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
DPMS only works for root on XFCE, 12.1 thatquietboy Slackware 2 06-01-2008 11:15 PM
API for X that works with KDE XFCE etc. binarybob0001 Programming 9 11-18-2006 04:52 AM
My Digital Camera Works? Or not! RodWC Debian 11 01-21-2006 02:44 PM
camera only works in root??? sneckert Mandriva 9 01-30-2005 03:50 PM
Camera only works as root. ToolBoy Linux - Hardware 1 06-23-2003 07:29 PM


All times are GMT -5. The time now is 01:35 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration