coming out of suspend and xbmc is no longer ~ somtimes
#1
I am using the VDPAU version of xbmc and my suspend mode works. but sometimes when i come out of suspend, my xbmc is no longer running? I do not see any core files so how can I tell why it is not there on restart?

here is the copy of my /var/log/pm-suspend.log
Code:
Initial commandline parameters:
Wed Mar 11 20:23:44 CDT 2009: Running hooks for suspend.
/usr/lib/pm-utils/sleep.d/00clear suspend: success.
/usr/lib/pm-utils/sleep.d/05led suspend: not applicable.
/usr/lib/pm-utils/sleep.d/10NetworkManager suspend: success.
/usr/lib/pm-utils/sleep.d/48hid2hci suspend: not applicable.
/usr/lib/pm-utils/sleep.d/49bluetooth suspend: not applicable.
/usr/lib/pm-utils/sleep.d/50modules suspend: success.
/usr/lib/pm-utils/sleep.d/90clock suspend: success.
/usr/lib/pm-utils/sleep.d/94cpufreq suspend: success.
/usr/lib/pm-utils/sleep.d/95anacron suspend: success.
/usr/lib/pm-utils/sleep.d/95led suspend: not applicable.
/usr/lib/pm-utils/sleep.d/96laptop-mode suspend: success.
/usr/lib/pm-utils/sleep.d/98smart-kernel-video suspend: success.
/usr/lib/pm-utils/sleep.d/99video suspend: success.
Wed Mar 11 20:23:46 CDT 2009: performing suspend
Thu Mar 12 19:33:39 CDT 2009: Awake.
Thu Mar 12 19:33:39 CDT 2009: Running hooks for resume
/usr/lib/pm-utils/sleep.d/99video resume: success.
/usr/lib/pm-utils/sleep.d/98smart-kernel-video resume: success.
/usr/lib/pm-utils/sleep.d/96laptop-mode resume: success.
/usr/lib/pm-utils/sleep.d/95led resume: not applicable.
/usr/lib/pm-utils/sleep.d/95anacron resume: success.
/usr/lib/pm-utils/sleep.d/94cpufreq resume: success.
/usr/lib/pm-utils/sleep.d/90clock resume: success.
/usr/lib/pm-utils/sleep.d/50modules resume: success.
/usr/lib/pm-utils/sleep.d/49bluetooth resume: not applicable.
/usr/lib/pm-utils/sleep.d/48hid2hci resume: No devices in HID mode found
Returned exit code 1.
/usr/lib/pm-utils/sleep.d/10NetworkManager resume: success.
/usr/lib/pm-utils/sleep.d/05led resume: not applicable.
/usr/lib/pm-utils/sleep.d/00clear resume: success.
Thu Mar 12 19:33:39 CDT 2009: Finished.

Is there any other logs I can check into?
Motherboard P5N7A-VM, E8400 C2D 3.0 processor. NVIDIA 9300 graphics card. OpenELEC Stable - Generic x86_64 Version:3.2.4
Reply
#2
dbldown768 Wrote:I am using the VDPAU version of xbmc and my suspend mode works. but sometimes when i come out of suspend, my xbmc is no longer running? I do not see any core files so how can I tell why it is not there on restart?

here is the copy of my /var/log/pm-suspend.log
Code:
Initial commandline parameters:
Wed Mar 11 20:23:44 CDT 2009: Running hooks for suspend.
/usr/lib/pm-utils/sleep.d/00clear suspend: success.
/usr/lib/pm-utils/sleep.d/05led suspend: not applicable.
/usr/lib/pm-utils/sleep.d/10NetworkManager suspend: success.
/usr/lib/pm-utils/sleep.d/48hid2hci suspend: not applicable.
/usr/lib/pm-utils/sleep.d/49bluetooth suspend: not applicable.
/usr/lib/pm-utils/sleep.d/50modules suspend: success.
/usr/lib/pm-utils/sleep.d/90clock suspend: success.
/usr/lib/pm-utils/sleep.d/94cpufreq suspend: success.
/usr/lib/pm-utils/sleep.d/95anacron suspend: success.
/usr/lib/pm-utils/sleep.d/95led suspend: not applicable.
/usr/lib/pm-utils/sleep.d/96laptop-mode suspend: success.
/usr/lib/pm-utils/sleep.d/98smart-kernel-video suspend: success.
/usr/lib/pm-utils/sleep.d/99video suspend: success.
Wed Mar 11 20:23:46 CDT 2009: performing suspend
Thu Mar 12 19:33:39 CDT 2009: Awake.
Thu Mar 12 19:33:39 CDT 2009: Running hooks for resume
/usr/lib/pm-utils/sleep.d/99video resume: success.
/usr/lib/pm-utils/sleep.d/98smart-kernel-video resume: success.
/usr/lib/pm-utils/sleep.d/96laptop-mode resume: success.
/usr/lib/pm-utils/sleep.d/95led resume: not applicable.
/usr/lib/pm-utils/sleep.d/95anacron resume: success.
/usr/lib/pm-utils/sleep.d/94cpufreq resume: success.
/usr/lib/pm-utils/sleep.d/90clock resume: success.
/usr/lib/pm-utils/sleep.d/50modules resume: success.
/usr/lib/pm-utils/sleep.d/49bluetooth resume: not applicable.
/usr/lib/pm-utils/sleep.d/48hid2hci resume: No devices in HID mode found
Returned exit code 1.
/usr/lib/pm-utils/sleep.d/10NetworkManager resume: success.
/usr/lib/pm-utils/sleep.d/05led resume: not applicable.
/usr/lib/pm-utils/sleep.d/00clear resume: success.
Thu Mar 12 19:33:39 CDT 2009: Finished.

Is there any other logs I can check into?

Actually it seems that suspend/ resume cycle only works once per reboot for me now, with the same mobo. It is not related the the vdpau branch, same on all.

After one successful suspend, then resume, secondly there is two symphtom:
1. suspend starts, but not totally completed. No picture, no network, everything freezed, and only a PSU turn off/on helps. (reset, or the power button is not enough).
2. suspend seems completed according the the pm-utils.log, but resuming immedietly

I think it's not something to do with xbmc, but with ubuntu.
Does your experiences similar?
Reply
#3
actually, i haven't really noticed any problems with not being able to suspend and resume by itself with ubuntu. I however, did not install any update from ubuntu. When I created the machine, I just used my Intrepid disc and followed your installation Smile

Everything was working up until recent. I did not really change much that I am aware of that would have cause this problem on resume. Not knowing a whole lot about ubuntu, I am rather limited to knowing which logs may output some information to help me (us) in this problem.

For this, as well as other reasons, is why I added a button on my remote to start XBMC through irexec. I just wish I didn't need to have to do that. The only changes to my XBMC recently was I added a few video plugins and the old aeon skin - other than that everything was the same. Maybe it depends on what screen you suspend from? I normally power down from the home screen on the mediaStream skin.
Motherboard P5N7A-VM, E8400 C2D 3.0 processor. NVIDIA 9300 graphics card. OpenELEC Stable - Generic x86_64 Version:3.2.4
Reply
#4
Same here, sometimes suspend not wakeup properly... Possibly Ubuntu issue
Reply
#5
olympia Wrote:2. suspend seems completed according the the pm-utils.log, but resuming immedietly
mybe this topic help
http://forum.xbmc.org/showthread.php?tid=45795
Reply
#6
I found the reason.

Believe it or not, the trick is the keyboard.

If keyboard is not connected, suspend/ resume works only once.
When keyboard is connected, it is successfully manage to handle more suspend/ resume cycle.

I hate this kind of bugs... Angry
Reply
#7
hmm...my keyboard is connected. Its not a USB keyboard but the old style. This must be why my suspend works, but doesnt explain why my xbmc sometimes is no longer active after startup.
Motherboard P5N7A-VM, E8400 C2D 3.0 processor. NVIDIA 9300 graphics card. OpenELEC Stable - Generic x86_64 Version:3.2.4
Reply
#8
lol my keyboard also not connected. hmmm then this is xorg bug. Mybe nokeyboard option work?
Reply
#9
olympia Wrote:I found the reason.

Believe it or not, the trick is the keyboard.

If keyboard is not connected, suspend/ resume works only once.
When keyboard is connected, it is successfully manage to handle more suspend/ resume cycle.

I hate this kind of bugs... Angry

