Color management with colord and gnome-color-manager on openSUSE 12.1 with NVIDIA binary driver

Color management with colord and gnome-color-manager on openSUSE 12.1 with NVIDIA binary driver

After wondering why my displays didn’t show up in the GNOME3 settings dialog I started to investigate…

First I thought running the NVIDIA binary driver 304.37, which now supports xRandr 1.3, would cause some trouble but I was wrong.

It appears that the mix of colord and gnome-color-manager is kind of broken in openSUSE 12.1 as this bug report shows.

The reason is that the security settings for polkit had been set to require authentication as administrator for any action related to color management.

Thus /etc/polkit-default-privs.standard contained:

org.freedesktop.color-manager.create-device auth_admin
org.freedesktop.color-manager.create-profile auth_admin
org.freedesktop.color-manager.delete-device auth_admin
org.freedesktop.color-manager.delete-profile auth_admin
org.freedesktop.color-manager.modify-device auth_admin
org.freedesktop.color-manager.modify-profile auth_admin
org.freedesktop.color-manager.install-system-wide auth_admin
org.freedesktop.color-manager.device-inhibit auth_admin
org.freedesktop.color-manager.sensor-lock auth_admin

This caused a lot of dialogs to popup and the authentication to fail at all if no GNOME session was running yet either.

To fix it I added some overrides to the polkit local settings in /etc/polkit-default-privs.local:

org.freedesktop.color-manager.create-device auth_admin:auth_admin:yes
org.freedesktop.color-manager.create-profile auth_admin:auth_admin:yes
org.freedesktop.color-manager.delete-device auth_admin:auth_admin:yes
org.freedesktop.color-manager.delete-profile auth_admin:auth_admin:yes
org.freedesktop.color-manager.modify-device auth_admin:auth_admin:yes
org.freedesktop.color-manager.modify-profile auth_admin:auth_admin:yes
org.freedesktop.color-manager.install-system-wide auth_admin:auth_admin:auth_admin_keep
org.freedesktop.color-manager.device-inhibit auth_admin:auth_admin:yes
org.freedesktop.color-manager.sensor-lock auth_admin:auth_admin:yes

This fixes the issue and displays properly show up and can be used without any authentication dialog for users! Color managed displays with NVIDIA binary drivers on GNOME, finally!

The changes are already in openSUSE 12.2 where this issue is fixed.