suspend/shutdown not working, neither is pm-suspend
#1
Hi,

I'm having a problem on a new build using XBMCFreak's 10.1 livecd on a Gigabyte H67N mobo. When I attempt to suspend or shutdown from within XBMC (either with remote or through the menu) the display will briefly turn off, but the box stays up and running and the display turns back on in a couple seconds or so.

I've had a similar issue to this before but where this issue only occured AFTER the first successful suspend (solved in this thread: http://forum.xbmc.org/showthread.php?tid=87718). In this case though, the suspend NEVER works (I attempted the fix in that thread anyways, with no luck).

If I try "pm-suspend" from terminal, I see essentially the same thing - screen flashes off briefly, but won't stay suspended.

The contents of my /var/log/pm-suspend.log file:
Code:
Initial commandline parameters:
Sat Sep 17 16:10:37 CDT 2011: Running hooks for suspend.
/usr/lib/pm-utils/sleep.d/000kernel-change suspend suspend:success.
/usr/lib/pm-utils/sleep.d/00logging suspend suspend:Linux XBMCLive 2.6.32-29-generic #58-Ubuntu SMP Fri Feb 11 19:00:09 UTC 2011 i686 GNU/Linux
Module                  Size  Used by
nls_iso8859_1           3249  1
nls_cp437               4919  1
vfat                    8933  1
fat                    47767  1 vfat
dm_crypt               11331  0
snd_hda_codec_nvhdmi    12722  1
snd_hda_codec_realtek   216061  1
lp                      7028  0
lirc_mceusb            12402  1
lirc_dev                8884  3 lirc_mceusb
snd_hda_intel          20799  3
snd_hda_codec          87096  3 snd_hda_codec_nvhdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               5668  1 snd_hda_codec
snd_pcm_oss            34603  0
snd_mixer_oss          13929  1 snd_pcm_oss
snd_pcm                71646  4 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_seq_dummy           1498  0
snd_seq_oss            27626  0
snd_seq_midi            4621  0
snd_rawmidi            19141  1 snd_seq_midi
snd_seq_midi_event      6003  2 snd_seq_oss,snd_seq_midi
snd_seq                48042  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer              18710  3 snd_pcm,snd_seq
snd_seq_device          6052  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd                    56687  19 snd_hda_codec_nvhdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
parport                32635  1 lp
serio_raw               3978  0
nvidia               9961216  34
agpgart                31724  1 nvidia
vga16fb                11385  0
vgastate                8961  1 vga16fb
xhci                   36330  0
soundcore               6620  1 snd
snd_page_alloc          7140  2 snd_hda_intel,snd_pcm
vesafb                  3542  0
usb_storage            39553  1
usbhid                 36110  0
hid                    67096  1 usbhid
r8169                  34108  0
mii                     4381  1 r8169
ahci                   32200  2
fbcon                  35102  71
tileblit                2031  1 fbcon
font                    7557  1 fbcon
bitblit                 4707  1 fbcon
softcursor              1189  1 bitblit
ramzswap                6362  1
xvmalloc                4074  1 ramzswap
lzo_decompress          2189  1 ramzswap
lzo_compress            1853  1 ramzswap
             total       used       free     shared    buffers     cached
Mem:       3346952     374100    2972852          0      11504     205860
-/+ buffers/cache:     156736    3190216
Swap:      2927864          0    2927864
success.
/usr/lib/pm-utils/sleep.d/00powersave suspend suspend:success.
/etc/pm/sleep.d/10_grub-common suspend suspend:success.
/etc/pm/sleep.d/10_unattended-upgrades-hibernate suspend suspend:success.
/usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/75modules suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/90clock suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend:success.
/usr/lib/pm-utils/sleep.d/95led suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend:success.
/etc/pm/sleep.d/99lirc-resume suspend suspend: * Stopping remote control daemon(s): LIRC
   ...done.
