View previous topic :: View next topic |
Author |
Message |
Lokesh Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/The Fifth Element/movie_the_fifth_element_korban_dalas.gif)
Joined: 01 Apr 2012 Posts: 161
|
Posted: Tue May 15, 2018 2:15 pm Post subject: Printer not recognised as printer |
|
|
Hello,
so what does it mean? My printer is plugged into usb, but CUPS does not see it.
Trying to spot the problem, I stumbled across Arch CUPS/Troubleshooting. There they mention "permission problems". What I see is: Code: | lsusb
Bus 002 Device 004: ID 0482:0003 Kyocera Corp.
ls -l /dev/bus/usb/002/004
crw-rw-r-- 1 root usb 189, 261 May 15 15:36 /dev/bus/usb/003/006
dmesg | grep printer
(nothing)
dmesg |grep usb
[ 342.007677] usb 1-1.2: Product: Kyocera Mita FS-1010
[ 342.007679] usb 1-1.2: Manufacturer: Kyocera Mita
[ 342.007680] usb 1-1.2: SerialNumber: XXX4Y22000 |
The printer is not assigned to the lp group. Temporarily changing the group to lp indeed makes the printer visible to CUPS. A transient solution until next reboot. I did not understand the Arch solution with udev, my attempts to write a corresponding udev rule failed.
On Debian on the same computer - I use it in parallel to Gentoo - I get:
Code: | lsusb
Bus 003 Device 006: ID 0482:0003 Kyocera Corp.
ls -l /dev/bus/usb/003/006
crw-rw-r-- 1 root lp 189, 261 May 15 15:36 /dev/bus/usb/003/006
dmesg | grep printer
[ 13.003999] usblp 3-3:1.0: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x0482 pid 0x0003
dmesg | grep usb
[ 3637.769196] usb 3-3: Product: Kyocera Mita FS-1010
[ 3637.769196] usb 3-3: Manufacturer: Kyocera Mita
[ 3637.769197] usb 3-3: SerialNumber: XXX4Y22000 |
No need for a manual fix.
I installed Gentoo on a different computer, same outcome here. The printer is not recognised by the system as printer (my interpretation).
I do not use the built in kernel module for usb printing (in fact, my beloved Kyocera refuses to work when it is active). My current kernel is 4.16.8.
Hope someone can help
Cheers
Lokesh _________________ Sometimes frustrated Linux User |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gerard27 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
Posted: Tue May 15, 2018 3:07 pm Post subject: |
|
|
Try reinstalling cups with usb flag set.
Shutdown cupsd first (/etc/init.d/cupsd stop).
Restart cupsd after the reinstall.
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 |
|
![](templates/gentoo/images/spacer.gif) |
Lokesh Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/The Fifth Element/movie_the_fifth_element_korban_dalas.gif)
Joined: 01 Apr 2012 Posts: 161
|
Posted: Wed May 16, 2018 4:24 pm Post subject: |
|
|
CUPS was of course installed with the usb flag enabled. As I mentioned, the issue was reproducible on a different computer with an entirely fresh install of Gentoo.
I restart the cups daemon every time I make changes to the configuration.
Lokesh _________________ Sometimes frustrated Linux User |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mir3x Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/178205245657aba2da9de10.jpg)
Joined: 02 Jun 2012 Posts: 455
|
Posted: Wed May 16, 2018 4:51 pm Post subject: |
|
|
usblp is USB_PRINTER in kernel, maybe try with it enabled ?
(seems Debian using it)
Or maybe try first gentoo prining wiki troubleshooting ?
https://wiki.gentoo.org/wiki/Printing
Seems there is that Udev rule too.
in your case just create file with
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0482", ATTRS{idProduct}=="0003", MODE="0660", GROUP="lp"
in /etc/udev/rules.d/99-printer.rules _________________ Sent from Windows |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Lokesh Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/The Fifth Element/movie_the_fifth_element_korban_dalas.gif)
Joined: 01 Apr 2012 Posts: 161
|
Posted: Wed May 16, 2018 7:45 pm Post subject: |
|
|
mir3x wrote: | usblp is USB_PRINTER in kernel, maybe try with it enabled ?
(seems Debian using it) | This is the first thing to deactivate after installation, be it Gentoo or Arch. I could not use my printer for years (!) until I figured this out. Debian at that time was also useless. That being said, printing under Debian nowadays works again, despite the Kernel module (it is set to modular).
mir3x wrote: | Or maybe try first gentoo prining wiki troubleshooting ?
https://wiki.gentoo.org/wiki/Printing
Seems there is that Udev rule too.
in your case just create file with
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0482", ATTRS{idProduct}=="0003", MODE="0660", GROUP="lp"
in /etc/udev/rules.d/99-printer.rules |
Thanks, it gets me a step forward. With this rule in place, CUPS recognises the printer, a test page can be printed.
BUT: no program sees the printer! Whenever I try to print, from Browser, pdfviewer, text program, it takes 1-2 minutes untel the print menu pops up, with only one option, print to file. The printer listed under CUPS is not seen by the programs, including kde printer in the system settings.
I am getting mad with CUPS. Every few years another hassle. It is annoying.
Lokesh _________________ Sometimes frustrated Linux User |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mir3x Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/178205245657aba2da9de10.jpg)
Joined: 02 Jun 2012 Posts: 455
|
Posted: Wed May 16, 2018 7:48 pm Post subject: |
|
|
Just use cups browser page to configure printer
localhost:631 _________________ Sent from Windows |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Lokesh Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/The Fifth Element/movie_the_fifth_element_korban_dalas.gif)
Joined: 01 Apr 2012 Posts: 161
|
Posted: Thu May 17, 2018 3:27 pm Post subject: |
|
|
As I said, CUPS does see the printer now, i.e. on its configuration website on port 631. The entire rest of the system, any other program or KDE's system-config-printer do not see it. Nor lpstat or lpinfo (returns "bad file descriptor") _________________ Sometimes frustrated Linux User |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|