[Bug 967490] New: Camera light switches on during early boot stages
http://bugzilla.opensuse.org/show_bug.cgi?id=967490 Bug ID: 967490 Summary: Camera light switches on during early boot stages Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.1 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel Assignee: kernel-maintainers@forge.provo.novell.com Reporter: thomas@mitterfellner.at QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- The light of the webcam switches on during early boot stages and stays on. The laptop is a Lenovo Ideapad 100-15IBD. Running v4l2-ctl gives Lenovo EasyCamera (usb-0000:00:14.0-6): /dev/video0 After running that, the camera light turns off. The camera, however, does not work in cheese, luvcview and webcamoid, but it works in Skype (32bit suse package). Sorry if this is not a kernel issue, but I suspect a bug in the uvcvideo driver to be responsible for the problem. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=967490
http://bugzilla.opensuse.org/show_bug.cgi?id=967490#c1
Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=967490
http://bugzilla.opensuse.org/show_bug.cgi?id=967490#c2
--- Comment #2 from Thomas Mitterfellner
http://bugzilla.opensuse.org/show_bug.cgi?id=967490
http://bugzilla.opensuse.org/show_bug.cgi?id=967490#c3
--- Comment #3 from Thomas Mitterfellner
http://bugzilla.opensuse.org/show_bug.cgi?id=967490
http://bugzilla.opensuse.org/show_bug.cgi?id=967490#c4
--- Comment #4 from Thomas Mitterfellner
http://bugzilla.opensuse.org/show_bug.cgi?id=967490
http://bugzilla.opensuse.org/show_bug.cgi?id=967490#c5
--- Comment #5 from Thomas Mitterfellner
http://bugzilla.opensuse.org/show_bug.cgi?id=967490
http://bugzilla.opensuse.org/show_bug.cgi?id=967490#c6
--- Comment #6 from Thomas Mitterfellner
http://bugzilla.opensuse.org/show_bug.cgi?id=967490
http://bugzilla.opensuse.org/show_bug.cgi?id=967490#c7
--- Comment #7 from Takashi Iwai
I noticed two things in the hwinfo output, not sure whether this is relevant/problematic: the camera is listed under "Unclassified device" and the device file is /dev/input/event10 - shouldn't this be video0 or /dev/video0?
This doesn't matter. You can see more details in lsusb -v output what the device provides. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=967490
http://bugzilla.opensuse.org/show_bug.cgi?id=967490#c8
--- Comment #8 from Takashi Iwai
I forgot to ask: how do I determine whether the runtime PM is enabled on this usb device?
Check /sys/bus/usb/devices/$DEVICE/power/* files. Fill the right one corresponding to your webcam. In doubt, you can confirm the product name or such information in /sys/bus/usb/devices/$DEVICE directory, too. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=967490
http://bugzilla.opensuse.org/show_bug.cgi?id=967490#c9
Thomas Mitterfellner
http://bugzilla.opensuse.org/show_bug.cgi?id=967490
http://bugzilla.opensuse.org/show_bug.cgi?id=967490#c10
--- Comment #10 from Thomas Mitterfellner
http://bugzilla.opensuse.org/show_bug.cgi?id=967490
http://bugzilla.opensuse.org/show_bug.cgi?id=967490#c11
--- Comment #11 from Thomas Mitterfellner
http://bugzilla.opensuse.org/show_bug.cgi?id=967490
http://bugzilla.opensuse.org/show_bug.cgi?id=967490#c12
Oliver Neukum
root@linux:~> for i in /sys/bus/usb/devices/1-6:1.0/power/* ; do echo -n "$i: " ; cat $i ; done /sys/bus/usb/devices/1-6:1.0/power/async: enabled /sys/bus/usb/devices/1-6:1.0/power/runtime_active_kids: 0 /sys/bus/usb/devices/1-6:1.0/power/runtime_enabled: enabled /sys/bus/usb/devices/1-6:1.0/power/runtime_status: suspended /sys/bus/usb/devices/1-6:1.0/power/runtime_usage: 0
Interesting thing is: when I do lsusb -v, the light goes out!
When you do lsusb as root, the device usage count is upped to allow retrival of the descriptors and lowered again. If you land at zero, a runtime suspension is triggered on video devices. Unfortunately there are at least two obvious potential causes 1) a fatal error returned from suspend() 2) the wrong kind of primitive is used in the uvc driver First we need to confirm this theory. Could you do cat /sys/bus/usb/devices/$DEVICE/power/level echo on > /sys/bus/usb/devices/$DEVICE/power/level echo auto > /sys/bus/usb/devices/$DEVICE/power/level Your light should go out after 2 seconds. What is the result of the cat? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=967490
http://bugzilla.opensuse.org/show_bug.cgi?id=967490#c13
--- Comment #13 from Thomas Mitterfellner
http://bugzilla.opensuse.org/show_bug.cgi?id=967490
http://bugzilla.opensuse.org/show_bug.cgi?id=967490#c14
--- Comment #14 from Oliver Neukum
Unfortunately, it will take a little while until I can test this on the machine itself, BUT: I'm pretty sure /sys/bus/usb/devices/$DEVICE/power/level does not exist as you can see from the output of
for i in /sys/bus/usb/devices/1-6:1.0/power/* ; do echo -n "$i: " ; cat $i ; done
I posted above, i.e. the only files residing there are:
async, runtime_active_kids, runtime_enabled, runtime_status, and runtime_usage.
You are looking into the wrong directory. Possibly you are looking at the device, not at the interface.
That said, I could of course try the two echo commands. OTOH, I just read here https://www.kernel.org/doc/Documentation/usb/power-management.txt that power/level is deprecated since kernel 2.6.35, so I should probably try this with power/control?
It doesn't matter which file you use. Please test. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com