You are not logged in.

#1 2026-09-03 03:51

paulbirdsaredinos
Member
Registered: 2026-08-27
Posts: 6

HP OfficeJet 5200 printer not working with Q4OS as network printer

I recently installed Q4OS (Debian 13) on a Dell Inspiron laptop.
System is running fine but one of my last switchover tasks is to get my HP printer working on it. I can't get the printer to work as a network printer. I've gotten it to work with a direct USB connection. The printer works fine as a net one with a Windows 11 laptop I have.
I've tried various procedures described in the forums here and on other tech websites but haven't had success yet. I'm wondering if this particular HP model is not supported by the hplip and cusp programs.

Offline

#2 2026-09-03 09:03

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 6,352
Website

Re: HP OfficeJet 5200 printer not working with Q4OS as network printer

The OfficeJet 5200 series should be supported. HPLIP in Debian 13 supports network printers, but I would first try setting it up as a driverless IPP printer rather than using HPLIP. Could you please post the output of:
$ lpstat -e
$ lpstat -t

Also, what is the printer's IP address? If you can ping the printer from Q4OS, we can try adding it directly via IPP or JetDirect.

Offline

#3 2026-09-03 13:51

paulbirdsaredinos
Member
Registered: 2026-08-27
Posts: 6

Re: HP OfficeJet 5200 printer not working with Q4OS as network printer

lpstat -e output is :       HP_OfficeJet_5200_series_FEC5E4

lpstat -t output is nothing.


If I ping the printer's IP address, no response comes back. I don't have the printer connected to my home's router hub. I been trying to connect with it just by the printer's own wireless interface.

When I print the configuration page from the printer's front panel, it lists two interfaces! One it lists as 802.11 Wireless, the other as Wi-Fi Direct. Neither IP address responds to ping. Which one should I use for configuring Q4OS?


q4osteam wrote:

The OfficeJet 5200 series should be supported. HPLIP in Debian 13 supports network printers, but I would first try setting it up as a driverless IPP printer rather than using HPLIP. Could you please post the output of:
$ lpstat -e
$ lpstat -t

Also, what is the printer's IP address? If you can ping the printer from Q4OS, we can try adding it directly via IPP or JetDirect.

Offline

#4 2026-09-03 14:04

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 6,352
Website

Re: HP OfficeJet 5200 printer not working with Q4OS as network printer

Use the **802.11 Wireless** interface, not Wi-Fi Direct, provided the printer is connected to the same Wi-Fi network as the Q4OS laptop.
Wi-Fi Direct is a separate peer-to-peer network and is not normally what you want for a permanent network printer setup.
However, if the printer is not connected to your home router at all, then the 802.11 address won't be reachable from the laptop either. In that case, you need to either connect the printer to your home Wi-Fi network, or connect the laptop to the printer's Wi-Fi Direct network.
The fact that `lpstat -e` already shows `HP_OfficeJet_5200_series_FEC5E4` is interesting, though. It suggests the printer is being discovered somehow. Please run:
$ lpstat -v
$ ip addr
and post the output. That should tell us how CUPS is currently seeing the printer and which network interface is being used.

Offline

#5 2026-09-03 19:47

paulbirdsaredinos
Member
Registered: 2026-08-27
Posts: 6

Re: HP OfficeJet 5200 printer not working with Q4OS as network printer

Result of the lpstat -v is nothing.

Result of the ip addr:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute
       valid_lft forever preferred_lft forever
2: enp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether 8c:ec:4b:26:7f:54 brd ff:ff:ff:ff:ff:ff
    altname enx8cec4b267f54
3: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 74:e5:f9:a8:1a:4c brd ff:ff:ff:ff:ff:ff
    altname wlx74e5f9a81a4c
    inet 192.168.4.24/22 brd 192.168.7.255 scope global dynamic noprefixroute wlp2s0
       valid_lft 14170sec preferred_lft 14170sec
    inet6 fdfa:c588:7b39:1:f387:e8bc:9978:6721/64 scope global dynamic noprefixroute
       valid_lft 2591876sec preferred_lft 604676sec
    inet6 2605:d580:1400:1257:678b:8237:57ad:b70b/64 scope global dynamic noprefixroute
       valid_lft 86244sec preferred_lft 1644sec
    inet6 fe80::9ecb:d456:c8a9:d6d2/64 scope link noprefixroute
       valid_lft forever preferred_lft forever

