LINUX.ORG.RU

помогите у кого есть USB принтеры


0

0

Помогите у кого есть подключённые USB принтеры. Мне нужно получить как можно больше данных о разных принтерах. Всё очень просто - сделать "lshal > log.txt", найти там раздел со своим принтером по строке 'printer', и выложить сюда. Обратите внимание на то, чтобы присутствовал параметр "printer.device" (в примере ниже - четвёртый снизу). Например, для Brother принтера это такой раздел:

udi = '/org/freedesktop/Hal/devices/usb_device_4f9_197_BROM5F203194_if0_printer_noser ial'
access_control.file = '/dev/usb/lp0' (string)
access_control.type = 'printer' (string)
info.callouts.add = {'hal-acl-tool --add-device'} (string list)
info.callouts.remove = {'hal-acl-tool --remove-device'} (string list)
info.capabilities = {'printer', 'access_control'} (string list)
info.category = 'printer' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_4f9_197_BROM5F203194_if0' (string)
info.product = 'MFC-640CW' (string)
info.subsystem = 'usb' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_4f9_197_BROM5F203194_if0_printer_noser ial' (str
info.vendor = 'Brother' (string)
linux.device_file = '/dev/usb/lp0' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0/usb/lp0' (string)
printer.commandset = {'HBP', 'BRPJL'} (string list)
printer.device = '/dev/usb/lp0' (string)
printer.originating_device = '/org/freedesktop/Hal/devices/usb_device_4f9_197_BROM5F203194_if0' (st
printer.product = 'MFC-640CW' (string)
printer.vendor = 'Brother' (string)

Огромное спасибо!

нет проблем, держи:

udi = '/org/freedesktop/Hal/devices/usb_device_3f0_1d04_TH89K328FN058V_if0_printer_TH 89K328FN058V'
info.capabilities = {'printer'} (string list)
info.category = 'printer' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_3f0_1d04_TH89K328FN058V_if0' (string)
info.product = 'Deskjet D1500 series' (string)
info.subsystem = 'usb' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_3f0_1d04_TH89K328FN058V_if0_printer_TH 89K328FN058V' (string)
info.vendor = 'HP' (string)
linux.device_file = '/dev/usb/lp0' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/class/usb/lp0' (string)
printer.commandset = {'LDL', 'DYN'} (string list)
printer.description = 'D1560' (string)
printer.device = '/dev/usb/lp0' (string)
printer.originating_device = '/org/freedesktop/Hal/devices/usb_device_3f0_1d04_TH89K328FN058V_if0' (string)
printer.product = 'Deskjet D1500 series' (string)
printer.serial = 'TH89K328FN058V' (string)
printer.vendor = 'HP' (string)

papay ★★★
()

udi = '/org/freedesktop/Hal/devices/usb_device_3f0_2b17_FN159BL_if0_printer_noserial'
access_control.file = '/dev/usb/lp0' (string)
access_control.type = 'printer' (string)
info.addons = {'hal_lpadmin --add'} (string list)
info.callouts.add = {'hal-acl-tool --add-device'} (string list)
info.callouts.remove = {'hal_lpadmin --remove', 'hal-acl-tool --remove-device'} (string list)
info.capabilities = {'printer', 'access_control'} (string list)
info.category = 'printer' (string)
info.interfaces = {'org.freedesktop.Hal.Device.Printer'} (string list)
info.parent = '/org/freedesktop/Hal/devices/usb_device_3f0_2b17_FN159BL_if0' (string)
info.product = 'HP LaserJet 1020' (string)
info.subsystem = 'usb' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_3f0_2b17_FN159BL_if0_printer_noserial' (string)
info.vendor = 'Hewlett-Packard' (string)
linux.device_file = '/dev/usb/lp0' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/usb/lp0' (string)
org.freedesktop.Hal.Device.Printer.method_argnames = {'make model'} (string list)
org.freedesktop.Hal.Device.Printer.method_execpaths = {'hal_lpadmin --configure'} (string list)
org.freedesktop.Hal.Device.Printer.method_names = {'Configure'} (string list)
org.freedesktop.Hal.Device.Printer.method_signatures = {'ss'} (string list)
printer.commandset = {'ACL'} (string list)
printer.description = 'HP LaserJet 1020' (string)
printer.device = '/dev/usb/lp0' (string)
printer.originating_device = '/org/freedesktop/Hal/devices/usb_device_3f0_2b17_FN159BL_if0' (string)
printer.product = 'HP LaserJet 1020' (string)
printer.vendor = 'Hewlett-Packard' (string)

AndreyKl ★★★★★
()

udi = '/org/freedesktop/Hal/devices/usb_device_3f0_2b17_FN28HF6_if0_printer_noserial'
info.capabilities = {'printer'} (string list)
info.category = 'printer' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_3f0_2b17_FN28HF6_if0' (string)
info.product = 'HP LaserJet 1020' (string)
info.subsystem = 'usb' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_3f0_2b17_FN28HF6_if0_printer_noserial' (string)
info.vendor = 'Hewlett-Packard' (string)
linux.device_file = '/dev/usb/lp0' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:02.2/usb1/1-2/1-2:1.0/usb/lp0' (string)
printer.commandset = {'ACL'} (string list)
printer.description = 'HP LaserJet 1020' (string)
printer.device = '/dev/usb/lp0' (string)
printer.originating_device = '/org/freedesktop/Hal/devices/usb_device_3f0_2b17_FN28HF6_if0' (string)
printer.product = 'HP LaserJet 1020' (string)
printer.vendor = 'Hewlett-Packard' (string)

xetf ★★
()

udi = '/org/freedesktop/Hal/devices/usb_device_4a9_108d_110D0E_if0_printer_noserial'
access_control.file = '/dev/usb/lp0' (string)
access_control.type = 'printer' (string)
info.callouts.add = {'hal-acl-tool --add-device'} (string list)
info.callouts.remove = {'hal-acl-tool --remove-device'} (string list)
info.capabilities = {'printer', 'access_control'} (string list)
info.category = 'printer' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_4a9_108d_110D0E_if0' (string)
info.product = 'iP2000' (string)
info.subsystem = 'usb' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_4a9_108d_110D0E_if0_printer_noserial' (string)
info.vendor = 'Canon' (string)
linux.device_file = '/dev/usb/lp0' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:10.3/usb1/1-5/1-5.4/1-5.4:1.0/usb/lp0' (string)
printer.commandset = {'BJL', 'BJRaster3', 'BSCCe'} (string list)
printer.description = 'Canon iP2000' (string)
printer.device = '/dev/usb/lp0' (string)
printer.originating_device = '/org/freedesktop/Hal/devices/usb_device_4a9_108d_110D0E_if0' (string)
printer.product = 'iP2000' (string)
printer.vendor = 'Canon' (string)

rudnykiv
()

udi = '/org/freedesktop/Hal/devices/usb_device_4e8_326c_3D66BKAPB02043T__if0_printer_ noserial'
access_control.file = '/dev/usb/lp0' (string)
access_control.type = 'printer' (string)
info.callouts.add = {'hal-acl-tool --add-device'} (string list)
info.callouts.remove = {'hal-acl-tool --remove-device'} (string list)
info.capabilities = {'printer', 'access_control'} (string list)
info.category = 'printer' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_4e8_326c_3D66BKAPB02043T__if0' (string)
info.product = 'ML-2010' (string)
info.subsystem = 'usb' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_4e8_326c_3D66BKAPB02043T__if0_printer_ noserial' (string)
info.vendor = 'Samsung' (string)
linux.device_file = '/dev/usb/lp0' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/class/usb/lp0' (string)
printer.commandset = {'GDI'} (string list)
printer.device = '/dev/usb/lp0' (string)
printer.originating_device = '/org/freedesktop/Hal/devices/usb_device_4e8_326c_3D66BKAPB02043T__if0' (string)
printer.product = 'ML-2010' (string)
printer.vendor = 'Samsung' (string)

barti_ddu
()

udi = '/org/freedesktop/Hal/devices/usb_device_3f0_6204_HU41D1Y10D98_if0_printer_HU41 D1Y10D98'
access_control.file = '/dev/usb/lp0' (string)
access_control.type = 'printer' (string)
info.callouts.add = {'hal-acl-tool --add-device'} (string list)
info.callouts.remove = {'hal-acl-tool --remove-device'} (string list)
info.capabilities = {'printer', 'access_control'} (string list)
info.category = 'printer' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_3f0_6204_HU41D1Y10D98_if0' (string)
info.product = 'deskjet 5100' (string)
info.subsystem = 'usb' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_3f0_6204_HU41D1Y10D98_if0_printer_HU41 D1Y10D98' (string)
info.vendor = 'hp' (string)
linux.device_file = '/dev/usb/lp0' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:12.0/usb3/3-2/3-2:1.0/usb/lp0' (string)
printer.commandset = {'MLC', 'PCL', 'PML', 'DW-PCL', 'DESKJET', 'DYN'} (string list)
printer.description = '5150' (string)
printer.device = '/dev/usb/lp0' (string)
printer.originating_device = '/org/freedesktop/Hal/devices/usb_device_3f0_6204_HU41D1Y10D98_if0' (string)
printer.product = 'deskjet 5100' (string)
printer.serial = 'HU41D1Y10D98' (string)
printer.vendor = 'hp' (string)

Deleted
()

udi = '/org/freedesktop/Hal/devices/usb_device_4e8_326c_3D66BKCL901290Y__if0_printer_ noserial'
access_control.file = '/dev/usb/lp0' (string)
access_control.type = 'printer' (string)
info.addons = {'hal_lpadmin --add'} (string list)
info.bus = 'usb' (string)
info.callouts.add = {'hal-acl-tool --add-device'} (string list)
info.callouts.remove = {'hal_lpadmin --remove', 'hal-acl-tool --remove-device'} (string list)
info.capabilities = {'printer', 'access_control'} (string list)
info.category = 'printer' (string)
info.interfaces = {'org.freedesktop.Hal.Device.Printer'} (string list)
info.parent = '/org/freedesktop/Hal/devices/usb_device_4e8_326c_3D66BKCL901290Y__if0' (string)
info.product = 'ML-2010' (string)
info.subsystem = 'usb' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_4e8_326c_3D66BKCL901290Y__if0_printer_ noserial' (string)
info.vendor = 'Samsung' (string)
linux.device_file = '/dev/usb/lp0' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:02.0/usb2/2-7/2-7:1.0/usb/lp0' (string)
org.freedesktop.Hal.Device.Printer.method_argnames = {'make model'} (string list)
org.freedesktop.Hal.Device.Printer.method_execpaths = {'hal_lpadmin --configure'} (string list)
org.freedesktop.Hal.Device.Printer.method_names = {'Configure'} (string list)
org.freedesktop.Hal.Device.Printer.method_signatures = {'ss'} (string list)
printer.commandset = {'GDI'} (string list)
printer.device = '/dev/usb/lp0' (string)
printer.originating_device = '/org/freedesktop/Hal/devices/usb_device_4e8_326c_3D66BKCL901290Y__if0' (string)
printer.product = 'ML-2010' (string)
printer.vendor = 'Samsung' (string)

> Мне нужно получить как можно больше данных о разных принтерах


Нескромный вопрос — для чего, если не секрет?

dexpl ★★★★★
()

udi = '/org/freedesktop/Hal/devices/usb_device_4e8_3256_3566BKBY105335V__if0_printer_ noserial'
access_control.file = '/dev/usb/lp0' (string)
access_control.type = 'printer' (string)
info.callouts.add = {'hal-acl-tool --add-device'} (string list)
info.callouts.remove = {'hal-acl-tool --remove-device'} (string list)
info.capabilities = {'printer', 'access_control'} (string list)
info.category = 'printer' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_4e8_3256_3566BKBY105335V__if0' (string)
info.product = 'ML-1520' (string)
info.subsystem = 'usb' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_4e8_3256_3566BKBY105335V__if0_printer_ noserial' (string)
info.vendor = 'Samsung' (string)
linux.device_file = '/dev/usb/lp0' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1a.2/usb5/5-2/5-2:1.0/usb/lp0' (string)
printer.commandset = {'GDI'} (string list)
printer.device = '/dev/usb/lp0' (string)
printer.originating_device = '/org/freedesktop/Hal/devices/usb_device_4e8_3256_3566BKBY105335V__if0' (string)
printer.product = 'ML-1520' (string)
printer.vendor = 'Samsung' (string)

amorpher ★★★★★
()
Ответ на: комментарий от dm1024

очевидно что HAL не установлен, это вероятно Fedora? Если как-то через Device Kit можно получить информацию о принтере, тоже сгодится.

former_anonymous ★★★
() автор топика
Ответ на: комментарий от dexpl

>>Нескромный вопрос — для чего, если не секрет?

хочу побольше узнать как имена производителей принтеров и моделей принтеров зашиваются IRL в принтеры.

Т.к. принтер можно добавить в систему через одну команду foomatic-configure, а принтер в foomatic конфигурируется просто как "VENDOR-MODEL", то соответственно можно написать какой-то алгоритм автоподключения USB принтеров - ты втыкаешь его в порт, и он сразу становится доступным для печати.

Проблемы пока я вижу только в многословных названиях, особенно HP - тут и "HP" и "hp" и "Hewlett-Packard", т.к. в foomatic используется фиксированно "HP". Меньше всего проблем будет скорее всего с однословными названиями - Canon, Samsung, Brother и т.д.

former_anonymous ★★★
() автор топика
Ответ на: комментарий от former_anonymous

> алгоритм автоподключения USB принтеров - ты втыкаешь его в порт, и он сразу становится доступным для печати

Честно говоря, мой нынешний принтер я именно так и "конфигурировал" (если это важно — Fedora, GNOME). Подозреваю, что это реализовано в "недрах" hal-cups-utils

dexpl ★★★★★
()
Ответ на: комментарий от dexpl

о, есть на что посмотреть, спасибо, не знал от таком пакете. Всем спасибо.

former_anonymous ★★★
() автор топика
Ответ на: комментарий от former_anonymous

> ты втыкаешь его в порт, и он сразу становится доступным для печати.

эт мой временный, принтер - подменка, и именно так и было, втыкнул-заработал. Все.

Дистр - slackware-current

papay ★★★
()

udi = '/org/freedesktop/Hal/devices/usb_device_3f0_3917_LW117FP_if0_printer_noserial'
info.callouts.add = {'/usr/lib/hal/hal-cups-autoconfig --add --migrate-hal-printers'} (string list)
info.callouts.remove = {'/usr/lib/hal/hal-cups-autoconfig --disable'} (string list)
info.capabilities = {'printer'} (string list)
info.category = 'printer' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_3f0_3917_LW117FP_if0' (string)
info.product = 'HP LaserJet P2014' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_3f0_3917_LW117FP_if0_printer_noserial' (string)
info.vendor = 'Hewlett-Packard' (string)
linux.device_file = '/dev/usb/lp0' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.7/usb3/3-5/3-5:1.0/usb/lp0' (string)
printer.commandset = {'ACL'} (string list)
printer.description = 'HP LaserJet P2014' (string)
printer.device = '/dev/usb/lp0' (string)
printer.originating_device = '/org/freedesktop/Hal/devices/usb_device_3f0_3917_LW117FP_if0' (string)
printer.physical_device = '/org/freedesktop/Hal/devices/usb_device_3f0_3917_LW117FP_if0' (string)
printer.product = 'HP LaserJet P2014' (string)
printer.vendor = 'Hewlett-Packard' (string)

redgremlin ★★★★★
()

udi = '/org/freedesktop/Hal/devices/usb_device_3f0_3817_00CNBW68W21Q_if0_printer_nose rial'
info.addons = {'hal_lpadmin --add'} (string list)
info.callouts.remove = {'hal_lpadmin --remove'} (string list)
info.capabilities = {'printer'} (string list)
info.category = 'printer' (string)
info.interfaces = {'org.freedesktop.Hal.Device.Printer'} (string list)
info.parent = '/org/freedesktop/Hal/devices/usb_device_3f0_3817_00CNBW68W21Q_if0' (string)
info.product = 'HP LaserJet P2015 Series' (string)
info.subsystem = 'usb' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_3f0_3817_00CNBW68W21Q_if0_printer_nose rial' (string)
info.vendor = 'Hewlett-Packard' (string)
linux.device_file = '/dev/usb/lp0' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/usb/lp0' (string)
org.freedesktop.Hal.Device.Printer.method_argnames = {'make model'} (string list)
org.freedesktop.Hal.Device.Printer.method_execpaths = {'hal_lpadmin --configure'} (string list)
org.freedesktop.Hal.Device.Printer.method_names = {'Configure'} (string list)
org.freedesktop.Hal.Device.Printer.method_signatures = {'ss'} (string list)
printer.commandset = {'PJL', 'PML', 'POSTSCRIPT', 'PCLXL', 'PCL'} (string list)
printer.description = 'Hewlett-Packard LaserJet P2015 Series' (string)
printer.device = '/dev/usb/lp0' (string)
printer.originating_device = '/org/freedesktop/Hal/devices/usb_device_3f0_3817_00CNBW68W21Q_if0' (string)
printer.product = 'HP LaserJet P2015 Series' (string)
printer.vendor = 'Hewlett-Packard' (string)

NailTS
()

udi = '/org/freedesktop/Hal/devices/usb_device_4a9_266a_0000B154CMtn_if0_printer_nose rial'
info.addons = {'hal_lpadmin --add'} (string list)
info.callouts.remove = {'hal_lpadmin --remove'} (string list)
info.capabilities = {'printer'} (string list)
info.category = 'printer' (string)
info.interfaces = {'org.freedesktop.Hal.Device.Printer'} (string list)
info.parent = '/org/freedesktop/Hal/devices/usb_device_4a9_266a_0000B154CMtn_if0' (string)
info.product = 'LBP3000' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_4a9_266a_0000B154CMtn_if0_printer_nose rial' (string)
info.vendor = 'Canon' (string)
linux.device_file = '/dev/usb/lp0' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/class/usb/lp0' (string)
org.freedesktop.Hal.Device.Printer.method_argnames = {'make model'} (string list)
org.freedesktop.Hal.Device.Printer.method_execpaths = {'hal_lpadmin --configure'} (string list)
org.freedesktop.Hal.Device.Printer.method_names = {'Configure'} (string list)
org.freedesktop.Hal.Device.Printer.method_signatures = {'ss'} (string list)
printer.device = '/dev/usb/lp0' (string)
printer.originating_device = '/org/freedesktop/Hal/devices/usb_device_4a9_266a_0000B154CMtn_if0' (string)
printer.product = 'LBP3000' (string)
printer.vendor = 'Canon' (string)

another_anonym
()

udi = '/org/freedesktop/Hal/devices/usb_device_1d6b_2_0000_00_02_1_if0_0_printer_nose rial'
info.capabilities = {'printer'} (string list)
info.category = 'printer' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_1d6b_2_0000_00_02_1_if0_0' (string)
info.product = 'Stylus Photo R270' (string)
info.subsystem = 'usb' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_1d6b_2_0000_00_02_1_if0_0_printer_nose rial' (string)
info.vendor = 'EPSON' (string)
linux.device_file = '/dev/usb/lp0' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'usb' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/usb/lp0' (string)
printer.commandset = {'ESCPL2', 'BDC', 'D4', 'D4PX', 'ESCPR1'} (string list)
printer.description = 'EPSON Stylus Photo R270' (string)
printer.device = '/dev/usb/lp0' (string)
printer.originating_device = '/org/freedesktop/Hal/devices/usb_device_1d6b_2_0000_00_02_1_if0_0' (string)
printer.product = 'Stylus Photo R270' (string)
printer.vendor = 'EPSON' (string)

arsi ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.