Bug 653005 - video/audio broken after hibernation
Summary: video/audio broken after hibernation
Keywords:
Status: CLOSED DUPLICATE of bug 643367
Alias: None
Product: Fedora
Classification: Fedora
Component: ConsoleKit
Version: rawhide
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Lennart Poettering
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-14 03:21 UTC by Paolo Bonzini
Modified: 2010-11-17 10:57 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-11-17 00:57:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Paolo Bonzini 2010-11-14 03:21:47 UTC
Description of problem:
After hibernation, neither video nor audio works.

Version-Release number of selected component (if applicable):
udev-161-4.fc14.x86_64
kernel-2.6.35.6-48.fc14.x86_64

How reproducible:
2 out of 2

Steps to Reproduce:
1. Install gstreamer-properties
2. Hibernate and resume
3. Run gstreamer-properties from console
4. Start webcam test
 
Actual results:
Console shows:

gstreamer-properties-Message: Error running pipeline 'Video for Linux 2 (v4l2)': Could not open device '/dev/video0' for reading and writing. [v4l2_calls.c(502): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src1: system error: Permission denied]

Expected results:
Webcam works

Additional info:
After doing "sudo chmod o+rw /dev/video0", the webcam works.

Audio is likewise broken and fixed by "sudo chmod -R o+rw /dev/snd/".

Comment 1 Harald Hoyer 2010-11-15 11:10:51 UTC
chmod is not the way it works... console user access is granted with ACLs.

What is:

# getfacl /dev/video0

before and after hibernation

Comment 2 Paolo Bonzini 2010-11-15 15:10:34 UTC
before hibernation
==================

yakj:~ pbonzini$ getfacl /dev/video0
getfacl: Removing leading '/' from absolute path names
# file: dev/video0
# owner: root
# group: video
user::rw-
user:pbonzini:rw-
group::rw-
mask::rw-
other::---

after hibernation
=================

yakj:~ pbonzini$ getfacl /dev/video0
getfacl: Removing leading '/' from absolute path names
# file: dev/video0
# owner: root
# group: video
user::rw-
group::rw-
mask::rw-
other::---

As expected, the ACL is not restored (the chmod experiment was just to make sure that the problem involved permissions).  A workaround is to switch to another console and back.

I guess the bug is more likely to be in ConsoleKit, changing component.

Comment 3 Lennart Poettering 2010-11-17 00:57:33 UTC

*** This bug has been marked as a duplicate of bug 650955 ***

Comment 4 Harald Hoyer 2010-11-17 10:57:05 UTC

*** This bug has been marked as a duplicate of bug 643367 ***


Note You need to log in before you can comment on or make changes to this bug.