Skip to content

Conversation

@snejok
Copy link
Contributor

@snejok snejok commented 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")

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 michaelrsweet self-assigned this Dec 3, 2025
@michaelrsweet michaelrsweet added bug Something isn't working priority-medium printer specific issue The issue is connected to a specific printer labels Dec 3, 2025
@michaelrsweet michaelrsweet added this to the v2.4.x milestone Dec 3, 2025
Copy link
Member

@michaelrsweet michaelrsweet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@snejok
Copy link
Contributor Author

snejok commented Dec 5, 2025

If you have any comments on the current version, please let me know)

@snejok snejok requested a review from michaelrsweet December 10, 2025 17:06
@michaelrsweet michaelrsweet modified the milestones: v2.4.x, v2.5 Dec 10, 2025
@michaelrsweet michaelrsweet merged commit 764b8bf into OpenPrinting:master Dec 10, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working printer specific issue The issue is connected to a specific printer priority-medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants