Bug 102311

Summary: colord wakes up the scanner on every login
Product: colord Reporter: Matthew Trescott <matthewtrescott>
Component: daemonAssignee: Richard Hughes <richard>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Matthew Trescott 2017-08-19 23:03:26 UTC
Every time I log in, colord-sane queries the scanner (technically a multifunction printer---the Samsung Xpress C1860FW) for its color profile or whatever, which always wakes it up. I've taken to simply deleting /usr/share/dbus-1/system-services/org.freedesktop.ColorManager.service just to stop the annoyance. Might it be possible to cache some of this color information so that the same devices don't need to be queried again on every login?
Comment 1 Richard Hughes 2017-08-20 08:02:57 UTC
It's probably colord-sane that's probing the device -- doesn't the scanner go back to sleep? There's not a lot I can do about sane -- it's not like I'm asking SANE to wake up the scanner, I'm just asking for the list of connected devices.
Comment 2 Matthew Trescott 2017-08-21 02:28:24 UTC
Perhaps it would be possible to query the scanner's color information when it's requested, (lazy-loading) rather than on each login? I suppose it's not ideal but you could then cache this color information and make it available immediately when requested without checking again? I don't know the intricacies of colord's API so I can't know whether this would work but at the surface at least it seems possible.
Comment 3 Richard Hughes 2017-08-21 08:04:37 UTC
> Perhaps it would be possible to query the scanner's color information

We're not, we're just asking for the list of scanners. I don't know how you could possibly cache the "is it connected or not" when the device is removable and hotpluggable. If you want to remove this functionality you can just delete the colord-sane binary or just compile with -Denable-sane=false.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.