#675710 colord-sane write errors in syslog when USB disk is switch on

Package:
colord
Source:
colord
Description:
system service to manage device colour profiles -- system daemon
Submitter:
Francois Mescam
Date:
2022-02-17 18:57:03 UTC
Severity:
wishlist
#675710#5
Date:
2012-06-02 21:57:10 UTC
From:
To:
Dear Maintainer,

When I switch on an USB disk I obtain the errors hereafter in syslog :

Jun  2 23:34:01 mcfm4 colord-sane: io/hpmud/musb.c 139: unable get_string_descriptor -1: Operation not permitted
Jun  2 23:34:01 mcfm4 colord-sane: io/hpmud/musb.c 2040: invalid product id string ret=-1
Jun  2 23:34:01 mcfm4 colord-sane: io/hpmud/musb.c 139: unable get_string_descriptor -1: Operation not permitted
Jun  2 23:34:02 mcfm4 colord-sane: io/hpmud/musb.c 2045: invalid serial id string ret=-1
Jun  2 23:34:02 mcfm4 colord-sane: io/hpmud/musb.c 139: unable get_string_descriptor -1: Operation not permitted
Jun  2 23:34:02 mcfm4 colord-sane: io/hpmud/musb.c 2050: invalid manufacturer string ret=-1

I obtain the same errors when I switch on my HP PSC 1610 printer which have
a card reader in it.

The USB disk or the printer work crrectly so I do not know if I have to take
care of these messages.

With my best regards.

#675710#10
Date:
2012-06-04 05:53:00 UTC
From:
To:
severity 674710 wishlist
quit

Hello,

This appears to be colord-sane identifying the presence of a new USB
device and trying to probe to see if it's a USB scanner. colord-sane
deliberately doesn't have permission to do this for arbitrary USB
devices, just things that we identify as scanners.

This (should be) is harmless, but it could be silenced. Probably by only
attempting to probe devices udev knows to be scanners.

#675710#15
Date:
2012-06-04 07:16:09 UTC
From:
To:
severity 675710 wishlist
severity 674710 normal
thanks

The bug number is 675710, not 674710.

#675710#22
Date:
2012-06-04 16:18:58 UTC
From:
To:
I've made complementary tests.

With the HP PSC 1610 printer (printer, scanner and SD card reader)
switched off when I insert a USB key or switch on a USB disk colord
write no messages and with cups and colord and colord-sane running.

On a PC wich is not connect to the scanner/printer there are no messages
when a USB disk is connected and with colord-sane running.

I think with these observations that your explanation is not complete,
it does not answer why there are messages only if my printer/scanner is
connected and switched on.

Best regards

Francois

#675710#27
Date:
2014-06-02 15:30:43 UTC
From:
To:
I come back to this bug. Now there are no more error message in the logs
when I switch on my printer or an external USB disk.

So I think you can close the bug.

Regards

#675710#32
Date:
2022-02-17 18:54:36 UTC
From:
To:
The error message with version 1.4.5-3 in bullseye is slightly
different, but colord-sane still outputs nasty errors with high
severity to the system log when connecting and disconnecting USB
storage devices:

Feb 17 20:40:23 zanshin colord-sane[205757]: io/hpmud/musb.c 2101:
Invalid usb_open: Permission denied
Feb 17 20:40:23 zanshin colord-sane[205757]: io/hpmud/musb.c 2101:
Invalid usb_open: Permission denied
Feb 17 20:40:23 zanshin colord-sane[205757]: io/hpmud/musb.c 2101:
Invalid usb_open: Permission denied
Feb 17 20:40:23 zanshin colord-sane[205757]: io/hpmud/musb.c 2101:
Invalid usb_open: Permission denied
Feb 17 20:44:26 zanshin colord-sane[205880]: io/hpmud/musb.c 2101:
Invalid usb_open: Permission denied
Feb 17 20:44:26 zanshin colord-sane[205880]: io/hpmud/musb.c 2101:
Invalid usb_open: Permission denied
Feb 17 20:44:26 zanshin colord-sane[205880]: io/hpmud/musb.c 2101:
Invalid usb_open: Permission denied
Feb 17 20:44:26 zanshin colord-sane[205880]: io/hpmud/musb.c 2101:
Invalid usb_open: Permission denied