maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Printing with N900 (https://talk.maemo.org/showthread.php?t=56932)

colin.stephane 2011-05-05 22:41

Re: Printing with N900
 
Well, I was finally able to get your archive.

I have just overlapped my packages of gtk by yours, leaving my leafpad package, and now I can see the printers in leafpad ...

Now I ask you, what have you do to compile the gtk lib with cups printing support ?

I have explained what I have do exactly on my side, and I can understand where is the mistake :(

I like to be able to compile by myself and understanding what I do ...

Mase, any advice ?

EDIT :

DAMN !!!

Comparing our packages, the 'libgtk2.0-0_2.14.7-1maemo34+0m5_armel.deb' on my side doesn't have the part :

/usr/lib/gtk-2.0/2.10.0/printbackends
/usr/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-cups.so
/usr/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-lpr.so
/usr/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-file.so

I have to find why I do not have this part on my personal compilation ...


A++

mase 2011-05-06 12:33

Re: Printing with N900
 
As I said, I only rebuilt with libcups2-dev installed, nothing else.

For all your ppd problems, why don't you take the ppd files from
a linux installation. If you don't have linux on pc, try copying it from
a live cd like ubuntu or whatever.

colin.stephane 2011-05-06 17:32

Re: Printing with N900
 
Quote:

Originally Posted by mase (Post 1001158)
As I said, I only rebuilt with libcups2-dev installed, nothing else.

For all your ppd problems, why don't you take the ppd files from
a linux installation. If you don't have linux on pc, try copying it from
a live cd like ubuntu or whatever.

I have also rebuilt with libcups2-dev installed but that doesn't end like on your side ...

I have no more problem about ppd on my side, I have also explained how I fixed the problem for the requirement of external 'foomatic-rip' binary.

A++

demolition 2011-05-10 13:52

Re: Printing with N900
 
1 Attachment(s)
colin.stefane:
Quote:

Ok, I must admit I'm not able to fix the 'foomatic-filters' package,[...]
I have find the ppd on the Linux OpenPrinting site.[...] the ppd was modified [...] because if I extract ppd from the windows driver, then this one don't require the 'foomatic-rip' command.
woody14961:
Quote:

If they're HP, unless they're plotters, [...] use the generic postscript PPD and you should be fine. [...] You only need Foomatic if you're converting to something off, like PCL for a plotter, or [...] [a printer] that doesn't know generic postscript.
I'm feeling quite stupid because I can't even get a test page to print. The filter problem is stopping all print jobs from proceding. How should I edit the ppd to get things working?
> I removed "foomatic-rip" from lines 36 & 37 of the generic ppd file, which stopped the pre-print message about the filter but now I get this error!

demolition 2011-05-10 22:11

Re: Printing with N900
 
Sorry Mase, meant to include this in the post above...
Quote:

Originally Posted by mase (Post 1001158)
For all your ppd problems, why don't you take the ppd files from a linux installation. If you don't have linux on pc, try copying it from a live cd like ubuntu or whatever.

What's the difference between one of these and the ppd files found in HPLIP? Is there an associated filter?

I had a look a the Debian site and there're a few packages which which appear to contain filters and these ppd files (Text processing). Does anyone know if there's anything in one of them that could be used to help me out?

mase 2011-05-11 13:13

Re: Printing with N900
 
I did never use hplib, because I neverf owned a HP printer.
What about the foomatic ones? I tried the ppds from
turboprint. They worked well.

mase 2011-05-11 18:23

Re: Printing with N900
 
The 10th vote is missing for weeks. If the packages work for you,
please give a vote.

colin.stephane 2011-05-11 18:43

Re: Printing with N900
 
Quote:

Originally Posted by mase (Post 1004340)
The 10th vote is missing for weeks. If the packages work for you,
please give a vote.

The 10th vote about what ?

Give me the link to the vote ...

A++

woody14619 2011-05-11 19:06

Re: Printing with N900
 
There are three links to vote at, one for cups, one for the client, and one for bsd-ish plugin.

jj0 2011-05-28 19:36

Re: Printing with N900
 
Quote:

Originally Posted by mase (Post 962409)
There is also a cups-pdf package now, which is compatible with the new
optified cups packages. Look for the cups-pdf-maemoX packages.
The results are stored in ~/PDF/.

Your build of cups-pdf is not in the repos, only the old build, which doesn't work with cups...

mase 2011-05-28 20:53

Re: Printing with N900
 
cups-pdf is in extras-devel.

jj0 2011-05-29 09:07

Re: Printing with N900
 
Yeah, it's there but it's the old version, not yours, check it out. I had to pull source and build it myself...

jj0 2011-05-29 09:45

Re: Printing with N900
 
I've found that though your CUPS package is optified properly and thus no need to symlink the backends dirs as noted in the beginning of the thread, the /opt/usr/share/ppd directory MUST be symlinked to /usr/share/ as otherwise the printers will not install properly, since the CUPS admin doesn't find the PPD files.

And so for instance without the symlink the cups-pdf driver would produce empty PDFs.

After symlinking and reinstalling the printer in the CUPS Administration interface all works fine.

Full instructions on setting up CUPS to print to PDF on the N900 at:
http://gnu0.org/Print%20to%20PDF%20o...e%20phone.html

marmistrz 2011-06-02 13:36

Re: Printing with N900
 
hi
the dependencies ain't satisfied
i got error
Code:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  cups: Depends: libpaper1 (>= 1.1.21) but it is not going to be installed
        Depends: debconf (>= 1.2.9)
        Depends: ghostscript but it is not going to be installed


mase 2011-06-02 14:15

Re: Printing with N900
 
Did you enable extras-testing? Some packages are not present in
extras. You also have to replace fakedebconf by debconf.

marmistrz 2011-06-04 10:19

Re: Printing with N900
 
Well, after adding extras-devel to app. manager (not faster app. manager)
It breaks dependencies
Code:

debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog-based frontend cannot be used.
 at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 75.)
debconf: falling back to frontend: Readline
/var/lib/dpkg/info/libpaper1.postinst: line 45: ucf: not found
dpkg: error processing libpaper1 (--configure): subprocess post-installation script returned error exit on status 127

what can i do?

jj0 2011-06-04 10:26

Re: Printing with N900
 
apt-get install ucf

mase 2011-07-28 15:18

Re: Printing with N900
 
Please vote for
ghostscript 8.62.dfsg.1-maemo6
A wrong, not installable version went into extras.
So cups is also not installable.

jurop88 2011-07-28 15:50

Re: Printing with N900
 
Is this one the right one?

http://maemo.org/packages/package_in...dfsg.1-maemo6/

mase 2011-07-28 16:43

Re: Printing with N900
 
Yes, it is,

marmistrz 2011-12-02 11:38

Re: Printing with N900
 
Please promote to extras!

mase 2011-12-02 20:04

Re: Printing with N900
 
I cannot promote. Wrong package versions went into extras.
Nobody replied to my bug reports for the repos.

marmistrz 2011-12-03 19:57

Re: Printing with N900
 
But the version you said to be voting for has already 8 karma of 6
(8.62.dfsg.1-maemo6)
After all you can make it version 8.62.dfsg.1-maemo7 and try to promote this one

PMaff 2012-03-11 01:22

Re: Printing with N900
 
Quote:

Originally Posted by mase (Post 1060140)
Yes, it is,

I'd like to print from my N900 to the HP Officejet Pro 8100.
Network is ok and should work.

There was some talk about wrong packages in extras.
So which packages do I need and where do I find them?

Thanks in advance.

schokopudding 2012-03-28 21:38

Re: Printing with N900
 
Sorry for bumping this... but...

is the working Version of CUPS now in the repositorys? Or which one do i have to get? I am really looking forward to this... or what can I do, to forward this?
Many thanks for your work right now. I would really love to see that one working here.

best

Estel 2012-03-29 01:21

Re: Printing with N900
 
On the other hand, does anyone have success with printer connected directly to N900 via USB cable and hostmode?

/Estel

woody14619 2012-03-29 18:48

Re: Printing with N900
 
Quote:

Originally Posted by Estel (Post 1185401)
On the other hand, does anyone have success with printer connected directly to N900 via USB cable and hostmode?

/Estel

Most of my printing is done via wifi or bluetooth. I've not tried a USB printer dongle though I do have one. I'm not sure there are proper modules in the kernel, but I haven't looked. Is dev_lp being compiled for the N900 as a module? I'd bet not, since it's often not even on by default for desktops these days. Finding a MB with parallel is a challenge these days... Even the PCI boards are becoming rare, and I think there's only 1 or 2 manufacturers of PCIe boards.

Estel 2012-03-29 19:59

Re: Printing with N900
 
I'm not sure if we're talking about the same thing. I wasn't thinking about parallel-to-USB adapter and connecting this way to N900 - I thought about regular printer connected to computer via USB cable, which we would just connect to N900 via hostmode (like we connect it to USB of Debian-powered desktop computer, for example).

Sorry if I'm talking some BS here ;)

/Estel

woody14619 2012-03-30 00:06

Re: Printing with N900
 
Quote:

Originally Posted by Estel (Post 1185747)
I'm not sure if we're talking about the same thing. I wasn't thinking about parallel-to-USB adapter and connecting this way to N900 - I thought about regular printer connected to computer via USB cable, which we would just connect to N900 via hostmode (like we connect it to USB of Debian-powered desktop computer, for example).

Sorry if I'm talking some BS here ;)

/Estel

Well, then I can tell you good odds the drivers aren't in the kernel tree, since printer device signatures for USB would not be in there. Some printers emulate a standard parallel port, others emulate something totally random and device specific. (A few of the HPs actually do IP over USB... so they may work if you compile/force the USB strings in?)

But out of the box, the answer for that is going to be a definite no. :( Far better off with something that can handle bluetooth or better can connect in some way to the same wifi network you N900 can connect to and give it a perm IP. :)

Estel 2012-03-30 00:32

Re: Printing with N900
 
Thanks for answer. How it looks in desktop linux distros (ultra-noob question - everyone can laugh at me, but I got zero printing experience on Linux... It's funny, but I do CNC via linux, yet haven't ever printed anything via it :D)? Maybe we can just ask KP team to include necessary modules?

I remember reading somewhere about less and less linux-friendly printers implementation, which would seem odd to me.

/Estel

PMaff 2012-03-30 12:29

Re: Printing with N900
 
Quote:

Originally Posted by Estel (Post 1185853)
Thanks for answer. How it looks in desktop linux distros (ultra-noob question - everyone can laugh at me, but I got zero printing experience on Linux... It's funny, but I do CNC via linux, yet haven't ever printed anything via it :D)? Maybe we can just ask KP team to include necessary modules?

I remember reading somewhere about less and less linux-friendly printers implementation, which would seem odd to me.

/Estel

The HP Officejet Pro 8100 that I mentioned before works with SuSE Linux and some HP software via network (even with an older SuSE).
Just take a look at this:
http://hplipopensource.com/hplip-web..._pro_8100.html

The question is if printing works for N900 without that ePrint.
I do not like that cloud printing stuff, I want to print via WLAN and not via Internet.

2nd best solution would be
N900 -> Computer -> HP Officejet Pro 8100
which seems to be possible via
"URPO Remote Printing Utility for Maemo"
http://urpo.garage.maemo.org/index.html
(but I did not test this). Otoh: if I do it this way I can
transfer files via USB to the computer and do the printing there
without URPO. :D

woody14619 2012-03-30 22:01

Re: Printing with N900
 
Quote:

Originally Posted by Estel (Post 1185853)
Maybe we can just ask KP team to include necessary modules?

I remember reading somewhere about less and less linux-friendly printers implementation, which would seem odd to me.
/Estel

Probably not, since many don't have modules for desktop, yet alone in an older kernel. See, the problem with USB printing is that it opens the door to one re-implementing the wheel on how to connect. With parallel, there was one proper way to send data, and about 3 ways to "read" data back. Everything "looked" like a parallel port in the end, so you pick your read-back method (if you even cared about that) and off you go. Using USB, you can set-up any damn funky protocol you want on top of that, be it parallel emulation, TCP over USB, USB serial, kermit, zmodem... anything at all. Some of the smarter ones picked very common protocols (parallel emulation or TCP over USB), but some made their own up. So unless you get their proprietary driver, even if you know the underlying file format to send, if you don't know the proper USB sub-codes to make it go, it doesn't.

Quote:

Originally Posted by PMaff (Post 1186036)
The HP Officejet Pro 8100 that I mentioned before works with SuSE Linux and some HP software via network (even with an older SuSE).

It uses JetDirect, which means you can send HPL formatted input directly to it via a telnet connection to the proper port. The question is, does it accept PostScript, PCL5 or something else. Since it lacks a PS in it's name, I'm guessing not PS. It may accept PCL5, which means you could still print to it directly via linux (PCL5 output is part of ghostscript, and I believe it's in N900's version as well), but that makes the files rather large. For an inkjet system though, that's ok, since it prints the thing as a raster anyway... less work for the printer to do, and the N900 acts as a big buffer manager.

It all depends on what you're printing and what you're printing it to. If you want to print to a PS printer via wifi, you're golden. The farther away you go from that, the harder it gets.

PMaff 2012-04-01 22:09

Re: Printing with N900
 
Quote:

Originally Posted by woody14619 (Post 1186257)
...
It uses JetDirect, which means you can send HPL formatted input directly to it via a telnet connection to the proper port. The question is, does it accept PostScript, PCL5 or something else. Since it lacks a PS in it's name, I'm guessing not PS. It may accept PCL5, which means you could still print to it directly via linux (PCL5 output is part of ghostscript, and I believe it's in N900's version as well), but that makes the files rather large. For an inkjet system though, that's ok, since it prints the thing as a raster anyway... less work for the printer to do, and the N900 acts as a big buffer manager.

It all depends on what you're printing and what you're printing it to. If you want to print to a PS printer via wifi, you're golden. The farther away you go from that, the harder it gets.

According to the specifications it has:
"HP PCL 3 GUI; HP PCL 3 Enhanced"

Hmmm, will Ghostscript
http://maemo.org/packages/view/ghostscript/
help in this case?

If one would clone the AirPrint protocol for N900 then this should also work. ;-)

woody14619 2012-04-02 19:33

Re: Printing with N900
 
Ghostscript may be able to put out PCL standard. Last I looked it did PCL and PCL5. The major changes between 1, 3, and 5 were different compression methods supported and maximum resolutions. I'd say give it a try. Worst case it will start printing giberish and you can just power cycle the printer to clear the buffer.

schokopudding 2012-04-07 01:21

Re: Printing with N900
 
Just wanted to share my experience after a little trying:

I just bought a couple of thermo printers for a hand full of $$$ over at ebay. Sadly they got only IR and Serial connection, so I thought, I couldnt get it to run anyway... i bought a Serial to USB adapter cable and USB mothermother. So I thought, maybe i should try to connect that to my N900. I did, started h-e-n, mounted. Woops, there it is in CUPS. USB#1. I make a .txt file in Terminal. lp file.txt > woops, here it comes. Working out of the box.

So here is the point where i really get confused. Haha, but i like it. I wrote a shellscript, to grab my last sms and print it out. Now i wanna make it printout Contacts, and mails. The thing is, what I recognized: Its not printing special characters, like german äöü 'n stuff. And at the beginning of every file, i need a line like: "xxx xxx xxx xxx", or it will mess up the first Characters of the actual textfile.
Maybe if i can get a ppd file for the printer it will work better. Gonna Contact the manufacturer.

