udev-config-printer.c: don't touch libusb alt setting for Samsung MFPs#408
Open
snejok wants to merge 1 commit intoOpenPrinting:masterfrom
Open
udev-config-printer.c: don't touch libusb alt setting for Samsung MFPs#408snejok wants to merge 1 commit intoOpenPrinting:masterfrom
snejok wants to merge 1 commit intoOpenPrinting:masterfrom
Conversation
When connect Samsung ProXpress M3870FD udev-configure-printer try to alter usb settings by libusb_set_interface_alt_setting, but for most Samsung devices this causes a problem: https://blog.stuffedcow.net/2011/10/samsung-linux-cups-usb-printing/ apple/cups#3965 https://github.com/OpenPrinting/cups/blob/master/backend/usb-libusb.c (search by "Samsung")
Author
|
This is only quick example for one device, I don't really know how to do it right way, because I didn't test another Samsung devices |
snejok
added a commit
to snejok/cups
that referenced
this pull request
Dec 3, 2025
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")
snejok
added a commit
to snejok/cups
that referenced
this pull request
Dec 3, 2025
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")
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.
When connect Samsung ProXpress M3870FD
udev-configure-printer try to alter usb settings by libusb_set_interface_alt_setting, but for most Samsung devices this causes a problem:
https://blog.stuffedcow.net/2011/10/samsung-linux-cups-usb-printing/
apple/cups#3965
https://github.com/OpenPrinting/cups/blob/master/backend/usb-libusb.c (search by "Samsung")