Moderator Control Panel ]

resume from suspend possible ? Ubuntu 10.4.2 [solved]

resume from suspend possible ? Ubuntu 10.4.2 [solved]

Postby matrix321 » Wed Jun 08, 2011 8:11 pm

Hi,
before I start here is my setting:

Zbox ID11 Atom ION2

Linux Kernel 2.6.32-32 generic ubuntu
xbmc ppa odk 40
vdr 1.7.18
vnsi server plugin

Tbs USB2 qboxs2 (qbox 2)
FW version 1.23.86.1

/etc/default/ (grub: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1"') is set
/etc/pm/sleep.d (00sleep_module : SUSPEND_MODULES="$SUSPEND_MODULES xhci dvb_usb dvb_core dvb_usb_tbsqboxs2 cx24116 " is set





Problem:
Resume from suspend does work, but reinitialisation of USB QBOXS2 doesn´t work. I have to power off the qbox (unplug from power) manually to get it recognised again:



Code: Select All Code
dmesg | grep -i dvb
after resume says:

Code: Select All Code
[ 2442.893270] dvb-usb: TBS QBOXS2 DVBS2 USB2.0 successfully deinitialized and disconnected.
[ 2448.660199] dvb-usb: found a 'TBS QBOXS2 DVBS2 USB2.0' in cold state, will try to load a firmware
[ 2448.660208] usb 1-4: firmware: requesting dvb-usb-tbsqbox-id5928.fw
[ 2508.660089] dvb-usb: did not find the firmware file. (dvb-usb-tbsqbox-id5928.fw) Please see linux/Documentation/dvb/ for more details on firmware-problems. (-2)
[ 2508.660630] Modules linked in: snd_hda_codec_nvhdmi joydev hidp snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss cx24116 snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi binfmt_misc snd_rawmidi rfcomm snd_seq_midi_event sco bridge snd_seq stp bnep arc4 fbcon dvb_usb_tbsqboxs2 tileblit snd_timer font bitblit ppdev l2cap dvb_usb coretemp snd_seq_device ath9k mac80211 ath snd softcursor nvidia(P) usbhid hid cdc_acm vga16fb vgastate cfg80211 soundcore btusb lp dvb_core psmouse bluetooth serio_raw led_class snd_page_alloc intel_agp parport r8169 mii


stuck here and nothing else (firmware is located at /lib/firmware) .

Now I unplug the qbox from power and plug it again it
says:

Code: Select All Code
[ 2671.314794] dvb-usb: found a 'TBS QBOXS2 DVBS2 USB2.0' in cold state, will try to load a firmware
[ 2671.314810] usb 1-4: firmware: requesting dvb-usb-tbsqbox-id5928.fw
[ 2671.319156] dvb-usb: downloading firmware from file 'dvb-usb-tbsqbox-id5928.fw'
[ 2671.319176] usb 1-4: firmware: requesting dvb-usb-tbsqbox-id5928.fw
[ 2671.450045] dvb-usb: found a 'TBS QBOXS2 DVBS2 USB2.0' in warm state.
[ 2671.450168] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[ 2671.454228] DVB: registering new adapter (TBS QBOXS2 DVBS2 USB2.0)
[ 2671.462409] dvb-usb: MAC address reading failed.
[ 2671.516871] dvb-usb: no frontend was attached by 'TBS QBOXS2 DVBS2 USB2.0'
[ 2671.525164] input: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:1d.7/usb1/1-4/input/input12
[ 2671.525330] dvb-usb: schedule remote query interval to 150 msecs.
[ 2671.525343] dvb-usb: TBS QBOXS2 DVBS2 USB2.0 successfully initialized and connected.
[ 2671.581053] dvb-usb: TBS QBOXS2 DVBS2 USB2.0 successfully deinitialized and disconnected.
[ 2673.283794] dvb-usb: found a 'TBS QBOXS2 DVBS2 USB2.0' in cold state, will try to load a firmware
[ 2673.283808] usb 1-4: firmware: requesting dvb-usb-tbsqbox-id5928.fw
[ 2673.287708] dvb-usb: downloading firmware from file 'dvb-usb-tbsqbox-id5928.fw'
[ 2673.287723] usb 1-4: firmware: requesting dvb-usb-tbsqbox-id5928.fw
[ 2673.430256] dvb-usb: found a 'TBS QBOXS2 DVBS2 USB2.0' in warm state.
[ 2673.430383] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[ 2673.430664] DVB: registering new adapter (TBS QBOXS2 DVBS2 USB2.0)
[ 2673.597137] dvb-usb: MAC address: 00:22:ab:c0:0d:18
[ 2673.640491] DVB: registering adapter 0 frontend 0 (Conexant CX24116/CX24118)...
[ 2673.641331] input: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:1d.7/usb1/1-4/input/input13
[ 2673.641632] dvb-usb: schedule remote query interval to 150 msecs.
[ 2673.641646] dvb-usb: TBS QBOXS2 DVBS2 USB2.0 successfully initialized and connected.


I have to reload vdr manually in this case.
If i unplug the usb-qboxs2 while the PC is in suspend, init works at resume and vdr works also without restarting.

Here are my questions: Is resume from suspend possible with this device ?
How can I (hard)reset the device before suspending to force an automatic firmware load at resume ?


Thank you for your help
Matrix321
matrix321
 
Posts: 2
Joined: Wed Jun 08, 2011 7:33 pm

RESUME from SUSPEND possible:

Postby matrix321 » Wed Jul 06, 2011 6:06 am

JUST DID THIS TO GET IT [SOLVED]:

/etc/default/grub
Code: Select All Code
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1"

is set


/etc/pm/sleep.d/00sleep_module
Code: Select All Code
SUSPEND_MODULES="$SUSPEND_MODULES xhci"

is set

create a script

/etc/pm/sleep.d/50_mediacenter.sh
Code: Select All Code
#!/bin/bash
case $1 in
        hibernate|suspend)
                { /etc/init.d/vdr stop;
/etc/init.d/lirc stop; } 2>/dev/null                            ## in case of a remote control
modprobe -r dvb_usb_tbsqboxs2                               ## Unload before suspend
                ;;
        thaw|resume)
modprobe dvb_usb_tbsqboxs2                                  ## Reload at wakeup
                { /etc/init.d/vdr restart;
/etc/init.d/lirc restart; } 2>/dev/null                      ## Reload remote control at wakeup
                ;;
        *) exit $NA
                ;; esac
matrix321
 
Posts: 2
Joined: Wed Jun 08, 2011 7:33 pm


Return to Linux

Who is online

Users browsing this forum: No registered users and 2 guests

cron