LinuxQuestions.org
Review your favorite Linux distribution.
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 11-05-2017, 12:31 AM   #1
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,119

Rep: Reputation: 73
Get printer going again


When I am printing, if the print job is interrupted for some reason, or like now, just does not start, how can I get the printer going again? Lately this is happening a lot.

I have 2 printers at home, an Epson L350 and an HP cp1025. I can see the job in the print queue. It says 'pending'. For some reason the printer is not starting.

The only method I have found to get it going again is to reboot the computer. Then the print job starts even before I have a log in screen.

Short of rebooting, how can I get a print job going again? Soemthing from the command line maybe?
 
Old 11-05-2017, 01:39 AM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,844

Rep: Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149
Get the printer status from
Code:
lpstat -t
then using the applicable printer name do
Code:
sudo cupsenable <printer_name>

Last edited by ferrari; 11-05-2017 at 01:40 AM.
 
Old 11-05-2017, 01:45 AM   #3
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,119

Original Poster
Rep: Reputation: 73
Thanks, but that did not work.

To force the issue, I started a 40 page print job, switched the printer off halfway through the first page. It chucks the page it is printing out and stops. I turn it on again, the print job is still there in the queue, 'pending', but nothing gets printed.

Quote:
sudo cupsenable EPSON-L350-Series
does not get it going.

Also, if I now delete that print job from the queue and send it another job, like my name written in Libre Office, that next job does not get printed. The printer needs to be reset somehow. A reboot does that.

Do you have any other commands short of sudo shutdown -r now?

Last edited by Pedroski; 11-05-2017 at 01:49 AM.
 
Old 11-05-2017, 03:20 AM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
$ sudo systemctl stop cups
$ sudo systemctl stop cups-browsed
$ sudo systemctl stop exim4

then

$ sudo systemctl start exim4
$ sudo systemctl start cups
$ sudo systemctl start cups-browsed

Cups uses email for "job" management. Although mostly only needed if you have a print server thing going on. Otherwise check your cables if it's wired to the computer somehow. Or check the printer for blinky lights. Paper jam, low ink, or other I'm ignoring you status things for printers these days. Is the drive full or > 90% full? That could prevent jobs or emails from generating, and it works on reboot because /tmp/ clears out enough space for a short bit of life.
 
Old 11-05-2017, 05:29 AM   #5
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,119

Original Poster
Rep: Reputation: 73
Thank you very much. After sudo systemctl start cups the printer printed the job in the queue!! Next time, I will just try stop cups/ start cups see how that goes. Must be quicker than a reboot!

Quote:
pedro@pedro-school:~$ sudo systemctl stop cups
[sudo] password for pedro:
Warning: Stopping cups.service, but it can still be activated by:
cups.path
cups.socket
pedro@pedro-school:~$ sudo systemctl stop cups-browsed
pedro@pedro-school:~$ sudo systemctl stop exim4
Failed to stop exim4.service: Unit exim4.service not loaded.
pedro@pedro-school:~$ sudo systemctl start exim4
Failed to start exim4.service: Unit exim4.service not found.
pedro@pedro-school:~$ sudo systemctl start cups
pedro@pedro-school:~$

Last edited by Pedroski; 11-05-2017 at 05:38 AM.
 
Old 11-05-2017, 12:21 PM   #6
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,153

Rep: Reputation: 2316Reputation: 2316Reputation: 2316Reputation: 2316Reputation: 2316Reputation: 2316Reputation: 2316Reputation: 2316Reputation: 2316Reputation: 2316Reputation: 2316
Don't forget that you can talk to CUPS without using the command line: just start your browser and enter the url
http://127.0.0.1:631/
 
Old 11-05-2017, 04:47 PM   #7
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,119

Original Poster
Rep: Reputation: 73
I could restart a stopped printer there?
 
Old 11-06-2017, 02:47 AM   #8
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,844

Rep: Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149
Quote:
Thanks, but that did not work.

To force the issue, I started a 40 page print job, switched the printer off halfway through the first page. It chucks the page it is printing out and stops. I turn it on again, the print job is still there in the queue, 'pending', but nothing gets printed.
That's likely because you didn't cancel the print job(s). That can be done from the CUPS web interface, or from a terminal with
Code:
cancel -a
 
  


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
Continous printing with CUPS thermal printer (GeBE USB Printer N78) ThaRez Linux - Hardware 0 04-15-2014 03:44 PM
Brother HL2070N network printer installed, print jobs stuck in printer que jgz Linux - Networking 0 02-14-2008 10:54 PM
CUPS Network Printer/ server indicator blinks no printer output wine Linux - Networking 8 03-18-2006 10:20 PM
keeping printer on at bootup keeps printer from printing (some printer modules loaded TheOneAndOnlySM Slackware 1 10-17-2003 07:39 PM
setup printer on client machine(slackware 8) to server (slackware7) network printer changwoo Slackware 9 05-02-2003 05:37 PM

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

All times are GMT -5. The time now is 07:00 PM.

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