#1042719 “colord-sane[…]: io/hpmud/musb.c 2101: Invalid usb_open: Permission denied” is missing the description of the USB port

Package:
libhpmud0
Source:
libhpmud0
Description:
HP Multi-Point Transport Driver (hpmud) run-time libraries
Submitter:
Al Ma
Date:
2023-08-10 02:33:02 UTC
Severity:
normal
#1042719#5
Date:
2023-07-31 02:38:40 UTC
From:
To:
Package: libhpmud0
Version: 3.22.10+dfsg0-2
Control: affects -1 hplip hplip-data colord
In my journal I discovered an error
colord-sane[1000]: io/hpmud/musb.c 2101: Invalid usb_open: Permission denied
The part “io/hpmud/musb.c 2101: Invalid usb_open: Permission denied” is red. The message appears during boot; a hopefully relevant part of the journal is attached. The computer has many USB-A ports, and by default lots of stuff is connected to them (a mouse, a keyboard, an HP printer, an HP all-in-one (used only as a scanner), and sometimes an external USB thumb drive; the printer and the scanner usually sleep or are off at boot).  It would be great if we could see an indication of which port was tried to get opened (the identifier of the USB port is unlikely to be a privacy concern) because connecting and disconnecting stuff and rebooting for the purpose of debugging may be difficult. (In my special case, plugging/unplugging the cables on the particular computer is physically tedious, and rebooting takes lots of time. Other folks might find rebooting difficult, e.g., in case of highly available servers.)
Further, the red message is unlikely to be a hardware bug because all devices seem to work to the extent of my knowledge with Windows (the printer and the scanner seem to work once you awake them from sleep or turn them on).  The fact that certain devices are connected to the computer and are simply asleep does not constitute a user error warranting red color but is normal behavior and should be treated as such. Of course, also the permissions of the USB device in the file system might be wrong for whatever reason. So I speculate that the red message is likely to be a software issue. I can't speculate further without better error reporting.
The package colord in version 1.4.6-2.2 is installed.
Nitpickung for hard-boiled purists: `if (hd == NULL)` in musb.c should be simplified to `if(!hd)`. 😊
Gratefully,
AlMa