Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: mirror mode? #9

Closed
kaihendry opened this issue Aug 22, 2017 · 4 comments
Closed

Feature: mirror mode? #9

kaihendry opened this issue Aug 22, 2017 · 4 comments

Comments

@kaihendry
Copy link

I notice you have a duplicate mode, but isn't some way to mirror exactly on the projector what I have on my screen?

https://superuser.com/questions/1243205/how-to-mirror-a-display-with-different-resolutions has further information about my issue.

@Ventto
Copy link
Owner

Ventto commented Sep 1, 2017

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)

Ventto pushed a commit that referenced this issue Sep 3, 2017
Ventto pushed a commit that referenced this issue Sep 3, 2017
Ventto pushed a commit that referenced this issue Sep 3, 2017
@Ventto
Copy link
Owner

Ventto commented Sep 3, 2017

I updated the AUR package.

@Ventto Ventto closed this as completed Sep 3, 2017
@kaihendry
Copy link
Author

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

@kaihendry
Copy link
Author

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

@Ventto Ventto changed the title mirror mode? Feature: mirror mode? Oct 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants