Skip to content

Conversation

@snejok
Copy link

@snejok snejok commented Oct 27, 2025

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")

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")
@snejok
Copy link
Author

snejok commented Oct 27, 2025

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")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant