{"id":803,"date":"2018-09-01T17:52:02","date_gmt":"2018-09-01T15:52:02","guid":{"rendered":"http:\/\/haos.hopto.org\/blog\/?p=803"},"modified":"2018-09-02T15:26:42","modified_gmt":"2018-09-02T13:26:42","slug":"samsung-scx-3405w-in-gentoo-cups-drivers-etc","status":"publish","type":"post","link":"https:\/\/haos.hopto.org\/blog\/2018\/09\/01\/samsung-scx-3405w-in-gentoo-cups-drivers-etc\/","title":{"rendered":"Samsung SCX-3405W in Gentoo (Cups, drivers etc.)"},"content":{"rendered":"\n<p class=\"has-regular-font-size\">TL;DR &#8211; emerge -va\u00a0<strong>net-print\/splix<\/strong>\u00a0and use custom <strong>ppd<\/strong> file<\/p>\n\n\n\n<p>Once upon a time my printer stopped working (of course when I want to print something urgently). The hardware was ok, working and not otherwise broken because connecting it to laptop did the job &#8211; I print urgent fliers.<\/p>\n\n\n\n<p>What was weird, is that nothing was changed inside etc\/cups directory. So there must be some other things that changed: \/usr\/libexec\/cups was the natural choice. Specifically my <strong>ppd<\/strong> file included:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">*cupsFilter: \"application\/vnd.cups-raster 0 rastertoqpdl\"<\/pre>\n\n\n\n<p>And CUPS test page upon printing returned <em>rastertoqpdl not available: No such file or directory<\/em>. Well, this\u00a0rastertoqpdl was supposed to be somewhere. Let&#8217;s look it up inside \/usr\/libexe\/cups\/filter. Nope &#8211; nothing, I&#8217;ve looked into backups half year back &#8211; nope, no such file. Ooo, let&#8217;s pick new driver maybe?<\/p>\n\n\n\n<p>Unfortunately Samsung sold (??) it&#8217;s driver support to HP and they had a driver fresh and new for <strong>SCX-3400<\/strong> family but it was not working &#8211;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Unable to open raster pipe raster stream - : Broken pipe<\/pre>\n\n\n\n<p>that&#8217;s what I got from every try to print anything. So driver was new (latest) but not functioning. It was not using <strong>rastertoqpdl<\/strong> filter though. Different route maybe? I downgraded cups, cups-filters, and checked with <strong>ldd<\/strong> proper binaries linking &#8211; nothing. But I know I had working setup with proper ppd file which contained\u00a0rastertoqpdl. So where to get this file?<\/p>\n\n\n\n<p>Ok, search the net &#8211; not much, search backup &#8211; none, older driver &#8211; same stuff. And after one day of fight (and sleep over with the problem) I stumbled upon\u00a0<\/p>\n\n\n\n<pre class=\"wp-block-verse\">[I] <strong>net-print\/splix<\/strong><br\/>Available versions: 2.0.0_p20130826 {+jbig}<br\/>Installed versions: 2.0.0_p20130826(16:48:17 01.09.2018)(jbig)<br\/>Homepage: http:\/\/splix.sourceforge.net\/<br\/>Description: A set of CUPS printer drivers for SPL (Samsung Printer Language) printers<\/pre>\n\n\n\n<p>Yup, something for the Samsung from open source? My hope is almost depleted but I will emerge this and see what&#8217;s underneath. Woooaa, it has the\u00a0rastertoqpdl which my working ppd is using. Come on, it can&#8217;t be. But it was &#8211; my printer was working again \ud83d\ude42<\/p>\n\n\n\n<p>BTW. Here&#8217;s my PPD file:\u00a0<a href=\"https:\/\/gist.github.com\/ChaosEngine\/65532a1bb837e5adaa067af7670ff2c2\" target=\"_blank\">https:\/\/gist.github.com\/ChaosEngine\/65532a1bb837e5adaa067af7670ff2c2<\/a><\/p>\n\n\n\n<div class=\"wp-block-file\"><a href=\"http:\/\/haos.hopto.org\/blog\/wp-content\/uploads\/2018\/09\/Samsung_SCX-3400_Series.ppd_.txt\">Samsung_SCX-3400_Series.ppd<\/a><a href=\"http:\/\/haos.hopto.org\/blog\/wp-content\/uploads\/2018\/09\/Samsung_SCX-3400_Series.ppd_.txt\" class=\"wp-block-file__button\" download=\"Samsung_SCX-3400_Series.ppd\">Download<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>TL;DR &#8211; emerge -va\u00a0net-print\/splix\u00a0and use custom ppd file Once upon a time my printer stopped working (of course when I want to print something urgently). The hardware was ok, working and not otherwise broken because connecting it to laptop did &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/haos.hopto.org\/blog\/2018\/09\/01\/samsung-scx-3405w-in-gentoo-cups-drivers-etc\/\">Czytaj wi\u0119cej &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5],"tags":[],"class_list":["post-803","post","type-post","status-publish","format-standard","hentry","category-linux","category-tech"],"_links":{"self":[{"href":"https:\/\/haos.hopto.org\/blog\/wp-json\/wp\/v2\/posts\/803","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haos.hopto.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haos.hopto.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haos.hopto.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haos.hopto.org\/blog\/wp-json\/wp\/v2\/comments?post=803"}],"version-history":[{"count":10,"href":"https:\/\/haos.hopto.org\/blog\/wp-json\/wp\/v2\/posts\/803\/revisions"}],"predecessor-version":[{"id":838,"href":"https:\/\/haos.hopto.org\/blog\/wp-json\/wp\/v2\/posts\/803\/revisions\/838"}],"wp:attachment":[{"href":"https:\/\/haos.hopto.org\/blog\/wp-json\/wp\/v2\/media?parent=803"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haos.hopto.org\/blog\/wp-json\/wp\/v2\/categories?post=803"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haos.hopto.org\/blog\/wp-json\/wp\/v2\/tags?post=803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}