Страницы

Epson в Ubuntu (часть первая)




С подключением и управлением настройками принтеров Epson менеджер cups ещё кое-как справляется, в Ubuntu с восьмой версии эпсоны цепляются моментально, в Debian нужно немного покрутить конфигами и мозгами, в AltLinux даже работает функция прочистки дюз (но не работает в Ubuntu) и т.д.
Однако существует ещё один, даже более надёжный, способ мониторинга и обслуживания - это консольная утилита escputil.
С моей точки зрения, управлять принтером при помощи консоли, особенно, удалённо и с другой машины - намного удобнее сомнительных графических наворотов и конечно же надёжнее.
Разобраться с ней стоит всего один раз, получившиеся рабочие команды можно скопировать в листочек аплета "липкие записки" и хранить под рукой, либо в текстовом файлике.

Устанавливается пакет из репозитория:
sudo aptitude install escputil

Потом в терминале читаем man:
man escputil

Вот пример самого мануала:

Man:

NAME
escputil - maintain Epson Stylus inkjet printers

SYNOPSIS
escputil [ -P printer | -r device ] [ -m model ] [ -u ] [ -c | -n | -a
| -i | -d | -o | -s | -l | -M | -h ] [ -q ]

DESCRIPTION
escputil is a command line utility to perform various maintenance tasks
on Epson Stylus inkjet printers. These tasks include head alignment,
head cleaning, nozzle check, printer identification, and retrieval of
ink level from the printer.

OPTIONS
escputil accepts the following options:

-P, --printer-name=printer
Имя устройства. Specify the name of the printer to operate on. The default is
the default system printer.

-r, --raw-device=device
Режим прямого доступа. Specify the name of the device to write to directly rather than
going through a printer queue. You must use this (rather than
specifying a printer) when retrieving ink levels or identifying
the printer, or if you wish to perform head alignment without
specifying the printer model.

-m, --model=model
Specify the precise printer model for head alignment.
Указать модель принтера (необходимо для выравнивания печ.головки).

-u, --new
Новый принтер. The printer is a new printer (Stylus Color 740 or newer).

-c, --clean-head
Прочистка печ. головки. Clean the print head. This can also be performed from the
printer front panel.

-n, --nozzle-check
Проверка дюз (Распечатывается тестовая полоска из 4-8 цветов). Print a nozzle test pattern. Dirty or clogged nozzles will show
as gaps in the pattern. If you see any gaps, you should run a
head cleaning pass or two.

-a, --align-head
Выравнивание печ. головки. Использовать очень осторожно! Align the print head. CAUTION: Misuse of this option may result
in poor print quality and/or damage to the printer. You must
either specify the printer model with the -m option, or use the
raw printer device to allow escputil to detect the printer
model.

-i, --ink-level
Уровень чернил в картриджах. Obtain the ink level from the printer. This requires read/write
access to the raw printer device.

-d, --identify
Идентификация. Query the printer for make and model information. This requires
read/write access to the raw printer device.

-o, --align-color
Выравнивание цвета (только для Stylus Color 480 и 580). Align the color print head (used by Stylus Color 480 and 580
only). CAUTION: Misuse of this option may result in poor print
quality and/or damage to the printer.

-s, --status
Статус. Retrieve printer status.

-l, --license
Лицензия программы. Display the license/warranty terms of this program.

-M, --list-models
Показать список поддерживаемых принтеров. List the supported printer models.

-h, --help Помощь.

-q, --quiet
Suppress the banner. Скрыть.


Для начала можно посмотреть, поддерживается ли любимый девайс от Epson или нет.
Команды escputil требуют административных прав.
В случае Ubuntu для удобства можно сделать консоль рутовой (команда sudo su). Или же с каждой командой пользоваться sudo.

Смотрим на вывод escputil -M и ищем свой принтер.

Теперь нужно узнать, каким устройством у нас в системе виден принтер.
Легче всего это сделать в :

/usr/bin/hal-device-manager (Debian). Если hal-device-manager нет, установить из репозиториев. Утилита полезная, лишней не будет.

gnome-device-manager (в закладке View поставить галочку на Device Properties) . Тоже самое для Ubuntu.

Находим на уровне порта usb или lpt (смотря какой принтер) и в правой части окна ищем сведения об устройстве.



Вот примеры трёх нужных команд для lpt и usb принтеров:

1) lpt

#Уровень чернил sudo escputil -i --raw-device /dev/lp0
#Проверка дюз sudo escputil -n --raw-device /dev/lp0
#Прочистка сопел sudo escputil -c --raw-device /dev/lp0

2) usb

#Уровень чернил sudo escputil -i --raw-device /dev/usb/lp0
#Проверка дюз sudo escputil -n --raw-device /dev/usb/lp0
#Прочистка сопел sudo escputil -c --raw-device /dev/usb/lp0

Образец вывода команды escputil -i (уровень чернил):

Escputil version 5.0.0, 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.

Ink color Percent remaining
Black 73
Cyan 54
Magenta 43
Yellow 42
Light Cyan 39
Light Magenta 34

Очень даже наглядно, в столбце справа указан остаток в процентах.
Ещё существует графическая оболочка для escputil, но я, признаться, не сторонник таких вещей.



Скрипт, использующий escputil, но я ещё в этом направлении не копал. Продолжение этой темы здесь.
Blog Widget by LinkWithin

Комментариев нет:

Отправить комментарий