| Summary: | USB MFP printers not detected, because /usr/lib/udev/rules.d/60-libsane.rules modifies all "scanners", including MFPs, to be in group "scanner" | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Marc Krämer <mageia> |
| Component: | RPM Packages | Assignee: | Thierry Vignaud <thierry.vignaud> |
| Status: | NEW --- | QA Contact: | |
| Severity: | major | ||
| Priority: | Normal | CC: | doktor5000, fri, julien.moragny, lewyssmith, lists.jjorge, lloyd.osten, lovaren, marja11 |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | cups-2.2.1-1.mga6.src.rpm, sane, libusb | CVE: | |
| Status comment: | |||
| Bug Depends on: | |||
| Bug Blocks: | 18367 | ||
|
Description
Marc Krämer
2016-12-28 17:39:19 CET
Marja Van Waes
2016-12-30 09:38:40 CET
CC:
(none) =>
marja11 is there anything I can do to make the printer work again? (In reply to Marc K from comment #1) > is there anything I can do to make the printer work again? I suppose you could always try to debug the driver if it's open source. CC:
(none) =>
hamnisdude this is not the driver it is libusb backend which has the problem I did some builds and keep you informed about it. Nevertheless I suggest to disable silent output of libusb_open (will post this in a ticket). Ok, found it. /usr/lib/udev/rules.d/60-libsane.rules modifies all "scanners" to be in group "scanner". This is true for all MultiFunctionPrinters too. So I expect all MFP devices will have trouble after update. For me I added a rule which gave full access to all users on the device. I think this might work, if lp is a member of group scanner too. For libusb I suggest to generally enable debug output of libusb_open : function _get_usbfs_fd parameter "silent" (from op_open) which states the device which can't be opened. I think this output would be MUCH more help than "Failed to open device, code: -3 " Thanks for debugging the issue, M K :-) @ Zézinho CC'ing you, because, sane-backends provides /usr/lib/udev/rules.d/60-libsane.rules and afaik you're the maintainer. Summary:
USB printers not detected =>
USB MFP printers not detected, because /usr/lib/udev/rules.d/60-libsane.rules modifies all "scanners", including MFPs, to be in group "scanner"
Marja Van Waes
2017-01-08 17:45:30 CET
Blocks:
(none) =>
18367
Florian Hubold
2018-04-13 18:38:18 CEST
CC:
(none) =>
doktor5000 I have an old Samsung SCX-4200 USB printer/scanner. I don't use it as a printer, so that's not a problem. Here's what happens when I use it as a scanner. If I try using a scanning program (Xsane, for example) the scanner is only detected as soon as the scanner comes to the "ready" state. (scanner is set NOT to go into energy saving mode) After about 10 minutes, Xsane (or other scanning programs) do not find the scanner (there are no devices) For a test, I have another computer with Windows 11 installed. I also have VirtualBox for Windows (6.1.38) installed on it. I installed Fedora Spin KDE-Live 37 beta under VirtualBox. The scanner works perfectly with Xsane and the other scanning programs, no matter how long it sits at the "ready" state. CC:
(none) =>
lloyd.osten I have discovered a simple workaround that fixed my problem. I simply added myself to the groups "usb" and "scanner." It worked perfectly after that....even if the scanner was in power-saving mode. Thank you for the quick reply and the tip :) First thought is if this should be needed or automated, leaving for someone who knows better before closing. Second thought is we should have wiki pages with tips for scanners and printers... I know pretty much zero about programming. But it seems to me that if that's really the cause, then the scanner installation program should handle that automatically. As for your second suggestion, I totally agree with you. The goal is to make Mageia as user-friendly and bug-free as possible. Regarding the original bug, doesn't the patch for bug #17593, which add the group lp in RW to the device fix the issue? (see: http://svnweb.mageia.org/packages/cauldron/sane/current/SOURCES/sane-backends-1.0.25-udev-add-lp-group-rw.patch?view=log ) CC:
(none) =>
julien.moragny |