You are not logged in.

#1 2020-06-18 09:46:25

pptp
Member
Registered: 2020-04-15
Posts: 22

[solved] cups and gtk unix print: first page upside down

From two different pdf viewers (zathura and xournal++) when I print a document (two sided, long edge) the first page is upside down, while all the following are fine.
I print thorugh gtk unix print dialog (e.g. in zathura :print), and I have cups installed and configured.
Is this a result of missing packges or wrong configuration?
I have another machine with Arch that can print fine the same document from the same printer, however that machine has full gnome, while I use dwm.

Last edited by pptp (2020-06-21 18:51:02)

Offline

#2 2020-06-19 07:54:32

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: [solved] cups and gtk unix print: first page upside down

Have you tried printing the same document from the command line using lpr?
If that works correctly, then it could be a per-user setting so you could try using a newly created user to print the same document.
If that does not work correctly, check your system-wide printer settings using the cups web interface.

You could also try the evince pdf viewer.

Cheers
Paul.

Offline

#3 2020-06-19 08:41:28

pptp
Member
Registered: 2020-04-15
Posts: 22

Re: [solved] cups and gtk unix print: first page upside down

Thanks, I will try that.
Just as a reference for me: the printer is shared via smbclient. It was installed as

sudo lpadmin -p "$PRINTER_NAME" -v smb://... -i "$PPD_FILE" -o printer-is-shared=false -o printer-op-policy=authenticated -o auth-info-required=username,password -o ColorModel=Gray -o Finisher=FinRUBICONB -o RIPostScript=Adobe -u allow:all -E

While I can print via the gtk unix print, which is able to access user/pwd stored in my keyring (keepassxc), the lpr command fails with

"Session setup failed: NT_STATUS_LOGON_FAILURE" 	Held for authentication. 

Of course, I can connect with smbclient.

Offline

#4 2020-06-19 09:55:24

pptp
Member
Registered: 2020-04-15
Posts: 22

Re: [solved] cups and gtk unix print: first page upside down

As per your suggestion, I could narrow down the puzzle: if I install evince, which brings in

$ sudo pacman -S evince
Packages (3) gsfonts-20180524-3  gspell-1.8.3-1  evince-3.36.6-1

then both zatura and evince print correctly from my user.
If I then remove it, I'm back to the problem with zathura.

In particular, if I install only gsfonts, then zathura prints correctly.
I'm unable to print with lpr, because smbspool fails with same NT_STATUS_LOGON_FAILURE (perhaps my password has strange characters, or I'm inputting user the wrong way in DEVICE_URI), while with smbclient I can print but only one-sided, as I cannot find a reference how to print two-sided.

Last edited by pptp (2020-06-19 10:32:29)

Offline

#5 2020-06-20 16:12:13

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: [solved] cups and gtk unix print: first page upside down

So to confirm, installing gsfonts solves this for you then?
I don't use samba so cannot comment on lpr not working in your case, but this is irrelevant if it's working using zathura or evince.

Cheers
Paul.

Offline

#6 2020-06-20 17:15:17

pptp
Member
Registered: 2020-04-15
Posts: 22

Re: [solved] cups and gtk unix print: first page upside down

paulkerry wrote:

So to confirm, installing gsfonts solves this for you then?

Yes, thank you.
Should it then be a made a dependence of zathura?

I wrote more details just as a reference for myself smile

Offline

#7 2020-06-21 13:21:58

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: [solved] cups and gtk unix print: first page upside down

Glad you are sorted and maybe - it might be something to do with your particular setup?
Remember to prepend "[SOLVED] to your first post.

Offline

Board footer

Powered by FluxBB