new usb quirk: no-alt-set - won't even try set_conf or set_int_alt_set#1444
Merged
michaelrsweet merged 4 commits intoOpenPrinting:masterfrom Dec 10, 2025
Merged
Conversation
new usb quirk: no-alt-set - won't even try libusb_set_configuration or libusb_set_interface_alt_setting I noticed that sometimes garbage is printed with my Samsung ProXpress M3870FD, this happens most often if the printer has gone to sleep (after 1 min by default). So if I print something 10 times, I get garbage 3-4 times. After month of investigating I found that Samsung devices don't like libusb_set_configuration or libusb_set_interface_alt_setting. My device: 04e8:3460 Samsung Electronics Co., Ltd M337x 387x 407x Series https://blog.stuffedcow.net/2011/10/samsung-linux-cups-usb-printing/ apple/cups#3965 OpenPrinting/system-config-printer#408 https://github.com/OpenPrinting/cups/blob/master/backend/usb-libusb.c (search by "Samsung")
04e8:3460 Samsung Electronics Co., Ltd M337x 387x 407x Series This model print garbage after libusb_set_configuration or libusb_set_interface_alt_setting, especially when the printer has gone into sleep mode.
michaelrsweet
requested changes
Dec 3, 2025
Member
michaelrsweet
left a comment
There was a problem hiding this comment.
Generally good, let's just remove the extra debug printfs since the important thing to know is whether we set the configuration, not that we didn't.
Contributor
Author
|
If you have any comments on the current version, please let me know) |
michaelrsweet
approved these changes
Dec 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
new usb quirk: no-alt-set - won't even try libusb_set_configuration or libusb_set_interface_alt_setting
I noticed that sometimes garbage is printed with my
Samsung ProXpress M3870FD, this happens most often
if the printer has gone to sleep (after 1 min by default).
So if I print something 10 times, I get garbage 3-4 times.
After month of investigating I found that Samsung devices
don't like libusb_set_configuration or
libusb_set_interface_alt_setting.
My device:
04e8:3460 Samsung Electronics Co., Ltd M337x 387x 407x Series
https://blog.stuffedcow.net/2011/10/samsung-linux-cups-usb-printing/
apple/cups#3965
OpenPrinting/system-config-printer#408
https://github.com/OpenPrinting/cups/blob/master/backend/usb-libusb.c (search by "Samsung")