Cannot shutdown from within XBMC
#1
Hi everyone, and thanks for all the help I've already gotten from theses boards. I'm having a problem shutting down my Revo AR1600 from within XBMC. I've searched the forums and only saw people having problems with suspend. I, on the other hand, just want to shutdown. I installed XBMC Live 9.11 to the clean formatted hard drive, and have made only minor modifications:
1. Set a static IP
2. exit XBMC, startx and installed firefox and flash so I can browse the web ocassionally.
3. Installed X11 VNC (version 0.9.3) to ocassionally access the box's GUI from my main computer while researching helpful sites like this one.
4. Installed Aeon Skins using This Guide (http://forum.xbmc.org/showthread.php?tid=49958)
5. run sudo aptitude update, upgrade, and install regularly (every two days or so)

I'm entirely new to linux and just started this project in early December. I've feel I've learned a lot since then (installed and tweaked several different times and ways including full ubuntu with gnome) but I'm obviously still barely scratching the surface. Any help anyone could provide would be greatly appreciated. Thanks again for all the help the members of this forum have already provided.

Info requested in the " HOW-TO post about a problem in a useful manner" below:

1. XBMC version: XBMC 9.11 R26018
2. Linux 2.6.31-16-generic #53-Ubuntu [(From System Info Screen)(Karmic)]
3. Architecture: i686
4. Installed from USB-BOOT XBMC-Live 9.11
5. SVN: R26018
6. When I go to "Shutdown" or press "Power" on remote, XBMC instead exits to a terminal login screen. I have to login then "sudo shutdown -h now".
7. Debug Log: http://pastebin.com/m472900ca
Reply
#2
You have the shutdown function set to quit in system > power saving under settings?
Reply
#3
The shutdown functions I see available are: ?0? and ?-1?. I don't know what these mean, but I've tried both of them and I get the same result.
Reply
#4
Same problem here - although the shutdown feature was working fine until I decided to "apt-get install firefox" after that "reboot" or "shutdown" will terminate into the login screen where I have to use the manual byebye "shutdown -h now" (e.g.).

So I think it's kind of related to some sort of package from the "firefox" install. Since I am by no means a XBMC developer I'm not able to tell which kind of functions / ... are being used to initiate said "shutdown" and "reboot" features of Linux.

Anyone? Thanks a lot!
Reply
#5
moonwhaler Wrote:Same problem here - although the shutdown feature was working fine until I decided to "apt-get install firefox" after that "reboot" or "shutdown" will terminate into the login screen where I have to use the manual byebye "shutdown -h now" (e.g.).

So I think it's kind of related to some sort of package from the "firefox" install. Since I am by no means a XBMC developer I'm not able to tell which kind of functions / ... are being used to initiate said "shutdown" and "reboot" features of Linux.

Anyone? Thanks a lot!

Yes. I hit this yesterday as well. Wanted to run Firefox in kiosk mode but saw I couldn't shutdown from XBMC anymore. Defiantly a depend that does this because after I removed Firefox and all the cruft things went back to normal.

I'm gonna grab the official binary and try that to see how things go.

BTW, what does your ~/.xsession look like? Smile

Code:
nvidia-settings -l &
xbmc --standalone &
exec x11vnc --forever
Reply
#6
I have had this problem since beta1. Only way I was able to get shutdown etc working was by reinstalling.

This problem seems to be releated to the following repeated line in my xbmc log here

ERROR: DBus: Error org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.DeviceKit.Power was not provided by any .service files

I also run this is a terminal
PHP Code:
xbmc@XBMCLive:~$ dbus-send --print-reply \
>             --
system \
>             --
dest=org.freedesktop.DeviceKit.Power \
>             /
org/freedesktop/DeviceKit/Power \
>             
org.freedesktop.DeviceKit.Power.EnumerateDevices
Error org
.freedesktop.DBus.Error.ServiceUnknownThe name org.freedesktop.Device 
Kit
.Power was not provided by any .service files 

For me I would get this problem if I compiled and installed alsa and also if I installed Nvidia drivers using "NVIDIA-Linux-x86-190.53-pkg1.run"
Reply
#7
Standard .xsession I suppose:
Code:
#!/bin/bash
/usr/bin/xbmc --standalone
case "$?" in
    0 ) # Quit
        touch /tmp/noRestartXBMC
        break ;;
    64 ) # Shutdown System
        sleep 10 ;;
    65 ) # Warm Reboot
        echo Restarting XBMC ... ;;
    66 ) # Reboot System
        sleep 10 ;;
     * ) ;;
