Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
usb printer no device.... no detection
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
killfire
l33t
l33t


Joined: 04 Oct 2003
Posts: 618

PostPosted: Fri Apr 02, 2004 3:29 am    Post subject: usb printer no device.... no detection Reply with quote

ive gone through various different tutorials... including the one on gentoos website and i cant seem to get my printer working. here is the prblem:

i have a epson stylus C42UX.... i am running kernel 2.4.24-rc2... with cups 1.1.19, gimp-print 4.2.5, and foomatic 3.0.0

the prblem is not with the driver, i create the printer (gimp print has a driver for the C42) but when i try to print a test page it trys, says processing (5%) and then tells me the printer is not pluged in. i have tried both usb and usbprinter compiled in and as modules, tried loading the modules (as per the gentoo tutorial) but i cannot seem to create a /dev/usb/lp0 or /dev/lp0 or /dev/usblp0

i tried also creating a /dev/usb/lp0 with
Code:
mknod /dev/usb/lp0 c 180 0


because i saw it mentioned places, but cups gives same prblems.... because it points to /dev/usblp0, i tried making a link, didnt work (said "Operation not Permitted, i thought root was all powerful... whatever) so i made a device /dev/usblp0, with the same command as before, and it told me that
"Unable to open USB device "usb:/dev/usblp0": No such device"

if anyone has any idea what is happening i would be very happy to be enlighteened.......

killfire
Back to top
View user's profile Send private message
RobMcM
Apprentice
Apprentice


Joined: 11 Jul 2003
Posts: 170
Location: Leeds, UK

PostPosted: Fri Apr 02, 2004 12:49 pm    Post subject: Reply with quote

You could try editing the cups.conf file in /etc/cups (I think that's the right path and file - not in Linux so I can't check), and changing "/dev/usblp0" to be "/dev/usb/lp0". This is what I did trying to get my Canon i250 to work, as when the printer was plugged in it created /dev/usb/lp0 for me but cups insisted on /dev/usblp0.

Oh, have you emerged hotplug and done 'rc-update add hotplug' ? That should take care of creating the USB node when your printer is plugged in.

In the end, though, I just gave up and just used turbo-print, as there doesnt seem to be any other working driver for my printer.
_________________
Keyboard error or no keyboard present. Press F1 to continue.
Back to top
View user's profile Send private message
vega
n00b
n00b


Joined: 01 Mar 2004
Posts: 73
Location: Vitoria - ES - Brasil

PostPosted: Fri Apr 02, 2004 4:00 pm    Post subject: Epson 777I Reply with quote

In /etc/cups there's cupsd.conf which you shouldn't change anything.
Edit /etc/cups/printers.conf
Mine is:
Code:
# Printer configuration file for CUPS v1.1.20
# Written by cupsd on Fri Mar 26 21:28:28 2004
<DefaultPrinter epson777i>
Info Epson Stylus Color 777
DeviceURI usb:/dev/usb/lp0
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
It was originally:
Code:
DeviceURI usb:/dev/usblp0
After the change, the problem was gone.
Back to top
View user's profile Send private message
RobMcM
Apprentice
Apprentice


Joined: 11 Jul 2003
Posts: 170
Location: Leeds, UK

PostPosted: Fri Apr 02, 2004 7:14 pm    Post subject: Reply with quote

Yep, that's what I was on about, I just forgot the name of the conf file :oops: . Wouldn't want you to go changing the wrong one...
_________________
Keyboard error or no keyboard present. Press F1 to continue.
Back to top
View user's profile Send private message
vega
n00b
n00b


Joined: 01 Mar 2004
Posts: 73
Location: Vitoria - ES - Brasil

PostPosted: Fri Apr 02, 2004 7:37 pm    Post subject: Reply with quote

hehhe... Don't worry! It happens! :)
You told you were not on a Linux machine and couldn't remember the path.

I was looking for it in the /etc/conf.d directory!!! Since I did that modification some weeks ago, I couldn't remember the path either! :oops:

Had to "locate printers.conf"

BTW, I would be a *very* good idea to have all config files in /etc/conf.d don't you think?
Back to top
View user's profile Send private message
killfire
l33t
l33t


Joined: 04 Oct 2003
Posts: 618

PostPosted: Fri Apr 02, 2004 7:54 pm    Post subject: Reply with quote

thankyou for the quick replys...... i have hotplug, that creates /dev/usb/lp0 (thats a step in the tutorial that was missing or was not mentioned well enough, oh well.) but when i edit /etc/cups/printers.conf, everytime i do anything with cups, it changes it back to what it was before, the false device location automatically......

how can i prevent cups from automaticaly updating that specific line in the file.

killfire
Back to top
View user's profile Send private message
killfire
l33t
l33t


Joined: 04 Oct 2003
Posts: 618

PostPosted: Fri Apr 02, 2004 8:23 pm    Post subject: Reply with quote

update.

in the end, i just created a link /dev/usblp0 to /dev/usb/lp0

cups is just too much of a pain.


but as i speek, a test page is emerging from the printer WAHOOOOOOOOO!!!


killfire
Back to top
View user's profile Send private message
vega
n00b
n00b


Joined: 01 Mar 2004
Posts: 73
Location: Vitoria - ES - Brasil

PostPosted: Fri Apr 02, 2004 8:24 pm    Post subject: Reply with quote

That's difficult to know. My system is working fine and the file is not modified on every boot.
Strange. I have cups in my init default and I just use lpr normally to print.
I never go back to the cups manager again.
My USB printer does not stay connected to my computer, I plug it in only when I need it (have a Desknote, like a notebook but slightly different). 8)
/dev/usb/lp0 does not exist and when I plug the printer the system "automagically" creates it but my config file is untouched.

Be sure to first use cups to configure your printer, save the configuration and modify the config file after leaving cups manager. Remember to restart the service after that:
Code:
/etc/init.d/cupsd restart
Back to top
View user's profile Send private message
killfire
l33t
l33t


Joined: 04 Oct 2003
Posts: 618

PostPosted: Sat Apr 03, 2004 12:15 am    Post subject: Reply with quote

my config file was not just altered on reboot, itis altered everytime i change the STATUS, as in telling it to print something. i know that is normal, because it tells the status of the printer inside that file, but mine was not only changing the status, but the device as well. as if it had a copy of what the file was supposed to look like in every status, and overwrote it each time.

but the link file solved all my problems, which means i can finally use linux full time. :)

killfire
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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