2008-11-16, 13:11
If I do this, can I use CONTROL+ALT+1 and then so a startx to open a gnome session?
Quote: <match user="xbmc">
<match action="org.freedesktop.hal.power-management.shutdown-multiple-sessions">
<return result="yes"/>
</match>
</match>
zyxbox Wrote:Hi, anyone got this working on Intrepid?
It boots up to :
kinit: no resume image, doing normal boot...
and hangs there..
zyxbox Wrote:Hi, anyone got this working on Intrepid?
It boots up to :
kinit: no resume image, doing normal boot...
and hangs there..
exec /sbin/mingetty --autologin uname tty1
chkconfig xdm off
xpid=`pidof X`
if [ -z "$xpid" ]; then
startx
fi
#!/bin/sh
xmodmap ~/.xmodmap
xbmc --standalone
Gurney Wrote:Hi guys,
My .xinitrc looks like this:
Code:#!/bin/sh
xmodmap ~/.xmodmap
xbmc --standalone
When I start the HTPC, everything runs smoothly except that the xmodmap line doesn't work. If I exit XBMC (back to tty), and then startx from the command line, it will work correctly, the .xmodmap file will be loaded.
Any clue on what is going on?
Thanks a lot!
Gurney
ohickmott Wrote:Is anybody aware of a way to use the standalone method of booting into XBMC without gnome running and still be able to use wireless networking?
Any help is much appreciated!
Cheers
Olly
polkit-auth --user <xbmc_user>
sudo polkit-auth --user <xbmc_user> --grant org.freedesktop.hal.power-management.shutdown
sudo polkit-auth --user <xbmc_user> --grant org.freedesktop.hal.power-management.shutdown-multiple-sessions
sudo polkit-auth --user <xbmc_user> --grant org.freedesktop.hal.power-management.reboot
sudo polkit-auth --user <xbmc_user> --grant org.freedesktop.hal.power-management.reboot-multiple-sessions
sudo polkit-auth --user <xbmc_user> --grant org.freedesktop.hal.power-management.set-powersave
sudo polkit-auth --user <xbmc_user> --grant org.freedesktop.hal.power-management.suspend
sudo polkit-auth --user <xbmc_user> --grant org.freedesktop.hal.power-management.hibernate
<!-- <deny send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/> -->
hitman Wrote:After using the beginning of this post to implement autostarting without a Window Manager the only problem I had was shutting down, I was getting the dreaded dbus permission denied errors.
I tried the various solutions in this thread but they did not work for me. I decided to delve into things a bit more and found a solution that worked for me.
Use the following command to find out which actions are available to the user that runs xbmc (replace <xbmc_user> with the user you autologin and run xbmc with):
I found that I had none on Hardy so and empty list was returned (Intrepid had 1 item not related to power). I then added actions as follows :Code:polkit-auth --user <xbmc_user>
Code:sudo polkit-auth --user <xbmc_user> --grant org.freedesktop.hal.power-management.shutdown
Running polkit-auth --user <xbmc_user> now lists the action, and allows xbmc to shutdown the system. This was persistent across reboots.
I also added the following as I thought they would be useful, unfortunately I couldn't figure out how to add the whole lot so just did them individually:
Code:sudo polkit-auth --user <xbmc_user> --grant org.freedesktop.hal.power-management.shutdown-multiple-sessions
sudo polkit-auth --user <xbmc_user> --grant org.freedesktop.hal.power-management.reboot
sudo polkit-auth --user <xbmc_user> --grant org.freedesktop.hal.power-management.reboot-multiple-sessions
sudo polkit-auth --user <xbmc_user> --grant org.freedesktop.hal.power-management.set-powersave
sudo polkit-auth --user <xbmc_user> --grant org.freedesktop.hal.power-management.suspend
sudo polkit-auth --user <xbmc_user> --grant org.freedesktop.hal.power-management.hibernate
I also tested the above in Intrepid in a VM and it worked for me there too.
EDIT: In Hardy I also had to comment out a line under "default" policy in /etc/dbus-1/system.d/hal.conf as follows:
and also changed the policy user from "0" to "<xbmc_user>" in the last section.Code:<!-- <deny send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/> -->
Hope this helps.
Hitman