I'm not sure if that's true. I have a microsoft usb keyboard connected and I can only suspend/resume once per reboot.

My setup:
Imon Inside IR-receiver
Asus p5n7a-vm
Intel E7400
4GB PC 64000
Compucase 7K09 Chassi with 250W
Cruzer 4GB Usb memory (Intrepid installed on it)

I have followed your walkthrough, so our setups must be pretty similiar.
Reply
#10
Snixten Wrote:I'm not sure if that's true. I have a microsoft usb keyboard connected and I can only suspend/resume once per reboot.

My setup:
Imon Inside IR-receiver
Asus p5n7a-vm
Intel E7400
4GB PC 64000
Compucase 7K09 Chassi with 250W
Cruzer 4GB Usb memory (Intrepid installed on it)

I have followed your walkthrough, so our setups must be pretty similiar.

pffff, dunno.
Did you set the suspend mode to S3 only (instead of automatic) in the bios?
And you have a different IR-receiver, unfortunatelly this can be also a potential cause of the problem.

I just mentioned, that besides other things, having a keyboard connected is also seems neccessary. Of course it is also possible, that in an other setup (not especially yours), it is not neccessary.
Reply
#11
My problem suddenly (nothing changed) came back, so the keyboard trick is not working any longer... Sad

The system is only able suspend/ resume per per reboot. It is done successfuly, but when I try to suspend second time, suspend is not completing.
Display off, network off, fans stay on, system is not responsible. Reset and/or power button also not working, I have to unplug/replug the power (PSU) to be able to turn on the PC again.

That is really, really sucks Sad

If I unload ohci_hcd during suspend by include SUSPEND_MODULES="ohci_hcd" to /etc/pm/config.d/modules, then it works perfectly. ohci_hcd is the module for USB1.1, if I am correct.

But in this case:
1. I cannot wake up the PC with a remote or an usb keyboard
2. If MCE remote is connected and LIRCD is running, than LIRC cannot restart during resume and the whole system is crashing.

Does anyone have a suggestion/ solution for this?

Thanks!
Reply
#12
I can add my $0.02 to this thread.

I've been fighting suspending my xbmc setup while keeping xbmc and Xorg running for several hours, to no avail. I had two problems, after resume lirc would not work because the mceusb2 driver suddenly attached itself to /dev/lirc1 instead of /dev/lirc0, but far worse was the fact that after the 2nd resume I'd get graphic corruption.

So I resorted to dropping GDM and using startx to only start XBMC. Then I disabled XBMCs access to DBUS/HAL so it isn't capable of actually triggering reboot/shutdown/hibernate/suspend.

Then I made some changes to runXBMC.sh so that it starts hibernate-ram if xbmc (and with it, Xorg) quits. I do check for a core dump; if there's a crash I just restart XBMC. So hibernation actually happens without X running; I stop lirc before suspend and start lirc + xbmc at resume.

This works, with the side effect that you can only actually shut down the box by pushing the powerbutton.

All this on an Asus P5QL-EM with an intel G43 chipset (latest git master drivers etc). It's too early to use this board in a sane matter, I do not recommend anyone to use it unless you're familiar with building just about everything from source.
Reply
#13
I am a n00b with linux, I don't even run XBMC on it, but I have a 8.04 running on one laptop. I am using it to browse the internet from time to time. On this laptop, I can successfully standby/resume only once per reboot. So the issue is not related to XBMC ...
Reply
#14
I have never experienced a problem actually putting my computer to sleep. I have noticed that sometime now when after coming out of sleep i am at the GDM desktop instead of still in XBMC. Just recently I tried using the PM3.HD skin. This skin seemed to not give me any problems with sleep / restore. Other skins, such as mediaStream, mediaStream Mod, and Aeon Stark 0.9 seem to somehow keep from XBMC staying running after restoreHuh
Motherboard P5N7A-VM, E8400 C2D 3.0 processor. NVIDIA 9300 graphics card. OpenELEC Stable - Generic x86_64 Version:3.2.4
Reply
#15
infernix do you have the config file that you used for this?

I am having similar problems and would really like for xbmc to be restarted on every suspend.
Reply

Logout Mark Read Team Forum Stats Members Help
coming out of suspend and xbmc is no longer ~ somtimes0