esac

Using a freshly installed (onto harddrive) Camelot from Live-USB stick. Nothing more.
Reply
#8
My .xsession is already that so I don't think that's the problem.
Reply
#9
Same problem here. Installed firefox yesterday, now the power button just closes XBMC instead of powering down.
Reply
#10
Okay. Reverted back to "after LIVE Camelot install". Entered "sudo apt-get install firefox" which gave me:

Code:
The following extra packages will be installed:
  apt-xapian-index apturl apturl-common dbus-x11 devicekit-disks
  dictionaries-common docbook-xml esound-clients esound-common firefox-3.5
  firefox-3.5-branding gamin gconf2 gconf2-common ghostscript gksu
  gnome-icon-theme gnome-keyring gnome-mime-data gsfonts gvfs gvfs-backends
  hicolor-icon-theme hunspell-en-us launchpad-integration libarchive1
  libart-2.0-2 libatasmart4 libatk1.0-0 libatk1.0-data libaudiofile0
  libavahi-glib1 libbonobo2-0 libbonobo2-common libbonoboui2-0
  libbonoboui2-common libcairo-perl libcairo2 libcanberra0 libcdio-cdda0
  libcdio-paranoia0 libcroco3 libcups2 libcupsimage2 libdatrie1
  libdjvulibre-text libdjvulibre21 libesd-alsa0 libexif12 libffi5
  libgail-common libgail18 libgamin0 libgconf2-4 libgcr0 libgd2-noxpm libgdu0
  libgksu2-0 libglade2-0 libglib-perl libgnome-keyring0 libgnome2-0
  libgnome2-canvas-perl libgnome2-common libgnome2-perl libgnome2-vfs-perl
  libgnomecanvas2-0 libgnomecanvas2-common libgnomeui-0 libgnomeui-common
  libgnomevfs2-0 libgnomevfs2-common libgnomevfs2-extra libgp11-0 libgphoto2-2
  libgphoto2-port0 libgraphviz4 libgs8 libgsf-1-114 libgsf-1-common
  libgtk2-perl libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libgtkhtml2-0
  libgtop2-7 libgtop2-common libgudev-1.0-0 libgvfscommon0 libhunspell-1.2-0
  libidl0 libilmbase6 liblaunchpad-integration1 libltdl7 libmagickcore2
  libmagickwand2 libnspr4-0d libnss3-1d libopenexr6 libopenobex1 liborbit2
  libpam-gnome-keyring libpango-perl libpango1.0-0 libpango1.0-common
  libpaper-utils libpaper1 libparted1.8-12 libpolkit-agent-1-0
  libpolkit-backend-1-0 libproxy0 librarian0 librsvg2-2 librsvg2-common
  libsgutils2-2 libsoup-gnome2.4-1 libsoup2.4-1 libstartup-notification0
  libtdb1 libthai-data libthai0 libvte-common libvte9 libwmf0.2-7 libxcb-atom1
  libxcb-aux0 libxcb-event1 libxcb-render-util0 libxcb-render0 libxcomposite1
  obex-data-server policykit-1 policykit-1-gnome psfontmgr python-cairo
  python-dbus python-debian python-glade2 python-gnupginterface python-gobject
  python-gtk2 python-gtkhtml2 python-software-properties python-vte
  python-xapian rarian-compat sgml-data software-properties-gtk synaptic
  ubufox unattended-upgrades xulrunner-1.9.1
Suggested packages:
  ispell jed-extra docbook docbook-dsssl docbook-xsl docbook-defguide
  firefox-3.5-gnome-support latex-xft-fonts gconf-defaults-service
  ghostscript-cups ghostscript-x hpijs hunspell openoffice.org-hunspell
  openoffice.org-core konqueror libbonobo2-bin libcanberra-gtk0
  libcanberra-pulse cups-common esound libgd-tools desktop-base
  libgnomevfs2-bin gphoto2 gtkam libgtk2-perl-doc ttf-japanese-gothic
  ttf-japanese-mincho ttf-thryomanes ttf-baekmuk ttf-arphic-gbsn00lp
  ttf-arphic-bsmi00lp ttf-arphic-gkai00mp ttf-arphic-bkai00mp parted nparted
  libparted1.8-dev libparted1.8-i18n librsvg2-bin sg3-utils libwmf0.2-7-gtk
  python-dbus-doc python-dbus-dbg python-gtk2-doc python-gobject-dbg
  python-numpy xapian-doc perlsgml doc-html-w3 opensp libxml2-utils dwww
  deborphan mailx
