Kodi Community Forum

Full Version: Tutorial: working shutdown/suspend/etc. on Arch linux
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Shutdown finally works and this is how I did it:

1. Install mingetty from AUR. http://aur.archlinux.org/packages.php?ID=13793

2. Edit /etc/inittab. Comment the line starting with c1 and add the new line. Important: replace wilco with your username
Code:
#c1:2345:respawn:/sbin/agetty -8 38400 tty1 linux
c1:2345:respawn:/sbin/mingetty --autologin wilco tty1 linux

3. Add to ~/.bashrc. This will start X if it is not yet running.
Code:
if [ ! -e /tmp/.X0-lock ]; then startx; fi
4. Add to ~/.xinitrc. This will start xbmc and register it through dbus.
Code:
exec /usr/bin/ck-launch-session /usr/bin/dbus-launch --exit-with-session /usr/bin/xbmc --standalone -fs
5. Check the system settings (System -> System -> Energy) and make sure the default shutdown action is shutdown and not suspend.

6. Reboot and enjoy!