[SOLVED] Installing Epson All-in-one printer+scanner drivers on CentOS 6?

Issues related to hardware problems
dolly
Posts: 6
Joined: 2018/01/01 09:32:25

[SOLVED] Installing Epson All-in-one printer+scanner drivers on CentOS 6?

Postby dolly » 2018/01/08 18:17:52

Hello folks!

I'm trying to set up the All-in-one Epson SX535WD wireless printer to work on Linux CentOS 6.9 (32 bit arch), both via CLI and GUI. Epson's website no longer lists drivers for this model for Linux, so I resorted to those listed in openprinting.org and elsewhere around the web. I created a default "epson" printer that however doesn't execute the printing jobs I've been sending it. How so?

First of all, I tried to install the recommended driver (as listed by openprinting) epson-inkjet-printer-201106w-1.0.1-1lsb3.2.i486.rpm but something is already suspiciously wrong:

Code: Select all

[dolly@centos Downloads]$ ls -hl
total 545M
-rw-rw-r--. 1 dolly dolly 1.8M Jan  8 18:28 epson-inkjet-printer-201106w-1.0.1-1lsb3.2.i486.rpm
-rw-rw-r--. 1 dolly dolly 2.2M Jan  8 18:28 epson-inkjet-printer-escpr-1.4.1-1lsb3.2.i486.rpm
-rw-rw-r--. 1 dolly dolly 3.3M Dec 17 22:06 epson-inkjet-printer-escpr-1.6.17-1lsb3.2.i486.rpm
drwxrwxr-x. 3 dolly dolly 4.0K Dec 17 22:11 iscan-bundle.1.0.4.x86
-rw-rw-r--. 1 dolly dolly 169M Dec 26 23:25 jdk-8u152-linux-i586.rpm
-rw-rw-r--. 1 dolly dolly 305M Dec 26 22:34 jdk-9.0.1_linux-x64_bin.rpm
-rw-rw-r--. 1 dolly dolly  64M Dec 26 20:15 jre-8u151-linux-i586.rpm
drwxrwxr-x. 5 dolly dolly 4.0K Jan  7 16:33 PDFs
[dolly@centos Downloads]$
[dolly@centos Downloads]$ sudo rpm -i epson-inkjet-printer-201106w-1.0.1-1lsb3.2.i486.rpm
[sudo] password for dolly:
warning: epson-inkjet-printer-201106w-1.0.1-1lsb3.2.i486.rpm: Header V3 DSA/SHA1 Signature, key ID 8aa65d56: NOKEY
   package epson-inkjet-printer-201106w-1.0.1-1lsb3.2.i486 is already installed
[dolly@centos Downloads]$
[dolly@centos Downloads]$
[dolly@centos Downloads]$ sudo rpm -e epson-inkjet-printer-201106w-1.0.1-1lsb3.2.i486.rpm
error: package epson-inkjet-printer-201106w-1.0.1-1lsb3.2.i486.rpm is not installed
[dolly@centos Downloads]$

How can this rpm be "already installed" and at the same time be "not installed"?

The "epson" printer is the default physical printer in the home network; it can print on both sides of a page (it does so in Win 7) though the GUI doesn't enable this feature while the CLI says it supports the following options but I'm not sure it really does given the fact that so far I've not been able to print any document over the wifi connection:

Code: Select all

[dolly@centos Downloads]$ lpoptions
auth-info-required=none brightness=80 copies=1 device-uri=lpd://192.168.1.75/PASSTHRU finishings=3 fitplot=true job-hold-until=no-hold job-priority=50 job-sheets=none,none marker-change-time=0 media=iso_a4_210x297mm number-up=1 printer-commands=none printer-info='Epson Stylus SX535WD' printer-is-accepting-jobs=true printer-is-shared=true printer-location printer-make-and-model='Epson Stylus SX535WD, Epson Inkjet Printer Driver (ESC/P-R) for Linux' printer-state=3 printer-state-change-time=1515429520 printer-state-reasons=none printer-type=135180 printer-uri-supported=ipp://localhost:631/printers/epson sides=two-sided-long-edge wrap=false
[dolly@centos Downloads]$
[dolly@centos Downloads]$ lpq
epson is ready
no entries
[dolly@centos Downloads]$


