ubuntuusers.de

HP LaserJet 1022 - keine Reinigung möglich (drucken ok!)

Status: Gelöst | Ubuntu-Version: Ubuntu 18.10 (Cosmic Cuttlefish)
Antworten |

foobarbazz

Anmeldungsdatum:
15. Januar 2018

Beiträge: 22

Sehr geehrte Damen und Herren,

ich möchte bei meinem 'HP Laserjet 1022' die Druckköpfe reinigen.

Über

// Einstellungen // Geräte // Drucker // HP-LaserJet-1022 //

kann ich auch einen dementsprechenden Job starten. Nur tut sich am Drucker nichts und in der CUPS-Druckerwarteschlange hat sich ein Druckjob mit der Beschreibung

<< Leerlauf - "Ungültiges Druckkommando "Clean"." >>

eingenistet. Zu sagen wäre noch, dass "normale" Druckaufträge auch gedruckt werden.

Meine Frage: Was muss ich tun, damit meine geliebten Druckköpfe endlich gereinigt werden können?

MfG Ing

foobarbazz

(Themenstarter)

Anmeldungsdatum:
15. Januar 2018

Beiträge: 22

...hier noch die nötigen Systemangaben:

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
$ dpkg -l *cups* lpr* | grep ii
ii  bluez-cups                5.50-0ubuntu1         amd64        Bluetooth printer driver for CUPS
ii  cups                      2.2.8-5ubuntu1.2      amd64        Common UNIX Printing System(tm) - PPD/driver support, web interface
ii  cups-browsed              1.21.3-1              amd64        OpenPrinting CUPS Filters - cups-browsed
ii  cups-bsd                  2.2.8-5ubuntu1.2      amd64        Common UNIX Printing System(tm) - BSD commands
ii  cups-client               2.2.8-5ubuntu1.2      amd64        Common UNIX Printing System(tm) - client programs (SysV)
ii  cups-common               2.2.8-5ubuntu1.2      all          Common UNIX Printing System(tm) - common files
ii  cups-core-drivers         2.2.8-5ubuntu1.2      amd64        Common UNIX Printing System(tm) - driverless printing
ii  cups-daemon               2.2.8-5ubuntu1.2      amd64        Common UNIX Printing System(tm) - daemon
ii  cups-filters              1.21.3-1              amd64        OpenPrinting CUPS Filters - Main Package
ii  cups-filters-core-drivers 1.21.3-1              amd64        OpenPrinting CUPS Filters - Driverless printing
ii  cups-ipp-utils            2.2.8-5ubuntu1.2      amd64        Common UNIX Printing System(tm) - IPP developer/admin utilities
ii  cups-pk-helper            0.2.6-1ubuntu3        amd64        PolicyKit helper to configure cups with fine-grained privileges
ii  cups-ppdc                 2.2.8-5ubuntu1.2      amd64        Common UNIX Printing System(tm) - PPD manipulation utilities
ii  cups-server-common        2.2.8-5ubuntu1.2      all          Common UNIX Printing System(tm) - server common files
ii  libcups2:amd64            2.2.8-5ubuntu1.2      amd64        Common UNIX Printing System(tm) - Core library
ii  libcupscgi1:amd64         2.2.8-5ubuntu1.2      amd64        Common UNIX Printing System(tm) - CGI library
ii  libcupsfilters1:amd64     1.21.3-1              amd64        OpenPrinting CUPS Filters - Shared library
ii  libcupsimage2:amd64       2.2.8-5ubuntu1.2      amd64        Common UNIX Printing System(tm) - Raster image library
ii  libcupsmime1:amd64        2.2.8-5ubuntu1.2      amd64        Common UNIX Printing System(tm) - MIME library
ii  libcupsppdc1:amd64        2.2.8-5ubuntu1.2      amd64        Common UNIX Printing System(tm) - PPD manipulation library
ii  printer-driver-hpcups     3.18.7+dfsg1-2ubuntu2 amd64        HP Linux Printing and Imaging - CUPS Raster driver (hpcups)
ii  python3-cups              1.9.73-2build1        amd64        Python3 bindings for CUPS
ii  python3-cupshelpers       1.5.11-2ubuntu1       all          Python utility modules around the CUPS printing system