The following NEW packages will be installed:
  apt-xapian-index apturl apturl-common dbus-x11 devicekit-disks
  dictionaries-common docbook-xml esound-clients esound-common firefox
  firefox-3.5 firefox-3.5-branding gamin gconf2 gconf2-common ghostscript gksu
  gnome-icon-theme gnome-keyring gnome-mime-data gsfonts gvfs gvfs-backends
  hicolor-icon-theme hunspell-en-us launchpad-integration libarchive1
  libart-2.0-2 libatasmart4 libatk1.0-0 libatk1.0-data libaudiofile0
  libavahi-glib1 libbonobo2-0 libbonobo2-common libbonoboui2-0
  libbonoboui2-common libcairo-perl libcairo2 libcanberra0 libcdio-cdda0
  libcdio-paranoia0 libcroco3 libcups2 libcupsimage2 libdatrie1
  libdjvulibre-text libdjvulibre21 libesd-alsa0 libexif12 libffi5
  libgail-common libgail18 libgamin0 libgconf2-4 libgcr0 libgd2-noxpm libgdu0
  libgksu2-0 libglade2-0 libglib-perl libgnome-keyring0 libgnome2-0
  libgnome2-canvas-perl libgnome2-common libgnome2-perl libgnome2-vfs-perl
  libgnomecanvas2-0 libgnomecanvas2-common libgnomeui-0 libgnomeui-common
  libgnomevfs2-0 libgnomevfs2-common libgnomevfs2-extra libgp11-0 libgphoto2-2
  libgphoto2-port0 libgraphviz4 libgs8 libgsf-1-114 libgsf-1-common
  libgtk2-perl libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libgtkhtml2-0
  libgtop2-7 libgtop2-common libgudev-1.0-0 libgvfscommon0 libhunspell-1.2-0
  libidl0 libilmbase6 liblaunchpad-integration1 libltdl7 libmagickcore2
  libmagickwand2 libnspr4-0d libnss3-1d libopenexr6 libopenobex1 liborbit2
  libpam-gnome-keyring libpango-perl libpango1.0-0 libpango1.0-common
  libpaper-utils libpaper1 libparted1.8-12 libpolkit-agent-1-0
  libpolkit-backend-1-0 libproxy0 librarian0 librsvg2-2 librsvg2-common
  libsgutils2-2 libsoup-gnome2.4-1 libsoup2.4-1 libstartup-notification0
  libtdb1 libthai-data libthai0 libvte-common libvte9 libwmf0.2-7 libxcb-atom1
  libxcb-aux0 libxcb-event1 libxcb-render-util0 libxcb-render0 libxcomposite1
  obex-data-server policykit-1 policykit-1-gnome psfontmgr python-cairo
  python-dbus python-debian python-glade2 python-gnupginterface python-gobject
  python-gtk2 python-gtkhtml2 python-software-properties python-vte
  python-xapian rarian-compat sgml-data software-properties-gtk synaptic
  ubufox unattended-upgrades xulrunner-1.9.1

It's A LOT (!), but does somebody (maybe a developer) know which (package) may confuse XBMC/X11?
Reply
#11
Damn, same issue here. None of the commands under the POWER icon work, these include:
Shudown, Reboot, Suspend... they all go to the command shell and suspend does nothing anymore.

All were fine before Firefox 3.5 install... arrghhhh

How do we fix these?
Reply
#12
moonwhaler Wrote:It's A LOT (!), but does somebody (maybe a developer) know which (package) may confuse XBMC/X11?

Well the thing is, that's the depends. You have to take them. Other way to go is to grab the one from Mozilla and make sure you have theproper libraries installed to run the binary. The depends from Ubuntu will be more that what's actually needed to run. (they have extra stuff to cover all the bases)
Reply
#13
Kinda similar issue for me..

I had wrapper script looking for 'To XBMC.ShutDown()' in the xbmc.log to trigger /sbin/poweroff. So that it will power-off on "shutdown", but not on "exit". Stopped working recently.. not sure if it is related to firefox 3.5 update or xbmc or if i inadvertently changed any log settings

Also, xbmc takes a long time to quit, following is the last line that get logged.

Code:
ERROR: DBus: Error org.freedesktop.DBus.Error.NoReply - Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Reply
#14
My personal experience is the same..
I have XBMC Live 9.11 Final, I just installed Firefox and flash plugin via apt-get and now I can't power off my ASRock Ion PC via remote like before.
I obtain a login display..
Reply
#15
Bump...

Same issue for me too. Had to install to get it back working properly
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Cannot shutdown from within XBMC00