CUPS not detect the USB printer connected

Senthil Murugan senthil_pushpavanalingam at mindtree.com
Sun Sep 5 22:42:55 PDT 2010


I'm using kernel version 2.6.30 & when i select Raw printer model debug log (/var/log/cus/errorlog) not give any detail on failure. i could see the job in Queue.

Your input on debug steps will help.

> On Sep 3, 2010, at 2:03 AM, Senthil Murugan wrote:
> > Changing permission of /dev/usb/lp0 to 777 thing fine. Now i could =
> able to see the USB printer as output of "lpinfo -v".
> > Here the sample output from my target system:
> > network socket
> > direct usb://HP/Officejet%20J4500%20series?serial=3DCN9BSD80B2052V
> > network http
> > network ipp
> > network lpd
> > direct scsi
> >=20
> > When i issue the lp command to fire a print-out, i didn't see job =
> printed on the printer. no error mesg on console. Appreciate your help =
> if you can give the debug steps.
>
> Depending on the kernel you are using, you may be running into a =
> compatibility issue between the HP printer and the USB printer driver - =
> I know I've had issues printing from a Sheevaplug to my HP printers...
>
> >=20
> > Senthil
> >=20
> >=20
> >> Michael,
> >>=20
> >> My development environment is so customized. i dont' have many =
> groups. i have only root and admin as user. and root as group.
> >>=20
> >> So, i have change the permission to group as Read&Write. Is it any =
> still require the file /dev/usb/lp0 should be in "sys" group?
> >>=20
> >> Thanks,
> >> Senthil
> >>=20
> >>=20
> >>> The files need a different group (whichever group is in cupsd.conf - =
> =3D
> >>> usually "sys"...)
> >>>=20
> >>> On Sep 2, 2010, at 10:38 PM, Senthil Murugan wrote:
> >>>=20
> >>>> Michael,
> >>>> =3D20
> >>>> Here the /dev/usb/* file permission details,
> >>>> =3D20
> >>>> crw-rw----    1 root     root     180,   0 Jan  1 00:09 lp0
> >>>> crw-rw----    1 root     root     180,   1 Jan  1 00:10 lp1
> >>>> =3D20
> >>>> In /etc/cups/cupsd.conf enable the debug level as "debug2" and i =
> could =3D
> >>> see the polling process detects only 5 fd some time. some time it =
> shows =3D
> >>> 7 fd.
> >>>> =3D20
> >>>> [02/Jan/1970:17:14:10 +0000] cupsdDoSelect: Read on fd 5...
> >>>> this may give some info to you on the problem part.
> >>>> =3D20
> >>>> Thanks,
> >>>> Senthil
> >>>> =3D20
> >>>>> You need to check the permissions of the /dev/usb/* files.
> >>>>> =3D20
> >>>>> On Sep 2, 2010, at 7:25 AM, Senthil Murugan wrote:
> >>>>> =3D20
> >>>>>> Thanks Michael for quick input. OpenWrt for embedded device not =3D=
>
> >>> having =3D3D
> >>>>> all the users in my config. I have only root user and admin user. =
> I =3D
> >>> have =3D3D
> >>>>> root permission for the /usr/lib/cups/backend/usb. owner and group =
> =3D3D
> >>>>> permission also for user root. I login as a root and executes =
> lpinfo =3D
> >>> -v. =3D3D
> >>>>> its shows only 5 devices. Same time when i change the directory =
> =3D3D
> >>>>> /usr/lib/cups/backend/ run "usb" i could able to see the printer =3D=
>
> >>> details =3D3D
> >>>>> including serial number.
> >>>>>> =3D3D20
> >>>>>> Thanks,
> >>>>>> Senthil
> >>>>>> =3D3D20
> >>>>>>> Sounds like a permissions problem - the USB backend runs as the =
> =3D
> >>> "lp" =3D3D
> >>>>> =3D3D3D
> >>>>>>> user by default, so the USB device files will need to be =
> writable =3D
> >>> by =3D3D
> >>>>> =3D3D3D
> >>>>>>> "lp" or have the appropriate group with group write enabled.
> >>>>>>> =3D3D20
> >>>>>>> On Sep 1, 2010, at 6:06 AM, Senthil Murugan wrote:
> >>>>>>> =3D3D20
> >>>>>>>> Hi Team,
> >>>>>>>> =3D3D3D20
> >>>>>>>> I'm working on the embedded system with OpenWrt plus CUPS =
> 1.3.10. =3D
> >>> =3D3D3D
> >>>>>>> lpinfo -v not listing my usb printer connected. I could see the =
> =3D3D
> >>>>> device =3D3D3D
> >>>>>>> connected in /proc/bus/usb/devices & /usr/share/cups/backend/usb =
> =3D
> >>> also =3D3D
> >>>>> =3D3D3D
> >>>>>>> shows the printer connected. But my lpinfo -v command shows =
> always =3D
> >>> 5 =3D3D
> >>>>> =3D3D3D
> >>>>>>> other devices (http, ipp, socket, lpd & scsi).
> >>>>>>>> =3D3D3D20
> >>>>>>>> went through some extend of debug by enabling DEBUG option in =
> code =3D
> >>> =3D3D3D=3D3D
> >>>>> =3D20
> >>>>>>> (debug.h). when i enable DEBUG option lpinfo -v hangs.
> >>>>>>>> =3D3D3D20
> >>>>>>>> Looking experts input to resolve my problem.
> >>>>>>>> =3D3D3D20
> >>>>>>>> Thanks,
> >>>>>>>> Senthil
> >>>>>>>> _______________________________________________
> >>>>>>>> cups-dev mailing list
> >>>>>>>> cups-dev at easysw.com
> >>>>>>>> http://lists.easysw.com/mailman/listinfo/cups-dev
> >>>>>>> =3D3D20
> >>>>>>> =3D3D
> >>>>> =3D
> >>> =
> ________________________________________________________________________
> >>>>>>> Michael Sweet, Senior Printing System Engineer, PWG Chair
> >>>>>>> =3D3D20
> >>>>>>> =3D3D20
> >>>>>>> =3D3D20
> >>>>>>> =3D3D20
> >>>>>> =3D3D20
> >>>>>> _______________________________________________
> >>>>>> cups-dev mailing list
> >>>>>> cups-dev at easysw.com
> >>>>>> http://lists.easysw.com/mailman/listinfo/cups-dev
> >>>>> =3D20
> >>>>> =3D
> >>> =
> ________________________________________________________________________
> >>>>> Michael Sweet, Senior Printing System Engineer, PWG Chair
> >>>>> =3D20
> >>>>> =3D20
> >>>>> =3D20
> >>>>> =3D20
> >>>> =3D20
> >>>> _______________________________________________
> >>>> cups-dev mailing list
> >>>> cups-dev at easysw.com
> >>>> http://lists.easysw.com/mailman/listinfo/cups-dev
> >>>=20
> >>> =
> ________________________________________________________________________
> >>> Michael Sweet, Senior Printing System Engineer, PWG Chair
> >>>=20
> >>>=20
> >>>=20
> >>>=20
> >>=20
> >=20
> > _______________________________________________
> > cups-dev mailing list
> > cups-dev at easysw.com
> > http://lists.easysw.com/mailman/listinfo/cups-dev
>
> ________________________________________________________________________
> Michael Sweet, Senior Printing System Engineer, PWG Chair
>
>
>
>





More information about the cups mailing list