You are not logged in.
I have Canon i250 printer that connects to my box via USB. I've installed (and checked everything two times) CUPS according to HOWTO in wiki.archlinux.org and downloaded linux drivers of canon i250 from here.
Such configuration worked fully in my Fedora Core 3 system, but when I migrated to Arch Linux, that stopped to work. Cups localhost (localhost:631) shows me that all printing works are "aborted" without any other reason. Test page is not being printed too.
I think that something is wrong with USB connection. I'm using USB flash drive and it is OK, but printer don't work. Maybe somebody had such problem?
Thank you for any suggestions
Offline
Disconnect and reconnect the printer's USB cable. What does "dmesg" say?
Do you have USB Printer-support in your kernel?
A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.
Offline
Got to follow this thread.
I haven't been able to make my Cannon i250 work, but I don't need it working locally. I'm trying to connect via Samba to a WinXP computer where it's connected.
I'll probably test again after my exams.
:: / my web presence
Offline
When I disconnect and connect again the USB printer, dmesg shows me:
usb 1-2: USB disconnect, address 2
drivers/usb/class/usblp.c: usblp0: removed
usb 1-2: new full speed USB device using uhci_hcd and address 5
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x04A9 pid 0x1084
About USB printer kernel support - how could I check this?
Offline
This dmesg output shows, that you have usbprinter support in kernel. It's enabled by default in stock kernel, anyway. I won't help you any further, as I have no experience with printers :-)
Offline
Just a thought: are /dev nodes created properly?
1. you might want to use "hotplug"
2. if you're using udev, check the rules of creating nodes (ArchLinux Udev Wiki, specifically: this Udev rules HowTo)
Note that this is totally unexperienced opinion. It is my belief that any local printer should have a node associated and that node must be created by somebody (hotplug, udev rules).
:: / my web presence
Offline
Well, I use hotplug:
MODULES=(usbserial ide-scsi usbcore usblp)
...
DAEMONS=(syslog-ng hotplug !pcmcia network netfs httpd mysqld cups crond alsamix
er kdm)
Offline
Is the device node created correctly?
Udev might still need to be used.
(I don't use hotplug, I only use udev. I don't need an exterior program (like udev) to load modules, since I know what modules I need)
:: / my web presence
Offline
How can I check is the device node created correctly or not?
I personally would like to migrate to udev in the last place, because it is not very simple and easy process [it can make harm to the system. I mean if something goes wrong]
Offline
When you configure CUPS for a local printer, it asks for a /dev node (example: "/dev/lp" or "/dev/printer") where it can access the printer. It really depends on the hardware.
If you're using DevFS, you must make sure you use the right /dev node in the CUPS config. Browse /dev and see what nodes are around. Maype you have pointed CUPS at the wrong /dev node.
AFAIK, udev can create nodes based on hardware type (check the link above, I think there's an example with 2 printers there).
Sorry I can't provide more precise information, but I don't use a local printer. Actually, I don't use a printer at all, since I can't make my Canon print remotely.
:: / my web presence
Offline
I think that dev device is set correctly, because CUPS shows me "Device for Canon" exactly "USB Printer #1 (Canon i250)" when I setting up the printer.
I've tried to change CUPS printers.conf DeviceURI direclty, but it doesn't work too.
I've found one thing: in HOWTO of CUPS it is written to load up printer module in DEAMONS line.
[root@localhost printers]# modprobe printer
FATAL: Module printer not found.
?
Offline
if it's a DAEMON.. than you must start it with "/etc/rc.d/printer start".
modproble is used for MODULES.
I have the feeling you wanted to say MODULES instead of DAEMONS.
Unfortunatelly, I still can't help you.
:: / my web presence
Offline
Yeh, I did a mistake - MODULES.
Could somebody say how to install kernel module "printer"? According to [link=http://wiki2.archlinux.org/index.php/CUPS%20setup]wiki[/link] this is needed
Offline
As pointed out in the wiki - if you use kernel 2.4, type 'modprobe printer', if 2.6, type 'modprobe usblp'.
Offline
Right, so I did so.
I'll try to install udev today.
Offline
OK, some news.
First, I've found that my system is using udev by default. Everything looks fine.
Second - I've tried to print with GIMP using other printer's driver... and my printer responded! But not printed! That means that everything seems to be fine with USB connection. Then I went to CUPS HOWTO again and did everything from the start. Copied ppd files into right place, restarted CUPS daemon, but then I noticed that bjcups-2.3-0.tar.gz package contains not only ppd files, but makefiles and bjcups.c bjutil.c etc. I've tried to compile all this stuff, but a lot of errors occured. Then I tried to print with Canon S200 drivers (I've found that some Mandrake users were able to use i250 with S200 drivers). My printer responded too (you know - sounds from printer like prepairing to print and the lamp is blinking) but not printed.
So I think that missed thing in my configuration is bjcups.o, bjfilter.o and some other compiled files (ppd files are not enough for CUPS to work with my Canon), but I'm not able to compile them. I've tried to install rpm and install bjfiltercups.rpm file, but many non-logical depencies appears:
error: Failed dependencies:
/bin/sh is needed by bjfiltercups-2.3-0
ld-linux.so.2 is needed by bjfiltercups-2.3-0
libX11.so.6 is needed by bjfiltercups-2.3-0
libXext.so.6 is needed by bjfiltercups-2.3-0
libXi.so.6 is needed by bjfiltercups-2.3-0
libc.so.6 is needed by bjfiltercups-2.3-0
libcups.so.2 is needed by bjfiltercups-2.3-0
libdl.so.2 is needed by bjfiltercups-2.3-0
libgdk-1.2.so.0 is needed by bjfiltercups-2.3-0
libglade.so.0 is needed by bjfiltercups-2.3-0
libglib-1.2.so.0 is needed by bjfiltercups-2.3-0
libgmodule-1.2.so.0 is needed by bjfiltercups-2.3-0
libgtk-1.2.so.0 is needed by bjfiltercups-2.3-0
libm.so.6 is needed by bjfiltercups-2.3-0
libpopt.so.0 is needed by bjfiltercups-2.3-0
libxml.so.1 is needed by bjfiltercups-2.3-0
libz.so.1 is needed by bjfiltercups-2.3-0
libc.so.6(GLIBC_2.0) is needed by bjfiltercups-2.3-0
libc.so.6(GLIBC_2.1) is needed by bjfiltercups-2.3-0
libc.so.6(GLIBC_2.1.3) is needed by bjfiltercups-2.3-0
So how could I make/compile needed files?
[vidmantas@localhost bjcups]$ make
cc -c -O2 -Wall -I ../include/cncl -I ../include/misc bjcups.c
bjcups.c:36:23: paramlist.h: No such file or directory
bjcups.c:37:20: bjexec.h: No such file or directory
bjcups.c:159: error: parse error before '*' token
bjcups.c: In function `add_option_param':
bjcups.c:163: error: `key' undeclared (first use in this function)
bjcups.c:163: error: (Each undeclared identifier is reported only once
bjcups.c:163: error: for each function it appears in.)
bjcups.c:163: error: `id' undeclared (first use in this function)
bjcups.c:163: error: `value' undeclared (first use in this function)
bjcups.c:164: warning: implicit declaration of function `param_list_add_multi'
bjcups.c:164: error: `pp_list' undeclared (first use in this function)
bjcups.c: At top level:
bjcups.c:167: error: parse error before '*' token
bjcups.c: In function `add_option_value':
bjcups.c:171: error: `key' undeclared (first use in this function)
bjcups.c:171: error: `value' undeclared (first use in this function)
bjcups.c:172: error: `pp_list' undeclared (first use in this function)
bjcups.c: At top level:
bjcups.c:175: error: parse error before '*' token
bjcups.c: In function `add_option_string':
bjcups.c:179: error: `key' undeclared (first use in this function)
bjcups.c:179: error: `str' undeclared (first use in this function)
bjcups.c:180: error: `pp_list' undeclared (first use in this function)
bjcups.c: At top level:
bjcups.c:183: error: parse error before '*' token
bjcups.c: In function `init_option':
bjcups.c:194: error: `argc' undeclared (first use in this function)
bjcups.c:194: error: `argv' undeclared (first use in this function)
bjcups.c:212: warning: implicit declaration of function `param_list_add'
bjcups.c:212: error: `pp_list' undeclared (first use in this function)
bjcups.c: At top level:
bjcups.c:323: error: parse error before '*' token
bjcups.c: In function `make_lpr_param':
bjcups.c:326: error: `p_ipc' undeclared (first use in this function)
bjcups.c:334: error: `pp_list' undeclared (first use in this function)
bjcups.c:399: warning: implicit declaration of function `param_list_num'
bjcups.c:404: error: `ParamList' undeclared (first use in this function)
bjcups.c:404: error: `curs' undeclared (first use in this function)
bjcups.c:408: error: `printer' undeclared (first use in this function)
bjcups.c:417: error: `print_file' undeclared (first use in this function)
bjcups.c: In function `main':
bjcups.c:444: error: `ParamList' undeclared (first use in this function)
bjcups.c:444: error: `p_list' undeclared (first use in this function)
bjcups.c:554: warning: implicit declaration of function `param_list_free'
make: *** [bjcups.o] Error 1
Please, any suggestions?
Offline
from INSTALL:
REQUIREMENTS
<all>
You need automake and autoconf to build programs.
* automake (1.4 or above)
* autoconf (2.13 or above)
<bjfilter>
* libm (6.0 or above)
* libdl (2.0 or above)
* libpopt (1.4 or above)
* libcnclapi (3.0.0 or above)
* libcnclbjcmd (3.0.0 or above)
* libcnclui (3.0.0 or above)
* libcnbpess (1.4.0 or above)
* libcnbpcmcm (6.03.1 or above)
* libcnbpoxxx (1.0.x or above)
* libtiff (3.4 or above)
* libpng (1.0.9 or above)
You might try to find a precompiled package, maybe extract an rpm. Or buy a Samsung ML-1740, which actually has Linux drivers the manufacturer supports. Or the brother HL1440, which I have. I gave up on getting it to work via USB, because it would sleep and not wake up. I really like the LPT port, because it's dumb' and doesn't try to help you.
fffft!
Offline
thegnu:
Some steps that I've done:
* downloaded rpm's, rpm2tarbz'ed them and installed these precompiled files. Doesn't work.
* tried to check all requirements libs. Well, all of them I have, except libcncl* wich are soo mysterious that google don't want to talk with me! And source of bjfilter is not compiling not only for me... Canon drivers sucks.
Well, I don't have so much money to buy new printer.
Point is that... that everything works with TurboPrint, but as you know it must be payed if you don't want a huge turboprint logo to be printed.
Very bad... What extreme suggestions if my printer don't want to work? :[
Offline
If you look at bjcups-2.3.0/INSTALL, you will see that first you have to do make and make install within bjcups-2.3.0/libs.
In order to make install in bjcups-2.3.0/libs, you have to edit the Makefiles within bjcups-2.3.0/libs/bjexec and bjcups-2.3.0/libs/paramlist, by changing the references to /usr/bin/install to /bin/install.
After doing this, I was able to compile bjcups itself. But I don't have an i250 printer so I am not sure if this will resolve your problem. Hope it helps anyway!
Offline
Very bad... What extreme suggestions if my printer don't want to work? :[
Check this thread:
http://www.linuxprinting.org/pipermail/ … 01792.html
I think the answer could be in the first reply
fffft!
Offline
dauphin:
bjcups compiled ok, but bjfilter still shows an error
bjferror.c: In function `bjf_error':
bjferror.c:49: error: label at end of compound statement
make[2]: *** [bjferror.o] Error 1
thegnu:
I've installed libraries that were written there, but it doesn't work. Then in the same mailing list I've found that my drivers are for old CUPS version, then I downgraded CUPS, but even then it didn't work. Then I've installed exactly the same RPM (rpm2targz'ed) from Fedora Core 3 CD, with wich my printer DID work. And even now my printer don't respont...
Offline
I've installed libraries that were written there, but it doesn't work. Then in the same mailing list I've found that my drivers are for old CUPS version, then I downgraded CUPS, but even then it didn't work. Then I've installed exactly the same RPM (rpm2targz'ed) from Fedora Core 3 CD, with wich my printer DID work. And even now my printer don't respont...
Try posting a question on a Fedora forum and maybe www.linuxquestions.org because people who use Fedora might know the difference. Try emailing the people who got it working and see if they can help.
I'm at a loss because I don't have thatt printer try, as root:
updatedb
locate ppd
and look for your printer ppd file. could it be in the wrong place? I think fedora might install the ppd to /etc/cups
fffft!
Offline
InfernalH: I have finally got bjfilter to compile as well!
First you need those Canon libraries (libcnclapi,etc) which you can get by unpacking the bjfilteri250 rpm. I copied these into the filesystem with:
cp -R /bjfilteri250-2.3-0.i386/usr/* /usr
Now I had to edit /bjfilter-2.3-0/Makefile by going to line 49 which was giving the error and inserting a semi-colon ";" after the colon ":" That stopped it complaining about line 49.
I still found that bjfilter would refuse to compile, complaining about missing libraries ("cannot find -lcnbpcmcm180"). I resolved this by creating a symbolic link:
ln -s /usr/lib/libcnbpcmcm180.so.6.03.1 /usr/lib/libcnbpcmcm180.so
There are 3 or 4 more libraries for which I had to make a similar symbolic link, but finally the compile finished without error and I could install.
It's all a kludge I know, and I have no idea if it will give you usable drivers, but worth a try??
Offline
YEEAH! I've got my printer working!
There is a story:
thegnu wrote to check:
updatedb
locate ppd
So I did so. After "locate ppd" I saw very strange dir:
/home/vidmantas/downloads/programs/usr/share/cups/model/canoni255.ppd
Then I realised, that when I had bjfiltercups rpm converted to tar.gz, then package extracted not to my root dir (even I used with -C / and maybe that was a mistake) but in my working dir. So I copied all files from /home/vidmantas..../usr/share/cups/ to their correct places, restarted CUPS (1.1.23, default Arch 0.7 CUPS)... and got my printer working!
BIG thanks for all who helped me, special thanks for thegnu! Now I have an ideal linux system!
Sorry for mistakes
Offline
Would all this work (be required) for a networked i250 printer via SAMBA?...
:: / my web presence
Offline