Hi, i've a problem with my printer an Epson Stylus C60 because i can't check its ink level with ink tool or other tool like mtink, inkblot. I've installed libinklevel from aur but when i run the command "ink -p usb" it gives me this error:
ink v0.5.0 (c) 2009 Markus Heinz Could not access '/dev/usb/lp0' or '/dev/usblp0'. Could not get ink level.
Can anyone tell me how to fix this problem? Thanks, Marco
Do you have read/write permission on the device, as suggested in the manual?
thanks, i'm already in the group lp i've tried also stylus toolbox but it doesn't find my prnter i can't understand which is the device, maybe the upgrade of cups causes it because now we have to blacklist usblp module, i don't know
this is lpinfo output:
[marco@sondarch ~]$ sudo lpinfo -v direct scsi network http network ipp network socket network lpd direct parallel:/dev/lp0 direct usb://EPSON/Stylus%20C60?serial=LMHQR0202122128500 network smb
I've solved finally the problem by removing the usblp module from the blacklisted beause without this module the printer can't be connected to /dev/usb/lp0 and so ink tool can't do its work and check ink's level. I've deleted the printers from Cups and add it again with tthe module abled and now it works fine also ink tool, stylus toolbox and of course i can print without problem. Now my printer is connected to /dev/usb/lp1. I've written an email to the develomper of libinklevel who have answered this:
The root cause is most probably the blacklisting of the usblp.ko kernel
There are two options:
1. Compile cups with ./configure --enable-libusb=no
Then you get the old cups usb backend which works with a loaded
usblp.ko kernel module.
2. The Debian maintainers of cups have written a patch with makes cups
work with the new libusb backend and a loaded usblp.ko module in
parallel. This patch should be included in this file:
http://ftp.de.debian.org/debian/pool/ma … -4.diff.gz
A loaded usblp.ko module is a necessity for the operation of
Maybe you can contact the maintainers of the cups package of your
distribution to apply one of the given fixes for all users of your
so maybe a complete solution is to add this patch to our cups version
Last edited by toketin (2009-10-23 19:05:58)
The problem is that some distributions like Mandriva 2010.1 have removed support for usblp kernel module and bases all USB ports on libusb.
When this happens, utils like ink or escp cannot work because are based on device access.
Kernel is changing their bases from kernel space to user space in most things, but utils like ink or escp are not changed according. So maybe in the future, developers of this utils or new maintainers, change them to allow access via "user space" libusb method Vs current "kernel space" device access.
i got a spin-off problem on my workstation: installed stylus toolbox a wwhile ago and it was running just fine until one of updates.
now it seems that the toolbox script is pretty much corrupted - bugs, bugs everywhere. one of them:
File "/usr/share/stylus-toolbox/stylus_toolbox.py", line 717 iter=None ^ IndentationError: expected an indented block
so here's my request: can anyone post their working script (stylus_toolbox.py)?