success.
/usr/lib/pm-utils/sleep.d/99video suspend suspend:kernel.acpi_video_flags = 0
success.
/etc/pm/sleep.d/action_wpa suspend suspend:success.
Sat Sep 17 16:10:38 CDT 2011: performing suspend
Sat Sep 17 16:10:38 CDT 2011: Awake.
Sat Sep 17 16:10:38 CDT 2011: Running hooks for resume
/etc/pm/sleep.d/action_wpa resume suspend:success.
/usr/lib/pm-utils/sleep.d/99video resume suspend:success.
/etc/pm/sleep.d/99lirc-resume resume suspend: * Loading LIRC modules
   ...done.
* Starting remote control daemon(s) : LIRC
   ...done.
success.
/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler resume suspend:success.
/usr/lib/pm-utils/sleep.d/95led resume suspend:not applicable.
/usr/lib/pm-utils/sleep.d/94cpufreq resume suspend:success.
/usr/lib/pm-utils/sleep.d/90clock resume suspend:not applicable.
/usr/lib/pm-utils/sleep.d/75modules resume suspend:success.
/usr/lib/pm-utils/sleep.d/55NetworkManager resume suspend:not applicable.
/usr/lib/pm-utils/sleep.d/49bluetooth resume suspend:not applicable.
/etc/pm/sleep.d/10_unattended-upgrades-hibernate resume suspend:success.
/etc/pm/sleep.d/10_grub-common resume suspend:success.
/usr/lib/pm-utils/sleep.d/00powersave resume suspend:success.
/usr/lib/pm-utils/sleep.d/00logging resume suspend:success.
/usr/lib/pm-utils/sleep.d/000kernel-change resume suspend:success.
Sat Sep 17 16:10:38 CDT 2011: Finished.

Any ideas on the cause of this or possible solution?

Thanks,
Reply
#2
On a hunch I installed Ubuntu 11.04 to this box. Sure enough, pm-suspend now works perfectly. A couple of quick echo's to the /proc/acpi/wakeup and I'm able to resume from my usb keyboard as well.

Now how do I get xbmc Dharma onto this setup? I've had nothing but trouble with the pre-eden nightlies on another build I've been working on ( http://forum.xbmc.org/showthread.php?tid=108860 ) so I'd really like to stick with the stable release for now. What's the easiest way to get Dharma on Natty?

Edit: I should mention that it's the 11/04 minimal install, so just command line, no desktop - if that makes a difference.

Thanks
Reply
#3
I've been working through this, and I think I've almost got it.

Steps I took:

- took the script from this site: http://www.n00bsonubuntu.net/content/sim...y-narwhal/ and added the repo, but didn't actually do the xbmc install from this script

- installed xbmc-live

- installed upower, acpi-support, nvidia-current, xinit, libvdpau-dev, lirc, alsa-utils

- followed allanw's instructions (http://forum.xbmc.org/showthread.php?tid=96669) for getting xbmc to suspend : "wget http://paste.kde.org/94699/raw/ -O /etc/polkit-1/localauthority/50-local.d/xbmc_rule.pkla"

- I also used allanw's instructions to "sudo wget http://paste.kde.org/7159/raw/ -O /etc/udev/rules.d/90-mcewakeup.rules" and then modify this file to match my lsusb output

- did the cat /proc/acpi/wakeup routine to identify the USB devices. echo'd to rc.local to enable resume from USB.

Everything seems to be working so far - even suspend/resume!

edit: - had to install udisks to ensure that an inserted usb drive would auto-mount
Reply
#4
rbrohman Wrote:- installed xbmc-live
When installing from the repos, is "xbmc-live" a different install or package than normal "xbmc"?

After I added the team-xbmc repos, I believe that I just did "apt-get install xbmc". Is there an advantage to xbmc-live that I should have taken into account?
Reply
#5
Are you in a minimal or desktop ubuntu environment? Does xbmc auto-start for you when you boot up your PC?

If I'm not mistaken, the xbmc-live package rolls all of the stuff required to run xbmc "on it's own", automatically - without the need to manually configure the x-server settings or create an auto-start script, etc.

So for me, I did the "sudo apt-get install xbmc-live", and from then on when I reboot my PC, xbmc starts right away, with no user input required.
Reply

Logout Mark Read Team Forum Stats Members Help
suspend/shutdown not working, neither is pm-suspend0