Coder Social home page Coder Social logo

screen-resolution-switcher's People

Contributors

lgarron avatar th507 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

screen-resolution-switcher's Issues

Unable to list or manage multiple resolutions

The current master branch is unable to list the resolution on multiple screens.

Expected output (available on commit 9f33910):

# ./scres.swift -l
Display 0:         2880 x 1800 @ 1x @ 60Hz
Display 1:         3840 x 2160 @ 1x @ 60Hz
#

Actual output (on master):

# ./scres.swift -l
Display 0: 2880 x 1800 @ 1x @ 60Hz
#

In looking at the code (both manually and using git bisect) it seems the next commit (f4fca5e) is the culprit. It creates an array of size 1 rather than use the previous maxDisplays value. This seems to limit the tool to managing only the internal display.

This mode is unavailable

Not working when trying to change resolution of the Mac mini without monitor connected I am getting
./scres.swift -s 0 3072 1920
This mode is unavailable

how would i select out of two resolutions that start with same width

For example, lets say my list of resolutions for display 0 is as below
Supported Modes for Display 0:
1440 * 900 @ 60Hz
1152 * 720 @ 60Hz
1024 * 768 @ 60Hz
1024 * 640 @ 60Hz
1280 * 800 @ 60Hz
800 * 600 @ 60Hz
800 * 500 @ 60Hz
640 * 480 @ 60Hz
720 * 480 @ 60Hz

if I am using command "retina -s 0 1024", it is always selecting first resolution to switch. How can i select 1024640 resolution instead of 1024768.

Lower refresh rate is prioritized

First of all, thank you for this tool. I have a weird issue with M1 Mac mini and LG 4K display where the display resolution gets changed after sleep/wake, and while that is pretty annoying, I'm able to fix it pretty easily using the scres tool.

Now, the set command (-s) seems to find the first display resolution that matches with the input, and I can't find a way to provide the desired refresh rate. My display offers the same resolution in both 30Hz and 60Hz, and scres picks the 30Hz since it comes first, which is not what I want.

> scres -m | grep 3008
     3008 x 1692 @ 2x @ 30Hz
  ⮕  3008 x 1692 @ 2x @ 60Hz
     3008 x 1692 @ 1x @ 30Hz
     3008 x 1692 @ 1x @ 60Hz
> scres -s 3008
> scres -m | grep 3008
  ⮕  3008 x 1692 @ 2x @ 30Hz
     3008 x 1692 @ 2x @ 60Hz
     3008 x 1692 @ 1x @ 30Hz
     3008 x 1692 @ 1x @ 60Hz

I'm currently working around by hard coding to always prefer 60Hz in the code, but would be nice if the -s command accepts the refresh rate as well, or sort the configurations by the refresh rate after retina scaling so that higher refresh rate is preferred.

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.