$ dpkg -l | egrep hp
ii  hplip                                      3.18.7+dfsg1-2ubuntu2                      amd64        HP Linux Printing and Imaging System (HPLIP)
ii  hplip-data                                 3.18.7+dfsg1-2ubuntu2                      all          HP Linux Printing and Imaging - data files
ii  libhpmud0:amd64                            3.18.7+dfsg1-2ubuntu2                      amd64        HP Multi-Point Transport Driver (hpmud) run-time libraries
ii  libsane-hpaio:amd64                        3.18.7+dfsg1-2ubuntu2                      amd64        HP SANE backend for multi-function peripherals
ii  printer-driver-hpcups                      3.18.7+dfsg1-2ubuntu2                      amd64        HP Linux Printing and Imaging - CUPS Raster driver (hpcups)
ii  printer-driver-postscript-hp               3.18.7+dfsg1-2ubuntu2                      amd64        HP Printers PostScript Descriptions
ii  python3-launchpadlib                       1.10.6-2                                   all          Launchpad web services client library (Python 3)

$ hp-info -i

HP Linux Imaging and Printing System (ver. 3.18.7)
Device Information Utility ver. 5.2

Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.


HP Linux Imaging and Printing System (ver. 3.18.7)
System Tray Status Service ver. 2.0

Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

warning: GUI Modules PyQt4 and PyQt5 are not installed
error: hp-systray requires Qt4 GUI and DBus support. Exiting.
warning: Unable to connect to dbus. Is hp-systray running?

hp:/usb/HP_LaserJet_1022?serial=FL05R60

warning: No status available for device.
Device Parameters (dynamic data):
  Parameter                     Value(s)                                                  
  ----------------------------  ----------------------------------------------------------
  back-end                      hp                                                        
  cups-printers                 ['HP-LaserJet-1022']                                      
  cups-uri                      hp:/usb/HP_LaserJet_1022?serial=FL05R60                   
  dev-file                                                                                
  device-state                  1                                                         
  device-uri                    hp:/usb/HP_LaserJet_1022?serial=FL05R60                   
  deviceid                      MFG:Hewlett-Packard;MDL:HP LaserJet                       
                                1022;CMD:ACL;CLS:PRINTER;DES:HP LaserJet                  
                                1022;FWVER0050401;1;                                      
  error-state                   0                                                         
  host                                                                                    
  is-hp                         True                                                      
  panel                         0                                                         
  panel-line1                                                                             
  panel-line2                                                                             
  port                          1                                                         
  serial                        FL05R60                                                   
  status-code                   0                                                         
  status-desc                   Unknown                                                   

Model Parameters (static data):
  Parameter                     Value(s)                                                  
  ----------------------------  ----------------------------------------------------------
  align-type                    0                                                         
  clean-type                    0                                                         
  color-cal-type                0                                                         
  copy-type                     0                                                         
  embedded-server-type          0                                                         
  family-class                  ['LJ-Class6']                                             
  fax-type                      0                                                         
  fw-download                   False                                                     
  icon                          hp_LaserJet_1200.png                                      
  io-mfp-mode                   6                                                         
  io-mode                       0                                                         
  io-support                    6                                                         
  job-storage                   0                                                         
  linefeed-cal-type             0                                                         
  model                         HP_LaserJet_1022                                          
  model-ui                      HP LaserJet 1022                                          
  model1                        HP LaserJet 1022 Printer                                  
  monitor-type                  0                                                         
  panel-check-type              0                                                         
  pcard-type                    0                                                         
  plugin                        2                                                         
  plugin-reason                 2                                                         
  power-settings                0                                                         
  pq-diag-type                  0                                                         
  r-type                        0                                                         
  r0-agent1-kind                4                                                         
  r0-agent1-sku                 Q2612A                                                    
  r0-agent1-type                1                                                         
  scan-src                      0                                                         
  scan-type                     0                                                         
  status-battery-check          0                                                         
  status-dynamic-counters       0                                                         
  status-type                   0                                                         
  support-released              True                                                      
  support-subtype               15567                                                     
  support-type                  2                                                         
  support-ver                   2.7.10                                                    
  tech-class                    ['LJMono', 'LJZjsMono']                                   
  tech-subclass                 ['Normal']                                                
  tech-type                     3                                                         
  usb-pid                       11287                                                     
  usb-vid                       1008                                                      
  wifi-config                   0                                                         

Done.

$ uname -rm
4.18.0-13-generic x86_64

$ lsusb
Bus 002 Device 003: ID 03f0:2c17 Hewlett-Packard LaserJet 1022

