Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 25 Oct 2014, 06:15
All times are UTC - 4
 Forum index » House Training » Bugs ( Submit bugs )
CUPS "stops" a printer if it is turned off when you print
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
disciple

Joined: 20 May 2006
Posts: 6449
Location: Auckland, New Zealand

PostPosted: Fri 28 Aug 2009, 20:47    Post_subject:  CUPS "stops" a printer if it is turned off when you print
Sub_title: Need to automatically restart printers; Here's a workaround
 

I know this is an ecomoney style "bug", but it is a real weakness for a lot of users:

If you print something when your printer is turned off (or perhaps when it is out of paper if it is a printer without an OK/Resume button), the stupid CUPS scheduler "stops" the printer. A lot of people think it is too complicated to have to "start" the printer again, so CUPS should be able to automatically restart printers.

Workaround:

A script like this can check for any stopped printers and restart them.
Code:
#!/bin/sh
cut -d "|" -s -f1 /etc/printcap |while read line
 do lpstat -p ${line} 2 |grep -E 'not|disabled' && /usr/sbin/lpadmin -p ${line} -E
 done

You can make a cron job to run it automatically, using pschedule. I don't know if you can make a cron job run more often than once a minute though. I guess otherwise you'd need to write an nasty script with an infinite loop in it, to run at startup.
Or perhaps it would be possible to automatically start a printer when it is turned on / plugged in...

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send_private_message 
disciple

Joined: 20 May 2006
Posts: 6449
Location: Auckland, New Zealand

PostPosted: Sun 06 May 2012, 04:14    Post_subject:  

There is a more "proper" solution to this: http://murga-linux.com/puppy/viewtopic.php?t=75584
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send_private_message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9203
Location: Stratford, Ontario

PostPosted: Sun 06 May 2012, 09:47    Post_subject:  

disciple wrote:
N.B. I have not tested in Puppy, and don't know if it would require any other changes to Puppy's udev system.

Are you confirming that this works in Puppy? If so, could you give more details?

If not, the method here does work.
Back to top
View user's profile Send_private_message 
disciple

Joined: 20 May 2006
Posts: 6449
Location: Auckland, New Zealand

PostPosted: Sun 06 May 2012, 11:24    Post_subject:  

No, I haven't tested in Puppy, but I think in theory it should work - Puppy does use udev these days, after all.

Your solution does not address the problem I described - you talked about starting the printer on boot (is that even a problem? I've never encountered it), but it is necessary to start it when the printer is turned on/plugged in, or comes back on line after running out of paper, or when you send it a print job.

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Bugs ( Submit bugs )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0473s ][ Queries: 12 (0.0072s) ][ GZIP on ]