Linux - [SOLVED] XBMC-PVR Suspend Issue

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Baswazz Offline
Fan
Posts: 373
Joined: Oct 2010
Reputation: 7
Location: Netherlands
Post: #1
My system does not suspend.
without any USB devices attached except for my mouse and/or keyboard, the suspend does work.
After i attach other USB devices it looks like XBMC is getting into trouble. When i hit suspend it wakes up immediately or it does crash before the suspend.

fritsch helped me out finding the problem and brought the solution.

Problem
USB TV Tuner: Anysee E30 C

Fix
cd /etc/pm/sleep.d

create 99-restart-tvheadend.sh
Code:
#!/bin/sh

case "$1" in
suspend|hibernate)
service tvheadend stop
;;
resume|thaw)
service tvheadend start
;;
esac

sudo chmod +x /etc/pm/sleep.d/99-restart-tvheadend.sh
sudo reboot (with the adapter plugged in)
retry suspend

Frontend : Running on AMD Fusion A6-3500
Frontend : Raspberry PI (Raspbmc)
Remote : Motorola Nyxboard Hybrid (revised) / Boxee remote
Ziggo TV Channel Logo Pack (Dutch)
(This post was last modified: 2012-05-01 22:07 by Baswazz.)
find quote
HiGhLaNdeR Offline
Junior Member
Posts: 46
Joined: Nov 2003
Reputation: 3
Post: #2
I'm on the same boat but the color is diferent Tongue

Acer Revo R3600 with XBMCbuntu can't suspend or hibernate at all.

FIXED:
http://forum.xbmc.org/showthread.php?tid...+xbmcbuntu
(This post was last modified: 2012-04-26 01:57 by HiGhLaNdeR.)
find quote
teeedubb Offline
Donor
Posts: 2,035
Joined: Mar 2010
Reputation: 42
Location: Down Under
Post: #3
Have a look at /var/log/pm-suspend.log to see if anything is preventing suspend. The filename I listed may be wrong as I'm quoting from memory, but there will be a log file in that directory with a name along those lines...

My Add-ons, only available for XBMC:
Steam Launcher|Music Party Mode|Reboot2oOS|Triple J Radio
find quote
Baswazz Offline
Fan
Posts: 373
Joined: Oct 2010
Reputation: 7
Location: Netherlands
Post: #4
Thx for the replies guys. I almost done reinstalling again to get pvr working. I will take a look after that and report back.

Frontend : Running on AMD Fusion A6-3500
Frontend : Raspberry PI (Raspbmc)
Remote : Motorola Nyxboard Hybrid (revised) / Boxee remote
Ziggo TV Channel Logo Pack (Dutch)
find quote
Baswazz Offline
Fan
Posts: 373
Joined: Oct 2010
Reputation: 7
Location: Netherlands
Post: #5
This is the /var/log/pm-suspend.log


$ cat /var/log/pm-suspend.log
Initial commandline parameters:
Thu Apr 26 19:11:54 CEST 2012: Running hooks for suspend.
Running hook /usr/lib/pm-utils/sleep.d/000kernel-change suspend suspend:

/usr/lib/pm-utils/sleep.d/000kernel-change suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00logging suspend suspend:
Linux htpc-System-Product-Name 3.0.0-17-generic #30-Ubuntu SMP Thu Mar 8 17:34:21 UTC 2012 i686 i686 i386 GNU/Linux
Module Size Used by
autofs4 27924 1
dm_crypt 22565 0
nvidia 10390874 40
snd_hda_codec_hdmi 31426 1
snd_hda_codec_realtek 254163 1
rc_anysee 12451 0
tda18212 12855 1
snd_hda_intel 24262 3
joydev 17393 0
snd_hda_codec 91859 3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 13276 1 snd_hda_codec
snd_pcm 80435 6 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_seq_midi 13132 0
snd_rawmidi 25241 1 snd_seq_midi
snd_seq_midi_event 14475 1 snd_seq_midi
ir_lirc_codec 12770 0
lirc_dev 18700 1 ir_lirc_codec
snd_seq 51567 2 snd_seq_midi,snd_seq_midi_event
ir_sony_decoder 12493 0
ir_jvc_decoder 12490 0
tda10023 13156 1
ir_rc6_decoder 12490 0
dvb_usb_anysee 18096 7
dvb_usb 23788 1 dvb_usb_anysee
psmouse 73673 0
snd_timer 28932 2 snd_pcm,snd_seq
snd_seq_device 14172 3 snd_seq_midi,snd_rawmidi,snd_seq
ir_rc5_decoder 12490 0
serio_raw 12990 0
dvb_core 94826 1 dvb_usb
ir_nec_decoder 12490 0
rc_core 25797 10 rc_anysee,ir_lirc_codec,ir_sony_decoder,ir_jvc_decoder,ir_rc6_decoder,dvb_usb_an​ysee,dvb_usb,ir_rc5_decoder,ir_nec_decoder
snd 55902 13 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,s​nd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
ftdi_sio 35827 1
usbserial 37203 3 ftdi_sio
shpchp 32356 0
soundcore 12600 1 snd
snd_page_alloc 14115 2 snd_hda_intel,snd_pcm
asus_atk0110 17742 0
wmi 18744 0
i2c_nforce2 12906 0
lp 17455 0
parport 40930 1 lp
coretemp 13188 0
dm_raid45 76451 0
xor 21860 1 dm_raid45
dm_mirror 21822 0
dm_region_hash 16065 1 dm_mirror
dm_log 18193 3 dm_raid45,dm_mirror,dm_region_hash
btrfs 622556 0
zlib_deflate 26622 1 btrfs
libcrc32c 12543 1 btrfs
vesafb 13489 1
usbhid 41905 0
hid 77367 1 usbhid
r8169 43104 0
ahci 21634 2
libahci 25727 1 ahci
total used free shared buffers cached
Mem: 3357108 387428 2969680 0 20500 169896
-/+ buffers/cache: 197032 3160076
Swap: 3404796 0 3404796

