LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-20-2016, 09:37 PM   #1
michalng
Member
 
Registered: Dec 2005
Distribution: Debian KDE / Fluxbox
Posts: 222

Rep: Reputation: 46
How to take screenshot of only the external monitor (with the laptop screen)


I am running Debian fluxbox on my laptop, connected to a external monitor. To take a screenshot of the entire (both screen), I can do the following:
Code:
user@somewhere:~$ import -window root -display :0.0 -screen 0.png
However, I only wanted the screenshot of the external monitor (without the laptop screen).


For completeness, I've tried the following and their corresponding message in konsole.
Code:
user@somewhere:~$ echo $DISPLAY
user@somewhere:~$ :0

Code:
user@somewhere:~$ import -window root -display :0.1 -screen 0.png
user@somewhere:~$ import: unable to open X server `:0.1' @ error/import.c/ImportImageCommand/364.


Thanks in advance for the help.
 
Old 08-20-2016, 11:45 PM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,716

Rep: Reputation: 554Reputation: 554Reputation: 554Reputation: 554Reputation: 554Reputation: 554
You only have one X 'screen' (which spans your two monitors - Xinerama).
You could set up separate screens in xorg.conf (with Xinerama = false), although that changes the way things function a bit - no dragging between etc.

... or just crop your screenshot.

Last edited by descendant_command; 08-20-2016 at 11:47 PM.
 
Old 08-21-2016, 10:56 AM   #3
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
As descendant_command says, you only have one X screen. Your window manager is handling the two monitors.

You can use the -window option to get a screen shot.

First, obtain the desktop window id on the monitor:
Code:
$ xwininfo -int

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 39845928 "Desktop — Plasma"

# more info follows
# . . .
Then:
Code:
import -window 39845928 -screen 0.png
 
1 members found this post helpful.
  


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
Laptop screen cracked can't connect to external monitor Mojo514 Linux - General 1 01-18-2016 04:34 AM
[SOLVED] Laptop with dead screen. Cannot get external monitor working under X. Slack 13.37 BashTin Slackware 10 08-16-2012 09:09 AM
Too many launcher bars? How to auto-select external monitor vs laptop screen JohnLocke Linux - Newbie 1 02-24-2012 01:09 PM
Installing into a laptop with non working screen using a external Monitor Plumbbob48 Linux - Newbie 2 05-11-2011 05:35 PM
External Monitor with VGA cable to Laptop --->Blue Screen alpharm Linux - Laptop and Netbook 2 11-02-2006 12:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration