• 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 8
How to make XBMC shutdown Linux?
#61
See there for a way to start xbmc from inittab without any issue from consolekit. It works for me.
From what i've understand, it's a problem with the last release of consolekit.

https://wiki.archlinux.org/index.php/Start_X_at_boot
Reply
#62
darkscout Wrote:Do you mean resume from suspend with the remote or resume from suspend period?

Because they changed the procedure required to get resume from remote working.

If uxlauncer is what is screwing you up, just use my upstart script and remove uxlauncher.

Hi,
sorry for poor explaining. I meant that with Lukamus advise we could get the
suspend, shutdown and reboot to work, but when we go to suspend the resume from that state will not work according him. At least for me that is the usual way to use the system. I am using very rarely reboot and real shutdown in everyday use.

Br, Zemy
Reply
#63
Lightbulb 
I also have the same problem. Shutdown action (button) does nothing. I can only choose suspend or hibernate in the power saving section. No option to choose shutdown.

I have a completely fresh install with:
  • Ubuntu 10.10 x64 minimal
  • Xbmc-standalone from this ppa (build May 31)

I use the following way to have xbmc automatically started:

In /etc/init/tty1.conf I've added:
Code:
exec /bin/login -f xbmc < /dev/tty1 > /dev/tty1 2>&1

And in ~/.bashrc I've added:
Code:
# Starting xbmc
if [ $(tty) == "/dev/tty1" ]; then
xinit xbmc-standalone
fi


Next to that I've done the following to have shutdown enabled:
sudo visudo
Code:
# Cmnd alias specification
Cmnd_Alias SHUTDOWN_CMDS = /sbin/shutdown, /sbin/halt, /sbin/reboot, /sbin/poweroff

# User privilege specification
root    ALL=(ALL) ALL
xbmc    ALL=(ALL) ALL
# Allow members of group sudo to execute any command
# (Note that later entries override this, so you might need to move
# it further down)
%sudo ALL=(ALL) ALL
#
#includedir /etc/sudoers.d

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
xbmc ALL=(ALL) NOPASSWD: SHUTDOWN_CMDS

and

http://wiki.xbmc.org/index.php?title=Ubu...end_/_Wake

This always worked.

Is there something I missed? Maybe someone knows a workaround for the above scenario to have it working again?
Reply
#64
Zemy Wrote:Hi,
sorry for poor explaining. I meant that with Lukamus advise we could get the
suspend, shutdown and reboot to work, but when we go to suspend the resume from that state will not work according him. At least for me that is the usual way to use the system. I am using very rarely reboot and real shutdown in everyday use.

Br, Zemy

And once again you didn't answer my question.
Resume from remote or resume period (attempting to resume from actual power button)
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
#65
darkscout Wrote:And once again you didn't answer my question.
Resume from remote or resume period (attempting to resume from actual power button)

Sorry, I missed that. Resume from any remote button as it has worked until this update. I didn´t recall that resuming way such important as the suspend doesn´t work.
Br, Zemy
Reply
#66
Try it with the power button. Does it work? If so it's an issue with the remote.

http://wiki.xbmc.org/index.php?title=Ubu...end_/_Wake Pay
http://forum.xbmc.org/showthread.php?p=658293
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
#67
Zemy Wrote:Hi folks,

is there any "real fix" found for this? This is good start workaround but,
getting to suspend state without resume is not a goal for me.
I am not truly aware if this problem is related to XBMC or Natty?
Has someone tested with earlier versions of XBMC on Natty... does that combination work?

Br, Zemy

I think my resume problem was kernel related. I did find a relevant bug report but I can't find it now. I'll post a link to it when I get home (from browser history).

So it may work for you, but it wouldn't work for me under 11.04. I even tried an extremely basic install and triggering suspend with pm-suspend and it still failed to wake.
Reply
#68
lukamus Wrote:I think my resume problem was kernel related. I did find a relevant bug report but I can't find it now. I'll post a link to it when I get home (from browser history).

