Title The Driver Does not work after suspend!
Priority bug Status chatting
Superseder Nosy List ahixon, amir, pihhan
Assigned To Topics

Created on 2008-04-29.14:06:16 by amir, last changed 2008-07-23.12:25:26 by amir.

Messages
msg105 (view) Author: amir Date: 2008-07-23.12:25:26
I am now using 2.6.25 kernel. The Bug seems to be almost fixed!

I have some problems with uvcvideo which does not let the system to
suspend and I have disabled it just add

install uvcvideo /bin/true
to /etc/modeprobe.conf

uvcvideo does not do anything but stopping the suspend process.
msg102 (view) Author: tjworld Date: 2008-07-22.14:19:25
There are known problems with the uvcvideo driver causing
suspend/resume issues.

A useful work-around is to cause the uvcvideo and r5u870 modules to
be unloaded before suspend and reloaded after resume.

If your distro uses the acpi-support package edit
/etc/default/acpi-support so it includes:

MODULES="uvcvideo r5u870"
msg87 (view) Author: ahixon Date: 2008-05-27.07:02:53
Loading the firmware on demand might be a good idea, actually.

Before reuploading the microcode, did you remember to send a reset
command to the webcam? Also, reckon you could attach a diff of what
you've come up so far? :)
msg85 (view) Author: pihhan Date: 2008-05-25.11:08:30
Its seems i have problems after suspend to ram with firmware. It 
does load firmware with different version than driver expect (0x0131 
for my VCC8 on VGN-FZ210C) but driver does reset microcode, because 
version loaded is different from version expected. I wonder why it 
does not remember last loaded firmware version and only check if it 
is different than before suspend (does make sense only for suspend 
to disk, which one does not work on my ntb anyway). 

When i modified expected version in driver to match my firmware, it 
does work better. It does reset on resume if it does not match, but 
it does timeout and fail to load firmware. It is unable to request 
microcode on resume it seems. So we need not to reset firmware if 
there is one (how we know it is compatible?) or delay firmware 
loading to moment when anyone tries to open webcam device and load 
on demand.

Found some discussion about this: https://lists.linux-foundation.org/
pipermail/linux-pm/2004-November/006138.html
msg73 (view) Author: pihhan Date: 2008-04-30.16:47:36
My webcam does not work sometime i think. After i got working 
webcam, i have problems with resume from suspend to ram. It does 
occur every second resume i think My screen keeps black for 1-2 
minute, then it does resume. Sometime it does wait, sometime it does 
not and work right after resume.

In dmesg, i found:
[    1.060694] r5u870-0: invoking minidriver resume
[    1.060698] r5u870-0: requesting microcode state
[    1.060874] r5u870-0: camera reports negative microcode state
[    1.060877] r5u870-0: loading microcode file "r5u870_183b.fw"
[    1.116696] r5u870-0: Microcode file "r5u870_183b.fw" is missing
[    1.116700] r5u870-0: Please see http://wiki.mediati.org/r5u870/
Microcode
[    1.116703] r5u870-0: dev reinitialization failed: -2
[    1.116707] r5u870 6-2:1.0: resume error -2

But file is there.

# ls /lib/firmware/$(uname -r)/
iwlwifi-4965-1.ucode  r5u870_183b.fw
msg71 (view) Author: amir Date: 2008-04-29.14:06:16
Hi,

Thanks for the driver. I am using Fedora 8, my kernel is
2.6.24.4-64.fc8, and I am using r5u870-0.10.2.

The driver works fine, I can suspend my laptop, but the driver does
not work after the system resumes. I get error like "Sorry no webcam
detected"
History
Date User Action Args
2008-07-23 12:25:26amirsetmessages: + msg105
2008-07-22 14:19:25tjworldsetmessages: + msg102
2008-05-27 07:03:08ahixonsetnosy: + ahixon
2008-05-27 07:02:53ahixonsetmessages: + msg87
2008-05-25 11:08:30pihhansetnosy: + pihhan
messages: + msg85
2008-04-30 16:47:36pihhansetpriority: critical -> bug
status: unread -> chatting
messages: + msg73
2008-04-29 14:06:16amircreate