Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
luvcview won't run
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Wed Nov 19, 2008 3:12 pm    Post subject: luvcview won't run Reply with quote

I'm trying to run luvcview on my Dell Inspiron 1720. I have omnivision and v4l support compiled into the kernel, and xf86-video-v4l and libv4l emerged. I get this:


Code:

audiodef@localhost ~ $ LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so luvcview
luvcview version 0.2.1
Video driver: x11
A window manager is available
video /dev/video0
ERROR opening V4L interface
: No such file or directory


I'm thinking I need to tell luvcview to use the v4l video driver, but how (and am I right)?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
thestick
Guru
Guru


Joined: 07 Apr 2006
Posts: 531
Location: /dev/urandom

PostPosted: Thu Nov 20, 2008 8:32 am    Post subject: Reply with quote

emerge media-video/linux-uvc ?
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Thu Nov 20, 2008 2:42 pm    Post subject: Reply with quote

That was the first thing I did. It still won't run.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
thestick
Guru
Guru


Joined: 07 Apr 2006
Posts: 531
Location: /dev/urandom

PostPosted: Thu Nov 20, 2008 6:14 pm    Post subject: Reply with quote

su
rmmod uvcvideo
modprobe uvcvideo
tail -n 20 /var/log/messages
maybe some relevant output?
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Thu Nov 20, 2008 9:18 pm    Post subject: Reply with quote

Code:

Nov 20 16:20:03 localhost su[24161]: Successful su for root by audiodef
Nov 20 16:20:03 localhost su[24161]: + pts/2 audiodef:root
Nov 20 16:20:03 localhost su[24161]: pam_unix(su:session): session opened for user root by audiodef(uid=1001)
Nov 20 16:20:13 localhost usbcore: deregistering interface driver uvcvideo
Nov 20 16:20:13 localhost PM: Removing info for No Bus:video0
Nov 20 16:20:13 localhost PM: Removing info for No Bus:event8
Nov 20 16:20:13 localhost PM: Removing info for No Bus:input8
Nov 20 16:20:13 localhost NetworkManager: <debug> [1227216013.729501] nm_hal_device_removed(): Device removed (hal udi is '/org/freedesktop/Hal/devices/usb_device_5a9_2640_noserial_if0_video4linux').
Nov 20 16:20:13 localhost NetworkManager: <debug> [1227216013.736910] nm_hal_device_removed(): Device removed (hal udi is '/org/freedesktop/Hal/devices/usb_device_5a9_2640_noserial_if0_logicaldev_input').
Nov 20 16:20:28 localhost uvcvideo: Found UVC 1.00 device Laptop Integrated Webcam (05a9:2640)
Nov 20 16:20:28 localhost uvcvideo: Failed to query (135) UVC control 1 (unit 0) : -32 (exp. 26).
Nov 20 16:20:28 localhost PM: Adding info for No Bus:video0
Nov 20 16:20:28 localhost PM: Adding info for No Bus:input9
Nov 20 16:20:28 localhost input: Laptop Integrated Webcam as /class/input/input9
Nov 20 16:20:28 localhost PM: Adding info for No Bus:event8
Nov 20 16:20:28 localhost usbcore: registered new interface driver uvcvideo
Nov 20 16:20:28 localhost USB Video Class driver (v0.1.0)
Nov 20 16:20:28 localhost NetworkManager: <debug> [1227216028.922812] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_5a9_2640_noserial_if0_video4linux').
Nov 20 16:20:28 localhost NetworkManager: <debug> [1227216028.960045] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_5a9_2640_noserial_if0_logicaldev_input').


It seems to be recognized by the system, but not by user software.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
thestick
Guru
Guru


Joined: 07 Apr 2006
Posts: 531
Location: /dev/urandom

PostPosted: Thu Nov 20, 2008 10:39 pm    Post subject: Reply with quote

what version of linux-uvc and luvcview do you have?
Code:
ts ts # luvcview
[b]luvcview 0.2.4[/b]

SDL information:
  Video driver: x11
  A window manager is available
Device information:
  Device path:  /dev/video0
Stream settings:
  Frame format: MJPG
  Frame size:   640x480
  Frame rate:   30 fps

Quit signal received.
Cleanup done. Exiting ...


later edit: i realise now that i am using luvcview and linux-uvc from svn. maybe you should give it a shot?
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Fri Nov 21, 2008 3:18 am    Post subject: Reply with quote

I'm using 0.2.1, but I just noticed that after following your unload/load module advice, it works - from root. From a normal user, I get permission denied. Can this be solved simply by adding the normal user to the su group?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
thestick
Guru
Guru


Joined: 07 Apr 2006
Posts: 531
Location: /dev/urandom

PostPosted: Fri Nov 21, 2008 7:24 am    Post subject: Reply with quote

try adding yourself to these groups first usb, plugdev.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Sun Nov 23, 2008 2:21 am    Post subject: Reply with quote

Just tried that - still getting permission denied as a normal user.

I think once this is solved, I'll be able to use the webcam in skype, kopete, and other programs. Those programs are currently showing "no video device", even though luvcview finds it as root.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3425
Location: Canada

PostPosted: Sun Nov 23, 2008 2:25 am    Post subject: Reply with quote

audiodef wrote:
Just tried that - still getting permission denied as a normal user.

I think once this is solved, I'll be able to use the webcam in skype, kopete, and other programs. Those programs are currently showing "no video device", even though luvcview finds it as root.


add yourself to 'video' group
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Sun Nov 23, 2008 2:26 am    Post subject: Reply with quote

Another thing I noticed: as root, if I do luvcview, it works, but luvcview & gives a segmentation fault.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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