Oki C301dn, C310dn :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
Oki C301dn stopped working after opensuse tumbleweed update
Posted by: hetta ()
Date: April 12, 2019 04:13AM

Hi,

I've been using the foo2hiperc driver for the OKI C301dn printer for a few years, but the driver stopped working with a recent opensuse tumbleweed update.

It's connected, the printer warms up, and then nothing.

The printer still works with windows (an old machine we have for windows-only things) and on another machine, that hasn't had the tumbleweed update.

Help?

Thanks!
Hetta



Edited 1 time(s). Last edit at 04/12/2019 05:31AM by hetta.

Options: ReplyQuote
Re: Oki C301dn stopped working after opensuse tumbleweed update
Posted by: rickrich ()
Date: April 12, 2019 04:27AM

Using the network, what does this say:
$ cd foo2zjs

$ foo2hiperc-wrapper -c testpage.ps > xxx.prn

$ ls -l xxx.prn
-rw-rw-r--. 1 rick rick 15977311 Apr 12 03:18 xxx.prn

$ nc 192.168.xxx.yyy 9100 < xxx.prn                  # Or, $ ncat ...
$

Options: ReplyQuote
Re: Oki C301dn stopped working after opensuse tumbleweed update
Posted by: hetta ()
Date: April 12, 2019 05:30AM

foo2zjs> foo2hiperc-wrapper -c testpage.ps > xxx.prn
GPL Ghostscript 9.26: **** Could not open the file cat 1>&3 .
GPL Ghostscript 9.26: Unrecoverable error, exit code 1


ls -l xxx.prn
-rw-r--r-- 1 hetta users 691 Apr 12 12:25 xxx.prn

* EDIT *
here's the content of the prn file:
%-12345X@PJL
@PJL RDYMSG DISPLAY = "Unknown"
@PJL SET OKIJOBACCOUNTJOB USERID="Unknown" JOBNAME="Unknown"
@PJL SET OKIAUXJOBINFO DATA="DocumentName=Unknown"
@PJL SET OKIAUXJOBINFO DATA="ComputerName=linux-wsxr"
@PJL SET OKIAUXJOBINFO DATA="ReceptionTime=00:00:00 2019/04/12"
@PJL SET OKIAUTOTRAYSWITCH=ON
@PJL SET OKIPAPERSIZECHECK=ENABLE
@PJL SET RESOLUTION=600
@PJL SET PAPER=LETTER
@PJL SET OKITRAYSEQUENCE=PAPERFEEDTRAY
@PJL SET OKIPAPERFEED=TRAY1
@PJL SET OKIMEDIATYPE = PLAIN
@PJL SET LPARM:PCL OKIPRINTMARGIN=INCH1D6
@PJL SET COPIES=1
@PJL SET QTY=1
@PJL SET HIPERCEFFECTIVEBLOCKSIZE=4207500
@PJL ENTER LANGUAGE=HIPERC
%-12345X@PJL
@PJL EOJ NAME = "End "
%-12345X

* EDIT *
...foo2zjs> nc 192.168.100.14 9100 < xxx.prn
...foo2zjs>

so no output there.



Edited 2 time(s). Last edit at 04/12/2019 07:36AM by hetta.

Options: ReplyQuote
Re: Oki C301dn stopped working after opensuse tumbleweed update
Posted by: rickrich ()
Date: April 12, 2019 09:58AM

Maybe your "sh" isn't "/bin/bash" ?

Options: ReplyQuote
Re: Oki C301dn stopped working after opensuse tumbleweed update
Posted by: hetta ()
Date: April 12, 2019 11:23AM

~> which bash
/usr/bin/bash
hk@linux-wsxr:~>

Should work, no?

Options: ReplyQuote
Re: Oki C301dn stopped working after opensuse tumbleweed update
Posted by: rickrich ()
Date: April 12, 2019 01:19PM

See GHOSTSCRIPT BUGS in the INSTALL file!

GHOSTSCRIPT BUGS
----------------
        $ su
        # zypper up cups-devel
 
        $ wget "http://ghostscript.com/releases/ghostscript-8.71.tar.gz";
        $ tar zxf ghostscript-8.71.tar.gz
        $ cd ghostscript-8.71
        $ ./autogen.sh
        $ make
        $ su                            OR $ sudo cp bin/gs /usr/bin/gs.foo
        # cp bin/gs /usr/bin/gs.foo

Then everything will work.

Options: ReplyQuote
Re: Oki C301dn stopped working after opensuse tumbleweed update
Posted by: hetta ()
Date: April 12, 2019 01:34PM

Oh wow, many thanks it works!

* happy dance *

(it's been tedious with USB sticks for a while.)

Thank you so much!

:-)
Hetta

Options: ReplyQuote
Re: Oki C301dn stopped working after opensuse tumbleweed update
Posted by: rickrich ()
Date: April 12, 2019 01:53PM

You can also do:

https://www.ghostscript.com/download/gsdnld.html

Ghostscript 9.27 Source for all platforms Ghostscript AGPL Release

And follow the instructions in the INSTALL file.

Either one will work.
$ cd
$ ls -l
...
drwxr-xr-x 25 rick users     4096 Apr 12 11:58 ghostscript-8.71
-rw-r--r--  1 rick users 25240801 May 25  2018 ghostscript-8.71.tar.gz
drwxr-xr-x 30 rick users     4096 Apr 12 12:39 ghostscript-9.27
-rw-r--r--  1 rick users 42277543 Apr 12 12:33 ghostscript-9.27.tar.gz
...

Options: ReplyQuote
Re: Oki C301dn stopped working after opensuse tumbleweed update
Posted by: rickrich ()
Date: April 13, 2019 12:56PM

They have protected "ghostscript" with something called "AppArmor".

$ su
# aa-disable ghostscript

will also do it.

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.