Is the URI somehow wrong? Maybe wrong protocol?
Any help is surely appreciated.


PS1. I re-discovered Epson's download website for drivers: link. Just insert "Linux" and "sx535wd" (OS and printer's model nr.), press enter and you'll be forwarded to the proper download page.
Last edited by dolly on 2018/01/10 11:19:36, edited 3 times in total.

dolly
Posts: 6
Joined: 2018/01/01 09:32:25

Re: Installing Epson All-in-one printer+scanner drivers on CentOS 6?

Postby dolly » 2018/01/09 16:29:56

Hello again!
After some searching I read up this CentOS 5 documentation.

I created a new 'epson2' printer via the Printer Configuration Tool, only this time I opted for "AppSocket" type of queue. As explained below Figure 33.1 from the the link above:
AppSocket/HP JetDirect — a printer connected directly to the network through HP JetDirect or Appsocket interface instead of a computer.

...which is pretty similar to my home network. The other options were all about first connecting to some other computer (running Windows/Red Hat/other Linux distro) that in turn is connected to said printer -- therefore I discarded them.

Though the printer takes some time to process the print job, at least now it does print the document. So this solves part of the problem. I still don't know why it won't print on both sides of a blank sheet of paper in spite of me passing the -o sides=two-sided-long-edge option. I know the printer can do it because it does so under Win7. I tried installing Epson's Printer Utility, epson-printer-utility-1.0.2-1lsb3.2.i486.rpm, but then what? How does it help me tell the OS that the printer can automatically handle printing both sides of a page?

Anyway, hope this helps posterity. Compare the device-uri below with the one in my previous post -- that is the key difference that helped me.

Code: Select all

[dolly@centos Downloads]$ lpoptions -d epson2
auth-info-required=none copies=1 device-uri=socket://192.168.1.75:9100 finishings=3 job-hold-until=no-hold job-priority=50 job-sheets=none,none marker-change-time=0 media=iso_a4_210x297mm number-up=1 printer-commands=none printer-info='Epson Stylus SX535WD' printer-is-accepting-jobs=true printer-is-shared=true printer-location printer-make-and-model='Epson Stylus SX535WD, Epson Inkjet Printer Driver (ESC/P-R) for Linux' printer-state=3 printer-state-change-time=1515511309 printer-state-reasons=none printer-type=4108 printer-uri-supported=ipp://localhost:631/printers/epson2 sides=two-sided-long-edge
[dolly@centos Downloads]$


PS.1 Just type epson-printer-utility on Terminal, press Enter and see if it works. In case you want a menu entry only for that, do what is suggested here.

dolly
Posts: 6
Joined: 2018/01/01 09:32:25

Re: [SOLVED] Installing Epson All-in-one printer+scanner drivers on CentOS 6?

Postby dolly » 2018/01/10 12:24:53

This is how I solved the other problem (duplex or "two sided printing" printing).

Given that very few features showed up when prompted...

Code: Select all

[dolly@centos ppdc]$ lpoptions -p epson -l
PageSize/Paper Size: 4X6FULL T4X6FULL 2L T2L 4X7 T4X7 *A4 TA4
MediaType/Media Type: PMPHOTO_NORMAL PLATINA_NORMAL GLOSSYPHOTO_NORMAL GLOSSYCAST_NORMAL *PLAIN_NORMAL PLAIN_HIGH PMMATT_NORMAL
Ink/Ink: *COLOR MONO
[dolly@centos ppdc]$


