• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Webcam in Sony Vaio mit SuSE 12.1 [Gelöst]

Danke tomm.fa - nachher ist man immer schlauer ;)

Zur Sache: vielleicht hilft das Log von vlc?
Code:
jadwiga@linux-p6tj:~> vlc
VLC media player 1.1.13 The Luggage (revision exported)
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
[0x6090c0] main libvlc: VLC wird mit dem Standard-Interface ausgeführt. Benutzen Sie 'cvlc', um VLC ohne Interface zu verwenden.
Blocked: call to setlocale(6, "")
Blocked: call to setlocale(6, "")


[0x7fda34001220] v4l2 demux error: cannot open video device '/dev/video0' (Permission denied)
[0x7fda34001220] v4l2 demux error: cannot open video device '/dev/video0' (Permission denied)
[0x7fda34001570] v4l2 access error: cannot open video device '/dev/video0' (Permission denied)
[0x7fda34001570] v4l2 access error: cannot open video device '/dev/video0' (Permission denied)
[0x7fda44000c90] main input error: open of `v4l2://' failed: (null)

Und noch was: in YaST > Hardware > Hardwareinformation unter "USB" steht "Ricoh Unclassified device" Vielleicht fehlt dort eine deutliche Klassifikation? Drinne unter Treiber> gibt zwei mal Module mit Aktiv:Ja, modprobe:Ja, modules:ein mal modprobe r5u870; zweites mal modprobe uvcvideo.

Nach löschen von Modul uvcvideo bleiben zwei mal Module - ein mal Aktiv:Ja, ein anderes Aktiv:Nein und beide modprobe's ohne weitere Bezeichnung.
Gruß, Z.
 
Hallo, wie wir hier sehen ist mein Problem nicht lösbar (zumindest auf einem 64bit-System). Schade.
Trotzdem danke für die angebotene Hilfeleistung.
Gruß, Z.
 
Hallo,

Ich habe die vorherigen Posts nich näher angeschaut, aber wenn:

[0x7fda34001220] v4l2 demux error: cannot open video device '/dev/video0' (Permission denied)
das einzige verbleibende Problem ist, dann ändere doch einfach die Rechte.

Code:
ls -l /dev/video*
(vermutlich sind 'owner' und 'group' = root)

Mit chown und chgrp anpassen so dass vlc für normale User Zugriff hat.

Gruss,
Roland
 
Hallo, das kommt ans Licht:

Code:
jadwiga@linux-p6tj:~> ls -l /dev/video*
crw-rw----+ 1 root video 81, 0 25. Jan 20:12 /dev/video0
jadwiga@linux-p6tj:~>

Tatsächlich steht hier root, habe versucht die Rechte der Datei /dev/video0 zu ändern (in Eigenschaften der Datei), - keine Änderung.

Wie mache ich das mit chown und chgrp?
Danke, Gruß Z.
 
Hallo - juuhu! Es lag "NUR" an Rechten! Es funktioniert - die Datei /dev/video ist nun für "lesen und schreiben" für Eigentümer (root) und Gruppe (video) zugänglich und die WebCam MOTION EYE liefert bewegten Bilder unter Skype und vlc.
Somit ist mein Problem gelöst - DANKE an alle, die mir hier geholfen haben!
Gruß, Zuzia
 
Sorry to post in English, but I do not know German :eek:ps:

Using depreciated r5u870, instead of UVC, downloaded from:

http://code.google.com/p/r5u870/downloads/detail?name=r5u870-linuxkernel3.0-3pei-mod-v0.2a.tar.gz&can=2&q=

For use of v4l2, in usbcam/usbcam_priv.h, I replaced

#include "libv4l1-videodev.h"

by

#include <linux/videodev2.h>

And nowadays, the power manager for usb interfaces is transparent, so we shouldn't call usb_autopm_get_interface to wake up, neither usb_autopm_put_interface to suspend.

Therefore, usb_autopm_get_interface return EACCESS (13) error, so we just need comment some lines in code in usbcam/usbcam_fops.c, lines 178 to 188, 238, 273 and 274.

Now:

make
make install
rmmod uvcvideo
modprobe r5u870

I note UVC works fine if now I do this:

rmmod r5u870
modprobe uvcvideo

--------

I'm using Debian testing, kernel 2.6_3.2.12, package linux-image-3.2.0-2-686-pae.

I investigated the uvcvideo module:

root@juvaio:/usr/src# grep -rin usb_autopm_[gp][eu]t_interface /usr/src/linux-2.6-3.2.12/drivers/media/video/uvc
/usr/src/linux-2.6-3.2.12/drivers/media/video/uvc/uvc_v4l2.c:486: ret = usb_autopm_get_interface(stream->dev->intf);
/usr/src/linux-2.6-3.2.12/drivers/media/video/uvc/uvc_v4l2.c:493: usb_autopm_put_interface(stream->dev->intf);
/usr/src/linux-2.6-3.2.12/drivers/media/video/uvc/uvc_v4l2.c:500: usb_autopm_put_interface(stream->dev->intf);
/usr/src/linux-2.6-3.2.12/drivers/media/video/uvc/uvc_v4l2.c:539: usb_autopm_put_interface(stream->dev->intf);

Then I commented lines 486, 487, 488, 493, 500 and 539.

I went to /usr/src/linux-2.6-3.2.12/drivers/media/video/uvc and added to Makefile:

all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean

Then I executed:

make
cp uvcvideo.ko /lib/modules/3.2.0-2-686-pae/kernel/drivers/media/video/uvc/uvcvideo.ko

I restarted, but it didn't work, same problems.

--------------

For uvcvideo to work fine at boot time, I restored original uvcvideo.ko and added in /etc/rc.local:

rmmod uvcvideo
modprobe r5u870
rmmod r5u870
modprobe uvcvideo

That's all folks!
 
Oben