xbmc's shutdown button doesn't
#1
Hi folks,

Problem: The OSD shutdown, hibernate and reboot buttons don't work since 9.11. AFAICS it is not related to the
"echo USB0>/proc/acpi/wakeup" discussed in other threads.

Long story:
I am starting xbmc at boot time using an entry in /etc/inittab:
Code:
6:2:respawn:/sbin/mingetty --autologin xbmc tty6
This entry autimatically logs in user "xbmc" in init state 2 (the default on my PC). Xbmc's .profile says:
Code:
if [ "`tty`" = "/dev/tty6" ]; then
        startx="/usr/bin/xbmc --standalone"
        test -x /usr/bin/dbus-launch && startx="/usr/bin/dbus-launch --exit-with-session $startx"
        startx="xinit $startx -- :6 -br -quiet"
        exec $startx >& ${HOME}/.xinitrc.log
fi
xbmc starts fine at boot time. Next I have given the xbmc user the right to shutdown, hibernate and restart the PC using
Code:
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.suspend
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.hibernate
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.reboot
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.shutdown
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.reboot-multiple-sessions
polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.shutdown-multiple-sessions
AFAIK this is supposed to make the OSD shutdown, reboot and hibernate buttons work.

This whole stuff worked fine for old xbmc releases, but for 9.11 beta and newer it doesn't. If I click on shutdown then it just terminates xbmc, and init starts another session. The log file says
Quote:CRITSEC[0x10fb0e8]: Trying to enter destroyed section.
CRITSEC[0x10fb0e8]: Trying to leave destroyed section.

waiting for X server to shut down

This is the Karmic PPA version rebuilt for Squeeze.

Any helpful comment would be highly appreciated.


Regards

