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 Tue 21 Oct 2014, 11:44
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 Posts_count  
Author Message
disciple

Joined: 20 May 2006
Posts: 6447
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
Edited_time_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: 6447
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: 9200
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: 6447
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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
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.0562s ][ Queries: 12 (0.0093s) ][ GZIP on ]