You are not logged in.
Pages: 1
When I try to print something in LibreOffice, it doesn't detect the printer. And it doesn't seem to detect it anywhere.
The only place I found it was lsusb:
[humst@hum ~]$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 03f0:1017 HP, Inc LaserJet 1300
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 046d:c542 Logitech, Inc. M185 compact wireless mouse
Bus 003 Device 003: ID 152d:0578 JMicron Technology Corp. / JMicron USA Technology Corp. JMS578 SATA 6Gb/s
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Last edited by CraftHumster (2024-09-24 19:34:29)
Offline
I assume you have been though this already? It would help if you describe what driver(s) you have already installed etc.
Last edited by skunktrader (2024-09-12 05:55:18)
Offline
I assume you have been though this already? It would help if you describe what driver(s) you have already installed etc.
I installed hplip and hplip-plugin but nothing changed. Can I provide any additional information? If so, how?
Offline
You have tried to add/discover the printer through the cups web interface accessed at https://localhost:631 ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
You have tried to add/discover the printer through the cups web interface accessed at https://localhost:631 ?
No, what is it?
Offline
Printing on linux is typically done through the Common Unix Printing System aka CUPS .
Before printers can be used by applications the printer needs to be added to CUPS.
The method that tends to be used most is the cups web interface , accessible from any browser by going to https://localhost:631 .
https://wiki.archlinux.org/title/CUPS#Web_interface has some details.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Tried it! CUPS started successfully, logged in, but I can't add a printer. In CUPS it detects its model, but I am stuck at the "Connection" step. I don't know where to get it from. The wiki suggests the command
lpinfo
, but it doesn't give anything.
Last edited by CraftHumster (2024-09-18 19:48:08)
Offline
For lpinfo without parameters it's normal to not output anything, try lpinfo -v (run as root or with root rights) .
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
After lpinfo -v, out of a whole bunch of addresses, I found two that matched my printer:
lsb/usr/HP/hp-psc_1300_series.ppd.gz
and
drv:///hp/hp/hpcups.drv/hp-psc_1300_series.ppd
But the first one wrote “Enter URL”, so I realized I should use the second one, but the second one wrote the address:
Bad device-uri scheme “drv”.
Offline
Neither of those look correct, let's try another approach .
the hp-setup program that comes with hplip is often able to configure cups.
To get it to work requires some configuration though.
Post the full output of pacman -Qi hplip .
Do you prefer gui or commandline to configure things ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
hp-setup -i was successful and the test page was printed, but if you select the created printer in LibreOffice, but it prints this instead of a document:
https://cdn.discordapp.com/attachments/ … f469d7184&
Printed a good hp-setup test page:
https://cdn.discordapp.com/attachments/ … 818baf06f&
And after it immediately:
https://cdn.discordapp.com/attachments/ … 9d9085882&
I prefer console utilities, hp-setup -i is one I liked.
pacman -Qi hplip:
[humst@hum ~]$ sudo pacman -Qi hplip
Name : hplip
Version : 1:3.24.4-2
Description : Drivers for HP DeskJet, OfficeJet, Photosmart, Business Inkjet
and some LaserJet
Architecture : x86_64
URL : https://hplipopensource.com
Licenses : GPL-2.0-or-later MIT BSD-3-Clause-HP IJG GPL-2.0-only
LGPL-2.1-or-later BSD-2-Clause LicenseRef-hplip
python-ldap
Groups : None
Provides : None
Depends On : python-dbus python-distro ghostscript net-snmp
foomatic-db-engine python-gobject libjpeg-turbo dbus
gcc-libs avahi python xdg-utils zlib libcups glibc sh
Optional Deps : cups: for printing support [installed]
sane: for scanner support [installed]
python-pillow: for commandline scanning support
python-reportlab: for pdf output in hp-scan
rpcbind: for network support
python-pyqt5: for running GUI and hp-toolbox
libusb: for advanced usb support [installed]
wget: for network support [installed]
Required By : hplip-plugin
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 38.45 MiB
Packager : Andreas Radke <andyrtr@archlinux.org>
Build Date : Sun 11 Aug 2024 12:10:55 AM EEST
Install Date : Thu 12 Sep 2024 09:54:18 PM EEST
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
Offline
run lpq , if it complains lpq: Error - no default destination available. set the laserjet as default printer .
(There are several ways to do that, one is to use cups web interface > administration > printers > select the laserjet > administration > set as server default)
run lpq again, it should report "no entries" . You can also run lpq -a to get a bit more info.
next run lpr /etc/X11/xinit/xinitrc or any short-ish textfile .
If that's succesfull, try to print a LO document through lpr .
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
lpq:
[humst@hum ~]$ lpq
hp_LaserJet_1300 is not ready
Rank Owner Job File(s) Total Size
1st humst 12 Untitled 1.odt 6144 bytes
cups web interface > administration > printers > select the laserjet > administration > set as server default
I did it, it didn't change anything
Also CUPS shows that the printer has around 15 jobs, but it does not print any more. "Print test page" in CUPS:
https://cdn.discordapp.com/attachments/ … ad58feb26&
https://cdn.discordapp.com/attachments/ … 63fb01132&
The lpr showed nothing and did nothing to the printer, it just “worked” without any logs before pressing Ctrl+C
lpr /etc/X11/xinit/xinitrc
Printed successfully, but .docx file with "/home/humst/Desktop/file.docx" in it he printed this way:
https://cdn.discordapp.com/attachments/ … 63fb01132&
Last edited by CraftHumster (2024-09-23 19:19:08)
Offline
CUPS shows that the printer has around 15 jobs, but it does not print any more.
Is its status shown as Paused ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Yes! I've also supplemented a previous post!
Offline
The output: Error Typecheck and the rest are unknown to me and will probably require diagnosing cups error logs.
Best to deal with that in a separate thread after basic functionality is confirmed to work.
Use the cups webinterface to cancel all jobs for the printer.
Keep the printer powered on and connected, then restart cups.
If the status changes to idle, try printing a simple textfile from a gui app like a text editor .
Incase it doesn't change to idle or reverts to paused upon printing :
cancel all jobs again
use lpq -a to verify what exact queue name used by the laserjet is.
Open a terminal as root and execute
# cupsdisable queuename
# cupsenable queuename
# cupsaccept queuename
(the cupsdisable may not be necessary)
If that switches the printer status to idle and it prints simple stuff, basic functionality works.
When cups receives a job for a printer , it tries to connect with the printer.
If no response from the printer is gotten within a short timeframe , cups assumjes the printer is unavaialble and changes the printer status to paused.
The simplest way to ensure this doesn't happen is to ensure the printer is connected, powered on AND ready before sending print jobs to it.
cupsdisable
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
I've solved the problem! Removed all printers from Administration => Manage Printers, “find” and added a new one this way:
CUPS => Administration => Find New Printers => Avaible Printers: HP LaserJet 1300 => Continue => Make: HP => Continue => Model: HP LaserJet 1300 pcl3, hpcups 3.24.4 (en) => Add Printer => Set Printer Options: Media Size: A4 210x297mm => Set Default Options
It started being detected and printing correctly both in LibreOffice and via lpr! Marked as [SOLVED]!
Last edited by CraftHumster (2024-09-24 19:38:06)
Offline
Pages: 1