Minimal Maverick, unable to shutdown or suspend
#16
I've made two changes: installing upower and adding the xbmc user to the following groups:
audio,video,fuse,cdrom,plugdev
Note: I've ADDED those groups to the groups it was already a member of.
Reply
#17
Carp, I'm already a member of all those groups. Imma stuck.
Reply
#18
If it's any consolation, I have some new &*%*)% problems with my HTPC now...
Reply
#19
Oh well, XBMC and Boxee run fine ok on a minimal setup, and I can use SSH to shutdown. I wonder if i can configure irexec and a certain button on my remote to force the box to shutdown....that shouldn't be too hard....
Reply
#20
Quote:super keen on manually editing and creating .pkla files

No but you dont mind install hal or what random package that turns up?

Have you installed the package xbmc-live or not? It will set up some permissions.
Don't answer that you dont know or some s-t like that, if you are spending these kind or hours you need to have an install log or you need to start over.

Have you created a debug log? At least in 9.11 you cuould easilty spot permission issues in the log.
Reply
#21
Ok, I have seen your little script. So the conclusion is that if one just follow the xbmcbuntu guide and install upower it pretty much works but one run your script it does not work?

Start by cutting out everything from
--[ INSTALLING XBMC HELPERS ] to before ## --[ ENABLE HDMI & OPTICAL AUDIO ]

and then everything after # Sort out ownerships
How did you come up with the idea to switch to svn before install xbmc-live?
and why installing xbmc-live after all the openbox stuff?

and replace the last part with
sudo apt-get install xbmc-live

I am sure the xci autostart stuff is very nice but since it seem to be too complicated stick with xbmc-live.
Reply
#22
Wow, calm down dude, I didn't think I was coming across as being critical or agressive!

I know a minimal maverick install isn't supported, so I am not complaining here, just trying to fix an issue I have.

I haven't installed HAL yet, as the previous poster said it was depreciated so I was trying to find out what other people have done, to see if there was something simple I was missing, before I took more drastic action and installed packages that maybe I shouldn't.

So, to answer your question. Yes, I have installed xbmc-live and I have checked that I am already a member of the correct groups.

The xbmc logs have the following:
Code:
10:57:42 T:3021789056 M:2771263488   ERROR: HAL: seems that Hal daemon is not running: The name org.freedesktop.Hal was not provided by any .service files
10:57:42 T:3021789056 M:2771263488   ERROR: HAL: no Hal context
10:57:42 T:3021789056 M:2771263488  NOTICE: start dvd mediatype detection
10:57:42 T:3021789056 M:2771263488  NOTICE: initializing playlistplayer
10:57:42 T:3021789056 M:2771263488  NOTICE: DONE initializing playlistplayer
10:57:42 T:3021789056 M:2765209600  NOTICE: initialize done
10:57:42 T:3021789056 M:2765209600  NOTICE: Running the application...
10:57:42 T:3021789056 M:2765209600  NOTICE: ES: Starting event server
10:57:42 T:3021789056 M:2765209600  NOTICE: DS: Starting dbus server
10:57:42 T:2980047728 M:2765209600  NOTICE: ES: Starting UDP Event server on 127.0.0.1:9777
10:57:42 T:2980047728 M:2764955648  NOTICE: UDP: Listening on port 9777
10:57:42 T:3021789056 M:2764955648   ERROR:  DS: Failed to connect to the D-Bus session daemon: Empty address ''

So, based on that, I shall install hal and cross my fingers....

Sorry if I came across and bitching / whining or moaning in my earlier posts, I was just trying to ensure I had done everything I could first....
Reply
#23
vikjon0 Wrote:Ok, I have seen your little script. So the conclusion is that if one just follow the xbmcbuntu guide and install upower it pretty much works but one run your script it does not work?

Start by cutting out everything from
--[ INSTALLING XBMC HELPERS ] to before ## --[ ENABLE HDMI & OPTICAL AUDIO ]

and then everything after # Sort out ownerships
How did you come up with the idea to switch to svn before install xbmc-live?
and why installing xbmc-live after all the openbox stuff?

and replace the last part with
sudo apt-get install xbmc-live

I am sure the xci autostart stuff is very nice but since it seem to be too complicated stick with xbmc-live.

The XCI autostart stuff is needed so I can run Boxee and XBMC on the same machine easily, loading either via the remote control.

xbmc-live is installed at the end, to give it the most chance of sorting out any issues caused by editing conf files via the script itself. Also, xbmc-live isn't part of the svn ppa as far as I can see, so it doesn't make a difference when you add the svn ppa and when you install xbmc-live.

Why do you suggest using apt-get and not aptitiude out of interest?
Reply
#24
Here are some more detailed logs for your delictation:

