[cups.general] available devices

Michael Sweet msweet at apple.com
Wed Mar 4 08:27:31 PST 2009


Just verify that you can open /dev/usb/lp0, e.g.:

     echo Hello >/dev/usb/lp0

On Mar 3, 2009, at 9:01 PM, Craig wrote:

> I have rechecked the printer, it is on, plugged in, and works in the  
> development environment.  I have recopied all the package files to  
> the embedded flash drive, checked the kernel.. it is the same kernel  
> that is working in the development environment, and checked the  
> config.gz file in /proc to verify that CONFIG_USB_PRINTER=y is set.   
> I noticed that the file printer.o is not found in the kernel source,  
> there is a usblp.c file that is built when using the above config  
> setting.     Is there any other thing that I can look for or try to  
> see why a USB printer is never seen by lpinfo ??
>
>
>> Check the obvious issues (not plugged in or turned on), and make sure
>> you don't have HPLIP installed since its backend will unload the USB
>> printer driver...
>>
>> On Mar 2, 2009, at 10:03 AM, Craig wrote:
>>
>>> I will double check when I get back home this evening, but I am
>>> pretty sure the same kernel is used for both environments, and it is
>>> not using loadables kernel modules (all modules built into the
>>> kernel)..  Is there any other reason a USB printer would not be  
>>> seen?
>>>
>>>
>>>> CUPS 1.3.9 uses the USB printer driver ("printer.o") provided by  
>>>> the
>>>> kernel. If that module is not loaded, then it won't see any  
>>>> printers.
>>>>
>>>> On Mar 2, 2009, at 8:48 AM, Craig wrote:
>>>>
>>>>> Need some help..
>>>>>
>>>>> I am developing an embedded Linux solution based on a Gentoo  
>>>>> distro
>>>>> (2.6.24 kernel).  My development environment is an external USB  
>>>>> hard
>>>>> drive that is plugged into the embedded solution.  I have printing
>>>>> working in the development environment (cups v1.3.9), but when I
>>>>> copy things to the flash and start the target embedded  
>>>>> environment I
>>>>> cannot see any available USB printers (lpinfo -v).  I am using the
>>>>> same kernel in both environments.  The cups logs files are below,
>>>>> access_log:
>>>>> localhost - - [03/Mar/2009:07:25:37 -0700] "POST / HTTP/1.1" 200  
>>>>> 948
>>>>> CUPS-Get-Devices -
>>>>>
>>>>> error_log:
>>>>> I [03/Mar/2009:07:25:24 -0700] Listening to 127.0.0.1:631 (IPv4)
>>>>> I [03/Mar/2009:07:25:24 -0700] Listening to /var/run/cups/ 
>>>>> cups.sock
>>>>> (Domain)
>>>>> I [03/Mar/2009:07:25:24 -0700] Loaded configuration file "/etc/ 
>>>>> cups/
>>>>> cupsd.conf"
>>>>> I [03/Mar/2009:07:25:24 -0700] Using default TempDir of /var/ 
>>>>> spool/
>>>>> cups/tmp...
>>>>> I [03/Mar/2009:07:25:24 -0700] Configured for up to 100 clients.
>>>>> I [03/Mar/2009:07:25:24 -0700] Allowing up to 100 client  
>>>>> connections
>>>>> per host.
>>>>> I [03/Mar/2009:07:25:24 -0700] Using policy "default" as the
>>>>> default!
>>>>> I [03/Mar/2009:07:25:24 -0700] Full reload is required.
>>>>> I [03/Mar/2009:07:25:24 -0700] Loaded MIME database from '/etc/
>>>>> cups': 35 types, 38 filters...
>>>>> I [03/Mar/2009:07:25:24 -0700] Loading job cache file "/var/cache/
>>>>> cups/job.cache"...
>>>>> I [03/Mar/2009:07:25:24 -0700] Full reload complete.
>>>>> I [03/Mar/2009:07:25:24 -0700] Cleaning out old temporary files in
>>>>> "/
>>>>> var/spool/cups/tmp"...
>>>>> E [03/Mar/2009:07:25:24 -0700] Unable to find IP address for  
>>>>> server
>>>>> name "Newhost"!
>>>>> I [03/Mar/2009:07:25:24 -0700] Listening to 127.0.0.1:631 on fd  
>>>>> 1...
>>>>> I [03/Mar/2009:07:25:24 -0700] Listening to /var/run/cups/ 
>>>>> cups.sock
>>>>> on fd 3...
>>>>> I [03/Mar/2009:07:25:24 -0700] Resuming new connection  
>>>>> processing...
>>>>> I [03/Mar/2009:07:25:37 -0700] Started "/usr/libexec/cups/daemon/
>>>>> cups-deviced" (pid=2666)
>>>>> I [03/Mar/2009:07:26:10 -0700] Scheduler shutting down normally.
>>>>> I [03/Mar/2009:07:26:10 -0700] Saving job cache file "/var/cache/
>>>>> cups/job.cache"...
>>>>>
>>>>> I have compared the files used by both environments with lsof,  
>>>>> this
>>>>> is what it shows:
>>>>> cupsd     2784  root  cwd       DIR        3,1    1024           
>>>>> 2 /
>>>>> cupsd     2784  root  rtd       DIR        3,1    1024           
>>>>> 2 /
>>>>> cupsd     2784  root  txt       REG        3,1  342852       
>>>>> 11776 /
>>>>> usr/sbin/cupsd
>>>>> cupsd     2784  root  mem       REG        3,1   34244        
>>>>> 9882 /
>>>>> lib/libnss_files.so.2
>>>>> cupsd     2784  root  mem       REG        3,1    9612        
>>>>> 9910 /
>>>>> lib/libdl-2.6.1.so
>>>>> cupsd     2784  root  mem       REG        3,1 1187940        
>>>>> 9804 /
>>>>> lib/libc-2.6.1.so
>>>>> cupsd     2784  root  mem       REG        3,1   21836        
>>>>> 9883 /
>>>>> lib/libcrypt-2.6.1.so
>>>>> cupsd     2784  root  mem       REG        3,1  153352        
>>>>> 9802 /
>>>>> lib/libm-2.6.1.so
>>>>> cupsd     2784  root  mem       REG        3,1  113841        
>>>>> 9886 /
>>>>> lib/libpthread-2.6.1.so
>>>>> cupsd     2784  root  mem       REG        3,1  211404       
>>>>> 12528 /
>>>>> usr/lib/libcups.so.2
>>>>> cupsd     2784  root  mem       REG        3,1   10628       
>>>>> 12514 /
>>>>> usr/lib/libpaper.so.1.1.2
>>>>> cupsd     2784  root  mem       REG        3,1 1262108       
>>>>> 12526 /
>>>>> usr/lib/libcrypto.so.0.9.8
>>>>> cupsd     2784  root  mem       REG        3,1  253796       
>>>>> 12524 /
>>>>> usr/lib/libssl.so.0.9.8
>>>>> cupsd     2784  root  mem       REG        3,1   75160        
>>>>> 9911 /
>>>>> lib/libz.so.1.2.3
>>>>> cupsd     2784  root  mem       REG        3,1  104892        
>>>>> 9914 /
>>>>> lib/ld-2.6.1.so
>>>>> cupsd     2784  root    0u     0000        0,6       0         10
>>>>> anon_inode
>>>>> cupsd     2784  root    1u     IPv4       2315                TCP
>>>>> localhost:631 (LISTEN)
>>>>> cupsd     2784  root    2u      REG        3,1    1111        
>>>>> 3979 /
>>>>> var/log/cups/error_log
>>>>> cupsd     2784  root    3u     unix 0xdfc76500                
>>>>> 2316 /
>>>>> var/run/cups/cups.sock
>>>>> cupsd     2784  root    4u     IPv4       2318                 
>>>>> UDP *:
>>>>> 631
>>>>> cupsd     2784  root    5r     FIFO        0,5               2319
>>>>> pipe
>>>>> cupsd     2784  root    6w     FIFO        0,5               2319
>>>>> pipe
>>>>>
>>>>> I don't have a browser in the embedded environment to check things
>>>>> locally and haven't changed the config to allow externally.
>>>>>
>>>>> Have I missed something here?  Does anybody know what is required
>>>>> for cups to see the USB devices as they come online?  (dmesg  
>>>>> output
>>>>> shows the USB devices)
>>>>>
>>>>> Thanks for your time,
>>>>>
>>>>> -Craig
>>>>> _______________________________________________
>>>>> cups mailing list
>>>>> cups at easysw.com
>>>>> http://lists.easysw.com/mailman/listinfo/cups
>>>>
>>>> ____________________________________
>>>> Michael R Sweet, Senior Printing System Engineer
>>>>
>>>>
>>>>
>>>
>>> _______________________________________________
>>> cups mailing list
>>> cups at easysw.com
>>> http://lists.easysw.com/mailman/listinfo/cups
>>
>> ____________________________________
>> Michael R Sweet, Senior Printing System Engineer
>>
>>
>>
>
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups

________________________________________
Michael R Sweet, Senior Printing System Engineer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cups.org/pipermail/cups/attachments/20090304/c3a99d45/attachment-0001.html>


More information about the cups mailing list