Jump to content

a.m.slade

Members
  • Content count

    4
  • Joined

  • Last visited

Community Reputation

1 Neutral

About a.m.slade

  • Rank
    Member
  1. a.m.slade

    [SOLVED] Check printer ink levels

    As stated yesterday, I tried sudo escputil -r /dev/usb/lp0 -u -i and received the reply: Unknown printer XP-322 323 325 Series! Unknown IEEE 1284.4 error number 68. On reading the man page even more closely I noticed it says: "USB-connected printers sometimes fail to identify or return ink levels." This is listed as a bug. As for the additional statement that you may have to repeat the command, at the age of 95 life is too short for this "sometimes / may have to" nonsense . So I'll continue to use the workaround in the front panel of the printer (which, by the way, prints perfectly acceptably) and I'll close this topic. Thanks to all who have contributed.
  2. a.m.slade

    [SOLVED] Check printer ink levels

    Apologies for the delay in replying. After turning on the computer (but not the printer) I ran dmesg | tail, then turned on the printer, then ran dmesg | tail -20 and received the following: [ 457.608053] usb 1-2: new high-speed USB device number 2 using ehci_hcd [ 457.820328] usb 1-2: New USB device found, idVendor=04b8, idProduct=08bf [ 457.820337] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 457.820341] usb 1-2: Product: EPSON XP-322 323 325 Series [ 457.820349] usb 1-2: Manufacturer: EPSON [ 457.820352] usb 1-2: SerialNumber: 554444503033363186 [ 458.722880] usbcore: registered new interface driver uas [ 458.743401] usblp 1-2:1.1: usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04B8 pid 0x08BF [ 458.743742] usbcore: registered new interface driver usblp [ 458.774999] Initializing USB Mass Storage driver... [ 458.780158] scsi8 : usb-storage 1-2:1.2 [ 458.781412] usbcore: registered new interface driver usb-storage [ 458.781417] USB Mass Storage support registered. [ 459.783013] scsi 8:0:0:0: Direct-Access EPSON Storage 1.00 PQ: 0 ANSI: 2 [ 459.785911] sd 8:0:0:0: Attached scsi generic sg4 type 0 [ 459.798507] sd 8:0:0:0: [sdc] Attached SCSI removable disk [ 460.582375] usblp0: removed [ 460.595584] usblp 1-2:1.1: usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04B8 pid 0x08BF albert@desktop-1204:~$ I have no idea what sdc is. I was surprised to see usblp0 removed but then it seems to be re-added. Entering ls -l /dev/u* yielded: crw-r----- 1 root root 10, 223 Apr 28 14:51 /dev/uinput crw-rw-rw- 1 root root 1, 9 Apr 28 14:51 /dev/urandom /dev/usb: total 0 crw-rw---- 1 root lp 180, 0 Apr 28 14:59 lp0 so it looks as though there really is a printer at /dev/usb/lp0. I checked the man page for escputil and it said to include the option -u for new printers (mine is) so I ran the following script: sudo modprobe usblp sudo escputil -i -r -u /dev/usb/lp0 -q | sed -e 's/ \{2,\}/Z/g' | awk -F "Z" '1,1{sub(/Percent remaining/,"% left")};{printf "%-14s%s%5s\n",$2,"\t",$3}' | zenity --list --title "Printer Ink Levels" --text "" --column "" --height 300 --width 250 --window-icon=info --hide-header 2>/dev/null sudo modprobe -r usblp I realised afterwards that the -u should not come between -r and /dev/usb/lp0, which explains the subsequent message Cannot open -u read/write: No such file or directory so I removed the -u and re-ran the script but this time it said Unknown printer XP-322 323 325 Series! So to check, I ran ls -l /dev/usb/lp0 and it replied with ls: cannot access /dev/usb/lp0: No such file or directory It's almost as though supplying the escputil parameters in the wrong order has removed the printer! According to the man page, I think the correct order is sudo escputil -r /dev/usb/lp0 -u -i so I'll try that in the next day or so and report back.
  3. a.m.slade

    [SOLVED] Check printer ink levels

    Yes, really 95 (though I had a little help from my nephew, a youngster of 66). Thanks for the welcome, graywizardlinux. I remain hopeful that someone may have a solution, although I have now discovered (by myself!) that the Epson XP-322 has a front panel ink level check feature buried several layers down in the menu structure.
  4. a.m.slade

    [SOLVED] Check printer ink levels

    I am trying to check the ink levels in my Epson XP-322 printer under bodhi 2.4 as follows: sudo modprobe usblp sudo escputil -i -r /dev/usb/lp0 and I receive the message: Unknown printer XP-322 323 325 Series! which is, perhaps, unsurprising since there is no such device as /dev/usb/lp0 although I am sure this used to work with my previous Epson 740 printer. The nearest device I can find that looks like a printer is /dev/bus/usb/001/002 but when I type (after the 'modprobe') sudo escputil -i -r /dev/bus/usb/001/002 I receive the message: Cannot write to /dev/bus/usb/001/002: Invalid argument The device file's ownership and permissions are: root lp crw-rw-r--+ and I am a member of the group 'lp'. I would be very grateful if anyone can help me towards a solution for this. ('mtink' doesn't work either, by the way). Please forgive any etiquette faults from this new forum user (aged 95!)
×