-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USB (libusb) backend needs to print an error message when the open fails #5658
Comments
What version of CUPS? What does the /var/log/cups/error_log file show when you run "lpinfo -v"? |
I'm running CUPS 2.2.12 on Gentoo Linux. It's built with the following configuration:
The usb USE flag tells it to build against libusb (and libusb 1.0.21 is installed).
|
I'm going to try upgrading to CUPS 2.3.0 to see if that makes a difference. |
CUPS 2.3.0 doesn't behave any differently than the older version. |
@salfter I need to see whatever errors are being reported in the CUPS error_log - I suspect you have a permissions issue with the USB device files. |
OK, I'm not seeing any errors from the USB backend in the error_log; can you try:
to see what the USB backend does when run as the "lp" user? |
That returned this:
Adding the lp user to the usb and lpadmin groups (possible Gentoo packaging issue?) fixed that:
|
I've also opened an issue over here for the permissions problem found so far, and to pick their brains a bit: |
I should probably update the backend to send any libusb errors as ERROR: messages as well... |
Yes, as no error messages are showing in the log. If there's a patchset or a git commit I can pull from that'll provide extra logging, I can get it integrated with the build system for testing. |
I picked up a Zebra LP2844 cheap off of eBay today...tested it at work under Windows 10, and now I want to get it running at home under Gentoo Linux. CUPS is built with libusb support and
/usr/libexec/cups/backend/usb
finds the printer and returns usb://Zebra/LP2844?serial=42A062401950 as the printer URL.lpinfo -v
shows no indication of the printer, though, and "Find New Printers" in the CUPS web interface returns nothing.If I enable
CONFIG_USB_PRINTING
in the kernel source and recompile, plugging in the printer now causes it to show up at /dev/usb/lp0. I can manually configure the printer in CUPS, telling it to print to file:///dev/usb/lp0 (after tweaking /etc/cups/cups-files.conf appropriately), and the test page and a label I knocked together in LibreOffice will priint successfully. If I unload the usblp kernel module and change the printer configuration from the file: URL to the usb: URL, print jobs get stuck. If I reload usblp and change the configuration back to the file: URL, jobs in the queue will finally print.The text was updated successfully, but these errors were encountered: