Bug 653005

Summary: video/audio broken after hibernation
Product: [Fedora] Fedora Reporter: Paolo Bonzini <pbonzini>
Component: ConsoleKitAssignee: Lennart Poettering <lpoetter>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: harald, jonathan, lpoetter
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-17 00:57:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 ***