Ask / Submit
226

Printer support

asked 2013-12-29 16:52:59 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2019-08-11 22:49:35 +0200

BonoNL gravatar image

Allow users to print from all appropriate applications. Basically add CUPS support and make it configurable from the settings menu. Set printers according to used network etc.

Update 11-08-2019:

https://together.jolla.com/question/211124/collaborators-wanted-share-to-printer-plugin/

edit retag flag offensive close delete

Comments

3

Would be a cool feature :).

Sailor ( 2013-12-29 16:54:41 +0200 )edit
9

That would be nice and of course bluetooth printing too

Wizah ( 2013-12-29 16:57:25 +0200 )edit
1

hah, I was looking yesterday if this feature is available already in Jolla :D

yanoo ( 2013-12-29 20:38:30 +0200 )edit
1

Exactly the same here, wanted it yesterday :-) A cups installation with a print button in a lot of applications (Documents, Calendar, Email, Gallery).

hullabaluh ( 2014-02-05 12:08:39 +0200 )edit
1

Wanted to print something today, but then forgot that the device can't do it. Was already about to open a feature request, but then I saw this. So have an upvote instead!

Also wanted to propose device auto-discovery whenever you want to print something, similar to how printing to a networked printer works on Android.

ziller ( 2014-03-12 20:56:17 +0200 )edit

4 Answers

Sort by » oldest newest most voted
48

answered 2014-07-31 11:44:24 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2015-02-02 15:20:54 +0200

benna86 gravatar image

While we wait for official printing support there is a workaround to print any file from Jolla via command line, here's a step-by-step guide:

The first step is to enable developer mode, generate a password and then open the command line. To print we need to install the Cups printing daemon, unfortunately the installation is not straightforward due to some pre-systemd dependencies in the cups rpm package that are not satisfied by any package in the repo. We can start installing the dependencies that are available:

devel-su pkcon install cups-libs acl poppler-utils tmpwatch

after that we have provide the files /sbin/chkconfig and /sbin/service. I am not sure if this step is necessary but I wrote two small scripts that convert chkconfig and service syntax in systemd calls. Download them (chkconfig-script.sh - service-script.sh) into /home/nemo, make them executable:

chmod +x /home/nemo/chkconfig-script.sh
chmod +x /home/nemo/service-script.sh

and link them in place:

devel-su ln -s /home/nemo/chkconfig-script.sh /sbin/chkconfig
devel-su ln -s /home/nemo/service-script.sh /sbin/service

Once the dependencies are installed we can install cups. We have to download the package first

pkcon download . cups

and then we can force its installation ignoring the missing dependencies

devel-su rpm -i --force --nodeps cups*.rpm

Now cups is installed, we can configure our printer through the webinterface. Cups will ask to log in to the system and since, apparently, the group lpadmin is not created we have to log in with the user root, to do so you might need to set a root password:

devel-su su
passwd
exit

Once the printer is set up we can start printing. To do so we need to add the user nemo to the lp group:

devel-su usermod -a -G lp nemo

and then we can print any file with this command:

lp -d printerName -o fit-to-page fileName

I know it is not straightforward to print via command line but it works fine.

Enjoy printing!

edit flag offensive delete publish link more

Comments

4

Now all we need is the "Print" menu option in most spps ;)

pichlo ( 2015-01-10 13:18:06 +0200 )edit
4

Exactly! All the stuff with third party android apps is crap. Sailfish should be able to print directly an email or a webpage or a document. In the email app, in the browser, in the documents app, in the maps app...

NATIVE printer support. I have the samsung printer app installed but in all the sailfish apps this does not work. Why are we using a phone which is exactly not android to install all that android crap? In this case I can directly use an android phone, no?

hullabaluh ( 2015-01-12 15:13:03 +0200 )edit
2

devel-su rpm -i --force --no-deps cups*.rpm should be

devel-su rpm -i --force --nodeps cups*.rpm
Paavo ( 2015-02-02 03:56:58 +0200 )edit
3

Thanks! fixed. I also converted the post into a Wiki

benna86 ( 2015-02-02 15:21:27 +0200 )edit

Forgot to add that one should start the cups service before the web interface can be accessed: devel-su service cups start that's just the first time after installing all the packages. If you don't want the daemon eating up the battery, just substitute "start" with "stop".

Paavo ( 2015-02-02 15:45:48 +0200 )edit
4

answered 2015-01-09 21:52:40 +0200

martind gravatar image

updated 2015-01-12 14:38:27 +0200

The HP ePrint-App works fine for me. You do not need any account (HP ePrint, Google...) for use in your (w)lan.

edit flag offensive delete publish link more

Comments

And for Brother users there is an Android app called iPrint&Scan, for use on LAN.

flywheel ( 2015-01-11 19:10:37 +0200 )edit
2

I know this a bit old post but, I'm having an issue with the hp ePrint app on Jolla. When I start the app it would work like normal for something between 5 to 10 seconds before crashing. I actually was able to print a photo with it but it took quite a long training to be able to choose a right photo and make all selections in 10 seconds before crashing :D Is there any workaround or fix to be able to use the software? It seems quite legit thoughfor normal use.

Mrks ( 2015-02-23 13:39:34 +0200 )edit
1

I also had this problem with the HP ePrint app, waiting for any update to resolve the problem. Unfortunately it did not work out yet. However, I found out today, that there are also other apps from HP supporting printing over WiFi. By now, I ended up with this app: https://play.google.com/store/apps/details?id=com.hp.printercontrol and it just works fine for me (although scanning remotely is somehow not supported with my printer). No crashes anymore.

jollasaar ( 2015-05-09 15:57:28 +0200 )edit

Epson iPrint app (installed from Aptoid store) crashes on app startup. EDIT: Never mind, worked fine after reboot.

casanunda ( 2015-06-10 17:14:46 +0200 )edit
3

answered 2018-09-30 14:42:43 +0200

updated 2019-04-09 21:50:28 +0200

does this 'still' work for peeps? on sfos 2.2.1.18

installation went fine

instead giving root a password I added the group lpadmin and added nemo

groupadd lpadmin

usermod -aG lpadmin nemo

logon and configuration of HP Deskjet via socket went fine (set it as default)

but then I got stuck with

$ lp gdb.txt

lp: Unsupported document-format "text/plain".

even

echo 'hello' | lp

gives the same

also print test page only yields:

Unsupported format "application/vnd.cups-banner".

something missing?

cups-filter or ghostscript-cups are the obvious ones. but...

bump: really no one has an idea?

edit flag offensive delete publish link more

Comments

2

I would really like to get it running on my Jolla, but ...

BTW: why did this topic/question came to the current list? I scanned every answer and comment but all is old (newest mine from Oct 18). I never understood this method how to keep track here on TJC! :(

peterleinchen ( 2019-02-18 01:31:52 +0200 )edit

In fact, I wonder why printer support seems so unpopular. I have posted a recent feature request regarding printer integration and have been referred to this. Is there any news regarding this topic?

sailaway ( 2019-07-22 08:02:50 +0200 )edit
1

answered 2015-01-10 19:14:58 +0200

rburkhanov gravatar image

To print with any printer over cloud I installed Cloud Print plus app. To download apk from Google Play Store I had used this on-line service (there's also a plug-in for Google Chrome).

Works fine, but you have to setup your printer as a virtual printer in Google Chrome, and for this you'll need a Google account. There's an option to buy a pay version, but this seems like an unnecessary option ;-)

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
32 followers

Stats

Asked: 2013-12-29 16:52:59 +0200

Seen: 4,375 times

Last updated: Aug 11