Harri
Reply
#2
PS: Below you can find the last few lines of the debug output. Hope this helps.
Quote:22:26:00 T:139802248239168 M:1700220928 DEBUG: ExecuteXBMCAction : Translating XBMC.Shutdown()
22:26:00 T:139802248239168 M:1700220928 DEBUG: ExecuteXBMCAction : To XBMC.Shutdown()
22:26:00 T:139801739106576 M:1700220928 DEBUG: Thread 139801739106576 terminating (autodelete)
22:26:00 T:139801755891984 M:1700220928 DEBUG: Thread 139801755891984 terminating (autodelete)
22:26:00 T:139801747499280 M:1700220928 DEBUG: Thread 139801747499280 terminating (autodelete)
22:26:00 T:139802248239168 M:1700220928 NOTICE: Storing total System Uptime
22:26:00 T:139802248239168 M:1700220928 NOTICE: Saving settings
22:26:00 T:139802248239168 M:1700220928 NOTICE: stop all
22:26:00 T:139802248239168 M:1700220928 DEBUG: NetworkMessage - Signaling network services to stop
22:26:00 T:139802248239168 M:1700220928 NOTICE: ES: Stopping event server
22:26:00 T:139802248239168 M:1700220928 DEBUG: NetworkMessage - Waiting for network services to stop
22:26:00 T:139802248239168 M:1700220928 NOTICE: stopping zeroconf publishing
22:26:00 T:139802248239168 M:1700220928 DEBUG: CLastfmScrobbler: Journal with 0 entries saved to special://masterprofile/LastfmScrobbler.xml
22:26:00 T:139802248239168 M:1700220928 DEBUG: CLibrefmScrobbler: Journal with 0 entries saved to special://masterprofile/LibrefmScrobbler.xml
22:26:01 T:139801781070096 M:1700220928 NOTICE: ES: UDP Event server stopped
22:26:01 T:139801781070096 M:1700220928 DEBUG: Thread 139801781070096 terminating
22:26:01 T:139801772677392 M:1700220928 NOTICE: DS: DBUS server stopped
22:26:01 T:139801772677392 M:1700220928 DEBUG: Thread 139801772677392 terminating
22:26:01 T:139802248239168 M:1700364288 NOTICE: stop dvd detect media
22:26:01 T:139802248239168 M:1700364288 NOTICE: stop sap announcement listener
22:26:01 T:139802248239168 M:1700364288 NOTICE: clean cached files!
22:26:01 T:139802248239168 M:1700364288 NOTICE: unload skin
22:26:01 T:139802248239168 M:1700364288 DEBUG: CGUIAudioManager:Big GrineInitialize
22:26:01 T:139802248239168 M:1700556800 DEBUG: ------ Window Deinit (Home.xml) ------
22:26:01 T:139802248239168 M:1700556800 DEBUG: ------ Window Deinit (Pointer.xml) ------
22:26:01 T:139802248239168 M:1700556800 DEBUG: ------ Window Deinit (DialogMuteBug.xml) ------
22:26:01 T:139802248239168 M:1700556800 NOTICE: stop python
22:26:01 T:139802248239168 M:1700556800 NOTICE: stopped
22:26:01 T:139802248239168 M:1700556800 NOTICE: destroy
22:26:01 T:139802248239168 M:1700556800 NOTICE: unload sections
22:26:01 T:139802248239168 M:1700556800 DEBUG: SECTION:UnloadAll(DLL: special://xbmc/system/ImageLib-x86_64-linux.so)
22:26:01 T:139802248239168 M:1700556800 DEBUG: Unloading: ImageLib-x86_64-linux.so
22:26:01 T:139802248239168 M:1700556800 DEBUG: SECTION:UnloadAll(DLL: libcurl.so.4)
22:26:01 T:139802248239168 M:1700556800 DEBUG: Unloading: libcurl.so.4
22:26:01 T:139802248239168 M:1700556800 DEBUG: CLastfmScrobbler: Journal with 0 entries saved to special://masterprofile/LastfmScrobbler.xml
22:26:01 T:139802248239168 M:1700556800 DEBUG: CLibrefmScrobbler: Journal with 0 entries saved to special://masterprofile/LibrefmScrobbler.xml
22:26:01 T:139802248239168 M:1700556800 DEBUG: object 0 --> 0 instances
22:26:01 T:139802248239168 M:1700556800 DEBUG: object 1 --> 1 instances
22:26:01 T:139802248239168 M:1700556800 DEBUG: object 2 --> 13 instances
22:26:01 T:139802248239168 M:1700556800 DEBUG: object 3 --> 0 instances
22:26:01 T:139802248239168 M:1700556800 DEBUG: object 4 --> 8 instances
22:26:01 T:139802248239168 M:1700556800 DEBUG: object 5 --> 0 instances
22:26:01 T:139802248239168 M:1700556800 DEBUG: object 6 --> 0 instances
22:26:01 T:139802248239168 M:1700556800 DEBUG: object 7 --> 0 instances
22:26:01 T:139802248239168 M:1700556800 DEBUG: object 8 --> 0 instances
22:26:01 T:139802248239168 M:1700556800 DEBUG: object 9 --> 0 instances
22:26:01 T:139802248239168 M:1700556800 ERROR: DBus: org.freedesktop.DBus.Error.AccessDenied - Rejected send message, 1 matched rules; type="method_call", sender=":1.47" (uid=1001 pid=3448 comm="/usr/share/xbmc/xbmc.bin) interface="org.freedesktop.Hal.Device.SystemPowerManagement" member="Shutdown" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=2335 comm="/usr/sbin/hald))
Reply
#3
PPS: polkit-auth shows the granted privileges:
Quote:# polkit-auth --user xbmc --explicit
org.freedesktop.hal.power-management.suspend
org.freedesktop.hal.power-management.hibernate
org.freedesktop.hal.power-management.reboot
org.freedesktop.hal.power-management.shutdown
org.freedesktop.hal.power-management.reboot-multiple-sessions
org.freedesktop.hal.power-management.shutdown-multiple-sessions
Reply

Logout Mark Read Team Forum Stats Members Help
xbmc's shutdown button doesn't0