On choosing Shutdown from the Power Menu in XBMC:
Code:
00:53:35 T:3021150080 M:2746957824   DEBUG: ------ Window Init (DialogButtonMenu.xml) ------
00:53:35 T:3021150080 M:2746957824    INFO: Loading skin file: DialogButtonMenu.xml
00:53:36 T:3021150080 M:2746957824   DEBUG: LIRC: Update - NEW at 140728:000000037ff07bdd 00 OK mceusb (OK)
00:53:36 T:3021150080 M:2746957824   DEBUG: OnKey: 11 pressed, action is Select
00:53:36 T:3021150080 M:2746957824   DEBUG: ExecuteXBMCAction : Translating XBMC.Shutdown()
00:53:36 T:3021150080 M:2746957824   DEBUG: ExecuteXBMCAction : To XBMC.Shutdown()
00:53:36 T:3021150080 M:2746957824   DEBUG: DBus: Creating message to org.freedesktop.UPower on /org/freedesktop/UPower with interface org.freedesktop.UPower and method AboutToSleep
00:53:36 T:3021150080 M:2746957824   DEBUG: DBus: Creating message to org.freedesktop.UPower on /org/freedesktop/UPower with interface org.freedesktop.UPower and method Suspend
00:53:36 T:3021150080 M:2746957824   DEBUG: CAnnouncementManager - Announcement: Suspend from xbmc
00:53:37 T:3021150080 M:2746957824   DEBUG: ------ Window Deinit (DialogButtonMenu.xml) ------

Result: nothing happens.

On pressing Suspend from same menu:
Code:
00:56:20 T:3021150080 M:2747027456   DEBUG: ------ Window Init (DialogButtonMenu.xml) ------
00:56:20 T:3021150080 M:2747027456    INFO: Loading skin file: DialogButtonMenu.xml
00:56:21 T:3021150080 M:2747031552   DEBUG: LIRC: Update - NEW at 305383:000000037ff07bde 00 Right mceusb (Right)
00:56:21 T:3021150080 M:2747031552   DEBUG: OnKey: 168 pressed, action is Right
00:56:23 T:3021150080 M:2747031552   DEBUG: LIRC: Update - NEW at 306819:000000037ff07bdd 00 OK mceusb (OK)
00:56:23 T:3021150080 M:2747031552   DEBUG: OnKey: 11 pressed, action is Select
00:56:23 T:3021150080 M:2747031552   DEBUG: ExecuteXBMCAction : Translating XBMC.Suspend()
00:56:23 T:3021150080 M:2747031552   DEBUG: ExecuteXBMCAction : To XBMC.Suspend()
00:56:23 T:3021150080 M:2747031552   DEBUG: DBus: Creating message to org.freedesktop.UPower on /org/freedesktop/UPower with interface org.freedesktop.UPower and method AboutToSleep
00:56:23 T:3021150080 M:2747031552   DEBUG: DBus: Creating message to org.freedesktop.UPower on /org/freedesktop/UPower with interface org.freedesktop.UPower and method Suspend
00:56:23 T:3021150080 M:2747031552   DEBUG: CAnnouncementManager - Announcement: Suspend from xbmc
00:56:23 T:3021150080 M:2747031552   DEBUG: ------ Window Deinit (DialogButtonMenu.xml) ------

Result: nothing happens

On pressing reboot on same menu:

