You are not logged in.
Ok, I want to use escputil to know the ink level of an epson usb printer...
But now... there is no /dev/usblpX
Using lsusb I see it listed:
Bus 005 Device 002: ID 04b8:0820 Seiko Epson Corp. Stylus CX4100/CX4200/DX4200
But... how to know its path?
Or... what to use to know the ink levels in archlinux??
I arch, you arch, he arch, she arch, we arch, they arch...
Offline
Run "udevadm monitor" in a shell, then connect your printer. This will show you the paths udev will add to your /sys tree.
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
Ohhh, thanks!
The udevadm monitor output was:
KERNEL[4341.771537] add /devices/pci0000:00/0000:00:1d.7/usb3/3-4 (usb)
KERNEL[4341.773866] add /devices/pci0000:00/0000:00:1d.7/usb3/3-4/3-4:1.0 (usb)
KERNEL[4341.775073] add /devices/pci0000:00/0000:00:1d.7/usb3/3-4/3-4:1.1 (usb)
UDEV [4341.827449] add /devices/pci0000:00/0000:00:1d.7/usb3/3-4 (usb)
UDEV [4341.833013] add /devices/pci0000:00/0000:00:1d.7/usb3/3-4/3-4:1.0 (usb)
UDEV [4341.836223] add /devices/pci0000:00/0000:00:1d.7/usb3/3-4/3-4:1.1 (usb)
Then I tried:
# escputil -u -r /sys/devices/pci0000\:00/0000\:00\:1d.7/usb3/3-4/3-4\:1.1 -i
and it shows an error:
Cannot open /sys/devices/pci0000:00/0000:00:1d.7/usb3/3-4/3-4:1.1 read/write: Is a directory
mmmmmm
I arch, you arch, he arch, she arch, we arch, they arch...
Offline
Anything interesting in the output of dmesg ?? How about the journal?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
But now... there is no /dev/usblpX
Write a udev rule to create a symlink, e.g.:
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0820", SYMLINK+="epson"
You'll probably want to change "lp" to whatever's relevant in Arch.
Notice that the vendor and product are as you stated:
Bus 005 Device 002: ID 04b8:0820
Also, check the permissions on the /dev/ "file" that the symlink points to.
Edit: Improved rule, after checking howto.
Last edited by brebs (2013-04-11 12:09:02)
Offline
Offline
That was before all the udev changes I think... it was easier, yep? eheheheh
Thanks a lot brebs and ewaller! will try that as soon as I can...
Last edited by luuuciano (2013-04-11 10:32:44)
I arch, you arch, he arch, she arch, we arch, they arch...
Offline
Maybe /dev/bus/usb/005/002?
Offline