Unable to shutdown XBMC with remote
#1
Hi all, currently undertaking my first foray into a dedicated XBMC box. Using a standard XBMC install the one that installs a light version of Ubuntu I guess (also my 1st use of linux)

I've got a problem which was present in both 10.0 and 10.1. When I hit the power button on my MCE remote clone the screen flashes and then nothing, no change, all other functions of the remote work fine, I'm also able to succesfully shut the box down via the physical power button or the shut down in the menu.

When pressing the power off button on the remote the following is generated in the log.

Code:
22:52:47 T:3078317968 M:1980338176   DEBUG: OnKey: 196 pressed, action is XBMC.ShutDown()
22:52:47 T:3078317968 M:1980338176   DEBUG: DBus: Creating message to org.freedesktop.DeviceKit.Power on /org/freedesktop/DeviceKit/Power with interface org.freedesktop.DeviceKit.Power and method Hibernate
22:52:47 T:3078317968 M:1980338176   DEBUG: CAnnouncementManager - Announcement: Hibernate from xbmc
22:52:48 T:3078317968 M:1980338176   DEBUG: CAnnouncementManager - Announcement: Sleep from xbmc
22:52:48 T:3078317968 M:1980338176  NOTICE: OnSleep: Running sleep jobs
22:52:48 T:3078317968 M:1980338176  NOTICE: OnSleep: Stopping lirc
22:52:48 T:3078317968 M:1980342272    INFO: LIRC setUsed: disabled
22:52:48 T:3078317968 M:1980350464  NOTICE: OnWake: Running resume jobs
22:52:48 T:3078317968 M:1980350464   ERROR: GLX: Same window as before, refreshing context
22:52:48 T:3078317968 M:1980350464    INFO: GL: Maximum texture width: 4096
22:52:48 T:3078317968 M:1980350464   ERROR: GLX: Same window as before, refreshing context
22:52:48 T:3078317968 M:1980350464    INFO: GL: Maximum texture width: 4096
22:52:48 T:3078317968 M:1980350464  NOTICE: OnWake: Restarting lirc
22:52:48 T:3078317968 M:1980350464    INFO: LIRC Initialize: using: /dev/lircd
22:52:48 T:3078317968 M:1980350464    INFO: LIRC Initialize: sucessfully started
22:52:48 T:3078317968 M:1980350464  NOTICE: OnWake: Restarting lcd
22:52:48 T:3078317968 M:1980350464   DEBUG: CAnnouncementManager - Announcement: Wake from xbmc

Does anyone have any ideas as to what may be causing the problem?

Many thanks,
Rusteh.
Reply
#2
Hmmm...not that easy to say exactly. I was in exactly the same situation as you are not that long ago. I had to read heaps of posts and try heaps of things before I got it to work. Then after a couple of months, I upgraded and the fixes I used the first time didn't work. So I had to read heaps more posts and try heaps of different things before I got it to work. A lot depends on the kernel version as well.

The last fix I used set the remote setup as a directtv one. Once I'd done that it worked.

Sorry can't be more help. I know how you feel. On an up-side - working through things like this helps you get up to speed using linux.
ZOTAC IONITX-D-E Intel Atom N330 Dual Core 1.6 GHz NVIDIA ION with LIVE on SSD (now updated to Nvidia Shield Pro (P2897)
Reply
#3
Thanks, I've read heaps of different problems but haven't seen the exact one replicated else where. I've just realised that pressing the shutdown button in the menu doesn't actually do anything either, same result as the remote. It can only be shutdown by the physical power switch.
Reply
#4
It is easier if you install from the xbmc live cd.
If not you need to make sure you have enough permissions.

Normally the xbmc-live package would fix this, have you installed xbmc-live
(sudo apt-get install xbmc-live)
Reply
#5
Sorry yes, my terminology might have been incorrect but I have indeed installed XBMC Live on a cleanly formatted drive.
Reply
#6
I had to manually set up my remote's power button just today. It's a little convoluted, but...

1. Enable debug mode. (System > System > debug > enable)
2. Press the power button on your remote.
3. Disable debug mode.

From here on you'll need to be in the console

4. Open ~/.xbmc/temp/xbmc.log and search for
"DEBUG: OnKey: yyyy pressed, action is".
The first one should be when you pressed the power button. Write down that OnKey value
5. copy /usr/share/xbmc/system/keymaps/keyboard.xml to ~/.xbmc/userdata/keymaps/keyboard.xml
6. edit ~/.xbmc/userdata/keymaps/keyboard.xml, thusly (replacing yyyy with the number from OnKey that your wrote down):
Code:
<keymap>
  <global>
    <keyboard>
       ...
       <key id="yyyy">XBMC.ShutDown()</key>
       ...
7. Reboot your machine. Your power button should now trigger a shutdown.
Reply
#7
Thanks but if you take a look at the debug entry I posted in the 1st post it is triggering a shutdown command when I press the power button however for some reason the resume command is triggered at the same time and the seem to cancel each other out.
Reply
#8
Apologies -- I totally missed what was going on.

It looks like you are attempting to go into hibernation mode instead of actually powering off.

If that is desired, then have you tested going into hibernation from the command line (eg /etc/acpi/hibernate.sh ) ? It might be a BIOS compatibility issue...

If hibernation is not desired... I wonder if there is a way to map a key in XBMC to run a console command (poweroff)...
Reply
#9
To make it more clear - what do you want the power button on the remote to actually do?? Powerdown OR Standby? Do you have the correct settings activated in the GUI?
ZOTAC IONITX-D-E Intel Atom N330 Dual Core 1.6 GHz NVIDIA ION with LIVE on SSD (now updated to Nvidia Shield Pro (P2897)
Reply
#10
Thanks both of you for your replies, ideally I'd like to go to hibernation mode, but at this point I'd take either option.

I'll give hibernation from the command line a go tonight. Is there an option in the settings to change what happens when the shut down button is selected in the GUI? I haven't seen an option to switch between either shutdown or hibernation?
Reply

Logout Mark Read Team Forum Stats Members Help
Unable to shutdown XBMC with remote0