Code:
00:57:26 T:3021150080 M:2747056128   DEBUG: ExecuteXBMCAction : Translating XBMC.Reset()
00:57:26 T:3021150080 M:2747056128   DEBUG: ExecuteXBMCAction : To XBMC.Reset()
00:57:26 T:3021150080 M:2747056128   DEBUG: CAnnouncementManager - Announcement: ApplicationStop from xbmc
00:57:26 T:3021150080 M:2747056128  NOTICE: Storing total System Uptime
00:57:26 T:3021150080 M:2747056128  NOTICE: Saving settings
00:57:26 T:3021150080 M:2746929152  NOTICE: stop all
00:57:26 T:3021150080 M:2746929152   DEBUG: NetworkMessage - Signaling network services to stop
00:57:26 T:3021150080 M:2746929152  NOTICE: ES: Stopping event server
00:57:26 T:3021150080 M:2746929152   DEBUG: CZeroconfAvahi::doRemoveService named: servers.jsonrpc
00:57:26 T:3021150080 M:2746929152   DEBUG: NetworkMessage - Waiting for network services to stop
00:57:26 T:3021150080 M:2746929152  NOTICE: stopping zeroconf publishing
00:57:26 T:2954881904 M:2747056128   DEBUG: Thread 2954881904 terminating
00:57:26 T:2977233776 M:2747056128  NOTICE: ES: UDP Event server stopped
00:57:26 T:2977233776 M:2747056128   DEBUG: Thread 2977233776 terminating
00:57:26 T:3021150080 M:2747056128  NOTICE: stop dvd detect media
00:57:26 T:3021150080 M:2747056128  NOTICE: stop sap announcement listener
00:57:26 T:3021150080 M:2747056128  NOTICE: clean cached files!
00:57:26 T:3021150080 M:2747056128  NOTICE: unload skin
00:57:26 T:3021150080 M:2747056128   DEBUG: CGUIAudioManager::DeInitialize
00:57:27 T:3021150080 M:2747056128   DEBUG: ------ Window Deinit (Home.xml) ------
00:57:27 T:3021150080 M:2747056128   DEBUG: ------ Window Deinit (Pointer.xml) ------
00:57:27 T:3021150080 M:2747056128   DEBUG: ------ Window Deinit (DialogMuteBug.xml) ------
00:57:27 T:3021150080 M:2752135168  NOTICE: stop python
00:57:27 T:3021150080 M:2754166784  NOTICE: stopped
00:57:27 T:3021150080 M:2754166784  NOTICE: destroy
00:57:27 T:3021150080 M:2754166784    INFO: ADDON: cpluff: 'An unreleased information object was encountered at address 0x9893450 with reference count 1 when destroying the associated plug-in context. Not releasing the object.'
00:57:27 T:3021150080 M:2754166784  NOTICE: unload sections
00:57:27 T:3021150080 M:2754166784   DEBUG: SECTION:UnloadAll(DLL: special://xbmcbin/system/libcpluff-i486-linux.so)
00:57:27 T:3021150080 M:2754166784   DEBUG: Unloading: libcpluff-i486-linux.so
00:57:27 T:3021150080 M:2754166784   DEBUG: object 0 --> 0 instances
00:57:27 T:3021150080 M:2754166784   DEBUG: object 1 --> 0 instances
00:57:27 T:3021150080 M:2754166784   DEBUG: object 2 --> 14 instances
00:57:27 T:3021150080 M:2754166784   DEBUG: object 3 --> 0 instances
00:57:27 T:3021150080 M:2754166784   DEBUG: object 4 --> 9 instances
00:57:27 T:3021150080 M:2754166784   DEBUG: object 5 --> 0 instances
00:57:27 T:3021150080 M:2754166784   DEBUG: object 6 --> 0 instances
00:57:27 T:3021150080 M:2754166784   DEBUG: object 7 --> 0 instances
00:57:27 T:3021150080 M:2754166784   DEBUG: object 8 --> 0 instances
00:57:27 T:3021150080 M:2754166784   DEBUG: object 9 --> 0 instances

Result: XBMC exits but PC remains on with a blank screen.
Reply
#25
And finally, Boxee can suspend the machine via Boxee's Power Menu > Suspend. Thus, there must be something up specifically with the way XBMC is configured on my machine as Boxee is called and run in the same way as XBMC so is being run by the same user (although I should check that with top).

Wierdness or what.
Reply
#26
Quote:Wow, calm down dude, I didn't think I was coming across as being critical or agressive!
Yeah, sorry about that.

I was just a bit surprised that you spend all this time and you publish a script but you dont take the time to build it bottom up by learning to do it manually first.

You still dont understand what I am saying, xbmc-live is setting up policykit and so are you script. You need to look into that. What I tried to propose was to start with the basic xbmc-live/xbmcbuntu setup since that seem to be working.

Since you dont want to do that, take a look at this. http://xbmc.svn.sourceforge.net/viewvc/x...iew=markup

hal is for backwards compability, you need to look from devicekit and down.
Reply
#27
vikjon0 Wrote:Yeah, sorry about that.

I was just a bit surprised that you spend all this time and you publish a script but you dont take the time to build it bottom up by learning to do it manually first.

You still dont understand what I am saying, xbmc-live is setting up policykit and so are you script. You need to look into that. What I tried to propose was to start with the basic xbmc-live/xbmcbuntu setup since that seem to be working.

Since you dont want to do that, take a look at this. http://xbmc.svn.sourceforge.net/viewvc/x...iew=markup

hal is for backwards compability, you need to look from devicekit and down.

Aha, I think the issue was when I last used a script like the one I published, xbmc-live wasn't available (around 2008/9 ish). As the xbmc-live package in ubuntu via apt-cache show is relatively generic I assumed that such a script as mine was still necessary. I didn't realise that, from what I now assume, you can simply apt-get install xbmc xbmc-live on a minimal install of ubuntu and that would get you a working xbmc install (is this correct?) (excluding the audio / video driver conf stuff).

Your link is very useful, as it explains how the xbmc guys get it working in maverick. Interestingly, some of the stuff listed in the script you link to haven't occured on my system, even though I installed xbmc-live (there is no .pkla file for example). Thus the way I have set up my system has obviously interferred with xbmc-live.

Interesting. Thanks very much for your input. I might just do a clean install of maverick and xbmc xbmc-live and see how that works first, then get boxee working somehow.

Just to show you how much of a bodger I actually am, I ended up fixing it by using the post from here: http://www.technazgul.com/2010/12/using-...event.html but instead I just use a script that shutdowns the system, so when I press a specific button on the remote, the box shuts down. The advantage to this is that as Boxee has no shutdown option, only a suspend option, this is actually a handy solution!
Reply
#28
I just tried an install of xbmc and xbmc-live on a clean maverick minimal install and it doesn't work, so it seems scripts like mine are still needed...if you don't wanna go the whole xbmc-live ISO hog.
Reply
#29
This lets all users shutdown, but since the only purpose of this box is xmbc.... I don't really care. It works for me.

chmod +s /sbin/shutdown
chmod +s /sbin/reboot

I also installed hal:

aptitude install hal
Reply

Logout Mark Read Team Forum Stats Members Help
Minimal Maverick, unable to shutdown or suspend0