0ccd:00ab Won't resume from suspend using DVB-t USB stick

Bug #1354668 reported by sander
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

I have a Terratec Cinergy T USB XXS DVB-t USB stick, but when you suspend the system while a radio or TV channel is actively playing in some application, the system does not correctly suspend the device. The system will not wake up again and you have to reset the computer. This bug exists for at least 3 year and likely people with similar DVB-t USB sticks will be affected as well.

WORKAROUND: I have created a script /etc/pm/sleep.d/50_dvb_usb_dib0700_quirk:

#!/bin/sh

PASS=<enter password for LUA telnet access to VLC>

case "$1" in
hibernate|suspend)
 # check whether a stream with "telx" (Teletext) is active or not
  if [ "`{ echo $PASS; echo "info"; } | netcat localhost 4212 -q 1 | grep -c telx`" -eq "0" ]
  then
   continue
  else
   { echo $PASS; echo "stop"; } | netcat localhost 4212 -q 1 > /dev/null
  fi
  modprobe -r dvb_usb_dib0700
  sleep 1
  ;;
thaw|resume)
  modprobe dvb_usb_dib0700
  # automatically start playing after wake up
  { echo $PASS; echo "play"; } | netcat localhost 4212 -q 1 > /dev/null
  ;;
*) exit $NA
  ;;
esac

This solution was inspired by: http://forum.xbmc.org/printthread.php?tid=71490

---
ApportVersion: 2.14.1-0ubuntu3.6
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: sander 2545 F.... pulseaudio
 /dev/snd/controlC0: sander 2545 F.... pulseaudio
 /dev/snd/pcmC0D0p: sander 2545 F...m pulseaudio
CRDA: Error: [Errno 2] Bestand of map bestaat niet
CurrentDesktop: Unity
DistroRelease: Ubuntu 14.04
HibernationDevice: RESUME=UUID=c4ca47bf-e5b3-4e55-8e04-7545c1f50cdd
IwConfig:
 p4p1 no wireless extensions.

 lo no wireless extensions.
MachineType: Gigabyte Technology Co., Ltd. To be filled by O.E.M.
NonfreeKernelModules: nvidia
Package: linux (not installed)
ProcFB:

ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-43-generic root=UUID=e882cc04-9882-4d29-b98d-cd0144f876ad ro quiet splash nomdmonddf nomdmonisw nomdmonddf nomdmonisw
ProcVersionSignature: Ubuntu 3.13.0-43.72-generic 3.13.11.11
RelatedPackageVersions:
 linux-restricted-modules-3.13.0-43-generic N/A
 linux-backports-modules-3.13.0-43-generic N/A
 linux-firmware 1.127.10
RfKill:

Tags: trusty
Uname: Linux 3.13.0-43-generic x86_64
UpgradeStatus: Upgraded to trusty on 2014-06-21 (174 days ago)
UserGroups: adm cdrom debian-transmission dip lpadmin plugdev sambashare saned sudo
_MarkForUpload: True
dmi.bios.date: 10/23/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: F13
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: B75M-D3V
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrF13:bd10/23/2013:svnGigabyteTechnologyCo.,Ltd.:pnTobefilledbyO.E.M.:pvrTobefilledbyO.E.M.:rvnGigabyteTechnologyCo.,Ltd.:rnB75M-D3V:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.name: To be filled by O.E.M.
dmi.product.version: To be filled by O.E.M.
dmi.sys.vendor: Gigabyte Technology Co., Ltd.

Revision history for this message
penalvch (penalvch) wrote :

sander, could you please execute the following via a terminal in order for the necessary debugging information to be attached:
apport-collect 1354668

affects: pm-utils (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
sander (s-devrieze) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected trusty
description: updated
Revision history for this message
sander (s-devrieze) wrote : BootDmesg.txt

apport information

Revision history for this message
sander (s-devrieze) wrote : CurrentDmesg.txt

apport information

Revision history for this message
sander (s-devrieze) wrote : Lspci.txt

apport information

Revision history for this message
sander (s-devrieze) wrote : Lsusb.txt

apport information

Revision history for this message
sander (s-devrieze) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
sander (s-devrieze) wrote : ProcEnviron.txt

apport information

Revision history for this message
sander (s-devrieze) wrote : ProcInterrupts.txt

apport information

Revision history for this message
sander (s-devrieze) wrote : ProcModules.txt

apport information

Revision history for this message
sander (s-devrieze) wrote : PulseList.txt

apport information

Revision history for this message
sander (s-devrieze) wrote : UdevDb.txt

apport information

Revision history for this message
sander (s-devrieze) wrote : UdevLog.txt

apport information

Revision history for this message
sander (s-devrieze) wrote : WifiSyslog.txt

apport information

penalvch (penalvch)
tags: added: bios-outdated-4.3
Revision history for this message
sander (s-devrieze) wrote : Re: [Bug 1354668] Re: Fix for suspend/hibernate with DVB-t USB stick

May I suggest to update your bug reporting etiquette to not require bios
updates if the motherboard manufactuerer does not provide a reliable way to
update the bios from within Ubuntu whilst the motherboard is working
stable? I bricked my MSI motherboard yesterday by installing BIOS version
4.3 using FreeDOS. The update went great but now my motherboard is in an
infinite boot loop. After about 7 secs the motherboard resets. See also
Google for a lot of people facing the same with this unstable MSI
motherboard with unfriendly Linux support and a buggy BIOS update
procedure. MSI is a bad choice for Linux / Ubuntu. (yes there is some
intended SEO in this report)

So, this bug report costs me at least 50EUR and a lot of time :-( I will
test again when I have a new motherboard installed and time for testing.
Obviously, I will refrain from doing a BIOS update if requested here...

Any suggestions for which motherboard to buy? I need USB3, ethernet, 3
SATA-600 ports and 5.1 or higher onboard sound. I prefer no separate
onboard RAID controller as this slows down booting and Linux software RAID
is easier/much more reliable. Linux stability is very important, especially
as this computer is put to sleep often. Are Asrock and Gigabyte
Linux-friendly brands? Which Intel chipset will be the most reliable: B75,
P75, H77? What Realtek chips will give the most reliable and best sound
experience in Ubuntu: ALC662, ALC887 or ALC892?

Thanks for the support!

--
Mvg, Sander Devrieze.

2014-12-05 22:38 GMT+01:00 Christopher M. Penalver <
<email address hidden>>:

> sander, as per http://www.msi.com/support/mb/P67AGD65.html#down-bios an
> update to your BIOS is available (4.3). If you update to this following
> https://help.ubuntu.com/community/BIOSUpdate does it change anything? If
> it doesn't, could you please both specify what happened, and provide the
> output of the following terminal command:
> sudo dmidecode -s bios-version && sudo dmidecode -s bios-release-date
>
> For more on BIOS updates and linux, please see
> https://help.ubuntu.com/community/ReportingBugs#Bug_reporting_etiquette
> .
>
> Please note your current BIOS is already in the Bug Description, so
> posting this on the old BIOS would not be helpful. As well, you don't
> have to create a new bug report.
>
> Once the BIOS is updated, then please mark this report Status Confirmed.
>
> Thank you for your understanding.
>
> ** Tags added: bios-outdated-4.3
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1354668
>
> Title:
> Fix for suspend/hibernate with DVB-t USB stick
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1354668/+subscriptions
>

Revision history for this message
sander (s-devrieze) wrote : AlsaInfo.txt

apport information

description: updated
Revision history for this message
sander (s-devrieze) wrote : BootDmesg.txt

apport information

Revision history for this message
sander (s-devrieze) wrote : CurrentDmesg.txt

apport information

Revision history for this message
sander (s-devrieze) wrote : Lspci.txt

apport information

Revision history for this message
sander (s-devrieze) wrote : Lsusb.txt

apport information

Revision history for this message
sander (s-devrieze) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
sander (s-devrieze) wrote : ProcEnviron.txt

apport information

Revision history for this message
sander (s-devrieze) wrote : ProcInterrupts.txt

apport information

Revision history for this message
sander (s-devrieze) wrote : ProcModules.txt

apport information

Revision history for this message
sander (s-devrieze) wrote : PulseList.txt

apport information

Revision history for this message
sander (s-devrieze) wrote : UdevDb.txt

apport information

Revision history for this message
sander (s-devrieze) wrote : UdevLog.txt

apport information

Revision history for this message
sander (s-devrieze) wrote : WifiSyslog.txt

apport information

Revision history for this message
sander (s-devrieze) wrote : Re: Fix for suspend/hibernate with DVB-t USB stick

This bug is still persistent with my new motherboard, which is from another manufacturer and which has another and newer chipset. If I move /etc/pm/sleep.d/50_dvb_usb_dib0700_quirk to my home dir, Linux fails to suspend and I need to reset the whole computer.

Thus, this bug is not related to any motherboard hardware issue. It may be a bug in the USB DVB-T stick, but if so, Linux should provide a workaround instead of crashing the system.

Revision history for this message
penalvch (penalvch) wrote :

sander, just to advise, it's preferred not to mix-and-match connecting hardware and then apport-collect. Hence, just to clarify, going forward, all further testing/debugging is going to be with the Gigabyte B75M-D3V setup?

Revision history for this message
sander (s-devrieze) wrote : Re: [Bug 1354668] Re: Fix for suspend/hibernate with DVB-t USB stick

Yes, because the other board got bricked as I told due to the bios update.
I had to buy a new board because of that (no warranty).

--
Kind Regards,
Sander Devrieze.
Op 13 dec. 2014 21:55 schreef "Christopher M. Penalver" <
<email address hidden>>:

> sander, just to advise, it's preferred not to mix-and-match connecting
> hardware and then apport-collect. Hence, just to clarify, going forward,
> all further testing/debugging is going to be with the Gigabyte B75M-D3V
> setup?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1354668
>
> Title:
> Fix for suspend/hibernate with DVB-t USB stick
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1354668/+subscriptions
>

Revision history for this message
penalvch (penalvch) wrote : Re: Fix for suspend/hibernate with DVB-t USB stick

sander, could you please test the latest upstream kernel available from the very top line at the top of the page (the release names are irrelevant for testing, and please do not test the daily folder) following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue.

If the test did not allow you to test to the issue (ex. you couldn't boot into the OS) please make a comment in your report about this, and continue to test the next most recent kernel version until you can test to the issue. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags:
kernel-fixed-upstream
kernel-fixed-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested exactly shown as:
kernel-fixed-upstream-3.18

This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description.

If the mainline kernel does not fix this bug, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-VERSION-NUMBER

Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed. Please let us know your results. Thank you for your understanding.

description: updated
tags: added: latest-bios-13
removed: bios-outdated-4.3
Changed in linux (Ubuntu):
importance: Low → Medium
summary: - Fix for suspend/hibernate with DVB-t USB stick
+ 0ccd:00ab Fix for suspend/hibernate with DVB-t USB stick
sander (s-devrieze)
tags: added: kernel-bug-exists-upstream-3.18
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
penalvch (penalvch)
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
sander (s-devrieze) wrote : Re: [Bug 1354668] Re: 0ccd:00ab Fix for suspend/hibernate with DVB-t USB stick

I have this device since summer 2011 and this problem occured in all Ubuntu
releases I tried since then (most).

--
Kind Regards,
Sander Devrieze.
Op 14 dec. 2014 19:20 schreef "Christopher M. Penalver" <
<email address hidden>>:

> sander, did this problem not occur in a release prior to Trusty?
>
> ** Changed in: linux (Ubuntu)
> Status: Confirmed => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1354668
>
> Title:
> 0ccd:00ab Fix for suspend/hibernate with DVB-t USB stick
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1354668/+subscriptions
>

Revision history for this message
penalvch (penalvch) wrote : Re: 0ccd:00ab Fix for suspend/hibernate with DVB-t USB stick

sander, which release names specifically was this tested to work and not work in?

Revision history for this message
sander (s-devrieze) wrote : Re: [Bug 1354668] Re: 0ccd:00ab Fix for suspend/hibernate with DVB-t USB stick

I do not keep a log of that :-) But I think I only skipped 1 or at most 2
releases. So, 11.04 and 14.04 for sure.

--
Mvg, Sander Devrieze.

2014-12-14 19:32 GMT+01:00 Christopher M. Penalver <
<email address hidden>>:
>
> sander, which release names specifically was this tested to work and not
> work in?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1354668
>
> Title:
> 0ccd:00ab Fix for suspend/hibernate with DVB-t USB stick
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1354668/+subscriptions
>

Revision history for this message
penalvch (penalvch) wrote : Re: 0ccd:00ab Fix for suspend/hibernate with DVB-t USB stick

sander, to clarify, did this problem not occur in a release prior to 11.04?

Revision history for this message
sander (s-devrieze) wrote : Re: [Bug 1354668] Re: 0ccd:00ab Fix for suspend/hibernate with DVB-t USB stick

No idea, I did not had any DVB-t stick before summer 2011.

--
Kind Regards,
Sander Devrieze.
Op 14 dec. 2014 20:35 schreef "Christopher M. Penalver" <
<email address hidden>>:

> sander, to clarify, did this problem not occur in a release prior to
> 11.04?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1354668
>
> Title:
> 0ccd:00ab Fix for suspend/hibernate with DVB-t USB stick
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1354668/+subscriptions
>

Revision history for this message
penalvch (penalvch) wrote :

sander, could you please provide the missing information following https://wiki.ubuntu.com/DebuggingKernelSuspend ?

summary: - 0ccd:00ab Fix for suspend/hibernate with DVB-t USB stick
+ 0ccd:00ab Won't resume from suspend using DVB-t USB stick
Revision history for this message
sander (s-devrieze) wrote : Re: [Bug 1354668] Re: 0ccd:00ab Won't resume from suspend using DVB-t USB stick

I will check later this week when I have time.

You changed the summary. I'm not sure if this makes a difference, but I
think something goes wrong during suspending and not from waking up from
suspension state.

--
Mvg, Sander Devrieze.

2014-12-14 20:58 GMT+01:00 Christopher M. Penalver <
<email address hidden>>:
>
> sander, could you please provide the missing information following
> https://wiki.ubuntu.com/DebuggingKernelSuspend ?
>
> ** Summary changed:
>
> - 0ccd:00ab Fix for suspend/hibernate with DVB-t USB stick
> + 0ccd:00ab Won't resume from suspend using DVB-t USB stick
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1354668
>
> Title:
> 0ccd:00ab Won't resume from suspend using DVB-t USB stick
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1354668/+subscriptions
>

Revision history for this message
sander (s-devrieze) wrote :

How I suspend:

Either I suspend by clicking the word Suspend in the GUI, or using LIRC which executes the following command:
dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend

The bug appears in both scenarios.

PS: I will do further testing tomorrow and append the results here.

Revision history for this message
sander (s-devrieze) wrote :

Ok, I discovered my computer *never* can resume if I remove the closed source nvidia driver. When I remove this driver, I also cannot resume my current 3.13.0-43 kernel which does resume with this driver installed. So, my report that the bug is still existing in newer kernels, may or may not be valid. I just cannot test this on my computer as the nvidia driver does not work with these newer kernels.

Anyway, I still think resuming is not the problem. I guess the problem is when trying to enter sleep state. When the DVB-t stick is playing content, it is sending data to the kernel. Probably the kernel does not block this data stream when going to sleep causing this data to fill some kernel buffers which then causes the computer to fail entering sleep and stop responding. (The light of my power button stays on when this happens!)

Revision history for this message
sander (s-devrieze) wrote :

I just tested and confirm the same bug on Ubuntu 12.04 LTS on my very old netbook. This is kernel 3.2.0-74-generic.

Do the mainline kernels also work on this old Ubuntu release? Then I can test this bug on my netbook. (Unfortunately I can't upgrade to newer releases as this netbook is too slow for newer Unity versions)

Revision history for this message
penalvch (penalvch) wrote :

sander, just to advise, you don't have to keep stating this is a suspend versus resume issue, or vice versa.

As well, this report is scoped solely to your Gigabyte B75M-D3V+USB stick while using the NVIDIA closed source drivers (not nouveau) to suspend/resume (not hibernate).

If different hardware, drivers, and/or hibernate is going to be introduced, this would need to go into a separate report, one per unique combination of the prior.

Despite this, if you can at least suspend/resume without the USB stick on your old computer with the default drivers (not closed source), in any release, then it would be more productive to address this issue via a new report against this hardware.

What do you think?

Revision history for this message
sander (s-devrieze) wrote :

What is your question? I can suspend/resume with this old computer with
this stick inserted but not in playing mode, but I can't install a newer
Ubuntu release on it.

--
Kind Regards,
Sander Devrieze.
Op 22 dec. 2014 02:45 schreef "Christopher M. Penalver" <
<email address hidden>>:

> sander, just to advise, you don't have to keep stating this is a suspend
> versus resume issue, or vice versa.
>
> As well, this report is scoped solely to your Gigabyte B75M-D3V+USB
> stick while using the NVIDIA closed source drivers (not nouveau) to
> suspend/resume (not hibernate).
>
> If different hardware, drivers, and/or hibernate is going to be
> introduced, this would need to go into a separate report, one per unique
> combination of the prior.
>
> Despite this, if you can at least suspend/resume without the USB stick
> on your old computer with the default drivers (not closed source), in
> any release, then it would be more productive to address this issue via
> a new report against this hardware.
>
> What do you think?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1354668
>
> Title:
> 0ccd:00ab Won't resume from suspend using DVB-t USB stick
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1354668/+subscriptions
>

Revision history for this message
penalvch (penalvch) wrote :

Sander, with your old computer, could you please execute the following via a terminal:
ubuntu-bug linux

Please subscribe me to this new report.

penalvch (penalvch)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

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

Other bug subscribers

Remote bug watches

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