[colord] python Colord.Device.get_default_profile()
Sanford Rockowitz
rockowitz at minsoft.com
Tue Feb 25 18:40:34 PST 2014
Not sure if I'm misusing/misunderstanding the Python API, or if there's
a bug here.
I'm trying to retrieve the default profile for a device. The command
colormgr device-get-default-profile reports a default profile, but
function Colord.Device.get_default_profile() does not.
Attached are a Python script illustrating this situation and the output
from running it. The API function Colord.Device.get_profiles() reports
the same associated profiles for the device as does colormgr, but
Colord.Device.get_default_profile() returns None. colord was built
from master earlier today.
Regards,
Sanford
-------------- next part --------------
A non-text attachment was scrubbed...
Name: default_profile_example.py
Type: text/x-python
Size: 1892 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/colord/attachments/20140225/8fdfdff2/attachment.py>
-------------- next part --------------
[rock at banner colormgt]$ python default_profile_example.py
===> Looking for default profile using colormgr
Executing command: colormgr --version
Client version: 1.2.0
Daemon version: 1.2.0
System vendor: Gigabyte
System model: GA-890GPA-UD3H
Executing command: colormgr find-device "xrandr-Ancor Communications Inc-VE247-AALMQS027787"
Object Path: /org/freedesktop/ColorManager/devices/xrandr_Ancor_Communications_Inc_VE247_AALMQS027787_rock_1000
Owner: rock
Created: February 25 2014, 11:13:20 PM
Modified: February 25 2014, 11:13:21 PM
Type: display
Enabled: Yes
Embedded: No
Model: VE247
Vendor: Ancor Communications
Serial: AALMQS027787
Seat: seat0
Scope: temp
Colorspace: rgb
Device ID: xrandr-Ancor Communications Inc-VE247-AALMQS027787
Profile 1: icc-e29fb3541a568ab90cc3e0f7b3bc270c
/home/rock/.local/share/icc/DCG - VE247 2014-01-28 18-30 i1 Display 2 190cdm² D6500 2.2 S 3xCurve+MTX.icc
Profile 2: icc-4521622950aec5e494351d706191f526
/home/rock/.local/share/icc/GCM - Ancor Communications Inc - VE247 - AALMQS027787 (2013-01-02) [12-59-14].icc
Profile 3: icc-32ccce40a6569f5033f75a23dd2db265
/home/rock/.local/share/icc/GCM - Ancor Communications Inc - VE247 - AALMQS027787 (2013-01-02) [12-30-01].icc
Profile 4: icc-7e3606bd10c429f62e796f24e50bc60f
/home/rock/.local/share/icc/GCM - Ancor Communications Inc - VE247 - AALMQS027787 (2012-12-20) [14-43-40].icc
Profile 5: icc-f6eeaffccdf140ae0df6bf50ed01a753
/home/rock/.local/share/icc/edid-af8b21af108dc7db16cd15b4219fa673.icc
Metadata: XRANDR_name=HDMI-1
Metadata: OutputPriority=secondary
Metadata: OwnerCmdline=/usr/libexec/gnome-settings-daemon
Metadata: OutputEdidMd5=af8b21af108dc7db16cd15b4219fa673
Executing command: colormgr device-get-default-profile "xrandr-Ancor Communications Inc-VE247-AALMQS027787"
Object Path: /org/freedesktop/ColorManager/profiles/icc_e29fb3541a568ab90cc3e0f7b3bc270c_rock_1000
Owner: rock
Format: ColorSpace..
Title: DCG - VE247 2014-01-28 18-30 i1 Display 2 190cdm^2 D6500 2.2 S 3xCurve+MTX
Qualifier: RGB..
Type: display-device
Colorspace: rgb
Scope: temp
Gamma Table: Yes
System Wide: No
Filename: /home/rock/.local/share/icc/DCG - VE247 2014-01-28 18-30 i1 Display 2 190cdm² D6500 2.2 S 3xCurve+MTX.icc
Profile ID: icc-e29fb3541a568ab90cc3e0f7b3bc270c
Metadata: prefix=EDID_,CMF_,DATA_,MEASUREMENT_,OPENICC_,MAPPING_,ACCURACY_,GAMUT_
Metadata: MAPPING_device_id=xrandr-Ancor Communications-VE247-AALMQS027787
Metadata: MEASUREMENT_device=i1 display 2
Metadata: EDID_model_id=9363
Metadata: EDID_blue_y=0.05859375
Metadata: EDID_blue_x=0.1591796875
Metadata: CMF_product=dispcalGUI
Metadata: DATA_source=calib
Metadata: EDID_md5=af8b21af108dc7db16cd15b4219fa673
Metadata: GAMUT_coverage(adobe-rgb)=0.751
Metadata: CMF_version=1.7.1.6
Metadata: EDID_green_y=0.62890625
Metadata: EDID_red_y=0.337890625
Metadata: EDID_red_x=0.640625
Metadata: EDID_green_x=0.3154296875
Metadata: EDID_mnft_id=1129
Metadata: EDID_manufacturer=Ancor Communications
Metadata: ACCURACY_dE76_max=2.922019
Metadata: EDID_date=2010-T44
Metadata: CMF_binary=dispcalGUI
Metadata: EDID_model=VE247
Metadata: EDID_serial=AALMQS027787
Metadata: ACCURACY_dE76_avg=0.758074
Metadata: EDID_gamma=2.2
Metadata: GAMUT_coverage(srgb)=0.9915
Metadata: GAMUT_volume=1.12246904397
Metadata: FILE_checksum=e29fb3541a568ab90cc3e0f7b3bc270c
Metadata: Quality=high
Metadata: ACCURACY_dE76_rms=0.945115
Metadata: EDID_mnft=ACI
Metadata: License=Public Domain
Metadata: EDID_white_y=0.3291015625
Metadata: EDID_white_x=0.3134765625
Metadata: OPENICC_automatic_generated=0
===> Looking for default profile using API
device_id = xrandr-Ancor Communications Inc-VE247-AALMQS027787
colord daemon version: 1.2.0
colord client version: 1.2.0
Connected to device id: xrandr-Ancor Communications Inc-VE247-AALMQS027787
object path: /org/freedesktop/ColorManager/devices/xrandr_Ancor_Communications_Inc_VE247_AALMQS027787_rock_1000
get_profiles() found 5 profiles:
Profile id: /org/freedesktop/ColorManager/profiles/icc_e29fb3541a568ab90cc3e0f7b3bc270c_rock_1000
Filename: /home/rock/.local/share/icc/DCG - VE247 2014-01-28 18-30 i1 Display 2 190cdm² D6500 2.2 S 3xCurve+MTX.icc
Profile id: /org/freedesktop/ColorManager/profiles/icc_4521622950aec5e494351d706191f526_rock_1000
Filename: /home/rock/.local/share/icc/GCM - Ancor Communications Inc - VE247 - AALMQS027787 (2013-01-02) [12-59-14].icc
Profile id: /org/freedesktop/ColorManager/profiles/icc_32ccce40a6569f5033f75a23dd2db265_rock_1000
Filename: /home/rock/.local/share/icc/GCM - Ancor Communications Inc - VE247 - AALMQS027787 (2013-01-02) [12-30-01].icc
Profile id: /org/freedesktop/ColorManager/profiles/icc_7e3606bd10c429f62e796f24e50bc60f_rock_1000
Filename: /home/rock/.local/share/icc/GCM - Ancor Communications Inc - VE247 - AALMQS027787 (2012-12-20) [14-43-40].icc
Profile id: /org/freedesktop/ColorManager/profiles/icc_f6eeaffccdf140ae0df6bf50ed01a753_rock_1000
Filename: /home/rock/.local/share/icc/edid-af8b21af108dc7db16cd15b4219fa673.icc
Default profile: None
More information about the colord
mailing list