Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
After booting have to re-plug, restart cups printer (SOLVED)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
r.abbott
Tux's lil' helper
Tux's lil' helper


Joined: 16 Aug 2004
Posts: 113
Location: Herat, Afghanistan

PostPosted: Wed Sep 21, 2005 1:48 am    Post subject: After booting have to re-plug, restart cups printer (SOLVED) Reply with quote

This is only a minor nuisance, but after I boot my computer I have to physically unplug the printer USB cable, plug it back in, and then visit localhost:631 to start the printer in CUPS. Is there any way for it to set the device permissions correctly on boot and start the printer automatically?

Thanks!


Last edited by r.abbott on Wed Sep 21, 2005 11:34 am; edited 1 time in total
Back to top
View user's profile Send private message
thesnowman
Guru
Guru


Joined: 08 May 2003
Posts: 365
Location: Sydney, Australia

PostPosted: Wed Sep 21, 2005 5:12 am    Post subject: Reply with quote

Do you have the coldplug package installed?
Code:
# emerge -av coldplug
# rc-update add coldplug default
Back to top
View user's profile Send private message
r.abbott
Tux's lil' helper
Tux's lil' helper


Joined: 16 Aug 2004
Posts: 113
Location: Herat, Afghanistan

PostPosted: Wed Sep 21, 2005 10:46 am    Post subject: Reply with quote

Oops, in re-emerging cups, I see that it tells you to install coldplug.

Good, that fixed having to replug the cable. I still had to start the printer in cups though.

I think the problem could be in my device URI. I have it set to "Device URI: device=/dev/usb/lp0" I did this by selecting (in the cups configuration utility) Device: LPD/LPR Host or Printer, then entering /dev/usb/lp0 as the device URI. Is that correct?
Back to top
View user's profile Send private message
r.abbott
Tux's lil' helper
Tux's lil' helper


Joined: 16 Aug 2004
Posts: 113
Location: Herat, Afghanistan

PostPosted: Wed Sep 21, 2005 11:35 am    Post subject: Reply with quote

Okay, yeah, changing the device URI to USB Printer #1 fixed it.

Thanks for your help!
Back to top
View user's profile Send private message
seppelrockt
Guru
Guru


Joined: 14 May 2004
Posts: 423

PostPosted: Sun Oct 09, 2005 10:37 am    Post subject: Reply with quote

Is there another way beside coldplug to have a USB printer that is always plugged in working without replugging? My system runs very good without coldplug (e.g. fast boot time) and I would like to stay away from it. It's just a little overkill for the little printer problem, I think.

@r.abbott: Would you be so kind to delete the "solved" in your post title so that I have the chance to get an answer for my question? I hope it's OK for you that I "stole" you thread but I think my question is related. Thanks in advance.
Back to top
View user's profile Send private message
thesnowman
Guru
Guru


Joined: 08 May 2003
Posts: 365
Location: Sydney, Australia

PostPosted: Sun Oct 09, 2005 12:02 pm    Post subject: Reply with quote

AFAIK coldplug just loads modules for you at boot time. If you don't want to use coldplug you can just add the modules you want loaded at boot to /etc/modules.autoload.d/kernel-2.6 (assuming you are running a 2.6 kernel). In the case of a USB printer the module is called usblp.
Back to top
View user's profile Send private message
seppelrockt
Guru
Guru


Joined: 14 May 2004
Posts: 423

PostPosted: Sun Oct 09, 2005 10:52 pm    Post subject: Reply with quote

thesnowman wrote:
AFAIK coldplug just loads modules for you at boot time. If you don't want to use coldplug you can just add the modules you want loaded at boot to /etc/modules.autoload.d/kernel-2.6 (assuming you are running a 2.6 kernel). In the case of a USB printer the module is called usblp.


Thanks, that's exactly what I did and now you proved my thoughts to be true =)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
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