Solved Waking up doesn't work when XBMC is running
#1
I am trying to set up my HTPC with Lubuntu 13.10 and everything else is working except trying to wake up the system from suspend. Everything works perfectly when XBMC is not running but when suspending/waking up from within XBMC the xorg server crashes. I have tried several xorg/nouveau combinations but nothing seems to help. Any help would be appreciated as I would not want to go back to using Windows.

Here's the error from xorg.log:

Code:
[  2274.880] nouveau_exa_upload_to_screen:384 - falling back to memcpy ignores tiling
[  2274.892] nouveau_exa_download_from_screen:299 - falling back to memcpy ignores tiling
[  2274.892] (EE)
[  2274.892] (EE) Backtrace:
[  2274.892] (EE) 0: /usr/bin/X (xorg_backtrace+0x49) [0xb76ddfc9]
[  2274.892] (EE) 1: /usr/bin/X (0xb753d000+0x1a4d34) [0xb76e1d34]
[  2274.892] (EE) 2: (vdso) (__kernel_rt_sigreturn+0x0) [0xb751a40c]
[  2274.892] (EE) 3: /lib/i386-linux-gnu/libc.so.6 (0xb710a000+0x138770) [0xb7242770]
[  2274.892] (EE) 4: /usr/lib/xorg/modules/libexa.so (0xb6bcd000+0x4bbc) [0xb6bd1bbc]
[  2274.892] (EE) 5: /usr/lib/xorg/modules/libexa.so (0xb6bcd000+0x50e6) [0xb6bd20e6]
[  2274.892] (EE) 6: /usr/lib/xorg/modules/libexa.so (0xb6bcd000+0x5318) [0xb6bd2318]
[  2274.892] (EE) 7: /usr/lib/xorg/modules/libexa.so (0xb6bcd000+0x7847) [0xb6bd4847]
[  2274.892] (EE) 8: /usr/lib/xorg/modules/libexa.so (0xb6bcd000+0x3fee) [0xb6bd0fee]
[  2274.892] (EE) 9: /usr/lib/xorg/modules/libexa.so (0xb6bcd000+0x103c4) [0xb6bdd3c4]
[  2274.892] (EE) 10: /usr/lib/xorg/modules/libexa.so (0xb6bcd000+0x7ede) [0xb6bd4ede]
[  2274.892] (EE) 11: /usr/bin/X (0xb753d000+0x127538) [0xb7664538]
[  2274.892] (EE) 12: /usr/bin/X (0xb753d000+0xdfb07) [0xb761cb07]
[  2274.892] (EE) 13: /usr/bin/X (0xb753d000+0xe0a27) [0xb761da27]
[  2274.892] (EE) 14: /usr/bin/X (0xb753d000+0x3c5fd) [0xb75795fd]
[  2274.893] (EE) 15: /usr/bin/X (0xb753d000+0x2a69a) [0xb756769a]
[  2274.893] (EE) 16: /lib/i386-linux-gnu/libc.so.6 (__libc_start_main+0xf5) [0xb7123905]
[  2274.893] (EE) 17: /usr/bin/X (0xb753d000+0x2aa78) [0xb7567a78]
[  2274.893] (EE)
[  2274.893] (EE) Segmentation fault at address 0x0
[  2274.893] (EE)
Fatal server error:
[  2274.893] (EE) Caught signal 11 (Segmentation fault). Server aborting
[  2274.893] (EE)
[  2274.893] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
for help.
[  2274.893] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  2274.893] (EE)
[  2274.893] (II) AIGLX: Suspending AIGLX clients for VT switch
[  2274.893] (II) NOUVEAU(0): NVLeaveVT is called.
[  2276.912] (EE) Server terminated with error (1). Closing log file.

xorg log

pm-suspend.log

dmesg
Reply
#2
Have you added a policikit configuration to allow the user running xbmc to do these things?

https://raw.github.com/uNiversaI/xbmc-mi...tions.pkla

These things are required if not installed already do it.
Code:
sudo apt-get install policykit-1 upower udisks acpi-support -y

Assuming the user running xbmc is also name xbmc

Code:
wget -q https://raw.github.com/uNiversaI/xbmc-ubuntu-minimal/master/12.04/download/custom-actions.pkla -O /etc/polkit-1/localauthority/50-local.d/custom-actions.pkla

## "Add xbmc user to required groups"
Code:
sudo usermod --group sudo,cdrom,audio,video,plugdev,fuse xbmc
Reply
#3
You are running the nouveau drivers. Might have better luck with nvidia drivers.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#4
(2014-01-21, 09:51)uNiversal Wrote: Have you added a policikit configuration to allow the user running xbmc to do these things?

https://raw.github.com/uNiversaI/xbmc-mi...tions.pkla

These things are required if not installed already do it.
Code:
sudo apt-get install policykit-1 upower udisks acpi-support -y

Assuming the user running xbmc is also name xbmc

Code:
wget -q https://raw.github.com/uNiversaI/xbmc-ubuntu-minimal/master/12.04/download/custom-actions.pkla -O /etc/polkit-1/localauthority/50-local.d/custom-actions.pkla

## "Add xbmc user to required groups"
Code:
sudo usermod --group sudo,cdrom,audio,video,plugdev,fuse xbmc

These steps didn't work. Apport thinks xbmc is the culprit so I'll have to check those logs as well.

I am not using Nvidia's official drivers as they don't support suspending on my system.
Reply
#5
No its not xbmc and yes nvidia-drivers do work just fine to suspend (does for me), the resume can be awry but thats another matter.

After running those steps and presuming your user running xbmc is indeed named xbmc (or you must alter above instructions and config accordingly), a reboot is required just to load the new settings and then when you go into xbmc and select suspend it should work.

This is likely you havent setup Linux permissions properly for your xbmc user.

can I get a Debug log (wiki)
Reply
#6
(2014-01-21, 11:20)uNiversal Wrote: No its not xbmc and yes nvidia-drivers do work just fine to suspend (does for me), the resume can be awry but thats another matter.

After running those steps and presuming your user running xbmc is indeed named xbmc (or you must alter above instructions and config accordingly), a reboot is required just to load the new settings and then when you go into xbmc and select suspend it should work.

This is likely you havent setup Linux permissions properly for your xbmc user.

can I get a Debug log (wiki)

I did restart the system after changing the settings and really I haven't been able to suspend the system when using Nvidia's own drivers but I'll try them again.

Here's the xbmc.log:

http://pastebin.com/uc9ftSKJ
Reply
#7
I see you pressing the remote button to send it to sleep but I dont see the messages that indicate if you are using upower.

The good news is that indeed the user running xbmc is also named xbmc so the above instructions should work presuming of course you have executed them properly and didnt error out somewhere.
Reply
#8
I got it working with the official Nvidia drivers! This time though I didn't use the ones from the repos but rolled my own. Thanks a lot!

And now it is time to reproduce everything again and install it to SSD...
Reply
#9
Good, mark thread as solved, then.
Reply

Logout Mark Read Team Forum Stats Members Help
Waking up doesn't work when XBMC is running0