LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-15-2021, 06:30 AM   #1
Novatian
Senior Member
 
Registered: Feb 2008
Location: Australia
Distribution: Mint 20.3 MATE, Android, Windows 10, MX Linux and Mint 21.1 MATE
Posts: 1,052

Rep: Reputation: 38
HP Printer not being started by PC.


In Manjaro KDE I find my HP printer cannot be started by this PC, all plugged in and switched on. I checked the printer notification and made sure it was set up. It has worked on this PC before. The Printer information reads: PRINTER SERVICE UNAVAILABLE, BAD FILE DESCRIPTOR.

Is there a fix for this?
 
Old 04-15-2021, 03:26 PM   #2
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
How did you set up the printer?
What driver is in use? If hplip then what version? If not hplip then why not?
Did you set up the printer using the hplip-gui tools?
What version of Manjaro?
What model printer?
How is the printer connected? Wifi? Ethernet? USB?
If the printer is wifi or ethernet is the IP set to static so it is always assigned the same IP.?
Is the IP assigned by DHCP?
Is cups running?
 
1 members found this post helpful.
Old 04-15-2021, 07:44 PM   #3
josephj
Member
 
Registered: Nov 2007
Location: Northeastern USA
Distribution: kubuntu
Posts: 214

Rep: Reputation: 112Reputation: 112
What computersavvy said. We can't look over your shoulder, so you need to provide all the details.

HP printers generally work great with Linux (probably because HP had (has?) HP-UX their own UNIX/Linux distro and so were motivated to support their devices on it.)

I have had a lot of printer issues. Generally, I make sure hplip is installed and CUPS is running.
Then, I go to localhost:631 in my browser (don't use any Chrome-based browser for this - Firefox works). This is the CUPS web interface. From there, you can tell it to search for and install any printers it detects. This usually does it although there are a bunch of minor settings you may want to configure.

You can also run hp-toolbox (part of hplip) which lets you set things and check ink/toner levels, etc.

You may also want to add your user to the lpadmin group. I don't remember why I needed that, but it helped.

Sometimes CUPS and hplip don't agree on everything, but until your printer is recognized, that won't matter.

Also, take a look at dmesg output when you attach your printer or power it on. Linux should see it and tell you useful information about the connection. There are other tools such as lspci and lsusb which can also help depending on how your printer is connected to your system.
 
Old 04-16-2021, 10:25 AM   #4
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Just a followup triggered by what @josephj said.

On fedora when hplip is installed it adds the user to the hplip group so that user can manage all the installed HP printers.
 
Old 04-18-2021, 04:45 AM   #5
kay.pea
LQ Newbie
 
Registered: Oct 2018
Location: London, England (or UK)
Distribution: Slackware, Debian & Linux Mint
Posts: 1

Rep: Reputation: Disabled
If this device is connected by networking, either ethernet or wifi, then check whether Manjaro is running a software firewall. This could well be stomping on the IP packets that the printer uses.

Can you see the printers built-in web management page? You should be able to see this by entering the numerical IP address of the printer into a browsers address bar (after the http:\\).

Assuming the above works and you can disconnect from the wider internet then I would disable entirely the built-in firewall. Now check whether CUPS will find the printer. This worked for me with Linux Mint and an ethernet-connected Epson MFD.

From the notes I made at the time and with the firewall disabled:
Quote:
Open a terminal/console and run the commands:
$ ping <IP of the printer>
$ nmap <IP of the printer>
Replace "<IP of the printer>" by the printer's IP address. The first command checks whether
you can access the printer through the network, the second shows which port numbers are used by
the printer and through this which protocols are active (80: Has web interface, 139: SMB,
443: encrypted IPP or encrypted web interface, 515: LPD, 631: IPP, 9100: JetDirect/AppSocket).

The nmap command output was:
Starting Nmap 6.40 ( deleted URL ) at 2017-05-13 02:19 BST
Nmap scan report for 10.0.0.24
Host is up (0.0046s latency).
Not shown: 997 closed ports
PORT STATE SERVICE
80/tcp open http
515/tcp open printer
9100/tcp open jetdirect
MAC Address: 00:00:48:etc (Seiko Epson)

Nmap done: 1 IP address (1 host up) scanned in 2.47 seconds
This tells you which ports need to be opened in the firewall. With the firewall running again I used a program called "ufw" (the uncomplicated firewall) thus:
sudo ufw allow 515/tcp
but you should be able to use
iptables -A INPUT -p tcp --dport 515 -j ACCEPT

Hope this helps and good luck.
 
Old 04-18-2021, 08:42 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,346
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
If you are using an HP, I expect you should have HPLIP installed. If you have the HPLIP GUI (hp-toolbox), you could open it and see what it tells you about the printer connection.

You might also check the logs in /var/log/cups/, particularly the error logs; they might provide some useful information.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Centos 7] Is firewalld started/enabled as default? after started why i cant access any ports? training CentOS 5 06-07-2019 05:20 PM
[SOLVED] xfce not started in init 4, kde is started, although xfce was chosen during installation apmount Slackware 4 11-21-2018 11:20 AM
[SOLVED] bash script runs perfectly when started manually - but not when started by CRON jonasbdk Linux - General 12 08-27-2014 05:54 AM
[SOLVED] No sound in KDE when started by startx while working fine when started by kdm/gdm arj1singh Ubuntu 2 12-14-2010 11:55 AM
Started nautilus as root....problems started Chaosbringer SUSE / openSUSE 0 11-05-2008 03:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration