Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cups does not work with 2.6.14-gentoo-r2 kernel
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Weaselweb
n00b
n00b


Joined: 17 Oct 2004
Posts: 74
Location: Chemnitz, Germany

PostPosted: Thu Nov 17, 2005 7:32 am    Post subject: cups does not work with 2.6.14-gentoo-r2 kernel Reply with quote

Hi,

i recently updated to 2.6.14-gentoo-r2 kernel und after that i get allways the error message from cups:
Quote:
Unable to send print file to printer: Invalid argument

Nothing other has changed.
After i rebooted the 2.6.13 kernel it works again.

Any ideas why 2.6.14 does not work oder how to fix that?

Greetings
Weaselweb
Back to top
View user's profile Send private message
kptn_kermit
n00b
n00b


Joined: 29 Apr 2004
Posts: 45
Location: Austria

PostPosted: Thu Nov 17, 2005 12:16 pm    Post subject: Reply with quote

I get the same error message when trying to print with USB printer.

The odd thing is, that printing works with my HP 5L on parport, but not with Canon i865 ib USB port.

Maybe an USB problem ?

Regards

Kermit
Back to top
View user's profile Send private message
Weaselweb
n00b
n00b


Joined: 17 Oct 2004
Posts: 74
Location: Chemnitz, Germany

PostPosted: Thu Nov 17, 2005 1:42 pm    Post subject: Reply with quote

ah, yes i omit the info that it is a USB printer HP Laserjet.
I think too it's an USB problem.

Greetings
Weaselweb
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Thu Nov 17, 2005 1:54 pm    Post subject: Reply with quote

Are you certain similar options are enabled in both kernels?
Back to top
View user's profile Send private message
Weaselweb
n00b
n00b


Joined: 17 Oct 2004
Posts: 74
Location: Chemnitz, Germany

PostPosted: Thu Nov 17, 2005 5:57 pm    Post subject: Reply with quote

well, i copied the config from 2.6.13 and typed "make oldconfig" answered a few options and then normal "make & &make modules_install" that's all.
There is no really reason, that some options are missing.
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Thu Nov 17, 2005 6:38 pm    Post subject: Reply with quote

Check to make sure.
Back to top
View user's profile Send private message
pragmatine
n00b
n00b


Joined: 22 Oct 2005
Posts: 61

PostPosted: Fri Nov 18, 2005 12:43 am    Post subject: Reply with quote

See this bug:
https://bugs.gentoo.org/show_bug.cgi?id=112473

I assume that currently you select your printer through cups using something like:

Code:
usb:/dev/lp0


or maybe thru a custom udev device rule (this is what I used to do which caused the same problem):
Code:
usb:/dev/printers/epson_stylus_color_670


The problem it seems is with accessing it like this and specifying a specific device to use.
Instead just choose "Local printer" and "USB Printer #1" and it should work.

However, this doesnt allow the custom udev device to be used so isnt a good long term fix.
Back to top
View user's profile Send private message
kptn_kermit
n00b
n00b


Joined: 29 Apr 2004
Posts: 45
Location: Austria

PostPosted: Mon Nov 21, 2005 7:10 am    Post subject: Reply with quote

Doesn't work for me:

Changing printer with CUPS web interface, the printer port is changing to usb:/dev/usb/lp0 which do not exist.

In my /etc/udev/rules.d/10-udev.rules the line for Canon is as follows:

# USB Canon printer
BUS="usb",SYSFS{serial}="212O2T",NAME="%k",SYMLINK="usblp0"

It do not work either, if I comment this line out and do a reboot (cause I am not sure, how to restart udev by hand).


In summary:

Using 10-udev.rules
"Unable to send print file to printer: Invalid argument"

Commenting it out:

/dev/usb/lp0: not such file or directory
Back to top
View user's profile Send private message
pragmatine
n00b
n00b


Joined: 22 Oct 2005
Posts: 61

PostPosted: Mon Nov 21, 2005 10:10 pm    Post subject: Reply with quote

what device is being created when you plug in your printer??
Back to top
View user's profile Send private message
kptn_kermit
n00b
n00b


Joined: 29 Apr 2004
Posts: 45
Location: Austria

PostPosted: Thu Nov 24, 2005 7:13 am    Post subject: Reply with quote

How can I check this ?
Back to top
View user's profile Send private message
Weaselweb
n00b
n00b


Joined: 17 Oct 2004
Posts: 74
Location: Chemnitz, Germany

PostPosted: Fri Nov 25, 2005 10:53 pm    Post subject: Reply with quote

type "find /dev" before and after you plug your printer in
compare these two outputs (you can save them in files "find /dev > file")
easiest with "diff -u file1 file2"
Back to top
View user's profile Send private message
HomerSimpson
l33t
l33t


Joined: 25 Jan 2003
Posts: 869
Location: Ohio, USA

PostPosted: Sat Nov 26, 2005 1:57 am    Post subject: Reply with quote

I can't print either. My last kernel was 2.6.10. It was printing. After upgrading to 2.6.14-gentoo-r2, it quit working. I was printing to a custom /dev directory but even setting it up as usb printer #1, does not print.

I have the same problem as stated earlier. CUPS wants to print to /dev/usb/lp0, which does not exist. The default rule creates /dev/lp0. I can manually set it to this using webmin but then it thinks it is a parallel printer. CUPS still does not print.
_________________
The strong must protect the Sweet.
Back to top
View user's profile Send private message
Weaselweb
n00b
n00b


Joined: 17 Oct 2004
Posts: 74
Location: Chemnitz, Germany

PostPosted: Sat Nov 26, 2005 9:07 am    Post subject: Reply with quote

Try editing your /etc/cups/printers.conf and setting
DeviceURI usb:/dev/lp0
Back to top
View user's profile Send private message
HomerSimpson
l33t
l33t


Joined: 25 Jan 2003
Posts: 869
Location: Ohio, USA

PostPosted: Sat Nov 26, 2005 1:21 pm    Post subject: Reply with quote

I did that but it still doesn't print. It looks like it starts to send the print job but the printer never prints.

I emerge 2.6.13-r5 and all is well again. I will wait until this gets solved in 2.6.14 (or 15 or 16 or...) before I try again.

Thanks
_________________
The strong must protect the Sweet.
Back to top
View user's profile Send private message
Weaselweb
n00b
n00b


Joined: 17 Oct 2004
Posts: 74
Location: Chemnitz, Germany

PostPosted: Sat Nov 26, 2005 2:10 pm    Post subject: Reply with quote

but it finds your device /dev/lp0?
for those problems i allways keep 2 older versions as backup if a newer one doesn't work (like this one)
Back to top
View user's profile Send private message
HomerSimpson
l33t
l33t


Joined: 25 Jan 2003
Posts: 869
Location: Ohio, USA

PostPosted: Sat Nov 26, 2005 3:15 pm    Post subject: Reply with quote

I have to select parallel printer or manually set the URI to /dev/lp0. If you select USB printer 1, it selects /dev/usb/lp0.

I am up and running now with an older kernel. Keeping the old ones is a good idea. My last one was 2.6.10 so I decided to upgrade to 2.6.13 and it works.

Thanks
_________________
The strong must protect the Sweet.
Back to top
View user's profile Send private message
hinken
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2004
Posts: 109

PostPosted: Tue Nov 29, 2005 10:38 pm    Post subject: Reply with quote

Hi!

Thank you for helping me printing my school-paper!
I was going nuts over here(The printer has always worked for me) then I tried your suggestion editing /etc/cups/printers.conf , changing to DeviceURI usb:/dev/lp0 saved my day!

Thanks again!

/hinken
Back to top
View user's profile Send private message
kptn_kermit
n00b
n00b


Joined: 29 Apr 2004
Posts: 45
Location: Austria

PostPosted: Fri Dec 02, 2005 11:30 am    Post subject: Reply with quote

diff -u file1.txt file2.txt with

find /dev > file1.txt before plugging in the USB printer and
find /dev > file2.txt after plugging in

leads to

muppets ~ # diff -u file1.txt file2.txt
--- file1.txt 2005-12-02 12:27:08.000000000 +0100
+++ file2.txt 2005-12-02 12:27:20.000000000 +0100
@@ -1,4 +1,5 @@
/dev
+/dev/usbdev2.5
/dev/vcsa7
/dev/vcs7
/dev/vcsa6
@@ -31,6 +32,7 @@
/dev/bus/usb/4
/dev/bus/usb/4/1
/dev/bus/usb/2
+/dev/bus/usb/2/5
/dev/bus/usb/2/1
/dev/bus/usb/1
/dev/bus/usb/1/1
@@ -159,6 +161,7 @@
/dev/ttyS2
/dev/ttyS1
/dev/.udevdb
+/dev/.udevdb/class@usb_device@usbdev2.5
/dev/.udevdb/class@usb_device@usbdev3.3
/dev/.udevdb/class@input@mouse2
/dev/.udevdb/class@usb_device@usbdev5.1
Back to top
View user's profile Send private message
Tarball
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2002
Posts: 142
Location: Cheshire, UK

