Multi-Monitor DWM/Xorg Configuration

Sdílet
Vložit
  • čas přidán 24. 07. 2024
  • In this video I show you how to configure Xorg with DWM on a multi monitor setup.
    ₿💰💵💲Help Support the Channel by Donating Crypto💲💵💰₿
    Bitcoin
    3MMKHXPQrGHEsmdHaAGD59FWhKFGeUsAxV
    Ethereum
    0xeA4DA3F9BAb091Eb86921CA6E41712438f4E5079
    Litecoin
    MBfrxLJMuw26hbVi2MjCVDFkkExz8rYvUF
    Dash
    Xh9PXPEy5RoLJgFDGYCDjrbXdjshMaYerz
    Zcash
    t1aWtU5SBpxuUWBSwDKy4gTkT2T1ZwtFvrr
    Chainlink
    0x0f7f21D267d2C9dbae17fd8c20012eFEA3678F14
    Bitcoin Cash
    qz2st00dtu9e79zrq5wshsgaxsjw299n7c69th8ryp
    Etherum Classic
    0xeA641e59913960f578ad39A6B4d02051A5556BfC
    USD Coin
    0x0B045f743A693b225630862a3464B52fefE79FdB
    Subscribe to my CZcams channel goo.gl/9U10Wz
    and be sure to click that notification bell so you know when new videos are released.
  • Věda a technologie