So it may work for you, but it wouldn't work for me under 11.04. I even tried an extremely basic install and triggering suspend with pm-suspend and it still failed to wake.

I am not getting yet to this Resume problem at all, first I should get that
suspend to work. I tried that Your suggestion removing uxlaunch and xbmc-live etc..
After that system crashes on boot and won´t even start.

Br, Zemy
Reply
#69
Here's the bug I think I encountered: https://bugzilla.kernel.org/show_bug.cgi?id=31562.
Reply
#70
Zemy Wrote:I am not getting yet to this Resume problem at all, first I should get that
suspend to work. I tried that Your suggestion removing uxlaunch and xbmc-live etc..
After that system crashes on boot and won´t even start.

Br, Zemy

At what point does it crash? Can you get to a tty with Ctrl + Alt + F1 (or F2-F6).

Also, did you follow the same guide I did to start with? (I mentioned everything I did in my previous post.)
Reply
#71
lukamus Wrote:At what point does it crash? Can you get to a tty with Ctrl + Alt + F1 (or F2-F6).

Also, did you follow the same guide I did to start with? (I mentioned everything I did in my previous post.)

Hi,

after removing uxlaunch and xbmc-live crash comes quite soon from the loading linux ant it stucks with blinking cursor in text mode.
Before that there was many errors listed. I gave up and installed uxlaunch
and xbmc-live back.
So many of You can get things running right with xbmc-standalone? So it points really that the problem is in xbmc-live...right?

Br, Zemy
Reply
#72
Not necessarily--you're problem could have been a number of things. It sounds like X wasn't starting (that's what uxlauncer was doing). Anyway, if you're back to where you were then that's not important now.

Once your system has loaded, open up a tty (Ctrl + Alt + F1) and run pm-suspend

Your system should go to sleep, and you'll be able to wake it using the usual method. If this works then you know you don't have a hardware problem--it's something to do with X or XBMC.

If that's the case then I'd suggest trying using the upstart script darkscout mentioned in http://forum.xbmc.org/showpost.php?p=811633&postcount=60 or maybe try http://forum.xbmc.org/showpost.php?p=811...stcount=61
Reply
#73
lukamus Wrote:Not necessarily--you're problem could have been a number of things. It sounds like X wasn't starting (that's what uxlauncer was doing). Anyway, if you're back to where you were then that's not important now.

Once your system has loaded, open up a tty (Ctrl + Alt + F1) and run pm-suspend

Your system should go to sleep, and you'll be able to wake it using the usual method. If this works then you know you don't have a hardware problem--it's something to do with X or XBMC.

If that's the case then I'd suggest trying using the upstart script darkscout mentioned in http://forum.xbmc.org/showpost.php?p=811633&postcount=60 or maybe try http://forum.xbmc.org/showpost.php?p=811...stcount=61

Thank You Lukamus,

indeed it works in tty but only with sudo. So it seems that user has not powerfull enough priviligies. As it says pm-suspend needs root priviliges to perform. I have to find out how to get permanent priviliges to my xbmc user

Br, Zemy
Reply
#74
Finally! Solved my problem (see post 63 in this thread).

Only thing I did is change my custom-actions.pkla a bit, to this:

Code:
[Actions for xbmc user]
Identity=unix-user:xbmc
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*
ResultActive=yes
ResultAny=auth_admin
ResultInactive=yes

And all works as before Big Grin.
Reply
#75
-EaS- Wrote:Finally! Solved my problem (see post 63 in this thread).

Only thing I did is change my custom-actions.pkla a bit, to this:

Code:
[Actions for xbmc user]
Identity=unix-user:xbmc
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*
ResultActive=yes
ResultAny=auth_admin
ResultInactive=yes

And all works as before Big Grin.

Lucky You, I am still in middle of nowhere with Natty. In console I can do every trick with sudo command but not without. It always tells me that;
"Need to be root"
I tried to add my user "xbmc" to sudo group and it nicely tells that
"xbmc" already is in that group.....weird...

Br, Zemy
Reply
  • 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 8

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