Karmic various tricks

Logout messages

If you are opening a terminal to a different server or do a su in a terminal then on logout you will be required to enter your password in order to confirm the logout action. Since the polkit-gnome-authorization does not work with the new polkit version which ships with ubuntu and the polkit-auth command does not seems to work either I’ve found after some research that the solution resides in editing the /usr/share/polkit-1/actions/org.freedesktop.consolekit.policy file as follows:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"


 <action id="org.freedesktop.consolekit.system.stop">
 <description>Stop the system</description>
 <message>System policy prevents stopping the system</message>

 <action id="org.freedesktop.consolekit.system.stop-multiple-users">
 <description>Stop the system when multiple users are logged in</description>
 <message>System policy prevents stopping the system when other users are logged in</message>

 <action id="org.freedesktop.consolekit.system.restart">
 <description>Restart the system</description>
 <message>System policy prevents restarting the system</message>

 <action id="org.freedesktop.consolekit.system.restart-multiple-users">
 <description>Restart the system when multiple users are logged in</description>
 <message>System policy prevents restarting the system when other users are logged in</message>


This allows the current user to perform actions related to the following policies:

  • org.freedesktop.consolekit.system.restart-multiple-users
  • org.freedesktop.consolekit.system.stop-multiple-user

Remove osd style popups

These popups which inform from connections success to battery status to pidgin messages can be a little annoying but they are quite easy to remove:

cd /usr/share/dbus-1/services/
sudo mv org.freedesktop.Notifications.service org.freedesktop.Notifications.service.disabled

You can revert the action to get the default behavior.

13 Responses

  1. Thank you for the instructions! They worked perfectly!


  2. […] someone ponted me towards required edit. Tags: policykit, printing, […]

  3. Many thanks. Instructions worked great.

  4. Exactly what I was looking for! Many thanks.

  5. I also did this worked perfectly

  6. Many thanks. This allows me to cleanly shut down my MythTV (MythBuntu) DVR system by pressing the computer’s power button.

  7. Thanks a lot!
    BTW do you know a way to disable consolekit? That useless thing runs 64 threads stealing memory (but not cpu) and I don’t want it on my machine.
    Unfortunately, xorg and other stuff depend on it, so I cannot simply uninstall it (network manager wouldn’t even start). But if I do a killall console-kit-daemon after booting is complete, then everything seems to work fine. Is there a way to disable it from config files?

  8. Sorry radix, I think google is your friend on this.

  9. […] Rozwiązanie zaczerpnięte z http://www.len.ro/2009/11/karmic-various-tricks/ […]

  10. […] found a fix at Len’s site which solved my problem.  I am posting the modified org.freedesktop.consolekit.policy at my […]

  11. I tied, but does not work for me….:(

    yc@fyc:/usr/share/dbus-1/services$ sudo mv org.freedesktop.Notifications.service org.freedesktop.Notifications.service.disabled

    mv: cannot stat `org.freedesktop.Notifications.service’: No such file or directory

  12. @Darko: it might depend on your distribution. On my Lucid Lynx (Ubuntu 10.04) the file exists:

    ls -l /usr/share/dbus-1/services/org.freedesktop.Notifications.service
    -rw-r–r– 1 root root 449 2010-04-14 14:15 /usr/share/dbus-1/services/org.freedesktop.Notifications.service

  13. Never mind… I put changes in org.freedesktop.consolekit.policy file as you suggested


    and it works now.

Leave a Reply