GithubHelp home page GithubHelp logo

Feature: mirror mode? about mons HOT 4 CLOSED

ventto avatar ventto commented on July 30, 2024
Feature: mirror mode?

from mons.

Comments (4)

Ventto avatar Ventto commented on July 30, 2024 4

So, this is the current duplicate mode (left - preferred screen, right - projector):
screen_dup

You would like a mirror mode as given below:
screen_mirror

You don't want your screen "to crop" its view to fit the projector one (see 1st image).
You want to scale the projector size as your screen.

Is it correct ?

For the mirror mode as suggested here:

xrandr --fb 1920x1080 --output VGA-1 --mode 1680x1050 \
       --scale-from 1920x1080 --output LVDS-1 --mode 1920x1080 \
       --scale 1x1 --same-as VGA-1
  • VGA-1: projector screen
  • LVDS-1: the preferred screen
  • 1680x1050: projector's size
  • 1920x1080: screen's size

man xrandr for --fb option:

--fb widthxheight
  Reconfigures  the  screen to the specified size. All configured monitors must fit within this size.
  When this option is not provided, xrandr computes the smallest screen size that will hold  the  set
  of configured outputs; this option provides a way to override that behaviour.

After some experiments, this is the shortest line that works:

xrandr --output VGA-1 --auto --scale-from 1920x1080 --output LVDS-1

Does it work for you ?
(Please, replace the monitor names and sizes with yours)

from mons.

kaihendry avatar kaihendry commented on July 30, 2024 2

Made a video celebrating your help! https://www.youtube.com/watch?v=0h8i2KpkwTk

from mons.

Ventto avatar Ventto commented on July 30, 2024

I updated the AUR package.

from mons.

kaihendry avatar kaihendry commented on July 30, 2024

Sorry, only had the chance to test it now.

~$ xrandr
Screen 0: minimum 8 x 8, current 2560 x 1440, maximum 32767 x 32767
eDP1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 310mm x 170mm
   2560x1440     60.00*+  48.00
   1920x1440     60.00
   1856x1392     60.01
   1792x1344     60.01
   2048x1152     60.00
   1920x1080     60.00
   1600x1200     60.00
   1400x1050     59.98
   1600x900      60.00
   1280x1024     60.02
   1280x960      60.00
   1368x768      60.00
   1280x720      60.00
   1024x768      60.00
   1024x576      60.00
   960x540       60.00
   800x600       60.32    56.25
   864x486       60.00
   640x480       59.94
   720x405       60.00
   640x360       60.00
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 600mm x 340mm
   1920x1080     60.00*+  50.00    59.94
   1920x1080i    60.00    50.00    59.94
   1280x1024     75.02    60.02
   1152x864      75.00
   1280x720      60.00    50.00    59.94
   1024x768      75.03    60.00
   800x600       75.00    60.32
   720x576       50.00
   720x576i      50.00
   720x480       60.00    59.94
   720x480i      60.00    59.94
   640x480       75.00    60.00    59.94
   720x400       70.08
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
~$ xrandr --output HDMI2 --auto --scale-from 2560x1440 --output eDP1

WORKS GREAT! Wish I knew this before! Thank you, thank you! 🙇‍♂️

Mons mirror

from mons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.