LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-08-2013, 03:00 PM   #1
T-Dub116
Member
 
Registered: Aug 2013
Location: Dolyestown
Posts: 88

Rep: Reputation: Disabled
Linux lp - Print to a certain Tray


I have a Samsung SCX-5835_5935 Series.

I have plan paper in Tray 1 and Pre-printer paper in Tray 2.

I want to be able to print to Tray 2, when I want to print on the pre-printed paper. I have tried playing around with, lp and lpr

I found and tried this command in different ways:
lpr -P Samsung -o media=Tray2 ai.log

I have been trying all different things,

does anyone know how to specify a command to go to Tray2?

Last edited by T-Dub116; 11-08-2013 at 03:01 PM.
 
Old 11-08-2013, 04:10 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,394

Rep: Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652
It may not be defined as tray 1, tray2. The available media sources are defined in the printers PPD file. Look at the output of the command

lpoptions -P printer_name -l (that is a small L. replace printer_name with the actual spool name of the printer.)

If the Samsung is the default printer then -P printer_name is not required.
 
1 members found this post helpful.
Old 11-11-2013, 08:33 AM   #3
T-Dub116
Member
 
Registered: Aug 2013
Location: Dolyestown
Posts: 88

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
It may not be defined as tray 1, tray2. The available media sources are defined in the printers PPD file. Look at the output of the command

lpoptions -P printer_name -l (that is a small L. replace printer_name with the actual spool name of the printer.)

If the Samsung is the default printer then -P printer_name is not required.

# lpoptions -P Samsung -l
Usage: lpoptions [-h server] [-E] -d printer
lpoptions [-h server] [-E] [-p printer] -l
lpoptions [-h server] [-E] -p printer -o option[=value] ...
lpoptions [-h server] [-E] -x printer
 
Old 11-11-2013, 08:48 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,394

Rep: Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652
Oops, Try it with a lower case P...
lpoptions -p Samsung -l
 
1 members found this post helpful.
Old 11-11-2013, 10:12 AM   #5
T-Dub116
Member
 
Registered: Aug 2013
Location: Dolyestown
Posts: 88

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Oops, Try it with a lower case P...
lpoptions -p Samsung -l

# lpoptions -p Samsung -l
lpoptions: Destination Samsung has no PPD file!

how do I create one? this is a network printer added via
lpadmin -p Samsung -E -v lpd://192.168.1.20/Samsung
 
Old 11-11-2013, 10:19 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,394

Rep: Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652
So you didn't install a driver?
 
1 members found this post helpful.
Old 11-11-2013, 02:14 PM   #7
T-Dub116
Member
 
Registered: Aug 2013
Location: Dolyestown
Posts: 88

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
So you didn't install a driver?
No, printer is on the network added it to Linux redhat server with the command I said above...is there another way to find out what the tray's are call. Also, what would the command be if I new what the trays were called, for an example let's say that it is called tray2 what would the command be to sent a job to tray2?

Last edited by T-Dub116; 11-11-2013 at 02:16 PM.
 
Old 11-11-2013, 04:07 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,394

Rep: Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652
You can download the unified driver here:
http://www.samsung.com/ca/support/mo.../XAA-downloads

The ppd file is included in the tgz file.

It looks like the input options are:
Upper (multi-purpose tray)
Middle (tray 1)
Lower (tray 2)

lpr -o P printer_name -o media=Upper file.name

Last edited by michaelk; 11-11-2013 at 04:08 PM.
 
1 members found this post helpful.
Old 11-12-2013, 01:18 PM   #9
T-Dub116
Member
 
Registered: Aug 2013
Location: Dolyestown
Posts: 88

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
You can download the unified driver here:
http://www.samsung.com/ca/support/mo.../XAA-downloads

The ppd file is included in the tgz file.

It looks like the input options are:
Upper (multi-purpose tray)
Middle (tray 1)
Lower (tray 2)

lpr -o P printer_name -o media=Upper file.name

should there be a - in front of P? -P
 
Old 11-12-2013, 01:25 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,394

Rep: Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652
Yes..
lpr -P printer_name -o media=Upper file.name
 
1 members found this post helpful.
Old 11-12-2013, 01:28 PM   #11
T-Dub116
Member
 
Registered: Aug 2013
Location: Dolyestown
Posts: 88

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by T-Dub116 View Post
should there be a - in front of P? -P


# lpr -o -P Samsung -o media=lower edge_summary
.log
lpr: error - unable to access "Samsung" - No such file or directory


# lpr -o P Samsung -o media=lower edge_summary.
log
lpr: error - unable to access "Samsung" - No such file or directory

I also tried

lp -d samsung -o media=Lower edge_summary.log
lp -d samsung -o media=Middle edge_summary.log
lp -d samsung -o media=Upper edge_summary.log

All came from Tray 1
 
Old 11-12-2013, 01:31 PM   #12
T-Dub116
Member
 
Registered: Aug 2013
Location: Dolyestown
Posts: 88

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Yes..
lpr -P printer_name -o media=Upper file.name

Let me try this

lpr -P Samsung -o media=Lower edge_summary.log
 
Old 11-13-2013, 08:06 AM   #13
T-Dub116
Member
 
Registered: Aug 2013
Location: Dolyestown
Posts: 88

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Yes..
lpr -P printer_name -o media=Upper file.name

Still not having any luck, all coming from Tray 1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Print from specific tray cor9957 Linux - Hardware 3 04-27-2011 03:14 AM
Hp printers - Apps that print to Photo Tray flebber Linux - Software 0 11-25-2007 12:37 AM
tray icons showing on desktop instead of tray cjae Linux - General 3 09-21-2006 06:27 PM
what is the linux equivalent to a "print tray" M O L8ingN2dust Linux - Newbie 2 04-04-2005 09:43 PM
Cups says "Media tray empty!" but I have +50 sheets of paper in tray... r_jensen11 Linux - Hardware 8 09-07-2004 10:46 PM


All times are GMT -5. The time now is 11:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration