

escputil -i -r /dev/usb/lp0
Escputil version 5.2.7, Copyright (C) 2000-2006 Robert Krawitz
Escputil comes with ABSOLUTELY NO WARRANTY; for details type 'escputil -l'
This is free software, and you are welcome to redistribute it
under certain conditions; type 'escputil -l' for details.
Impossibile aprire /dev/usb/lp0 in lettura/scrittura: File o directory non esistente

ls -l /dev/usb/ls -l /dev/lp*lsmod
lsmod
Module Size Used by
nls_iso8859_1 12617 0
nls_cp437 12751 0
vfat 17308 0
fat 55577 1 vfat
parport_pc 32114 0
ppdev 12849 0
snd_hrtimer 12648 1
bnep 17923 2
rfcomm 38408 0
bluetooth 148839 10 bnep,rfcomm
binfmt_misc 17292 1
joydev 17393 0
eeepc_wmi 12722 0
asus_wmi 19333 1 eeepc_wmi
sparse_keymap 13658 1 asus_wmi
snd_hda_codec_realtek 254163 1
arc4 12473 2
uvcvideo 67271 0
videodev 85626 1 uvcvideo
psmouse 73673 0
snd_hda_intel 24262 2
snd_hda_codec 91859 2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 13276 1 snd_hda_codec
snd_pcm 80435 2 snd_hda_intel,snd_hda_codec
snd_seq_midi 13132 0
snd_rawmidi 25241 1 snd_seq_midi
snd_seq_midi_event 14475 1 snd_seq_midi
snd_seq 51567 3 snd_seq_midi,snd_seq_midi_event
snd_timer 28932 3 snd_hrtimer,snd_pcm,snd_seq
snd_seq_device 14172 3 snd_seq_midi,snd_rawmidi,snd_seq
serio_raw 12990 0
ath9k 112711 0
i915 509519 3
snd 55902 14 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
mac80211 393421 1 ath9k
drm_kms_helper 32889 1 i915
drm 192194 4 i915,drm_kms_helper
ath9k_common 13599 1 ath9k
ath9k_hw 293933 2 ath9k,ath9k_common
ath 19387 2 ath9k,ath9k_hw
cfg80211 172427 3 ath9k,mac80211,ath
soundcore 12600 1 snd
snd_page_alloc 14115 2 snd_hda_intel,snd_pcm
i2c_algo_bit 13199 1 i915
video 18908 1 i915
wmi 18744 1 asus_wmi
lp 17455 0
parport 40930 3 parport_pc,ppdev,lp
usbhid 41905 0
hid 77367 1 usbhid
usb_storage 44173 0
uas 17699 0
ahci 21634 4
libahci 25727 1 ahci
atl1c 36638 0
Al primo utilizzo è necessario modificare i permessi del device /dev/usb/lp0, a tale scopo è sufficiente aprire una finestra di terminale e digitare il segunete comando:
sudo chmod 777 /dev/usb/lp0
Per conoscere le percentuali di inchiostro, digitare il seguente comando in una finestra di terminale:
sudo escputil -r /dev/usb/lp0 -i 
modprobe usblp

FATAL: Error inserting usblp (/lib/modules/3.0.0-16-generic/kernel/drivers/usb/class/usblp.ko): Operation not permitted

Escputil version 5.2.7, Copyright (C) 2000-2006 Robert Krawitz
Escputil comes with ABSOLUTELY NO WARRANTY; for details type 'escputil -l'
This is free software, and you are welcome to redistribute it
under certain conditions; type 'escputil -l' for details.
Stampante Epson Stylus SX130 sconosciuta.
Errore di segmentazione


lsusb
dmesg | grep usb
lpstat -t
sudo ink -d /dev/usb/lp0

sonbello@sonbello-SR700:~$ lpstat -t
scheduler is running
system default destination: Epson-Stylus-SX130
device for Epson-Stylus-SX130: usb://EPSON/Stylus%20SX130?serial=NBLZ099377%20%20%20%20%20%20%20%20&interface=1
sonbello@sonbello-SR700:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0ac8:c302 Z-Star Microelectronics Corp. Vega USB 2.0 Camera
Bus 002 Device 003: ID 18a5:0237 Verbatim, Ltd
Bus 005 Device 002: ID 192f:0416 Avago Technologies, Pte.
Bus 007 Device 002: ID 0a5c:2101 Broadcom Corp. Bluetooth Controller
Bus 001 Device 003: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
Bus 006 Device 002: ID 04b8:0883 Seiko Epson Corp.
sonbello@sonbello-SR700:~$ dmesg | grep usb
[ 0.268631] usbcore: registered new interface driver usbfs
[ 0.268652] usbcore: registered new interface driver hub
[ 0.268700] usbcore: registered new device driver usb
[ 1.184062] usb 1-1: new high speed USB device number 2 using ehci_hcd
[ 1.576036] usb 2-3: new high speed USB device number 3 using ehci_hcd
[ 1.715860] scsi2 : usb-storage 2-3:1.0
[ 1.715944] usbcore: registered new interface driver usb-storage
[ 2.064032] usb 5-2: new low speed USB device number 2 using uhci_hcd
[ 2.252610] input: USB Optical Mouse as /devices/pci0000:00/0000:00:1d.0/usb5/5-2/5-2:1.0/input/input5
[ 2.252706] generic-usb 0003:192F:0416.0001: input,hidraw0: USB HID v1.11 Mouse [USB Optical Mouse] on usb-0000:00:1d.0-2/input0
[ 2.252718] usbcore: registered new interface driver usbhid
[ 2.252720] usbhid: USB HID core driver
[ 2.472038] usb 7-2: new full speed USB device number 2 using uhci_hcd
[ 22.957398] usbcore: registered new interface driver usblp
[ 23.161875] usbcore: registered new interface driver btusb
[ 23.630680] input: Vega USB 2.0 Camera. as /devices/pci0000:00/0000:00:1a.7/usb1/1-1/1-1:1.0/input/input8
[ 23.631173] usbcore: registered new interface driver uvcvideo
[ 472.644087] usb 1-3: new high speed USB device number 3 using ehci_hcd
[ 472.782007] scsi3 : usb-storage 1-3:1.0
[11911.792096] usb 6-2: new full speed USB device number 2 using uhci_hcd
[11911.983281] usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04B8 pid 0x0883
sonbello@sonbello-SR700:~$ sudo ink -d /dev/usb/lp0
Data received for a non opened channel.
Data received for a non opened channel.
Service not available on specified socket.
Channel is not open.
Channel is not open.
Service not available on specified socket.
Channel is not open.
Could not get credit.

ls -l /dev/usb/lp0
ls -l /dev/usblp0

sonbello@sonbello-SR700:~$ ls -l /dev/usb/lp0
crw-rw---- 1 root lp 180, 0 2012-03-26 18:01 /dev/usb/lp0
sonbello@sonbello-SR700:~$ ls -l /dev/usblp0
lrwxrwxrwx 1 root root 7 2012-03-26 18:01 /dev/usblp0 -> usb/lp0
sonbello@sonbello-SR700:~$



robytrevi ha scritto:Non tutte le epson hanno la possibilità di sapere i livelli di inchiostro con linux.
I miei hanno una sx125 mi pare e non è possibile, ma quando si esaurisce una cartuccia se si apre il coperchio per cambiarla e si preme un tasto (lampeggiante sulla stampante) c'è una parte meccanica che si muove e una piccola freccia di plastica si posiziona sopra alla cartuccia esaurita.
Visto che il modello è simile potrebbe funzionare allo stesso modo.


sonbello@sonbello-SR700:~$ sudo escputil -r /dev/usb/lp0 -i Escputil version 5.2.7, Copyright (C) 2000-2006 Robert Krawitz
Escputil comes with ABSOLUTELY NO WARRANTY; for details type 'escputil -l'
This is free software, and you are welcome to redistribute it
under certain conditions; type 'escputil -l' for details.
Stampante Epson Stylus SX130 sconosciuta.

sonbello@sonbello-SR700:~$ sudo ink -d /dev/usb/lp0
Data received for a non opened channel.
Data received for a non opened channel.
Service not available on specified socket.
Channel is not open.
Channel is not open.
Service not available on specified socket.
Channel is not open.
Could not get credit.


sonbello@sonbello-SR700:~$ sudo ink -d /dev/usb/lp0
[sudo] password for sonbello:
Data received for a non opened channel.
Service not available on specified socket.
Channel is not open.
Channel is not open.
Service not available on specified socket.
Channel is not open.
Could not get credit.
Could not get ink level.
sonbello@sonbello-SR700:~$ 

Visualizzano questa sezione: ceccanza e 18 ospiti