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 Fri 19 Sep 2014, 07:50
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Can I automatically "start" a printer?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
disciple

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

PostPosted: Fri 30 May 2008, 01:07    Post subject:  Can I automatically "start" a printer?  

Every now and then when someone tries to print something, nothing happens because the printer is "stopped". The printer certainly doesn't know anything about being stopped, but CUPS says it is, so the job just gets queued.
It is possible that the printer gets "stopped" when someone tries to print with the printer physically turned off, but this doesn't happen very often, so I think there is something else "stopping" it.

Is it possible to somehow "start" a printer automatically when someone prints to it?

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Fri 30 May 2008, 13:18    Post subject:  

double post while editing, sorry
Last edited by Aitch on Fri 30 May 2008, 13:21; edited 1 time in total
Back to top
View user's profile Send private message 
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Fri 30 May 2008, 13:20    Post subject:  

Hi disciple

first try

lpc start <printer name >

if local, or

http://<pc with cups>:631

in a browser, if network

cups normally assigns port 631 AFAIK

You could maybe add

/etc/init.d/cups restart

somewhere[?] if all else fails

it will depend on how the printer is connected, as it could also be a dropped usb port, if a usb printer

HTH

Aitch
Back to top
View user's profile Send private message 
disciple

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

PostPosted: Fri 30 May 2008, 19:50    Post subject:  

I can "start" it no problem, but I want it to be automatically "started" when someone prints to it.
I've got some rather computer illiterate people around here who get very wound up about it Sad

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Fri 30 May 2008, 20:15    Post subject:  

Hi disciple

Can't see anything on puppyforum, but found this

http://www.linuxforums.org/forum/peripherals-hardware/117002-auto-load-firmware-when-usb-printer-turned.html

which seems to suggest Udev is usually used to autostart devices, but its not in puppy only as an add on

Sorry I can't be any further help, as I don't know if its USB/line/local/remote
or what make model printer is to search any further

see my search post here

Aitch
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Sat 31 May 2008, 10:20    Post subject:  

Here is a script that can start a printer without opening the CUPS web interface. Perhaps you can automatically run the script when Puppy boots to ensure that the printer is ready. Of course, it would need to be called after CUPS is started.

wget "http://localhost:631/admin/?op=start-printer&printer_name=xxxxx"

where "xxxxx" is the exact CUPS name of the printer

CUPS will reply by sending an html file to /root confirming the operation. You could add a line to the script that deletes it.
Back to top
View user's profile Send private message 
disciple

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

PostPosted: Thu 15 Mar 2012, 21:19    Post subject:  

The answer is udev-configure-printer
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


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