I'm not sure but the result from the lpstat -e I previously sent to you may be a remnant from when I was trying to use the GUI form of hp-setup to add the printer. It looked like it added the printer which would show up in the list of available choices but I would get an error message when I tried to actually print.

Only when I ran hp-setup in the interactive command line mode did I get the printer to work via a cable from the printer plugged into a USB port on the laptop.

Unfortunately the only port on the printer is neither a USB nor a rj45 Ethernet one. The cable supplied by HP to plug into it ends in a male USB connector which  I currently have no means of plugging into my home router hub.

Offline

#6 2026-09-03 20:05

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 6,352
Website

Re: HP OfficeJet 5200 printer not working with Q4OS as network printer

The USB cable is only for USB printing; you don't need to connect the printer to the router by USB.

For network printing, the printer needs to join your Wi-Fi network via its **802.11 Wireless** interface. Once it has an IP address in the same network as the laptop (currently `192.168.4.x`), we can configure it in Q4OS.

Wi-Fi Direct is a separate connection and isn't needed for this.

Offline

#7 2026-09-03 20:35

paulbirdsaredinos
Member
Registered: 2026-08-27
Posts: 6

Re: HP OfficeJet 5200 printer not working with Q4OS as network printer

Correction/Clarification:
The printer only has a USB type B port; it does not have a port into which a regular Ethernet cable can be plugged in. The cable that came with the printer is a female USB type B to a male USB type A. Thus my current inability to connect the printer to my home router hub.
The printer does have Wi-Fi Direct support.


paulbirdsaredinos wrote:

Result of the lpstat -v is nothing.
Result of the ip addr:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute
       valid_lft forever preferred_lft forever
2: enp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether 8c:ec:4b:26:7f:54 brd ff:ff:ff:ff:ff:ff
    altname enx8cec4b267f54
3: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 74:e5:f9:a8:1a:4c brd ff:ff:ff:ff:ff:ff
    altname wlx74e5f9a81a4c
    inet 192.168.4.24/22 brd 192.168.7.255 scope global dynamic noprefixroute wlp2s0
       valid_lft 14170sec preferred_lft 14170sec
    inet6 fdfa:c588:7b39:1:f387:e8bc:9978:6721/64 scope global dynamic noprefixroute
       valid_lft 2591876sec preferred_lft 604676sec
    inet6 2605:d580:1400:1257:678b:8237:57ad:b70b/64 scope global dynamic noprefixroute
       valid_lft 86244sec preferred_lft 1644sec
    inet6 fe80::9ecb:d456:c8a9:d6d2/64 scope link noprefixroute
       valid_lft forever preferred_lft forever

I'm not sure but the result from the lpstat -e I previously sent to you may be a remnant from when I was trying to use the GUI form of hp-setup to add the printer. It looked like it added the printer which would show up in the list of available choices but I would get an error message when I tried to actually print.

Only when I ran hp-setup in the interactive command line mode did I get the printer to work via a cable from the printer plugged into a USB port on the laptop.

Unfortunately the only port on the printer is neither a USB nor a rj45 Ethernet one. The cable supplied by HP to plug into it ends in a male USB connector which  I currently have no means of plugging into my home router hub.

Offline

#8 2026-09-03 22:14

hchiper
Member
From: Belgium
Registered: 2020-07-28
Posts: 831

Re: HP OfficeJet 5200 printer not working with Q4OS as network printer

From the manual (http://h10032.www1.hp.com/ctg/Manual/c05648843.pdf), you need to change the connection type from USB to WiFi and to setup the WiFi connection. See pages 84-88.


Q4OS machine: Samsung R519 - Pentium T4200 2.0 GHz - 4 GB RAM - 500 GB SSD

Offline

Registered users online in this topic: 0, guests: 1

Board footer

Powered by FluxBB
Modified by Visman