← Back to team overview

kernel-packages team mailing list archive

[Bug 1354668] [NEW] Fix for suspend/hibernate with DVB-t USB stick

 

You have been subscribed to a public bug:

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.

I have created a failure proof workaround solution for VLC by creating
the 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

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Fix  for suspend/hibernate with DVB-t USB stick
https://bugs.launchpad.net/bugs/1354668
You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu.