View previous topic :: View next topic |
Author |
Message |
baaann Guru
Joined: 23 Jan 2006 Posts: 558 Location: uk
|
Posted: Tue Mar 19, 2013 11:20 am Post subject: |
|
|
Code: | lsusb
Bus 001 Device 002: ID 2001:f103 D-Link Corp. DUB-H7 7-port USB 2.0 hub
Bus 002 Device 002: ID 04a9:1093 Canon, Inc. PIXMA iP4000
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 046d:c01d Logitech, Inc. MX510 Optical Mouse
Bus 001 Device 005: ID 413c:1003 Dell Computer Corp. Keyboard Hub
Bus 001 Device 006: ID 413c:2010 Dell Computer Corp. Keyboard |
Code: | cat /usr/src/linux/.config|grep CONFIG_USB_PRINTER
# CONFIG_USB_PRINTER is not set |
KDE print manager is blocking the downgrade of cups so I have not explored any further in that direction
Code: | These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild UD ] net-print/cups-1.5.3::gentoo [1.6.1-r1::x-portage] USE="X acl dbus filters jpeg%* ldap%* pam png%* ssl threads tiff%* usb -avahi -debug -gnutls -java -kerberos -perl% -python (-selinux) -slp% -static-libs -systemd -xinetd (-zeroconf%)" LINGUAS="-da% -de% -es -eu% -fi% -fr% -hu% -id% -it% -ja -ko% -nl% -no% -pl% -pt% -pt_BR% -ru% -sv% -zh% -zh_TW% (-ca%)" 9,373 kB
[blocks B ] net-print/cups-filters ("net-print/cups-filters" is blocking net-print/cups-1.5.3)
[blocks B ] <=net-print/cups-1.5.9999 ("<=net-print/cups-1.5.9999" is blocking net-print/cups-filters-1.0.30)
Total: 1 package (1 downgrade), Size of downloads: 9,373 kB
Conflict: 2 blocks (2 unsatisfied)
!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:
net-print/cups:0
(net-print/cups-1.6.1-r1::x-portage, installed) pulled in by
>=net-print/cups-1.6.0[dbus] required by (kde-base/print-manager-4.10.1::gentoo, installed)
(and 1 more with the same problem)
(net-print/cups-1.5.3::gentoo, ebuild scheduled for merge) pulled in by
<net-print/cups-1.6.0 required by (net-print/foomatic-filters-4.0.17::gentoo, installed) |
|
|
Back to top |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2601
|
Posted: Tue Mar 19, 2013 5:52 pm Post subject: |
|
|
ssuominen wrote: | I don't see how this would have any difference with 197-r8 or 198-r1, but is CONFIG_USB_PRINTER=n set in kernel? The "new" cups doesn't like CONFIG_USB_PRINTER=y and uses libusb instead. |
I have CONFIG_USB_PRINTER set in my kernel:
Code: |
# grep -i config_usb_printer /usr/src/linux/.config
CONFIG_USB_PRINTER=y
|
However, that should be fine with CUPS (even with 1.6.1) as long as USB support (libusb) is not included at the time of compilation:
Code: |
# emerge -av cups
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] net-print/cups-1.6.1 USE="X acl dbus filters pam ssl threads -avahi -debug -gnutls -java -kerberos -python (-selinux) -static-libs -systemd -usb -xinetd -zeroconf" LINGUAS="-ca -es -ja" 0 kB
Total: 1 package (1 reinstall), Size of downloads: 0 kB
|
If I recall correctly, it simply has to be one or the other--kernel USB printing support (via usblp) OR built-in USB support in CUPS (via libusb).
Also, I didn't change anything about my kernel when the errors were occurring. Instead, I just downgraded UDEV.
Cheers,
Nathan Zachary _________________ “Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Last edited by NathanZachary on Thu Mar 21, 2013 12:30 am; edited 1 time in total |
|
Back to top |
|
|
SamuliSuominen Retired Dev
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
|
Back to top |
|
|
gerard27 Advocate
Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
Posted: Tue Mar 19, 2013 8:09 pm Post subject: |
|
|
@ssuominen,
I have a separate Gentoo install on my box for experiments.
It's more or less identical to the regular one.
I tried downgrading to cups-1.5.2-r4 with udev 198 installed.
All kinds of weird things when I tried to configure cups in my browser.
Never got it going.
Usb printer is not enabled in my kernel,cups has the usb flag set.
I'll wait until the new 198 appears in portage before installing it.
Thanks for all the work you do.
Gerard. _________________ To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download |
|
Back to top |
|
|
SamuliSuominen Retired Dev
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
Posted: Tue Mar 19, 2013 8:25 pm Post subject: |
|
|
gerard82 wrote: | @ssuominen,
I have a separate Gentoo install on my box for experiments.
It's more or less identical to the regular one.
I tried downgrading to cups-1.5.2-r4 with udev 198 installed.
All kinds of weird things when I tried to configure cups in my browser.
Never got it going.
Usb printer is not enabled in my kernel,cups has the usb flag set.
I'll wait until the new 198 appears in portage before installing it.
Thanks for all the work you do.
Gerard. |
I think I'll wait for one or more people to confirm https://bugs.gentoo.org/show_bug.cgi?id=462346#c3 is OK with 198 and CUPS 1.6.x before making a new revision 198-r2 for ~arch (testing) |
|
Back to top |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2601
|
Posted: Tue Mar 19, 2013 10:00 pm Post subject: |
|
|
ssuominen wrote: | gerard82 wrote: | @ssuominen,
I have a separate Gentoo install on my box for experiments.
It's more or less identical to the regular one.
I tried downgrading to cups-1.5.2-r4 with udev 198 installed.
All kinds of weird things when I tried to configure cups in my browser.
Never got it going.
Usb printer is not enabled in my kernel,cups has the usb flag set.
I'll wait until the new 198 appears in portage before installing it.
Thanks for all the work you do.
Gerard. |
I think I'll wait for one or more people to confirm https://bugs.gentoo.org/show_bug.cgi?id=462346#c3 is OK with 198 and CUPS 1.6.x before making a new revision 198-r2 for ~arch (testing) |
Is this patch only applicable for those running systemd? I ask because the patch name includes systemd. If not, I will attempt to patch it and check for results.
Cheers,
Nathan Zachary _________________ “Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio--- |
|
Back to top |
|
|
baaann Guru
Joined: 23 Jan 2006 Posts: 558 Location: uk
|
Posted: Tue Mar 19, 2013 10:42 pm Post subject: |
|
|
Yay, works for me printing a test page
ssuominen wrote: |
preferably in the bug. I'm not sure if "udevadm trigger" is enough after the patch, or if rebooting is required, let me know about that too. Thanks! |
Didn't read this bit until now, but just restarted udev and cupsd after patching
I will update the bug as well |
|
Back to top |
|
|
SamuliSuominen Retired Dev
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
Posted: Tue Mar 19, 2013 10:50 pm Post subject: |
|
|
NathanZachary wrote: | ssuominen wrote: | gerard82 wrote: | @ssuominen,
I have a separate Gentoo install on my box for experiments.
It's more or less identical to the regular one.
I tried downgrading to cups-1.5.2-r4 with udev 198 installed.
All kinds of weird things when I tried to configure cups in my browser.
Never got it going.
Usb printer is not enabled in my kernel,cups has the usb flag set.
I'll wait until the new 198 appears in portage before installing it.
Thanks for all the work you do.
Gerard. |
I think I'll wait for one or more people to confirm https://bugs.gentoo.org/show_bug.cgi?id=462346#c3 is OK with 198 and CUPS 1.6.x before making a new revision 198-r2 for ~arch (testing) |
Is this patch only applicable for those running systemd? I ask because the patch name includes systemd. If not, I will attempt to patch it and check for results.
Cheers,
Nathan Zachary |
The patch is for sys-fs/udev's file 50-udev-default.rules, and is not really dependant on the init system being used, so the patch is for systemd, openrc, and whatever |
|
Back to top |
|
|
SamuliSuominen Retired Dev
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
Posted: Wed Mar 20, 2013 5:44 am Post subject: |
|
|
The fix is in Portage as =sys-fs/udev-198-r2 (and also in 9999 if you re-emerge it) |
|
Back to top |
|
|
gerard27 Advocate
Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
Posted: Wed Mar 20, 2013 4:07 pm Post subject: |
|
|
Upgraded from 197 to 198-r2.
Printing with cups-1.6.1 now works fine.
Thanks ssuominen!
Gerard. _________________ To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download |
|
Back to top |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2601
|
Posted: Wed Mar 20, 2013 4:38 pm Post subject: |
|
|
I did as well, and all aspects of printing have returned to normal. For me, it functioned correctly after the "udevadm trigger," but I wanted to migrate to the new naming conventions for network interfaces, so I rebooted as well.
Thank you for the help, Samuli!
Cheers,
Nathan Zachary _________________ “Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio--- |
|
Back to top |
|
|
Jimmy Jazz Guru
Joined: 04 Oct 2004 Posts: 325 Location: Strasbourg
|
Posted: Wed Mar 20, 2013 8:38 pm Post subject: |
|
|
@NathanZachary
Before udev was ... makedev()
If I remember well, usblp(?) kernel module creates /dev/usblpx to access an usb printer but cups usb/hp backends (usb/hpio) need /dev/bus/usb/00x/00x instead. Also many printers are bidirectional and they need r access to the device as well.
As user, run 'strace /usr/libexec/cups/backend/usb' or strace /usr/libexec/cups/backend/hp' to see where you get a permission denied. That could help you to identify the origin of the problem.
PS: if lp group needs to be changed to usb as suggested in the bug report, probably the same problem could arise with a scanner connected to an usb all-in-one printer. _________________ « La seule condition au triomphe du mal, c'est l'inaction des gens de bien » E.Burke
Code: |
+----+----+----+
| |::::| |
| |::::| |
+----+----+----+ |
motto: WeLCRO
WritE Less Code, Repeat Often |
|
Back to top |
|
|
gerard27 Advocate
Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
Posted: Wed Mar 20, 2013 10:12 pm Post subject: |
|
|
@Jimmy Jazz,
My Epson RX560 is a combo with scanner.
Both printer & scanner work fine.
Usblp is ancient history.
Gerard. _________________ To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download |
|
Back to top |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2601
|
Posted: Thu Mar 21, 2013 12:30 am Post subject: |
|
|
gerard82 wrote: | @Jimmy Jazz,
My Epson RX560 is a combo with scanner.
Both printer & scanner work fine.
Usblp is ancient history.
Gerard. |
I use the the usblp kernel driver with CUPS-1.6.1 without any problems. It may be an "older" driver, but it works just fine. I don't see any reason to use the one bundled with CUPS. If you know of a reason, I would definitely entertain the idea of switching.
Cheers,
Nathan Zachary _________________ “Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio--- |
|
Back to top |
|
|
asm64 n00b
Joined: 25 Apr 2008 Posts: 27 Location: г.Кемерово
|
Posted: Sat Mar 23, 2013 12:31 pm Post subject: |
|
|
NathanZachary wrote: | @asm64,
Thank you for the suggestion. ...
|
Please |
|
Back to top |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2601
|
Posted: Mon Apr 22, 2013 7:38 pm Post subject: |
|
|
Unfortunately, I just had to mask >sys-fs/udev-197-r8 in order to keep my printer working. I emerged the latest ~ release of udev today, and my printer stopped working again. Would it be best to open a new bug report for it?
Cheers,
Nathan Zachary _________________ “Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio--- |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Mon Apr 22, 2013 7:53 pm Post subject: |
|
|
NathanZachary wrote: | Would it be best to open a new bug report for it?
|
If you don't the ~version that doesn't work will be stabilize with your bug in it.
Better report before this happen to save yourself and all stable users with a printer no ? |
|
Back to top |
|
|
SamuliSuominen Retired Dev
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
Posted: Mon Apr 22, 2013 8:19 pm Post subject: |
|
|
NathanZachary wrote: | Unfortunately, I just had to mask >sys-fs/udev-197-r8 in order to keep my printer working. I emerged the latest ~ release of udev today, and my printer stopped working again. Would it be best to open a new bug report for it?
Cheers,
Nathan Zachary |
What do you mean?
gerard82 posted Wed Mar 20 that "Upgraded from 197 to 198-r2. Printing with cups-1.6.1 now works fine."
to which you replied Wed Mar 20 like: "I did as well, and all aspects of printing have returned to normal. For me, it functioned correctly after the "udevadm trigger," but I wanted to migrate to the new naming conventions for network interfaces, so I rebooted as well. "
This was related to broken .rules in udev itself and the fix has since been imported to upstream git and is part of udev-200, 202, 9999
But now you are saying you had to mask >sys-fs/udev-197-r8 to get printing working again?
Sorry, but that doesn't make any sense to me. |
|
Back to top |
|
|
|