HIbernate unloads saa7134 module

Bug #118978 reported by SanjayV
14
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Won't Fix
Undecided
Unassigned
linux-source-2.6.20 (Ubuntu)
Won't Fix
High
Unassigned

Bug Description

Every time that I hibernate and come out of hibernation, I'm having to ::

rmmod saa7134

and

modprobe saa7134 card=x tuner=y

It gets unloaded automatically or something. I'm really not sure what the problem could be.

Tags: cft-2.6.27
Revision history for this message
Jérôme Guelfucci (jerome-guelfucci-deactivatedaccount) wrote :

Thanks for taking the time to report this bug. Unfortunately we can't fix it, because your description doesn't yet have enough information.

Please include the following additional information, if you have not already done so (please pay attention to lspci's additional options), as required by the Ubuntu Kernel Team:
1. Please include the output of the command "uname -a" in your next response. It should be one, long line of text which includes the exact kernel version you're running, as well as the CPU architecture.
2. Please run the command "dmesg > dmesg.log" and attach the resulting file "dmesg.log" to this bug report.
3. Please run the command "lspci -vvnn > lspci-vvnn.log" and attach the resulting file "lspci-vvnn.log" to this bug report.

For your reference, the full description of procedures for kernel-related bug reports is available at [WWW] http://wiki.ubuntu.com/KernelTeamBugPolicies. Thanks in advance!

Revision history for this message
SanjayV (vhellmet-ubuntu) wrote :

This problem has existed since dapper. Each release, I think it'd be sorted, but it hasn't been. Anyway, here's the ouput for the commands above.

1) Linux <snip>-desktop 2.6.20-16-generic #2 SMP Wed May 23 01:46:23 UTC 2007 i686 GNU/Linux

2) Attached

Revision history for this message
SanjayV (vhellmet-ubuntu) wrote :

3) Attached

Revision history for this message
Jérôme Guelfucci (jerome-guelfucci-deactivatedaccount) wrote :

Thank you, I'm marking this as confirmed.

Revision history for this message
SanjayV (vhellmet-ubuntu) wrote :

Hey, hope this gets resolved. I'd finally be able to use Hibernate :).

Changed in linux-source-2.6.20:
assignee: nobody → ubuntu-kernel-team
Revision history for this message
Roberto Cássio Jr. (rcsdnj) wrote :

I was searching a little bit and I found this commit in the SAA7134's kernel driver:

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c458473ebf31755373ca2f8063c9ec9744205924

Seems that it may fix the problem, except for the audio capture from DMA (which wouldn't be a problem if you use the line-out from the TV card).

Is there any chance to see those changes merged to Gutsy's kernel?

Revision history for this message
Emilio Scalise (emisca) wrote :

There are also other commits merged into 2.6.24-rc1 kernel related to this problem.
http://www2.kernel.org/pub/linux/kernel/v2.6/testing/ChangeLog-2.6.24-rc1

commit f40aa808bad19a079a0e122e326d6970df141afb
Author: Matthias Schwarzott <email address hidden>
Date: Thu Oct 18 14:58:11 2007 -0300

    V4L/DVB (6382): saa7134: fix NULL dereference at suspend time for cards without IR receiver

    Calling saa7134_ir_stop at suspend is no good idea
    for saa7134 cards without remote control.

    Signed-off-by: Matthias Schwarzott <email address hidden>
    Signed-off-by: Mauro Carvalho Chehab <email address hidden>

commit ea63d0b11ebb296b3daca4fcb74931604ee3ce78
Author: Maxim Levitsky <email address hidden>
Date: Sat Oct 13 05:35:33 2007 -0300

    V4L/DVB (6330): V4L: saa7134: Fix interaction between tvaudio thread and the freezer

    make tvaudio thread freezeable, and add proper support for that

    Signed-off-by: Maxim Levitsky <email address hidden>
    Signed-off-by: Mauro Carvalho Chehab <email address hidden>

commit acd827d63a568a2cfa26ae8e6093b098c91c631b
Author: Maxim Levitsky <email address hidden>
Date: Mon Oct 8 12:07:35 2007 -0300

    V4L/DVB (6306): Few clenups for saa7134 resume code

    *Disable DMA explictly on suspend
    *Enable DMA on resume, after all buffers were configured
    *Disable overlay on resume - apps should enable it when X is resumed

    Signed-off-by: Maxim Levitsky <email address hidden>
    Signed-off-by: Mauro Carvalho Chehab <email address hidden>

commit cb71201f20e43581857043a1f856fb61ce44bdf8
Author: Maxim Levitsky <email address hidden>
Date: Thu Sep 27 20:34:25 2007 -0300

    V4L/DVB (6271): V4L: Add basic support for suspend/resume for saa7134

    This adds support for suspend/resume for core of saa7134

    Should fix bug#7220

    Signed-off-by: Maxim Levitsky <email address hidden>
    Signed-off-by: Mauro Carvalho Chehab <email address hidden>

And in addition to this commits, and the one cited by Roberto, there are many fixes on this driver. Perhaps is there a cumulative patch that includes all these changes and can be backported on older kernels (like 2.6.22)?

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The Hardy Heron Alpha series is currently under development and contains an updated version of the kernel. It would be helpful if you could test the latest Hardy Alpha release: http://www.ubuntu.com/testing . The commit's mentioned by Emilio should be included. If you can, please verify if this bug still exists or not and report back your results. Thanks.

Changed in linux-source-2.6.20:
status: Confirmed → Incomplete
Revision history for this message
Roberto Cássio Jr. (rcsdnj) wrote :

I've tested under Ubuntu Hardy (Kernel 2.6.24-12-generic), and it worked great: tvtime continues working normally after resuming from Suspend state, and also from Hibernate state. Great! :D

I'm capturing the audio through the line-out output, though (my card doesn't work well with the DMA, I don't know why). So it would be better if someone else test and check if DMA captured audio also works fine after suspend/hibernate resume.

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Roberto, thanks for testing and the update.

SanjayV, since you are the original bug reporter I'd like to hear from you before closing this out. Thanks.

Changed in linux:
status: New → Incomplete
Changed in linux-source-2.6.20:
status: Incomplete → Won't Fix
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

Revision history for this message
Bryan Wu (cooloney) wrote :

This bug report is being closed because we received no response to the previous inquiry for information. Please reopen if this is still an issue in the current Ubuntu release, Jaunty Jackalope 9.04 - http://www.ubuntu.com/getubuntu/download. If the issue remains in Jaunty, please test the latest upstream kernel build - https://wiki.ubuntu.com/KernelMainlineBuilds . To reopen the bug, click on the current status under the Status column and change the status back to "New". Thanks.

Changed in linux (Ubuntu):
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.