Closed hugh712 closed 3 years ago
currently the syspath for udev-configure-printer is too specific level as:
/devices/pci0000:00/0000:00:14.0/usb1/1-5
But current path can be as below for removing
/devices/pci0000:00/0000:00:14.0/usb1/1-5:1.0 or /devices/pci0000:00/0000:00:14.0/usb1/1-5:1.0/usbmisc/lp0
The idea of my solution[0] is:
check if the path provided by map is a subset of removing device path eg. /devices/pci0000:00/0000:00:14.0/usb1/1-5 is a subset of /devices/pci0000:00/0000:00:14.0/usb1/1-5:1.0
check if the exist of this device eg. stat /sys/devices/pci0000:00/0000:00:14.0/usb1/1-5
if this device is not exist, then remove..
Merged PR #183 which fixes this. Thank you very much.
This continues to affect me in Fedora 36. Was this problem definitely resolved?
For those that observe this during the future, choose your cables wisely!
[ Impact ] After printers (non-ippusb protocal) have been disconnected, the status of cups still shows "idle" instead of "disabled", so seems the disconnected procedure hasn't worked well.
[ Test Case ]
[Expected result] The status should show disabled.
[Actual result] The status shows idle.
[info] Target: HP LaserJet Pro203dw HP Officejet 100 Mobile Printer HP Officeject 200 Mobile Printer Brother HL-2250DN Samsung ML-331x