Komentáře • 129

  • @Gamer-is6ew
    @Gamer-is6ew Před 3 lety +45

    No Idea what I've just watched but thank you CZcams algorithm, very cool!

  • @poisonthrumyveins
    @poisonthrumyveins Před 3 lety +11

    I'm actually fairly new to Linux and decided to roll with a fresh Arch install with i3 despite what others might suggest. Reading the documentation and watching your videos has helped tremendously

    • @samienr
      @samienr Před 3 lety +3

      I did the same, I'd say it was one of my best decisions. Enjoy Arch!

  • @UltraNyan
    @UltraNyan Před 3 lety +106

    I use the lifehack of reordering my monitor cables coming from GPU, lazy mans solution.

    • @theglowingone5643
      @theglowingone5643 Před 3 lety +46

      "An idiot admires complexity, a genius admires simplicity"
      -Terry A. Davis

    • @etaxalo
      @etaxalo Před 3 lety

      A fellow man of simplicity. Hello there.

    • @sersoft_corp
      @sersoft_corp Před 3 lety +4

      I just go into Nvidia panel, and combine my 3 monitors into one, giant 11520x2160 screen (so that games don't complain) lol

    • @DulceSeeker
      @DulceSeeker Před 3 lety

      @@sersoft_corp weak check mine

    • @sersoft_corp
      @sersoft_corp Před 3 lety

      @@DulceSeeker 1 of my screens is bigger than all 8 of those lol

  • @zweitlander874
    @zweitlander874 Před 3 lety +9

    Really helped a lot, now I can finally use my 2 monitors with dwm and have the second not just mirror the first monitor.

  • @jtsiomb
    @jtsiomb Před 2 lety +23

    DVI-D, which you're using, is not analog. The D stands for digital, and it's identical to HDMI. You can go from one to the other with a passive connector adaptor.

  • @gwoob9818
    @gwoob9818 Před 3 lety +4

    This is actually really helpful. Thank you. :)

  • @Peshyy
    @Peshyy Před 3 lety +8

    When I don't need a very custom configuration with refresh rates and whatnot, I just use arandr in a combination with autorandr - makes my life way easier

  • @josh1234567892
    @josh1234567892 Před 2 lety +1

    Wow I'm an idiot, I had so much trouble with this because I was using the xrandr command multiple times instead of doing it in one big long command. Thanks for the clarification lmao you probably saved me a good few more hours.

  • @princemjmc
    @princemjmc Před 3 lety +3

    Awesome Tutorial!. I'm Really Looking Forward To Using This I'm Still Wishing :D

  • @yaboi_sakurai
    @yaboi_sakurai Před rokem

    This is EXACTLY what I needed, thanks!

  • @gayusschwulius8490
    @gayusschwulius8490 Před 3 lety

    I was always shy to switch to DWM from i3 because I use multiple monitors, this is a sign from god!

  • @Gurov-
    @Gurov- Před 8 měsíci

    The most helpful video out there ❤

  • @PCNERD19
    @PCNERD19 Před 3 lety +2

    How would I go about setting up a monitor that's rotated on it's side, and also largely lowered from the other monitors?

  • @DannyMexen9
    @DannyMexen9 Před 3 lety +1

    That's 27 tags. I love it.

  • @francescominnocci
    @francescominnocci Před 3 lety +1

    Thanks man, really usefuol stuff!

  • @UntrackedEndorphins
    @UntrackedEndorphins Před 3 lety +1

    3 monitors? this man is bathing in productivity!

  • @natetolbert3671
    @natetolbert3671 Před 2 lety

    The gui program is part of the problem for me. I had it set with xrandr, but when I tried moving them into the proper order (e.g. no more 'mouse cursor behind the back and onto the next display' trick shots required), everything went all Metallica and 'fade to black' on me. When I got it reloaded, only one monitor / output shows both through gui settings (Ubuntu) and when running `xrandr`.

  • @ichaa3tech
    @ichaa3tech Před 3 lety +5

    Thanks . didnt know the xorg.conf part

    • @J3zu5
      @J3zu5 Před 3 lety +4

      اول مره اشوف عربي مهتم بي لينكس !

    • @ichaa3tech
      @ichaa3tech Před 3 lety +2

      @@J3zu5 ههه يا حبيبي العرب كانوا سباقين فيه من بداياته . و لهم مشاركات كبيرة . لكن الغالبية العظمى من العرب يظنون ان لينكس هو الهاك . اطفال .

  • @alik250
    @alik250 Před 3 lety +1

    My problem with most desktops is their multi-monitor support. Having a laptop that i dock into a docking station with monitors hooked up, and most desktops just can't get my setup right. I have to use a small script and just run it manually whenever i notice it's broken, but, hey, at least that works

  • @yourlinuxguy
    @yourlinuxguy Před rokem +1

    Hey, Is there a way to use two GPU's like one iGPU for the internal dispaly and the dGPU for the external display?

  • @pichonPoP
    @pichonPoP Před 3 lety

    Nice one bro. BTW, how do you get the config that it show us the name of the active window??

  • @MrFreeze79
    @MrFreeze79 Před 3 lety +2

    my MX Linux is only showing 1 of my monitors, out of 3. how do I get it to discover my other monitors ?

  • @saavestro2154
    @saavestro2154 Před 3 lety

    What happens if you unplug the monitors on the run, would all workspaces go back to the main monitor? Then what happens if you plug the monitors back, would you need to reboot or rerun commands? How would you automate this?

  • @moris7361
    @moris7361 Před 3 lety

    how would one go about setting additional monitors above the primary monitor?

  • @cpincpersonal
    @cpincpersonal Před 27 dny

    Hi there. Thanks for this helpful video. That is a clear explanation of how to the get the monitors lined up upon Linux OS startup. Now, beyond this tutorial, how would I combine those 3 monitors for a total resolution of 5760x1080?
    In other words, how to combine it the same way NVidia Surround does it on Windows??
    Thanks!

  • @n0kodoko143
    @n0kodoko143 Před 3 lety +7

    might be shunned for not being 'chad' enough, but arandr makes light work for this (after manually configuring and making scripts for xrandr, once I found arandr, I haven't looked back).

  • @coolyellowskeleton
    @coolyellowskeleton Před 2 lety

    I have two 1920x1080 monitors but one is smaller than the other, is there any way to set the physical size of the display in xorg so the mouse moves seamlessly between monitors?

  • @je12emy
    @je12emy Před 3 lety

    Worked great but how do I to set screen resolution and refresh rate in .conf?

  • @lucminax
    @lucminax Před 3 lety +1

    Thanks for the video! It came in very handy ^^
    I'm curious tho, is there a way to configure a keybinding for focusing tags on another monitor? I've found the "tagothermonitor" patch but that only allows for moving windows, not focusing a tag.
    I just got a multi-monitor setup for the first time and it's kinda driving me nuts to have to move my mouse every time I want to switch focus.
    Edit: Found the focusmon function, which simply focuses a monitor, and used it to also write my own function to focus a specific tag on that monitor with one keystroke. Problem solved :)

  • @JohnBrown-of4pw
    @JohnBrown-of4pw Před 3 lety

    I followed your arch installation but on my current laptop I could only afford to give 1 gig of memory to test it out, I’m new to Linux, and a windows manager might be something I use in the future, but I’m not there yet, I ran xfce as my desktop environment and customized it a little, the only problem is CZcams is unwatchable on fire fox, and internet is slow, is there a fixable solution with xfce or is 1 gb of memory just not enough

  • @minhajsixbyte
    @minhajsixbyte Před 3 lety

    I don’t have any external monitor for my laptop. My raspberry pi is also running headless. I should buy monitor soon

  • @bruno_88
    @bruno_88 Před 2 lety +1

    hey man!
    when I executed this command xrandr not detected another screens just show a main screen.
    I'm using geforce CTX 1050 , I tried install all drive of NVIDIA but not success to detected a second monitor, please can you help me to fix this problem?
    by the way,I researched in some site, blogs etc, but also I not find a solution.
    thanks.

  • @clouddaemon4828
    @clouddaemon4828 Před 3 lety

    Does this configuration makes the monitors separate screen? Eg screen 0, screen 1..

  • @purplewarrior1830
    @purplewarrior1830 Před 3 lety

    How do you do this for an even number of monitors that are more than 2 ?
    Like if there were 4 ?

  • @sivertsther3791
    @sivertsther3791 Před 3 lety

    been fuckin with awesome wm on my arch desktop, fantastic video

  • @censoredterminalautism4073

    I just improved my monitor setup today, because another crap LCD monitor died in a way that is probably worth fixing considering that I'm going to move anyway. Half of the screen died spectracularly, and now I only have my CRT that I got for free from a guy's attic, that works perfectly because it's frankly better in every way. Now I only have one monitor (that happens to be superior technology from the future), which is less bloated because it requires no configuration, and I also have more space on my table.

    • @BringMayFlowers
      @BringMayFlowers Před 2 lety +1

      Based. I just got myself a CRT that does 1600x1200@85, best purchase of my life.

    • @censoredterminalautism4073
      @censoredterminalautism4073 Před 2 lety +1

      @@BringMayFlowers Incredible. How big is it? No need to measure everything if it's too much of a pain. Just the width and/or the height is enough. The Pythagorean theorem and maybe some proportionality take care of the rest.
      There are some 40 inch CRTs out there, which is insane. I even heard of one that supposedly had VGA before.

    • @BringMayFlowers
      @BringMayFlowers Před 2 lety +1

      @@censoredterminalautism4073 19 inches. Even the biggest CRTs that do crazy resolutions like 2304x1440 only get up to 23 inches.

    • @censoredterminalautism4073
      @censoredterminalautism4073 Před 2 lety +1

      @@BringMayFlowers Still good, though, and for most old games you don't need high resolutions anyway, so you can have a bigger screen for that too, like for console and arcade games. My TV is 20 inches and my monitor is 17, so you have a much better resolution, but with almost the same size as my TV.

    • @BringMayFlowers
      @BringMayFlowers Před 2 lety

      @@censoredterminalautism4073 Having high refresh at high resolutions both gives you more real estate on the desktop and new games and higher refresh rates at lower resolutions. For example, the ADC Studio Display gets 65Hz at 1600x1200 and 160Hz at 640x480, so having an even faster high res proves the h-sync is higher and the flyback transformer can handle faster refresh.

  • @kevyyar
    @kevyyar Před 2 lety

    damn PopOS doesn't recognize my monitor connected through a VGA. Are all distros not recognizing VGA connected monitors?

  • @virgiliomurilloochoa2884

    is there a way to arrange one monitor up and an other down?

  • @RobsonLanaNarvy
    @RobsonLanaNarvy Před 3 lety

    I can't wait to try WM like those, but I am to dumb to get it done in Artix Linux; I would try a lazy solution first

  • @belowpovertylineminority

    I have a 6900xt and a gtx 1070. I can’t get my two supplement monitors running off the 1070 to work for the life of me. I’m attempting to run all open source drivers but it brokey.

  • @sumitkumardash9536
    @sumitkumardash9536 Před 3 lety

    my second monitor doesn't even detect in xrandr..any ways to solve?

  • @motif5775
    @motif5775 Před 3 lety

    Thank you!!

  • @anshsrivastava1059
    @anshsrivastava1059 Před 3 lety

    Unfortunately Xorg doesn't support freesync in multi-monitor setups and I don't like Sway.

  • @AwesomeMediaify
    @AwesomeMediaify Před 3 lety

    I didn't know that arandr is most bloated software out there. Thanks for giving us tutorial on xrandr

    • @MentalOutlaw
      @MentalOutlaw  Před 3 lety +1

      You're welcome.

    • @AwesomeMediaify
      @AwesomeMediaify Před 3 lety

      @@MentalOutlaw serious question. Do you really use minimalist nonbloated software on everyday basis or this is more for luring people into learning new things? I had laptop with really low specs and i was relaying on minimalist software in order to keep it functional. Recently I've got a new laptop with descent specs and i am completely thrown off using minimalist software. What is it going to do? Eat the 1% of the cpu and ram usage? Anyways i love your content and keep the good work!

    • @wumi2419
      @wumi2419 Před 3 lety

      @@AwesomeMediaify I moved from full DE to i3 and then XMonad partially because my laptop is piece of crap that uses 1/4 of it's processing power on empty Plasma and partially because i like using TWMs.
      Also minimalist software is often less distracting, depends on your config though.But I don't really like full on suckless software, since imo it's going too far with fight against bloat.

  • @micycle8778
    @micycle8778 Před 3 lety +1

    You forgot about talking about configuring DWM for use with multiple monitors.

    • @user-yo7hz8gw4t
      @user-yo7hz8gw4t Před 3 lety +1

      Right now I'm running DWM still unconfigured, no changes to the source code at all yet. It just starts working in the second monitor right away whenever I start it with xrandr (usually from .xinitrc because xorg config is not working for me, will figure out later). Is there any additional config I should know of? The suckless website doesn’t mention anything else under "multi monitor". I've been doing this for about two weeks.

  • @f23anone82
    @f23anone82 Před 3 lety

    What if I don't have xorg.conf? I set up everything in autostart.sh for qtile, is that ok?

    • @purplewarrior1830
      @purplewarrior1830 Před 3 lety

      kill your X server, then run Xorg -configure as root in your tty. that will produce a xorg.conf.new in /root. move that to /etc/X11 and rename it xorg.conf

  • @ShadowHolder748
    @ShadowHolder748 Před 3 lety +1

    With gnome it's impossible for me to use multiple monitors because one is 144hz and one is 60hz and it just caps everything to 60hz so I have to use wayland which while better and more modern is not very compatible :\

    • @ArtixBTW
      @ArtixBTW Před 3 lety

      Roland W-H Installing xwayland should help with that

    • @Vollex_
      @Vollex_ Před 3 lety

      You should be able to configure the refresh rate in the display settings, as far as I know gnome supports displays with different refresh rates on xorg

  • @moris7361
    @moris7361 Před 2 lety

    Anyone found a tool to fix scaling automatically?

  • @DFOwl
    @DFOwl Před 2 lety

    If I turn off my laptop monitor while setting the external monitor as primary, the output begins to lag a lot. The interesting thing is that dwm itself keeps running fine, but every application running within dwm begins to run at like 1 fps. Is there any solution to this?

    • @yourlinuxguy
      @yourlinuxguy Před rokem

      did you find any solutions for this?

    • @DFOwl
      @DFOwl Před rokem

      @@yourlinuxguy switched to GNOME and forgot all of my troubles with switching. Now I'm having problems with Xorg - if I disconnect inputs while it's suspended, Xorg crashes. Oh well.

    • @yourlinuxguy
      @yourlinuxguy Před rokem

      @@DFOwl Well I have this issue.,Could you pleae help me with setting up my dual monitor setup, I want to use my iGPU AMD for my laptops internal display, and my dGPU for my extenrnal monitor that will be connected through the HDMI. I'm using arch-linux on my HP Laptop with AMD R5, and Nvidia RTX 3050. I have tried to do these things on my own, but either my iGPU will display both the monitors or either my dGPU will only show the External Monitor. Many people are saying that X can't do this move to wayland, if I don't find a solution soon enough I will move to wayland. Thanks. I'm on arch linux kde

  • @elchicovip01
    @elchicovip01 Před 3 lety +3

    I guess that DVI does not stand for Digital Video Interface.

    • @censoredterminalautism4073
      @censoredterminalautism4073 Před 3 lety

      That's correct, it does mean that, but DVI can be analog, digital or both. It has VGA compatibility, so you can do passive "conversions" (not even the right term, because they exactly the same, from what I remember) between them. Personally, I have ever even used it, I always used VGA, and it's still what I do to this day, but if I only had a DVI port, I would use a passive adapter, because it should have no delay at all, since the DVI analog pins basically are VGA.

    • @censoredterminalautism4073
      @censoredterminalautism4073 Před 3 lety

      DVI-D is digital, though. DVA-A is analog.

    • @tacokoneko
      @tacokoneko Před 3 lety

      i use displayport

    • @elchicovip01
      @elchicovip01 Před 3 lety

      @@censoredterminalautism4073 DVI-D carry sound and power I believe. DVI-A only carry video and is cheaper to make.

  • @theplaymakerno1
    @theplaymakerno1 Před rokem

    Outlaw, how do we deal with the linux DPI scaling issue for different monitor resolutions?

    • @drakzov
      @drakzov Před rokem +1

      you can use --scale for each of your monitors when running xrandr

    • @theplaymakerno1
      @theplaymakerno1 Před rokem

      Thank you. Scaling my main monitor down produces very bad results though. Also, games cannot pick up the original HiDPI resolutions either when scaled down.

  • @callisoncaffrey
    @callisoncaffrey Před 3 lety

    Three Mental Outlaw videos get a like.

  • @MegaJefflin
    @MegaJefflin Před 3 lety +1

    X windows always drives me crazy, when every monitor has different resolutions…Wayland though is better for multi screens, but Nvidia…..

  • @Rustyuoiman
    @Rustyuoiman Před 3 lety

    This is a helpful video but have you ditched windows XP now?

  • @petarscepanovic2506
    @petarscepanovic2506 Před 3 lety

    I have question, how do you restart xorg after changing it?

  • @nissengummihone
    @nissengummihone Před 3 lety +3

    Please try Wayland, it handles multi monitor much better :)

    • @dachd
      @dachd Před 3 lety +3

      DWM can't do Wayland but there is a DWL in development.

    • @wilfridtaylor
      @wilfridtaylor Před 3 lety +2

      Nvidia ;(

    • @dachd
      @dachd Před 3 lety

      @@Ultr4noob Or DWL, it uses wlroots same as Sway does.

    • @nissengummihone
      @nissengummihone Před 3 lety

      @@Ultr4noob yes I know. He should probably try Sway, Wayfire or DWL

    • @nissengummihone
      @nissengummihone Před 3 lety

      @@Ultr4noob Sway is probably the best one. I use it as a daily driver. Havin proper VRR support on multi monitor is amazing.

  • @theredtechengineer1480
    @theredtechengineer1480 Před 3 lety +2

    Now how do you do this in wayland

  • @tacokoneko
    @tacokoneko Před 3 lety

    if you use NVIDIA with the NVIDIA proprietary driver for Linux none of this works period and you MUST interface with the NVIDIA driver in the ways described by NVIDIA's driver documentation
    that is why i bought amd

  • @mcry
    @mcry Před 3 lety

    Anyone! Where can I find a Windows XP .iso file, I would like to relive the old days!

    • @heliophane
      @heliophane Před 3 lety

      Duck it, look on ebay, try to find a video that teaches you how to install it from a video(they normally provide the isos)

    • @____-gy5mq
      @____-gy5mq Před 3 lety

      Build it yourself.

    • @purplewarrior1830
      @purplewarrior1830 Před 3 lety

      @@____-gy5mq Legitimate response since the source code leak

  • @cestarianinhabitant5898

    what if one of my monitors has a higher resolution (like an UHD monitor and a FHD monitor) where you need different DPI settings per screen? (GAME OVER!)
    what if one of my monitors has a high refresh rate and the other does not? (Everything goes to shit is what!)

    • @integralogic
      @integralogic Před 3 lety +1

      I feel ya, I love Linux but updating my distro only to have to deal with black screens again hardly counts in my life as functionl technology.
      Linux needs iron out their video/display bullshit if they ever want to be a true contender.

  • @ankylosis751
    @ankylosis751 Před 3 lety +1

    Would my computer get hacked?

  • @mfrederikson
    @mfrederikson Před 2 lety

    Imagine still using X11... chuckle

  • @LloydLynx
    @LloydLynx Před 3 lety +2

    Where my wayland gang at

  • @eccomi21
    @eccomi21 Před 2 lety

    somehow Xorg is not taking instructions from my xorg.conf. i then tried to move it into the xorg.conf.d directory and rename it to 10-monitor.conf which should work, but doesn't work either. changing the monitor settings with xrandr works fine on the other hand. i am confused and could use some help

  • @7xr1e20ln8
    @7xr1e20ln8 Před 3 lety

    Who the hell with an e-peen still running xorg. Its all wayland and sway baby.

  • @keksmlg
    @keksmlg Před 3 lety

    GUYS USE ARANDR FOR F SAKE

  • @imjoeking_
    @imjoeking_ Před 3 lety +2

    All this for something macOS and windows does instantly...

    • @user-yo7hz8gw4t
      @user-yo7hz8gw4t Před 3 lety

      If you used a DE this would also be done instantly, this is mostly for those who prefer using only a WM like DWM. So in this case, this likely isn’t anything out of the ordinary for the people who prefer this config, as you already had the trouble of installing a WM yourself.

    • @Coffeeratgaming
      @Coffeeratgaming Před 3 lety

      this isnt a windows issue this just a minimalist issue if u see this even as issue its just simpler more rock solid consistency

  • @integralogic
    @integralogic Před 3 lety +3

    Gotta love linux, want to setup 3 or 2 monitors? Shit barely works, or requires a a tinkering progress that takes 3 hours and good god if you update anything, or have an ATI card.
    Literally the reason I do not use Linux

    • @Aresydatch
      @Aresydatch Před 3 lety

      Windows rules baby

    • @integralogic
      @integralogic Před 3 lety

      @@Aresydatch microsock is owned by a Gates which is probably a CIA operation/asset. Windows isnt morally good, but it works. Linux is morally just, but autist level focus is required.

    • @Aresydatch
      @Aresydatch Před 3 lety

      @@integralogic Gates doesn’t own MS anymore and not even the CEO Satya Nadella is the new one

    • @deepakshivraj4881
      @deepakshivraj4881 Před 3 lety

      @@Aresydatch He still has major stocks in windows and once u go linux way u just cat even imagine going back too win or mac bcoz u would feel like giving up all ur powers back

  • @srobart
    @srobart Před 3 lety

    Gentoo? You know Arch exists, right? ;)

  • @ivanguerra1260
    @ivanguerra1260 Před 3 lety

    Oh man, always all that configuration, Why is not possible to do that in one click ? !!

    • @user-yo7hz8gw4t
      @user-yo7hz8gw4t Před 3 lety

      Just use arandr to generate a script, then. Load it from .xinitrc and everything works. "All that configuration" is just for fine tuning.