Cannot print to usb printer using Okular

Bug #365977 reported by Robert Osfield
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kdegraphics (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: okular

System: Kubuntu 9.04. Problem exists under 64bit and 32bit version of Kubuntu.

Description:
I have attached my Samsung GLX-2160 via usb to my machines and configured it using The KDE's SystemSetting's PrinterConfiguration. Printing works from PrinterConfiguration, Kate and Konqueror. The driver that was automatically selected was Foomatic/foo2pdl.

When I attempt to print from Okular the printer appears correctly in the list of printer options by when I click on Print in the print dialog box the box closes but nothing is printed, and no entry gets placed in the placed in the print queue.

Printing out from Kate or Konqueror after attempting to print from Okular works immediately.

Other related issues is that Firefox also doesn't print to the printer, which suggests something lower level than just Okular or Firefox. Exactly which subsystem is at fault I can't say as I'm not familiar with the inner workings of printing, here's hoping that others might be able to spot which package is most appropriate to tag this bug to.

I have now tried this issue out on four machines, two 64bit systems, and two 32bit systems and the same combination of Kate/Konqueror working and Okular/Firefox occurs. An older Kubuntu 8.10 install works fine though, Okular and Firefox can print out fine so I'm holding back from upgrading this system to allow me to at least print out pdf documents.

affects: okular (Ubuntu) → kdegraphics (Ubuntu)
Revision history for this message
Marcel Baschnagel (sigsegv) wrote :

I had the same problem with Kubuntu 9.10. But with the workaround from Bug #403169 printing from Okular works fine afterwards.

Revision history for this message
Darshaka Pathirana (dpat) wrote :

Hi!

Also stumbled over this problem.

System: Kubuntu 10.04

We have a Samsung CLP-510 and installed the printer driver provided by [1][2].

[1] http://www-personal.umich.edu/~tjwatt/suldr/
[2] http://www.bchemnet.com/suldr/

After installing the driver okular stopped printing. So I started okular by command line,
printed a page and got this output:

% okular testfile.pdf
okular(4483)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(4483)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(4483)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/sysadmin/.config/ibus/bus
Bus::open: Can not get ibus-daemon's address.
IBusInputContext::createInputContext: no connection to ibus-daemon
Paket »cupsys-common« ist nicht verfügbar.
Verwenden Sie dpkg --info (= dpkg-deb --info) zum Untersuchen von Archiven,
und dpkg --contents (= dpkg-deb --contents) zum Auflisten ihres Inhalts.
WARNING: configuration file not found
lpr: invalid option -- 'r'
ProcessEx::execute: </usr/bin/lpr.orig|-P|clp510|-#1|-J|testfile.pdf|-o|media=A4|-o|landscape|-o|sides=one-sided|-o|outputorder=normal|-o|Collate=False|-r|/tmp/kde-sysadmin/okularFm4483.ps>
ProcessEx::execute: failed to launch

(Sorry for the german locale but "LANG=C okular testfile.pdf" did not bring up my printer and I had no time to debug that problem.)

It seems that "lpr" provided by Samsung does not implement the "-r" option ("Specifies that the named print files should be deleted after printing them.") and therefor fails to print. My workaround is to move the symlink out of the way:

% mv /usr/local/bin/lpr /usr/local/bin/lpr_samsung

The default "lpr" seems to work with Samsung drivers but I still have to investigate.

Regards,
 - Darsha

Revision history for this message
Maarten Bezemer (veger) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. We are sorry that we do not always have the capacity to look at all reported bugs in a timely manner. There have been many changes in Ubuntu since that time you reported the bug and your problem may have been fixed with some of the updates. It would help us a lot if you could test it on a currently supported Ubuntu version. When you test it and it is still an issue, kindly upload the updated logs by running apport-collect 365977 and any other logs that are relevant for this particular issue.

Changed in kdegraphics (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for kdegraphics (Ubuntu) because there has been no activity for 60 days.]

Changed in kdegraphics (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Aaron Wolf (wolftune) wrote :

Thanks!
% mv /usr/local/bin/lpr /usr/local/bin/lpr_samsung
worked for me!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.