• 1
  • 2(current)
  • 3
  • 4
  • 5
  • 8
How to make XBMC shutdown Linux?
#16
ParkerXL Wrote:Darkscout, you are a star, at least i know which general direction to be looking in.

I don't have policy kit installed though, any idea where to grab it?

i tried:

Code:
sudo apt-get install gksu-polkit
...but that seemed to be a different package.

I think the package is called policykit-1 or policykit or both idk On my xbmc-live I have both....
Reply
#17
I now have PolicyKit1.

It appears though that all the commands are different. None of the guides, threads or even the XBMC Wiki (that I have found) have up-to-date sections on how to add XBMC authorisation with the new PolicyKit1.

I feel like I'm being a pain, sorry fellas.
Reply
#18
try this one http://wiki.xbmc.org/index.php?title=Ubu...end_/_Wake

you may also need this file

wget -nc -q http://dl.dropbox.com/u/4325533/XCI/custom-actions.pkla

and copy to

/var/lib/polkit-1/localauthority/50-local.d/custom-actions.pkla

easier yet

cd /var/lib/polkit-1/localauthority/50-local.d/

then wget -nc -q http://dl.dropbox.com/u/4325533/XCI/custom-actions.pkla
Reply
#19
X3lectric Wrote:try this one http://wiki.xbmc.org/index.php?title=Ubu...end_/_Wake



there is also a pkla file that can be used but I cant find it anywhere on my stuff

yeah i tried that one.

All i get is:

Code:
sudo: polkit-auth: command not found
Reply
#20
Look again at my previous post i edited and added some more stuff, that may be pertinent.

on the wiki it also says that Lucid requires upower installed

this is in addition to my post above

sudo apt-get install upower

as you can clearly read from the power management in the wiki link I pasted.

thats How my xbmc-live is setup and its ok, but your setup may require more steps, if it still isnt working after you add these files and commands

I believe this information is correct since its based on the way wiki describes it, but your not using xbmc-live package which is a helper and installs quite a few dependencies which help power management amongst others.

I hope I dont get more grief for posting this, in the end sll i care about is helping irrespective if there are misunderstanding or not, no one is perfect
Reply
#21
X3lectric Wrote:Look again at my previous post i edited and added some more stuff, that may be pertinent.

on the wiki it also says that Lucid requires upower installed

this is in addition to my post above

sudo apt-get install upower

as you can clearly read from the power management in the wiki link I pasted.

thats How my xbmc-live is setup and its ok, but your setup may require more steps, if it still isnt working after you add these files and commands

I believe this information is correct since its based on the way wiki describes it, but your not using xbmc-live package which is a helper and installs quite a few dependencies which help power management amongst others.

I hope I dont get more grief for posting this, in the end sll i care about is helping irrespective if there are misunderstanding or not, no one is perfect

I dont use XBMC live because it's bundled with Ubuntu 10.4. Only 11.04 recognises the chipset in my Motherboard (its a new design).

So have had to do a lot the long way around i guess.

I do okay for someone who who'd never even seen a linux OS a month ago, but it's all thanks to the good folk at this forum.
Reply
#22
I just solved my problem.

I removed what I had in .xinitrc before..
Code:
/usr/bin/xbmc --standalone

And added this line instead
Code:
exec ck-launch-session xbmc --standalone

Now everything works.. shutdown, restart, suspend, exit.. etc
Reply
#23
You say you're running standalone, what OS (I'm running similar setup on Sid)? I think policy kit is deprecated in Ubuntu and not really standard anywhere else. The sudoers file should work.
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
#24
darkscout Wrote:You say you're running standalone, what OS (I'm running similar setup on Sid)? I think policy kit is deprecated in Ubuntu and not really standard anywhere else. The sudoers file should work.

not sure if this is to me or kdar, but if it's me, im running on a minimal install of Natty (Ubuntu 11.04)

Can i edit the suoers with nano? When i open the file there's a comment that says i Must use a specific editor.
Reply
#25
ParkerXL Wrote:I dont use XBMC live because it's bundled with Ubuntu 10.4. Only 11.04 recognises the chipset in my Motherboard (its a new design).

So have had to do a lot the long way around i guess.

I do okay for someone who who'd never even seen a linux OS a month ago, but it's all thanks to the good folk at this forum.

Xbmc-live exists for natty, you install natty minimal and then add the ppa and install packages and tweaks for all sorts like power managment, suspend and whatever else you may want like sabnzbd+ sftp etc etc...

you can find it here

https://launchpad.net/~team-xbmc/+archive/unstable

if your interested in learning more about linux and commands etc a good way is to go here http://sourceforge.net/projects/xci/

Personally Im not a fan of full desktop installs because I prefer Appliance type.

Another solution cause your chipset is so new is TEST oplenelec.tv http://www.openelec.tv/



Yes it takes a while to get around linux but I find the easiest way is by reading a LOT and trying a lot of different things.

I know I use to maintain a install script to fix all these install bugs, but now Im not healthy enough to do as much as before and I need help with the project.
Reply
#26
X3lectric Wrote:Xbmc-live exists for natty, you install natty minimal and then add the ppa and install packages and tweaks for all sorts like power managment, suspend and whatever else you may want like sabnzbd+ sftp etc etc...

you can find it here

https://launchpad.net/~team-xbmc/+archive/unstable

if your interested in learning more about linux and commands etc a good way is to go here http://sourceforge.net/projects/xci/

Personally Im not a fan of full desktop installs because I prefer Appliance type.

Another solution cause your chipset is so new is TEST oplenelec.tv http://www.openelec.tv/



Yes it takes a while to get around linux but I find the easiest way is by reading a LOT and trying a lot of different things.

I know I use to maintain a install script to fix all these install bugs, but now Im not healthy enough to do as much as before and I need help with the project.

Yep, im on this forum every day and i am slowly learning.

I too prefer minimal installs. Thanks for all the advice you and everyone else have given me today.
Reply
#27
Update:

Somehow, in trying to fix the shutdown issue, i've now come to a state where nothing on the shutdown menu actually does a thing.

where once i would get a black screen with a cursor, now absolutely nothing happens.

That's probably not a good thing, heh.
Reply
#28
I am using Arch Linux.
Reply
#29
darkscout Wrote:kdar, you need to add the XBMC user to the policy group that lets it shutdown the computer.

http://forum.xbmc.org/showthread.php?tid=68495

Or if you're not running policy kit, you should be able to edit the sudoers file to allow XBMC permission to shut down the computer:
http://pastebin.com/4xzSHJbY

I edited the sudoers file. still all i get is the black screen an cursor (i got it back now).

This appears to be beyond my abilities at the moment, but i just want to thank everyone that took the time to try and help me, i do appreciate it very much.

out of interest, here's the relevant part of my log file, the part regarding what happens when i try to shutdown:

Code:
01:12:34 T:139780984870880 M:3789635584   DEBUG: SDLKeyboard: scancode: 24, sym: 000d, unicode: 000d, modifier: 0
01:12:34 T:139780984870880 M:3789635584   DEBUG: OnKey: return (f00d) pressed, action is Select
01:12:34 T:139780984870880 M:3789635584   DEBUG: ExecuteXBMCAction : Translating Shutdown()
01:12:34 T:139780984870880 M:3789635584   DEBUG: ExecuteXBMCAction : To Shutdown()
01:12:34 T:139780984870880 M:3789635584   DEBUG: DBus: Creating message to org.freedesktop.UPower on /org/freedesktop/UPower with interface org.freedesktop.UPower and method AboutToSleep
01:12:34 T:139780984870880 M:3789635584   DEBUG: DBus: Creating message to org.freedesktop.UPower on /org/freedesktop/UPower with interface org.freedesktop.UPower and method Suspend
01:12:34 T:139780984870880 M:3789635584   DEBUG: CAnnouncementManager - Announcement: Suspend from xbmc
01:12:34 T:139780984870880 M:3789635584   DEBUG: GOT ANNOUNCEMENT, type: 4, from xbmc, message Suspend
Reply
#30
ParkerXL Wrote:I edited the sudoers file. still all i get is the black screen an cursor (i got it back now).

This appears to be beyond my abilities at the moment, but i just want to thank everyone that took the time to try and help me, i do appreciate it very much.

out of interest, here's the relevant part of my log file, the part regarding what happens when i try to shutdown:

Code:
01:12:34 T:139780984870880 M:3789635584   DEBUG: SDLKeyboard: scancode: 24, sym: 000d, unicode: 000d, modifier: 0
01:12:34 T:139780984870880 M:3789635584   DEBUG: OnKey: return (f00d) pressed, action is Select
01:12:34 T:139780984870880 M:3789635584   DEBUG: ExecuteXBMCAction : Translating Shutdown()
01:12:34 T:139780984870880 M:3789635584   DEBUG: ExecuteXBMCAction : To Shutdown()
01:12:34 T:139780984870880 M:3789635584   DEBUG: DBus: Creating message to org.freedesktop.UPower on /org/freedesktop/UPower with interface org.freedesktop.UPower and method AboutToSleep
01:12:34 T:139780984870880 M:3789635584   DEBUG: DBus: Creating message to org.freedesktop.UPower on /org/freedesktop/UPower with interface org.freedesktop.UPower and method Suspend
01:12:34 T:139780984870880 M:3789635584   DEBUG: CAnnouncementManager - Announcement: Suspend from xbmc
01:12:34 T:139780984870880 M:3789635584   DEBUG: GOT ANNOUNCEMENT, type: 4, from xbmc, message Suspend

You may not have sudo installed.
(as root)
apt-get install sudo.

Sudoers shouldn't be blank by default.
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
  • 1
  • 2(current)
  • 3
  • 4
  • 5
  • 8

Logout Mark Read Team Forum Stats Members Help
How to make XBMC shutdown Linux?0