-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Printers
- Printer Setup, Software & Drivers
- HP LaserJet Pro MFP M28w on Lubuntu

Create an account on the HP Community to personalize your profile and ask a question
01-31-2023 02:46 AM - edited 02-01-2023 12:21 AM
Hi Community,
How can I setup a HP LaserJet Pro MFP M28w properly?
I'm using HPLIP 3.22.2 on Lubuntu 22.04.
Whenever I install the printer (USB-connected) via hplip-gui, the correct model is found:
hplip:0/ppd/hplip/HP/hp-laserjet_mfp_m28-m31.ppd
However, when I try to print a test page, I get the message "Unable to communicate with printer HP_LaserJet_MFP_M28-M31."
Here are some log messages that might be helpful:
---------------------------------------------------------------------------------------------
lpstat -v
---------------------------------------------------------------------------------------------
device for HP_LaserJet_MFP_M28-M31: hp:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC6P76670
device for HP_LaserJet_MFP_M28w_BEC693_USB: implicitclass://HP_LaserJet_MFP_M28w_BEC693_USB/
---------------------------------------------------------------------------------------------
journalctl
---------------------------------------------------------------------------------------------
Jan 31 10:17:50 20ujs00k00 python3[43514]: io/hpmud/musb.c 427: Found interface conf=0, iface=0, altset>
Jan 31 10:17:50 20ujs00k00 python3[43514]: io/hpmud/musb.c 389: Active kernel driver on interface=0 ret>
Jan 31 10:17:50 20ujs00k00 python3[43514]: io/hpmud/musb.c 535: claimed 7/1/2 interface
Jan 31 10:17:50 20ujs00k00 python3[43514]: io/hpmud/musb.c 781: read actual device_id successfully fd=1>
Jan 31 10:17:50 20ujs00k00 python3[43514]: io/hpmud/musb.c 561: released 7/1/2 interface
Jan 31 10:17:50 20ujs00k00 python3[43514]: io/hpmud/musb.c 427: Found interface conf=0, iface=0, altset>
Jan 31 10:17:50 20ujs00k00 python3[43514]: io/hpmud/musb.c 389: Active kernel driver on interface=0 ret>
Jan 31 10:17:50 20ujs00k00 python3[43514]: io/hpmud/musb.c 535: claimed 7/1/2 interface
Jan 31 10:17:50 20ujs00k00 python3[43514]: io/hpmud/musb.c 781: read actual device_id successfully fd=1>
Jan 31 10:17:50 20ujs00k00 python3[43514]: io/hpmud/musb.c 561: released 7/1/2 interface
Jan 31 10:17:50 20ujs00k00 python3[43514]: io/hpmud/musb.c 961: new HP-EWS-LEDM channel=23 clientCnt=1 >
Jan 31 10:17:50 20ujs00k00 python3[43514]: io/hpmud/musb.c 427: Found interface conf=0, iface=1, altset>
Jan 31 10:17:50 20ujs00k00 python3[43514]: io/hpmud/musb.c 389: Active kernel driver on interface=1 ret>
Jan 31 10:17:50 20ujs00k00 python3[43514]: io/hpmud/musb.c 515: invalid claim_interface ff/4/1: Device >
Jan 31 10:17:50 20ujs00k00 python3[43514]: io/hpmud/musb.c 976: removed HP-EWS-LEDM channel=23 clientCn>
Jan 31 10:17:50 20ujs00k00 python3[43514]: io/hpmud/hpmud.c 721: invalid channel_write state
Jan 31 10:17:50 20ujs00k00 hp-testpage[43514]: [43514]: error: Channel write error
Jan 31 10:17:50 20ujs00k00 hp-testpage[43514]: io/hpmud/hpmud.c 702: invalid channel_close state
Jan 31 10:17:50 20ujs00k00 hp-testpage[43514]: io/hpmud/musb.c 961: new HP-EWS-LEDM channel=23 clientCn>
Jan 31 10:17:50 20ujs00k00 hp-testpage[43514]: io/hpmud/musb.c 427: Found interface conf=0, iface=1, al>
Jan 31 10:17:50 20ujs00k00 hp-testpage[43514]: io/hpmud/musb.c 389: Active kernel driver on interface=1>
Jan 31 10:17:50 20ujs00k00 hp-testpage[43514]: io/hpmud/musb.c 515: invalid claim_interface ff/4/1: Dev>
Jan 31 10:17:50 20ujs00k00 hp-testpage[43514]: io/hpmud/musb.c 976: removed HP-EWS-LEDM channel=23 clie>
Jan 31 10:17:50 20ujs00k00 hp-testpage[43514]: io/hpmud/hpmud.c 721: invalid channel_write state
Jan 31 10:17:50 20ujs00k00 hp-testpage[43514]: [43514]: error: Channel write error
Jan 31 10:17:50 20ujs00k00 hp-testpage[43514]: io/hpmud/hpmud.c 702: invalid channel_close state
Jan 31 10:17:50 20ujs00k00 hp-testpage[43514]: io/hpmud/musb.c 961: new HP-EWS-LEDM channel=23 clientCn>
Jan 31 10:17:50 20ujs00k00 hp-testpage[43514]: io/hpmud/musb.c 427: Found interface conf=0, iface=1, al>
Jan 31 10:17:50 20ujs00k00 hp-testpage[43514]: io/hpmud/musb.c 389: Active kernel driver on interface=1>
Jan 31 10:17:50 20ujs00k00 hp-testpage[43514]: io/hpmud/musb.c 515: invalid claim_interface ff/4/1: Dev>
Jan 31 10:17:50 20ujs00k00 hp-testpage[43514]: io/hpmud/musb.c 976: removed HP-EWS-LEDM channel=23 clie>
Jan 31 10:17:50 20ujs00k00 hp-testpage[43514]: io/hpmud/hpmud.c 721: invalid channel_write state
Jan 31 10:17:50 20ujs00k00 hp-testpage[43514]: [43514]: error: Channel write error
Jan 31 10:17:50 20ujs00k00 hp-testpage[43514]: io/hpmud/hpmud.c 702: invalid channel_close state
Jan 31 10:17:50 20ujs00k00 hp-testpage[43514]: hp-testpage[43514]: error: Device is busy or in an error>
---------------------------------------------------------------------------------------------
02-01-2023 12:16 AM - edited 02-01-2023 12:17 AM
Additional information:
Regarding scanning: I cannot scan using the GUI (neither HPLIP's nor Lubuntu's "Simple Scan" app), but it works using the CLI tool via airscan:
--------------------------------------------------------------------------------------------------------------
hp-scan
HP Linux Imaging and Printing System (ver. 3.22.2)
Scan Utility ver. 2.2
Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
-----------------
| SELECT DEVICE |
-----------------
Num Scan device URI
-------- -----------------------------------------------------------
0 escl:http://localhost:60000
1 airscan:e0:HP LaserJet MFP M28w (BEC693) (USB)
2 hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC6P76670
3 hpaio:/net/hp_laserjet_mfp_m28-m31?ip=127.0.0.1&queue=false
Enter number 0...3 for device (q=quit) ?1
warning: No destinations specified. Adding 'file' destination by default.
Using device airscan:e0:HP LaserJet MFP M28w (BEC693) (USB)
Opening connection to device...
Resolution: 300dpi
Mode: gray
Compression: JPEG
Scan area (mm):
Top left (x,y): (0.000000mm, 0.000000mm)
Bottom right (x,y): (215.899994mm, 297.010666mm)
Width: 215.899994mm
Height: 297.010666mm
Destination(s): file
Output file:
warning: File destination enabled with no output file specified.
Setting output format to PNG for greyscale mode.
warning: Defaulting to '/home/[redacted]/hpscan001.png'.
Warming up...
Scanning...
Reading data: [******************************************************************] 100% 8.5 MB
Read 8.5 MB from scanner.
Closing device.
Outputting to destination 'file':
Done.
--------------------------------------------------------------------------------------------------------------
However, when I use the hpaio protocol, I get the same error as when trying to print print:
--------------------------------------------------------------------------------------------------------------
hp-scan
HP Linux Imaging and Printing System (ver. 3.22.2)
Scan Utility ver. 2.2
Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
-----------------
| SELECT DEVICE |
-----------------
Num Scan device URI
-------- -----------------------------------------------------------
0* airscan:e0:HP LaserJet MFP M28w (BEC693) (USB)
1 hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC6P76670
2 hpaio:/net/hp_laserjet_mfp_m28-m31?ip=127.0.0.1&queue=false
Enter number 0...2 for device (q=quit, <enter>=default: 0*) ?1
warning: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/usb/HP_LaserJet_MFP_M28-M31?serial=VNC6P76670
Opening connection to device...
error: SANE: Error during device I/O (code=9)
--------------------------------------------------------------------------------------------------------------
Scanning via the CLI tool is a bit of a cumbersome and limited workaround, though.
I would appreciate any help.