I figures the OS doesn't know/recognize which PPD file to associate to my "epson" printer. This is done via CUPS web interface (don't know how to do it via command line). So in Mozilla Firefox I typed "localhost:631" in the URL box, chose Administration > Manage Printers > epson blue link > Modify Printer (from the drop-down menu). If prompted for username and password give "root" and root's password (you're making system-wide modifications!!). Follow the guided process that leads you to pick the correct driver for the printer or pick a PPD file (see picture attached).
screenshot-modify-epson.png
Modify Printer
screenshot-modify-epson.png (119.2 KiB) Viewed 147 times


Once you "Modify printer" you can go back to http://localhost:631/printers/<printer_name> and "Set Default Options". There are now a number of features including "Duplex printing" (see 2nd attachment). Finally!
screenshot-default-opts.png
Setting Default options
screenshot-default-opts.png (62.94 KiB) Viewed 147 times


This is further confirmed by re-issuing the previous command from Terminal:

Code: Select all

[dolly@centos Pictures]$ lpoptions -p epson -l
MediaType/Type: *PLAIN EMATTE EULTRAGLOSSY EPREMGLOSS EPSGLOS EPENTRY EGCP ENVELOPE
PrintQuality/Quality Option: Draft *Text TextImage Photo BestPhoto
PageSize/Size: Custom.WIDTHxHEIGHT *A4 4x6in 5x7in A6 A5 B5 3.5x5in 5x8in 8x10in 169widesize 100x148mm ENVELOPE_10 ENVELOPEDL ENVELOPEC6 Letter Legal A3 A3+ A2 B4 B3
Color/Color: *Color Grayscale
Borderless/Borderless: *Off On
FaceDown/Face Down: *Off On
ReduceEnlarge/Reduce/Enlarge: *Off ByOutputPaperSize ByPercentage
OutputPaper/By Output Paper Size: *A4 4x6in 5x7in A6 A5 B5 3.5x5in 5x8in 8x10in 169widesize 100x148mm ENVELOPE_10 ENVELOPEDL ENVELOPEC6 Letter Legal
ScaleRatio/By Percentage: 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 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400
Duplex/Duplex Printing - Binding Edge: None DuplexTumble *DuplexNoTumble
AdjustPrintDensity/Adjust Print Density: Text *TextPhoto Photo
PosterPrinting/Poster Printing: *Off 2x1 2x2 3x3 4x4
Rotate180/Rotate 180 degrees: Off *On
MirrorImage/Mirror Image: *Off On
Watermark/Watermark: *None Confidential Draft Urgent Priority Hot DoNotCopy ForYourEyesOnly ReviewCopy TopSecret Duplicate
ColurWatermark/Color: Black Blue Lime Aqua *Red Fuchsia Yellow
PositionWatermark/Position: *Center TopLeft Top TopRight Left Right BottomLeft Bottom BottomRight
DensityWatermark/Density: Level1 Level2 Level3 *Level4 Level5 Level6
SizeWatermark/Size: 10 20 30 40 50 60 *70 80 90 100
CorrectionColor/Color Mode: *EPSONVivid AdobeRGB
GammaValue/Gamma: 1.8 *2.2
BrightnessValue/Brightness: -25 -24 -23 -22 -21 -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 *0 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
ContrastValue/Contrast: -25 -24 -23 -22 -21 -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 *0 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
SaturationValue/Saturation: -25 -24 -23 -22 -21 -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 *0 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
CyanValue/Cyan: -25 -24 -23 -22 -21 -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 *0 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
MagentaValue/Magenta: -25 -24 -23 -22 -21 -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 *0 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
YellowValue/Yellow: -25 -24 -23 -22 -21 -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 *0 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
[dolly@centos Pictures]$


Hope this helps future users, just remember that this is valid for a stand-alone network printer in a home-LAN and that doesn't need you to connect to another OS in order to print documents.
PS1 I don't know why there's no Page Orientation in the driver, guess I'll have to rotate 180 the page if I ever need to...