$ lpstat -t
Zeitplandienst läuft
systemvoreingestelltes Ziel: HP-LaserJet-1022
Gerät für HP-LaserJet-1022: hp:/usb/HP_LaserJet_1022?serial=FL05R60
HP-LaserJet-1022 akzeptiert anfragen seit Mi 23 Jan 2019 19:35:01 CET
Drucker HP-LaserJet-1022 ist im Leerlauf.  Aktiviert seit Mi 23 Jan 2019 19:35:01 CET
	Ungültiges Druckkommando "Clean".
HP-LaserJet-1022-21     anonymous         1024   Mi 23 Jan 2019 19:35:01 CET

$ lpinfo -v
file cups-brf:/
network beh
network https
network ipp
network ipps
network http
serial serial:/dev/ttyS0?baud=115200
serial serial:/dev/ttyS4?baud=115200
network socket
network lpd
direct usb://HP/LaserJet%201022?serial=FL05R60
direct hp:/usb/HP_LaserJet_1022?serial=FL05R60
direct parallel:/dev/lp0
direct hpfax

$ ls -l /etc/cups/ppd/*
-rw-r----- 1 root lp 24645 Jan 23 19:34 /etc/cups/ppd/HP-LaserJet-1022.ppd
-rw-r----- 1 root lp 24645 Jan  9 20:14 /etc/cups/ppd/HP-LaserJet-1022.ppd.O

Kellerkind_2009

Avatar von Kellerkind_2009

Anmeldungsdatum:
26. November 2009

Beiträge: 19617

Wohnort: Schleswig-Holstein

Dein Gerät wird bei HP als nicht mehr Supportet geführet https://developers.hp.com/hp-linux-imaging-and-printing/supported_devices/index

HP LaserJet 1022 Printer  (End of support)

Probiere mal ob es über das Terminal noch klappt mit

hp-clean -i

Zeige bei Fehler die Terminal Ausgabe sowie

tail -n 150 /var/log/cups/error_log

cosinus

Avatar von cosinus

Anmeldungsdatum:
11. Mai 2010

Beiträge: 1374

Wohnort: HB

Druckkopf? Ein Laserdrucker hat sowas nicht. 🙄

foobarbazz

(Themenstarter)

Anmeldungsdatum:
15. Januar 2018

Beiträge: 22

@Kellerkind_2009:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
$ hp-clean -i

HP Linux Imaging and Printing System (ver. 3.18.7)
Printer Printhead Cleaning Utility ver. 4.0

Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

error: No device found that support this feature.

$ tail -n 150 /var/log/cups/error_log
E [24/Jan/2019:17:47:05 +0100] [cups-deviced] PID 1378 (gutenprint53+usb) stopped with status 1!

@cosinus:

Asche auf mein Haupt - da haste wohl recht!

Neuer Anlauf: Ich möchte "Den Medienpfad meines Druckers ( Fixiereinheit und Walzen )" reinigen 😀

Quelle: http://h10032.www1.hp.com/ctg/Manual/c00264449.pdf

Seiten: 51/52

Kellerkind_2009

Avatar von Kellerkind_2009

Anmeldungsdatum:
26. November 2009

Beiträge: 19617

Wohnort: Schleswig-Holstein

😬 Probiere mal

hp-align -i

foobarbazz

(Themenstarter)

Anmeldungsdatum:
15. Januar 2018

Beiträge: 22

Kellerkind_2009 schrieb:

😬 Probiere mal

hp-align -i
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
$ hp-align -i

HP Linux Imaging and Printing System (ver. 3.18.7)
Printer Cartridge Alignment Utility ver. 5.0

Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

error: No device found that support this feature.

...Das würde ja irgendwie auch dazu passen?!:

Kellerkind_2009 schrieb:

Dein Gerät wird bei HP als nicht mehr Supportet geführet https://developers.hp.com/hp-linux-imaging-and-printing/supported_devices/index

HP LaserJet 1022 Printer  (End of support)

{ Früher, ja früher, da konnte man einem Drucker noch per Turbo-Pascal und ANSI-Escape-Sequenzen sagen, was er tun soll.. }

Wenn ich mich an die WDoof-Zeiten mit dem originalen Druckertreiber erinnern kann, dann wurde beim Drucken der Reinigungsseite immer eine Leerzeile "gedruckt", ca. zehn Sekunden gewartet, danach wieder eine Leerzeile, usw....

Macht das alles der Drucker intern oder wird das von außen gesteuert, jetzt mal ganz doof gefragt?

Ich weiß nicht wo diese Überlegungen hinführen sollen - ein bisschen Geplapper halt und die Hoffnung, dass sich jemand erbarmt... 😲

foobarbazz

(Themenstarter)

Anmeldungsdatum:
15. Januar 2018

Beiträge: 22

... also hier geht's ums Prinzip (lernen). Nicht darum, einen total veralteten Drucker nicht wegschmeißen zu müssen 😉

ok. bin ein bisschen weiter gekommen:

VM eines IE-Testsystems von Microsoft heruntergeladen und mit Virtualbox gestartet. Guest Additions installiert. Drucker per virtuellem USB-Controller verbunden. Treiber installiert. ...kann von der VM aus den Reinigungsprozess starten - phu schwitz ☺

– ja bis hier her ganz toll –

wenn da nicht die Langeweile wäre... und das Verlangen, das auch wirklich in Ubuntu machen zu wollen 😉

... hab da erstmal einen usbdump mitgeschnitten und gesehen, dass der eigentliche Befehl den Drucker zu reinigen (CLEARPRINTER) per PJL (Printer Job Language) abgesetzt wird:

@PJL INFO STATUS
CODE=10001
DISPLAY=""
ONLINE=TRUE
@PJL SET DENSITY=3
@PJL SET JAMRECOVERY=OFF
@PJL CLEANPRINTER
@PJL SET LANGUAGEHINT=ZJS
@PJL INFO PAGECOUNT
@PJL INFO PAGECOUNT
10936
@PJL USTATUS DEVICE
CODE=10031
DISPLAY=""
ONLINE=TRUE
@PJL USTATUS JOB
START
@PJL USTATUS TIMED
CODE=10031
DISPLAY=""
ONLINE=TRUE
@PJL USTATUS TIMED
CODE=10031
DISPLAY=""
ONLINE=TRUE
@PJL USTATUS TIMED
CODE=10031
DISPLAY=""
ONLINE=TRUE
@PJL USTATUS TIMED
CODE=10031
DISPLAY=""
ONLINE=TRUE
@PJL USTATUS TIMED
CODE=10031
DISPLAY=""
ONLINE=TRUE
@PJL USTATUS JOB
END
RESULT=OK
PAGES=1
@PJL USTATUSOFF
@PJL ECHO SYNC4823

Was von wo kommt und geht, ist nicht mehr gut ersichtlich - musste den Protokolloverhead (binär) von Hand rauslöschen...

Weiterhin habe ich hier geschaut und gesehen, wie man auf Netzwerkdrucker per telnet PJL-Befehle schicken kann.

Dann wiederum, gibt es das hier, wo unter Microsoft BS PJL-Befehle über ein kleines Tool an den Drucker gesendet werden..

Letztendlich ist die Frage: wie sende ich in Ubuntu RAW-Daten an einen USB-Drucker?

Ach so da gibts noch ein paar interessante technische Informationen:

http://www.hp.com/ctg/Manual/bpl13210.pdf

http://h10032.www1.hp.com/ctg/Manual/bpl13208.pdf

Muss doch verdampft nochmal irgendwie gehen !!! Der Durchbruch ist nahe ☺ oder noch weiter weg als je zuvor ...

foobarbazz

(Themenstarter)

Anmeldungsdatum:
15. Januar 2018

Beiträge: 22

💡 So geht's:

Binärdatei mit diesen Hex-Werten erstellen:

1B 25 2D 31 32 33 34 35 58 40 50 4A 4C 0D 0A 40 50 4A 4C 20 43 4C 45 41 4E 50 52 49 4E 54 45 52 0D 0A 1B 25 2D 31 32 33 34 35 58

(Leider ist mir nichts besseres eingefallen, die Escape-Sequenzen hier im Forum sicher darzustellen)

Danach:

$ lpr -l ./foo.bar

... 😛

foobarbazz

(Themenstarter)

Anmeldungsdatum:
15. Januar 2018

Beiträge: 22

Nachtrag:

1
2
3
4
5
6
7
#!/bin/bash
#
### HP LaserJet 1022: eine Reinigungsseite drucken
#
echo -e -n '\e%-12345X@PJL\r\n@PJL CLEANPRINTER\r\n\e%-12345X' > /tmp/foo.bar
lpr -l /tmp/foo.bar
rm -f /tmp/foo.bar
Antworten |