You are not logged in.

#1 2020-04-04 14:04:42

Momoleraclo
Member
Registered: 2020-04-04
Posts: 28

[SOLVED] HP printer not detected (yes its for covid19)

Hi

My HP printer is not detected when I try to use it

Could not start printer
Please check your printer configuration

dmesg
[    5.096497]usb 2-1.3: Product: Photosmart B109a-m
[    5.096507]usb 2-1.3: Manufacturer: HP
[root@archlinux]: /home/xxxxxx># hp-setup

HP Linux Imaging and Printing System (ver. 3.20.3)
Printer/Fax Setup Utility ver. 9.0

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.

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Searching... (bus=usb, search=(None), desc=0)
error: Failed to find the lsusb command
error: No devices found on bus: usb
[root@archlinux]: /home/xxxxxx># lsusb
bash: lsusb: command not found
[root@archlinux]: /home/xxxxxx># pacman -S lsusb
error: target not found: lsusb

Last edited by Momoleraclo (2020-04-04 16:46:08)

Offline

#2 2020-04-04 14:08:40

Momoleraclo
Member
Registered: 2020-04-04
Posts: 28

Re: [SOLVED] HP printer not detected (yes its for covid19)

I installed cups and cups-pdf but can't access localhost631

Offline

#3 2020-04-04 14:27:15

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,139

Re: [SOLVED] HP printer not detected (yes its for covid19)

Did you enable the services? https://wiki.archlinux.org/index.php/CUPS

lsusb is part of usbutils

Offline

#4 2020-04-04 15:15:38

Momoleraclo
Member
Registered: 2020-04-04
Posts: 28

Re: [SOLVED] HP printer not detected (yes its for covid19)

I think I tried earlier but it gave me an error even with root privileges

Can please re-write me the command please?

Thanks for help

Offline

#5 2020-04-04 15:20:21

loqs
Member
Registered: 2014-03-06
Posts: 18,014

Re: [SOLVED] HP printer not detected (yes its for covid19)

Systemd#Using_units covers checking the status of a service as well as enabling and disabling one.

Offline

#6 2020-04-04 15:21:22

Momoleraclo
Member
Registered: 2020-04-04
Posts: 28

Re: [SOLVED] HP printer not detected (yes its for covid19)

ok I intalled usbutils

sudo pacman -S usbutils

lsusb said:

[xxxx@archlinux]: ~>$ lsusb
Bus 001 Device 004: ID 03f0:7a11 HP, Inc

Offline

#7 2020-04-04 15:32:46

loqs
Member
Registered: 2014-03-06
Posts: 18,014

Re: [SOLVED] HP printer not detected (yes its for covid19)

Momoleraclo wrote:

I think I tried earlier but it gave me an error even with root privileges

What was the command you tried.  What output did it produce?  https://bbs.archlinux.org/viewtopic.php?id=57855

Offline

#8 2020-04-04 15:34:14

Momoleraclo
Member
Registered: 2020-04-04
Posts: 28

Re: [SOLVED] HP printer not detected (yes its for covid19)

[windows@archlinux]: ~>$ hp-setup

HP Linux Imaging and Printing System (ver. 3.20.3)
Printer/Fax Setup Utility ver. 9.0

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.


Searching... (bus=usb, search=Bus 001 Device 004: ID 03f0:7a11 HP, Inc, desc=0)
error: No devices found on bus: usb

Offline

#9 2020-04-04 15:36:06

Momoleraclo
Member
Registered: 2020-04-04
Posts: 28

Re: [SOLVED] HP printer not detected (yes its for covid19)

loqs wrote:

Systemd#Using_units covers checking the status of a service as well as enabling and disabling one.

I don't know what to do with this

loqs wrote:
Momoleraclo wrote:

I think I tried earlier but it gave me an error even with root privileges

What was the command you tried.  What output did it produce?  https://bbs.archlinux.org/viewtopic.php?id=57855

I don't remenber hmm

Offline

#10 2020-04-04 15:47:09

judd1
Member
Registered: 2015-09-04
Posts: 260

Re: [SOLVED] HP printer not detected (yes its for covid19)


This isn't right. This isn't even wrong.
-- Wolfgang Pauli --

Offline

#11 2020-04-04 15:47:32

seth
Member
Registered: 2012-09-03
Posts: 58,435

Re: [SOLVED] HP printer not detected (yes its for covid19)

