LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-14-2008, 09:49 AM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Rep: Reputation: 39
Using xwd on the second screen of a two-screen setup


Hi there --

I have a Fedora-like system running a medical application that has two monitors attached to it. I am using the xwd utility to get the screen-captures. The command syntax that is in use is the following:

Code:
xwd -d 0:0 -out "fileout.xwd"
The above syntax enables captures on the first, or left, screen. I would like to do the same on the second, or right, screen. Is this possible, and if so, what would the command syntax be to use? Thanks.
 
Old 10-16-2008, 11:15 PM   #2
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
Personally I would use the import command instead, since you can save it in your favourite format, and has more options, eg:
Code:
import -window root ~/screenshot-$(date +%F--%H-%M-%S).png
A quick test with my own root window gave more than 90% reduction in image size, and png is probably more portable than xwd. I suppose you could use xwdtopnm and then pnmtopng but that seems unnecessary.

I'm assuming that since you can't grab images from the second screen that you're using Xinerama. You would have to initiate the xwd command above from a terminal open on the second screen. If you're using an NVidia video card, I understand that TwinView doesn't have this limitation and is faster to boot.
 
  


Reply



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
Screen capture using xwd, xpr and lpr felton57 Red Hat 3 10-13-2023 02:06 PM
still cant capture the screen using "xwd" coderphp Linux - Newbie 10 04-27-2007 09:48 PM
Blank screen during Suse 10.2 setup tm2383 SUSE / openSUSE 7 04-03-2007 06:16 AM
Login / Welcome screen re-setup sir-lancealot! Linux - Desktop 1 01-22-2007 02:39 PM
Screen Setup and Mounting Floppy jrdioko Slackware 1 06-16-2003 05:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:30 PM.

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
Open Source Consulting | Domain Registration