list active monitors

For interesting topics. But remember this is a Linux Forum. Do not post offensive topics that are meant to cause trouble with other members or are derogatory towards people of different genders, race, color, minors (this includes nudity and sex), politics or religion. Let's try to keep peace among the community and for visitors.

No spam on this or any other forums please! If you post advertisements on these forums, your account may be deleted.

Do not copy and paste entire or even up to half of someone else's words or articles into posts. Post only a few sentences or a paragraph and make sure to include a link back to original words or article. Otherwise it's copyright infringement.

You can talk about other distros here, but no MX bashing. You can email the developers of MX if you just want to say you dislike or hate MX.
Message
Author
User avatar
fehlix
Developer
Posts: 10375
Joined: Wed Apr 11, 2018 5:09 pm

Re: list active monitors

#11 Post by fehlix »

dolphin_oracle wrote: Wed Mar 06, 2019 9:27 am I could use a little data from the community.

For those of you with multiple monitors, could you post the output of

Code: Select all

xrandr --listactivemonitors

Code: Select all

xrandr --listmonitors

Code: Select all

xrandr --listproviders
Thanks!
This

Code: Select all

D="xrandr --"; for L in listactivemonitors listmonitors listproviders; do DO="$D$L"; echo -e "\n$DO"; $DO; done
gives this output:

Code: Select all

xrandr --listactivemonitors
Monitors: 2
 0: +*HDMI-0 1920/598x1080/336+0+0  HDMI-0
 1: +DVI-D-0 1680/474x1050/296+1920+0  DVI-D-0

xrandr --listmonitors
Monitors: 2
 0: +*HDMI-0 1920/598x1080/336+0+0  HDMI-0
 1: +DVI-D-0 1680/474x1050/296+1920+0  DVI-D-0

xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x279 cap: 0x1, Source Output crtcs: 4 outputs: 6 associated providers: 0 name:NVIDIA-0
Having rearranged my monitores witth this autostart entry
~/.config/autostart/HDMI_Dual_Monitor.desktop

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=HDMI_Dual_Monitor
Comment=Set my external HDMI Monitor as primary
Exec=bash -c 'sleep 4;  xrandr --output HDMI-0 --off ; xrandr --output HDMI-0 --primary --auto --left-of DVI-D-0'
OnlyShowIn=XFCE;
StartupNotify=false
Terminal=false
Hidden=false
Icon=cs-screen
Path=
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
dolphin_oracle
Developer
Posts: 20012
Joined: Sun Dec 16, 2007 1:17 pm

Re: list active monitors

#12 Post by dolphin_oracle »

great fehlix thanks!
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

Kulmbacher
Posts: 429
Joined: Fri Apr 27, 2018 2:47 pm

Re: list active monitors

#13 Post by Kulmbacher »

0 = Laptopdisplay, primary
1 = LG via DVI
$ xrandr --listactivemonitors
Monitors: 2
0: +*LVDS1 1366/340x768/190+0+0 LVDS1
1: +HDMI2 1920/510x1080/290+1366+0 HDMI2
$ xrandr --listmonitors
Monitors: 2
0: +*LVDS1 1366/340x768/190+0+0 LVDS1
1: +HDMI2 1920/510x1080/290+1366+0 HDMI2
$ xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x4b cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 3 outputs: 9 associated providers: 0 name:Intel
they called him, the fish!

User avatar
BitJam
Developer
Posts: 2283
Joined: Sat Aug 22, 2009 11:36 pm

Re: list active monitors

#14 Post by BitJam »

Code: Select all

$ xrandr --listactivemonitors
Monitors: 2
 0: +*DVI-I-1 1920/598x1080/336+0+0  DVI-I-1
 1: +VGA-1 1920/518x1200/324+1920+0  VGA-1

$ xrandr --listmonitors
Monitors: 2
 0: +*DVI-I-1 1920/598x1080/336+0+0  DVI-I-1
 1: +VGA-1 1920/518x1200/324+1920+0  VGA-1

$ xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x64 cap: 0x7, Source Output, Sink Output, Source Offload crtcs: 2 outputs: 3 associated providers: 0 name:nouveau
"The first principle is that you must not fool yourself -- and you are the easiest person to fool."

-- Richard Feynman

User avatar
dolphin_oracle
Developer
Posts: 20012
Joined: Sun Dec 16, 2007 1:17 pm

Re: list active monitors

#15 Post by dolphin_oracle »

Thanks guys I think that will do for now!
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

Post Reply

Return to “General”