PostPosted: Wed Jan 25, 2006 7:09 am    Post subject: Reply with quote

I am having the same problem.
Kernel 2.6.15-gentoo, cups 1.1.23-r7

I had cups set up to print to /dev/printers/ml1510 which was a symlink setup by UDev. I think it used to be linked to /dev/usblp0, however I notice that now it is linked to /dev/usbdev5.8 which has the attributes:
Code:

lrwxrwxrwx  1 root root 12 Jan 24 23:14 /dev/printers/ml1510 -> ../usbdev5.8

crw-rw----  1 root root 189, 519 Jan 24 23:14 /dev/usbdev5.8


Here's the bit I haven't figured yet, I try redirecting something to that device as root (I am not expecting anything other than gibberish) but I get this:
Code:

# ls > /dev/usbdev5.8
ls: write error: Invalid argument


That 'invalid argument' sounds familiar...
Code:

Unable to send print file to printer: Invalid argument


I've got to go to work now but maybe this is where the problem lies?!?!
Back to top
View user's profile Send private message
Weaselweb
n00b
n00b


Joined: 17 Oct 2004
Posts: 74
Location: Chemnitz, Germany

PostPosted: Wed Jan 25, 2006 8:52 am    Post subject: Reply with quote

I changed my printer device from /dev/hp_printer to /dev/usb/lp0 and it works fine. I don't know where this bug is, but that's a workaround (not quite good, but it works)

HTH
Weaselweb
Back to top
View user's profile Send private message
Tarball
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2002
Posts: 142
Location: Cheshire, UK

PostPosted: Wed Jan 25, 2006 9:58 am    Post subject: Reply with quote

Hmmm, I don't have that device.

Are you using UDEV? Which version?
Back to top
View user's profile Send private message
Weaselweb
n00b
n00b


Joined: 17 Oct 2004
Posts: 74
Location: Chemnitz, Germany

PostPosted: Wed Jan 25, 2006 11:14 am    Post subject: Reply with quote

Currently I'm using udev-079 but this workaround did work with earlier versions
Back to top
View user's profile Send private message
raise
n00b
n00b


Joined: 13 Jul 2004
Posts: 11

PostPosted: Mon Mar 06, 2006 11:32 pm    Post subject: Reply with quote

I had a custom role in /etc/udev/rules.d/10-udev.rules

BUS="usb", SYSFS{serial}="M05P10412101027350", NAME="epson-printer", SYMLINK="printers/epson_stylus_printer"

after commenting it out the dev node /dev/usb/lp0 was created again. I changed it in cups and it works again. I'm using kernel 2.6.15 stable. Is there a known bug that this gets fixed soon. I use udev 079

g.
Back to top
View user's profile Send private message
raise
n00b
n00b


Joined: 13 Jul 2004
Posts: 11

PostPosted: Fri Mar 10, 2006 9:04 pm    Post subject: Reply with quote

I opended a bug at gentoo and the answer to to bug was:


You need to use "==" instead of "=" for your rules.

Try rewriting this as:

BUS=="usb", SYSFS{serial}=="M05P10412101027350", NAME="epson-printer",
SYMLINK="printers/epson_stylus_printer"


-----------

Funny API change in the middle of udev development. May be it was a bug that it worked before? However it works now and people with similar problems should fix this easy and that's what count's.
Back to top
View user's profile Send private message
kptn_kermit
n00b
n00b


Joined: 29 Apr 2004
Posts: 45
Location: Austria

PostPosted: Tue Mar 21, 2006 7:10 am    Post subject: Do not work Reply with quote

Changing the entry in /etc/udev/rules.d/10-udev.rules from "=" to "==" do not change anything.

The entry in detail:

# Canon i865 USB:
BUS=="usb", SYSFS{serial}=="21202T", NAME=="canon_i865", SYMLINK=="printers/canon_i865"

I configured the printer in CUPS with:

usb:/dev/canon_i865

The cups error is as usual:

"Unable to send print file to printer: Invalid argument"

and /var/log/messages is telling me:

Mar 21 08:07:36 muppets usb 3-1: new full speed USB device using uhci_hcd and address 2
Mar 21 08:07:36 muppets drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x04A9 pid 0x107F


Any ideas, what I am doing wrong ?

Regards

KK
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
Goto page 1, 2  Next
Page 1 of 2

 
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