/usr/lib/pm-utils/sleep.d/00logging suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00powersave suspend suspend:

/usr/lib/pm-utils/sleep.d/00powersave suspend suspend: success.
Running hook /etc/pm/sleep.d/10_grub-common suspend suspend:

/etc/pm/sleep.d/10_grub-common suspend suspend: success.
Running hook /etc/pm/sleep.d/10_unattended-upgrades-hibernate suspend suspend:

/etc/pm/sleep.d/10_unattended-upgrades-hibernate suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend:

/usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend:
Having NetworkManager put all interaces to sleep...Failed.

/usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/60_wpa_supplicant suspend suspend:
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory

/usr/lib/pm-utils/sleep.d/60_wpa_supplicant suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/75modules suspend suspend:

/usr/lib/pm-utils/sleep.d/75modules suspend suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/90clock suspend suspend:

/usr/lib/pm-utils/sleep.d/90clock suspend suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend:

/usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/95hdparm-apm suspend suspend:

/usr/lib/pm-utils/sleep.d/95hdparm-apm suspend suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/95led suspend suspend:

/usr/lib/pm-utils/sleep.d/95led suspend suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend:
nVidia binary video drive detected, not using quirks.

/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend: success.
Running hook /etc/pm/sleep.d/99lirc-resume suspend suspend:
* Stopping remote control daemon(s): LIRC
...fail!
Unloading lirc kernel modules

/etc/pm/sleep.d/99lirc-resume suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/99video suspend suspend:
kernel.acpi_video_flags = 0

/usr/lib/pm-utils/sleep.d/99video suspend suspend: success.
Running hook /etc/pm/sleep.d/novatel_3g_suspend suspend suspend:

/etc/pm/sleep.d/novatel_3g_suspend suspend suspend: success.
Thu Apr 26 19:11:56 CEST 2012: performing suspend

Frontend : Running on AMD Fusion A6-3500
Frontend : Raspberry PI (Raspbmc)
Remote : Motorola Nyxboard Hybrid (revised) / Boxee remote
Ziggo TV Channel Logo Pack (Dutch)
find quote
teeedubb Offline
Donor
Posts: 2,035
Joined: Mar 2010
Reputation: 42
Location: Down Under
Post: #6
Try moving the lirc hook into a different directory to see if that helps

sudo mv /etc/pm/sleep.d/99lirc-resume ~/

My Add-ons, only available for XBMC:
Steam Launcher|Music Party Mode|Reboot2oOS|Triple J Radio
find quote
Baswazz Offline
Fan
Posts: 373
Joined: Oct 2010
Reputation: 7
Location: Netherlands
Post: #7
Owk i did moving the 99lirc-resume but there is no difference.

$ cat /var/log/pm-suspend.log Initial commandline parameters:
Fri Apr 27 09:20:10 CEST 2012: Running hooks for suspend.
Running hook /usr/lib/pm-utils/sleep.d/000kernel-change suspend suspend:

