You are not logged in.

#1 2009-10-23 13:14:14

toketin
Member
From: Belluno (Italy)
Registered: 2007-04-17
Posts: 317

Printer's ink level

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

Offline

#2 2009-10-23 15:18:30

MadTux
Member
Registered: 2009-09-20
Posts: 553

Re: Printer's ink level

Do you have read/write permission on the device, as suggested in the manual?

Refer to: http://libinklevel.sourceforge.net/#installation

Offline

#3 2009-10-23 15:49:36

Andrwe
Member
From: Leipzig/Germany
Registered: 2009-06-17
Posts: 322
Website

Re: Printer's ink level

I recommend: http://aur.archlinux.org/packages.php?ID=30319

And your problem seems to be that you aren't in the lp group.

Last edited by Andrwe (2009-10-23 15:52:06)

Offline

#4 2009-10-23 17:28:09

toketin
Member
From: Belluno (Italy)
Registered: 2007-04-17
Posts: 317

Re: Printer's ink level

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

Offline

#5 2009-10-23 18:11:14

toketin
Member
From: Belluno (Italy)
Registered: 2007-04-17
Posts: 317

Re: Printer's ink level

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

Offline

#6 2009-10-23 19:00:39

toketin
Member
From: Belluno (Italy)
Registered: 2007-04-17
Posts: 317

Re: Printer's ink level

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
module.

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
libinklevel.

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
distribution.

Best regards,

so maybe a complete solution is to add this patch to our cups version smile

Last edited by toketin (2009-10-23 19:05:58)

Offline

#7 2009-10-23 19:01:29

Andrwe
Member
From: Leipzig/Germany
Registered: 2009-06-17
Posts: 322
Website

Re: Printer's ink level

so here is mine:
network ipp
direct scsi
network http
network socket
network lpd
network smb
direct usb://EPSON/Stylus%20D92?serial=423035433246F8C075

Can you try to comment all Require lines in your cupsd.conf?

Offline

#8 2010-10-06 13:37:53

vicentesalvador
Member
Registered: 2010-09-29
Posts: 2

Re: Printer's ink level

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.

Offline

#9 2010-10-12 05:25:38

ConnorBehan
Trusted User (TU)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,356
Website

Re: Printer's ink level

+1 for adding the debian patch


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#10 2010-11-17 13:00:29

robug
Member
Registered: 2010-11-17
Posts: 28

Re: Printer's ink level

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)?

Offline

#11 2010-11-17 21:48:53

Andrwe
Member
From: Leipzig/Germany
Registered: 2009-06-17
Posts: 322
Website

Re: Printer's ink level

you have to replace python with python2 in the startscript, or just redownload the PKGBUILD and build the packages again.

Offline

Board footer

Powered by FluxBB