Wild guess: add your user to the lp group (you'll have to re-login to apply this or run a new login shell), then re-run hp-setup

sudo usermod -aG lp your_username

Offline

#12 2020-04-04 15:52:18

Momoleraclo
Member
Registered: 2020-04-04
Posts: 28

Re: [SOLVED] HP printer not detected (yes its for covid19)

seth wrote:

Wild guess: add your user to the lp group (you'll have to re-login to apply this or run a new login shell), then re-run hp-setup

sudo usermod -aG lp your_username

I rebooted, nothing changed

Offline

#13 2020-04-04 15:59:16

Momoleraclo
Member
Registered: 2020-04-04
Posts: 28

Re: [SOLVED] HP printer not detected (yes its for covid19)

BTW, printer work fine when I use (for example)  PureOs as live/test without I do nothing

In Anarchy lshw gave me :

*-usb:3
                         description: Printer
                         product: Photosmart B109a-m
                         vendor: HP
                         physical id: 4
                         bus info: usb@1:1.5.4
                         logical name: scsi8
                         version: 1.00
                         serial: CN9AS964SQ05C7
                         capabilities: usb-2.00 bidirectional emulated scsi-host
                         configuration: driver=usb-storage maxpower=2mA speed=480Mbit/s


I just did in my term and download :

sudo pacman -S cups cups-filters cups-pdf ghostscript gsfonts foomatic-db-engine foomatic-db foomatic-db-ppds foomatic-db-nonfree foomatic-db-nonfree-ppds gutenprint foomatic-db-gutenprint-ppds system-config-printer

then

[xxxxxx@archlinux]: ~>$ sudo systemctl enable org.cups.cupsd.socket
Created symlink /etc/systemd/system/sockets.target.wants/org.cups.cupsd.socket → /usr/lib/systemd/system/org.cups.cupsd.socket.

[windows@archlinux]: ~>$ sudo systemctl start org.cups.cupsd.socket

Offline

#14 2020-04-04 16:01:19

progandy
Member
Registered: 2012-05-17
Posts: 5,258

Re: [SOLVED] HP printer not detected (yes its for covid19)

This could be an old bug that has resurfaced since hplip 3.19: https://bugs.launchpad.net/hplip/+bug/535056

Try to edit /usr/share/hplip/data/models/models.dat: create a copy of the section [photosmart_b109a_series] and rename the copy to [photosmart_b109a-m]

Last edited by progandy (2020-04-04 16:02:26)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Online

#15 2020-04-04 16:05:24

Momoleraclo
Member
Registered: 2020-04-04
Posts: 28

Re: [SOLVED] HP printer not detected (yes its for covid19)

I dl a pdf from firefox, then open with libreoffice, it gave me a message "read only mode", I try to print : only generic printer available. If I try to print the message is still "could not start printer, please check your printer configuration"

When I try to detect printer with command hp-setup or using graphical hp device manager, still not working.

Offline

#16 2020-04-04 16:10:31

Momoleraclo
Member
Registered: 2020-04-04
Posts: 28

Re: [SOLVED] HP printer not detected (yes its for covid19)

progandy wrote:

This could be an old bug that has resurfaced since hplip 3.19: https://bugs.launchpad.net/hplip/+bug/535056

Try to edit /usr/share/hplip/data/models/models.dat: create a copy of the section [photosmart_b109a_series] and rename the copy to [photosmart_b109a-m]


It worked on my previous installation of Anarchy (less than a week)

Last edited by Momoleraclo (2020-04-04 16:10:52)

Offline

#17 2020-04-04 16:13:14

seth
Member
Registered: 2012-09-03
Posts: 58,435

Re: [SOLVED] HP printer not detected (yes its for covid19)

Oh, and at some point you'll likely require https://aur.archlinux.org/packages/hplip-plugin/
Alternatively you can probably use https://aur.archlinux.org/packages/foo2zjs-nightly/

Offline

#18 2020-04-04 16:14:36

Momoleraclo
Member
Registered: 2020-04-04
Posts: 28

Re: [SOLVED] HP printer not detected (yes its for covid19)

I'm trying your solutions guys, I'm still there

thanks for your help

Last edited by Momoleraclo (2020-04-04 16:15:03)

Offline

#19 2020-04-04 16:17:00

Momoleraclo
Member
Registered: 2020-04-04
Posts: 28

Re: [SOLVED] HP printer not detected (yes its for covid19)

[root@archlinux]: ~># git clone https://aur.archlinux.org/hplip-plugin.git
Cloning into 'hplip-plugin'...
remote: Enumerating objects: 168, done.
remote: Counting objects: 100% (168/168), done.
remote: Compressing objects: 100% (132/132), done.
remote: Total 168 (delta 36), reused 168 (delta 36), pack-reused 0
Receiving objects: 100% (168/168), 32.43 KiB | 3.60 MiB/s, done.
Resolving deltas: 100% (36/36), done.
[root@archlinux]: ~># git clone https://aur.archlinux.org/foo2zjs-nightly.git
Cloning into 'foo2zjs-nightly'...
remote: Enumerating objects: 238, done.
remote: Counting objects: 100% (238/238), done.
remote: Compressing objects: 100% (96/96), done.
remote: Total 238 (delta 142), reused 238 (delta 142), pack-reused 0
Receiving objects: 100% (238/238), 88.59 KiB | 1.28 MiB/s, done.
Resolving deltas: 100% (142/142), done.

Offline

#20 2020-04-04 16:19:44

Momoleraclo
Member
Registered: 2020-04-04
Posts: 28

Re: [SOLVED] HP printer not detected (yes its for covid19)

progandy wrote:

This could be an old bug that has resurfaced since hplip 3.19: https://bugs.launchpad.net/hplip/+bug/535056

Try to edit /usr/share/hplip/data/models/models.dat: create a copy of the section [photosmart_b109a_series] and rename the copy to [photosmart_b109a-m]

I found the section [photosmart_b010_series] but then how to create a copy of and rename it ?

Offline

#21 2020-04-04 16:20:40

Momoleraclo
Member
Registered: 2020-04-04
Posts: 28

Re: [SOLVED] HP printer not detected (yes its for covid19)

Do I just copy past next this section ?

Offline

#22 2020-04-04 16:22:36

Momoleraclo
Member
Registered: 2020-04-04
Posts: 28

Re: [SOLVED] HP printer not detected (yes its for covid19)

progandy wrote:

This could be an old bug that has resurfaced since hplip 3.19: https://bugs.launchpad.net/hplip/+bug/535056

Try to edit /usr/share/hplip/data/models/models.dat: create a copy of the section [photosmart_b109a_series] and rename the copy to [photosmart_b109a-m]


Do I need to relog ? still not working ;(

Last edited by Momoleraclo (2020-04-04 16:23:05)

Offline

#23 2020-04-04 16:28:21

progandy
Member
Registered: 2012-05-17
Posts: 5,258

Re: [SOLVED] HP printer not detected (yes its for covid19)

You have to open the file with root privileges in a text editor, edit it and save it again to copy the section.

[SECTION]
parameter=value
parameter=value

[SECTION_X]
...
[SECTION]
parameter=value
parameter=value

[SECTION_COPY]
parameter=value
parameter=value

[SECTION_X]
...

What is the debug output of hp-setup?

hp-setup -g 001:004

And please use code-tags for the output of commands:

[code] -> CODE GOES HERE <- [/code]

Edit: As for installing packages from the AUR, please read this: https://wiki.archlinux.org/index.php/Ar … Repository

Last edited by progandy (2020-04-04 16:31:38)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Online

#24 2020-04-04 16:31:44

Momoleraclo
Member
Registered: 2020-04-04
Posts: 28

Re: [SOLVED] HP printer not detected (yes its for covid19)

[user@archlinux]: ~>$ hp-setup -g 001:004

HP Linux Imaging and Printing System (ver. 3.20.3)
Printer/Fax Setup Utility ver. 9.0

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.

hp-setup[1645]: debug: param=001:004
hp-setup[1645]: debug: selected_device_name=None
hp-setup[1645]: debug: Using PyQt5
hp-setup[1645]: debug: Sys.argv=['/usr/bin/hp-setup', '-g', '001:004'] printer_name=None param=001:004 jd_port=1 device_uri=None remove=False
Searching for device...
hp-setup[1645]: debug: Cache miss: photosmart_b109a-m
hp-setup[1645]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-setup[1645]: debug: Searching for section [photosmart_b109a-m] in file /usr/share/hplip/data/models/models.dat
hp-setup[1645]: debug: Found section [photosmart_b109a-m] in file /usr/share/hplip/data/models/models.dat
error:  Device not found.   Please make sure your printer is properly connected and powered-on.

Offline

#25 2020-04-04 16:34:35

Momoleraclo
Member
Registered: 2020-04-04
Posts: 28

Re: [SOLVED] HP printer not detected (yes its for covid19)

progandy wrote:

You have to open the file with root privileges in a text editor, edit it and save it again to copy the section.

I did it without root privileges, after reboot it still look edited as u asked, that's fine ?

edit: maybe I was root actually

Last edited by Momoleraclo (2020-04-04 16:35:48)

Offline

Board footer

Powered by FluxBB