Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Webcam video0 resets to invalid permissions

  1. #1

    Default Webcam video0 resets to invalid permissions

    Hi,

    I started to experience stranhe issue in one of my 13.1 installations.
    The user has webcam working fine for few days. After some time it stops working with "Permission denied". Permissions look like:

    crw------- 1 root root 81, 0 May 21 06:06 /dev/video0

    Which is absolutely invalid
    After "chmod 770" and "chgrp video" webcam works again. For few days. After few days permissions broken again

    I have two other 13.1 installations and one 12.3 with webcams - they do not experience such permission reset.
    Anybody seen this issue before?

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,804

    Default Re: Webcam video0 resets to invalid permissions

    What do yoiu mean with "after a few days". Did you reboot in the meantime or not? Did you remove/reconnect the device or not?

    I ask this because in general using chmod and the like on device files do not survive a system down or a device removal. Those files are recreated using udev rules eitjer at boot, or at connection.
    Henk van Velden

  3. #3

    Default Re: Webcam video0 resets to invalid permissions

    No reboots during those "few days", but suspend to ram. Webcams are not detached
    When the issue happens - restart does not help.

  4. #4

    Default Re: Webcam video0 resets to invalid permissions


  5. #5
    Join Date
    Jun 2008
    Location
    Sogndal, Noreg
    Posts
    1,103

    Default Re: Webcam video0 resets to invalid permissions

    Hello.

    I don't know if a suspend to RAM would inflict on the 'ownership' of the device, but do not think changing the ownership, as exemplified above, of a block device is the way to proceed (temporarily, at best).

    Are all devices you refer to USB related?

    Olav
    OpenSuSE 13.1, KDE 4.11.5, 64bit
    Gigabyte 990FXA-UD3, AMD FX8350, MSI GeForce GTX 760, RME HDSP9632, 16GB HyperX Kingston DDR3, Samsung 840-Pro SSD 128GB, WD Desktop Black 1TB, Hitachi Deskstar 7K1000 750GB

  6. #6

    Default Re: Webcam video0 resets to invalid permissions

    All the devices are USB web cameras (uvcvideo).
    And the one that regularly looses permissions - also a UVC webcam

  7. #7
    Join Date
    Jun 2008
    Location
    Sogndal, Noreg
    Posts
    1,103

    Default Re: Webcam video0 resets to invalid permissions

    OK.

    I resolve a similar issue with adding the device, /dev/xxx, to a user group (video) and by adding the user to this group; this is, however, a firewire device.
    http://wiki.linuxaudio.org/wiki/system_configuration#audio_group

    Olav
    OpenSuSE 13.1, KDE 4.11.5, 64bit
    Gigabyte 990FXA-UD3, AMD FX8350, MSI GeForce GTX 760, RME HDSP9632, 16GB HyperX Kingston DDR3, Samsung 840-Pro SSD 128GB, WD Desktop Black 1TB, Hitachi Deskstar 7K1000 750GB

  8. #8
    Join Date
    Jun 2008
    Location
    Sogndal, Noreg
    Posts
    1,103

    Default Re: Webcam video0 resets to invalid permissions

    The above link does not work right, but click on 'System Configuration' if you're interested.
    It says 'audio', and is intended for audio-devices, but that does not matter; I use it for a cam-corder, and configure it under the 'video' group.
    Earlier, this was the way I had to set it up to gain access to the device, no user privileges to it otherwise; I don't know if it has to do with your issue, just an association.
    OpenSuSE 13.1, KDE 4.11.5, 64bit
    Gigabyte 990FXA-UD3, AMD FX8350, MSI GeForce GTX 760, RME HDSP9632, 16GB HyperX Kingston DDR3, Samsung 840-Pro SSD 128GB, WD Desktop Black 1TB, Hitachi Deskstar 7K1000 750GB

  9. #9
    Join Date
    Jun 2008
    Location
    Sogndal, Noreg
    Posts
    1,103

    Default Re: Webcam video0 resets to invalid permissions

    PS
    By 'earlier' I mean this is no longer required on my system, as the device is now accessible without this step; however, your system might be a different matter.
    OpenSuSE 13.1, KDE 4.11.5, 64bit
    Gigabyte 990FXA-UD3, AMD FX8350, MSI GeForce GTX 760, RME HDSP9632, 16GB HyperX Kingston DDR3, Samsung 840-Pro SSD 128GB, WD Desktop Black 1TB, Hitachi Deskstar 7K1000 750GB

  10. #10

    Default Re: Webcam video0 resets to invalid permissions

    Would following lines from syslog make any sense?

    Code:
    2014-05-27T07:29:27.626627+03:00 linux systemd[1]: Starting udev Kernel Socket.
    2014-05-27T07:29:27.626633+03:00 linux systemd[1]: Listening on udev Kernel Socket.
    2014-05-27T07:29:27.626637+03:00 linux systemd[1]: Starting udev Control Socket.
    2014-05-27T07:29:27.626641+03:00 linux systemd[1]: Listening on udev Control Socket.
    2014-05-27T07:29:56.795573+03:00 linux systemd-udevd[265]: worker [279] /devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/video4linux/video0 timeout; kill it
    2014-05-27T07:29:56.796105+03:00 linux systemd-udevd[265]: seq 1639 '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/video4linux/video0' killed
    2014-05-27T07:29:56.796496+03:00 linux systemd-udevd[265]: worker [282] /devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/input/input12 timeout; kill it
    2014-05-27T07:29:56.796937+03:00 linux systemd-udevd[265]: seq 1640 '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/input/input12' killed
    2014-05-27T07:29:56.797311+03:00 linux systemd-udevd[265]: worker [290] /devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.2 timeout; kill it
    2014-05-27T07:29:56.797709+03:00 linux systemd-udevd[265]: seq 1255 '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.2' killed
    2014-05-27T07:30:15.721580+03:00 linux systemd-udevd[265]: worker [282] terminated by signal 9 (Killed)
    2014-05-27T07:30:15.722095+03:00 linux systemd-udevd[265]: worker [279] terminated by signal 9 (Killed)
    2014-05-27T07:30:15.722494+03:00 linux systemd-udevd[265]: worker [290] terminated by signal 9 (Killed)
    What "timeout" means and does "kill" mean something bad?

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •