| Author |
Message |
disciple
Joined: 20 May 2006 Posts: 6180 Location: Auckland, New Zealand
|
Posted: 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
|
|
 |
Aitch

Joined: 04 Apr 2007 Posts: 6825 Location: Chatham, Kent, UK
|
Posted: 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
|
|
 |
Aitch

Joined: 04 Apr 2007 Posts: 6825 Location: Chatham, Kent, UK
|
Posted: 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
|
|
 |
disciple
Joined: 20 May 2006 Posts: 6180 Location: Auckland, New Zealand
|
Posted: 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
_________________ DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
|
|
Back to top
|
|
 |
Aitch

Joined: 04 Apr 2007 Posts: 6825 Location: Chatham, Kent, UK
|
Posted: 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
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 7756 Location: Stratford, Ontario
|
Posted: 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
|
|
 |
disciple
Joined: 20 May 2006 Posts: 6180 Location: Auckland, New Zealand
|
Posted: 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
|
|
 |
|