Just wanted to lay my 5cent in. Thanx for the beautiful cups porting though. You guys rock!

Estel 2012-04-07 04:17

Re: Printing with N900
 
Just for clarification - do You really mean serial ports, or You had parallel in mind?

/Estel

schokopudding 2012-04-07 14:33

Re: Printing with N900
 
No I have Serial to Serial USB to Usb mother - usb mother to usb micro usb.

like that. (sorry printing quality is poor, but the thermal paper and printer is like 10years old, i think that is why the quality is so poor.
anyway, works good. btw any1 knows why i have no adressbook.db in osso-abook ? strange...

http://imageshack.us/photo/my-images...120407001.jpg/http://imageshack.us/photo/my-images...120407001.jpg/

mailcomx 2013-10-19 13:03

Re: Printing with N900
 
I want to print

I need to print via Wifi an excel document with my n900. Is this possible? I only found URPO. Apparently not compatible with this type of files....Is there an alternative?

peterleinchen 2013-10-19 22:32

Re: Printing with N900
 
Quote:

Originally Posted by mailcomx (Post 1381415)
I want to print Excel file
.Is there an alternative?

xls may be opened by SheetToGo (DocumentsToGo), but there is no possibility to print from that application.
So only chance to achieve that would be to use EasyDebian, configure CUPS on that and use OpenOffice/LibreOffice (did not test myself, but did with leafpad and lp itself).
But I may warn you, it could be a time intensive task...

mailcomx 2013-10-20 03:35

Re: Printing with N900
 
I'll try to Easy Debian. :)


All times are GMT. The time now is 08:11.

vBulletin® Version 3.8.8