/usr/lib/pm-utils/sleep.d/000kernel-change suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00logging suspend suspend:
Linux htpc-System-Product-Name 3.0.0-17-generic #30-Ubuntu SMP Thu Mar 8 17:34:21 UTC 2012 i686 i686 i386 GNU/Linux
Module Size Used by
autofs4 27924 1
dm_crypt 22565 0
psmouse 73673 0
nvidia 10390874 40
snd_hda_codec_hdmi 31426 1
snd_hda_codec_realtek 254163 1
rc_anysee 12451 0
tda18212 12855 1
snd_hda_intel 24262 3
snd_hda_codec 91859 3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
tda10023 13156 1
snd_hwdep 13276 1 snd_hda_codec
snd_pcm 80435 6 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_seq_midi 13132 0
snd_rawmidi 25241 1 snd_seq_midi
dvb_usb_anysee 18096 7
snd_seq_midi_event 14475 1 snd_seq_midi
snd_seq 51567 2 snd_seq_midi,snd_seq_midi_event
ir_lirc_codec 12770 0
lirc_dev 18700 1 ir_lirc_codec
ir_sony_decoder 12493 0
snd_timer 28932 2 snd_pcm,snd_seq
ir_jvc_decoder 12490 0
snd_seq_device 14172 3 snd_seq_midi,snd_rawmidi,snd_seq
ir_rc6_decoder 12490 0
ir_rc5_decoder 12490 0
ir_nec_decoder 12490 0
snd 55902 13 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,s​nd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
dvb_usb 23788 1 dvb_usb_anysee
dvb_core 94826 1 dvb_usb
soundcore 12600 1 snd
joydev 17393 0
serio_raw 12990 0
rc_core 25797 10 rc_anysee,dvb_usb_anysee,ir_lirc_codec,ir_sony_decoder,ir_jvc_decoder,ir_rc6_dec​oder,ir_rc5_decoder,ir_nec_decoder,dvb_usb
ftdi_sio 35827 1
snd_page_alloc 14115 2 snd_hda_intel,snd_pcm
shpchp 32356 0
usbserial 37203 3 ftdi_sio
asus_atk0110 17742 0
wmi 18744 0
i2c_nforce2 12906 0
lp 17455 0
parport 40930 1 lp
coretemp 13188 0
dm_raid45 76451 0
xor 21860 1 dm_raid45
dm_mirror 21822 0
dm_region_hash 16065 1 dm_mirror
dm_log 18193 3 dm_raid45,dm_mirror,dm_region_hash
btrfs 622556 0
zlib_deflate 26622 1 btrfs
libcrc32c 12543 1 btrfs
vesafb 13489 1
usbhid 41905 0
hid 77367 1 usbhid
r8169 43104 0
ahci 21634 2
libahci 25727 1 ahci
total used free shared buffers cached
Mem: 3357108 349024 3008084 0 17456 157848
-/+ buffers/cache: 173720 3183388
Swap: 3404796 0 3404796

/usr/lib/pm-utils/sleep.d/00logging suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00powersave suspend suspend:

/usr/lib/pm-utils/sleep.d/00powersave suspend suspend: success.
Running hook /etc/pm/sleep.d/10_grub-common suspend suspend:

/etc/pm/sleep.d/10_grub-common suspend suspend: success.
Running hook /etc/pm/sleep.d/10_unattended-upgrades-hibernate suspend suspend:

/etc/pm/sleep.d/10_unattended-upgrades-hibernate suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend:

/usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend:
Having NetworkManager put all interaces to sleep...Failed.

/usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/60_wpa_supplicant suspend suspend:
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory

/usr/lib/pm-utils/sleep.d/60_wpa_supplicant suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/75modules suspend suspend:

/usr/lib/pm-utils/sleep.d/75modules suspend suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/90clock suspend suspend:

/usr/lib/pm-utils/sleep.d/90clock suspend suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend:

/usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/95hdparm-apm suspend suspend:

/usr/lib/pm-utils/sleep.d/95hdparm-apm suspend suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/95led suspend suspend:

/usr/lib/pm-utils/sleep.d/95led suspend suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend:
nVidia binary video drive detected, not using quirks.

/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/99video suspend suspend:
kernel.acpi_video_flags = 0

/usr/lib/pm-utils/sleep.d/99video suspend suspend: success.
Running hook /etc/pm/sleep.d/novatel_3g_suspend suspend suspend:

/etc/pm/sleep.d/novatel_3g_suspend suspend suspend: success.
Fri Apr 27 09:20:12 CEST 2012: performing suspend

Frontend : Running on AMD Fusion A6-3500
Frontend : Raspberry PI (Raspbmc)
Remote : Motorola Nyxboard Hybrid (revised) / Boxee remote
Ziggo TV Channel Logo Pack (Dutch)
find quote