{"id":18770790,"url":"https://github.com/rasa/res_set","last_synced_at":"2025-12-12T01:30:12.622Z","repository":{"id":27505705,"uuid":"30986159","full_name":"rasa/res_set","owner":"rasa","description":"Display or change the monitor resolution, color depth, or refresh rate","archived":false,"fork":false,"pushed_at":"2015-05-21T03:59:29.000Z","size":260,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-29T07:42:34.070Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rasa.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-18T20:48:46.000Z","updated_at":"2024-06-16T17:03:52.000Z","dependencies_parsed_at":"2022-09-02T09:01:35.668Z","dependency_job_id":null,"html_url":"https://github.com/rasa/res_set","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasa%2Fres_set","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasa%2Fres_set/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasa%2Fres_set/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasa%2Fres_set/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rasa","download_url":"https://codeload.github.com/rasa/res_set/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239677961,"owners_count":19679173,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T19:21:30.433Z","updated_at":"2025-12-12T01:30:12.576Z","avatar_url":"https://github.com/rasa.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# res_set [![Flattr this][flatter_png]][flatter]\r\n\r\nDisplay or change the monitor resolution, color depth, or refresh rate.\r\n\r\n## Usage\r\n\r\n````\r\nres_set [options] [resolution]\r\n\r\nOptions:\r\n-w | --width      x   Set horizontal resolution to 'x' (min/max allowed)\r\n-h | --height     y   Set vertical resolution to 'y'   (min/max allowed)\r\n-b | --bits       bpp Set color depth (bits/pixel) to 'bpp' (min/max allowed)\r\n-f | --frequency  hz  Set refresh frequency to 'hz'    (min/max allowed)\r\n-o | --orientation  n Set display orientation to 'n' (0,90,180,270)\r\n-x | --positionx    n Set display x position to 'x'\r\n-y | --positiony    n Set display y position to 'y'\r\n-e | --mode         n Set display mode to 'n'\r\n-m | --monitor      n Set/get display settings for monitor number 'n'\r\n-M | --monitor-name x Set/get display settings for monitor named 'x'\r\n-i | --min            Use minimum supported value for width/height/bits/freq\r\n-a | --max            Use maximum supported value for width/height/bits/freq\r\n-q | --query          Show current display settings and exit\r\n-l | --list           List available display modes\r\n-L | --list-monitors  List the names of the monitors\r\n-Z | --raw            List all graphics modes (CAUTION!)\r\n                      Even those not supported by the current monitor\r\n-c | --current        Set/get current settings (not registry settings)\r\n-s | --save           Settings are permanently changed for the current user\r\n-g | --global         Settings are permanently changed for all users\r\n-r | --reset          Settings are changed, even if they are the same\r\n-R | --no-reset       Settings are stored, but will not take effect\r\n-p | --primary        Selected monitor will become the primary monitor\r\n-T | --temporary      Change is temporary in nature\r\n-t | --test           Tests if the requested graphics mode could be set\r\n-v | --version        Show version and copyright information and quit\r\n-? | --help           Show this help message and quit\r\n````\r\n\r\n## Examples\r\n\r\n````batch\r\n res_set -l 21                 \u0026 rem list the display modes\r\n res_set -e 21                 \u0026 rem set display to mode 21\r\n res_set xga                   \u0026 rem set resolution to 1024 x 768, depth/refresh to minimum for this resolution\r\n res_set -max xga              \u0026 rem set resolution to 1024 x 768, depth/refresh to maximum for this resolution\r\n res_set -w 800 -h 600         \u0026 rem set resolution to 800x600, depth/refresh to minimum for this resolution\r\n res_set 800 600               \u0026 rem same as above\r\n res_set -w 800 -h 600 -d 32 -r 60\r\n res_set -max                  \u0026 rem use highest supported resolution/depth/refresh values available\r\n res_set -max -f min           \u0026 rem use highest supported resolution/depth but the lowest refresh rate\r\n res_set -m 2 800 600          \u0026 rem set monitor 2's resolution to 800x600\r\n res_set -m 2 -x 200 -y -600 800 600 \u0026 rem set monitor 2's resolution to 800x600, and position to 200,-600\r\n````\r\n\r\nAlso\r\n````\r\n--refresh alias for --frequency\r\n--freq    alias for --frequency\r\n--bpp     alias for --bits\r\n--depth   alias for --bits\r\n-d        alias for --bits\r\n````\r\n\r\nYou can use / instead of - to preface single letter options, //width will *not* work.\r\n\r\nResolution can be entered as 'width height', or one of the following terms:\r\n\r\n````\r\n       Term      W    H Description\r\n------ ---- ---- -------------------------\r\nCGA     320  200 CGA 4-color, Atari ST 16 color, Commodore 64 VIC-II Hires, Amiga OCS NTSC Lowres, Apple IIGS LoRes, MCGA\r\nQVGA    320  240 QVGA, Mega Drive, Nintendo 3DS (lower screen)\r\nWQVGA   432  240 WQVGA\r\nHVGA    640  240 HVGA, Handheld PC\r\nEGA     640  350 EGA\r\nMDA     720  350 MDA\r\nD1      720  480 D1\r\nD1P     720  576 D1P\r\nVGA     640  480 VGA, MCGA (in monochome), Sun-1 color\r\nWVGA    768  480 WVGA\r\nWGA     800  480 WVGA or WGA, List of mobile phones with WVGA display, Nokia 770/800N/N810/N900, Asus Eee PC 700 and 701 series, Pandora\r\nFWVGA   854  480 FWVGA, List of mobile phones with FWVGA display\r\nSVGA    800  600 SVGA\r\nQHD     960  540 QHD[3], Quarter FHD (AACS ICT), HRHD, Motorola Atrix 4G\r\nWSVGA  1024  576 WSVGA\r\nDVGA    960  640 DVGA, Apple iPhone 4[5][6],4th Generation iPod Touch[7]\r\nXGA    1024  768 XGA, Apple iPad\r\n720p   1280  720 720p (WXGA-H, min.)\r\nWXGA-H 1280  720 720p (WXGA-H, min.)\r\nWXGA-  1280  768 WXGA, avg., BrightView\r\nXGA+   1152  864 XGA+[8]\r\nWXGA   1280  800 WXGA, max.\r\n720p+  1366  768 standardized HDTV 720p/1080i displays, HD\r\nHD     1366  768 standardized HDTV 720p/1080i displays, HD\r\nSXGA-  1280  960 SXGA-\r\nWSXGA  1440  900 WSXGA, WXGA+\r\nWXGA+  1440  900 WSXGA, WXGA+\r\nSXGA   1280 1024 SXGA\r\n900p   1600  900 900p, HD+\r\nHD+    1600  900 900p, HD+\r\nSXGA+  1400 1050 SXGA+\r\nWSXGA+ 1680 1050 WSXGA+\r\nUXGA   1600 1200 UXGA\r\n1080i  1920 1080 HD 1080 (1080i, 1080p), FullHD\r\n1080p  1920 1080 HD 1080 (1080i, 1080p), FullHD\r\nWUXGA  1920 1200 WUXGA\r\nQWXGA  2048 1152 QWXGA, 2K\r\n2K     2048 1152 QWXGA, 2K\r\nTXGA   1920 1400 TXGA\r\nQXGA   2048 1536 QXGA\r\nWQHD   2560 1440 WQHD (Dell UltraSharp U2711, Apple iMac)\r\nWQXGA  2560 1600 WQXGA\r\nQSXGA  2560 2048 QSXGA\r\nQSXGA+ 2800 2100 QSXGA+\r\nWQSXGA 3200 2048 WQSXGA\r\nQUXGA  3200 2400 QUXGA\r\nQFHD   3840 2160 QFHD\r\nWQUXGA 3840 2400 WQUXGA\r\n4K     4096 2304 4K\r\nHXGA   4096 3072 HXGA\r\nWHXGA  5120 3200 WHXGA\r\nHSXGA  5120 4096 HSXGA\r\nWHSXGA 6400 4096 WHSXGA\r\nHUXGA  6400 4800 HUXGA\r\nUHDTV  7680 4320 UHDTV\r\n8K     8192 4320 8K\r\nWHUXGA 7680 4800 WHUXGA\r\n````\r\n\r\nNot all of the above modes will be available.\r\n\r\n    Source:  http://en.wikipedia.org/wiki/List_of_common_resolutions\r\n\r\n## Notes\r\n\r\nres_set will only allow you to set parameters to those that are reported by\r\nWindows to be supported by your video card (unless you use the --raw option).\r\n\r\nUnfortunately, your monitor may not be able to support all of these modes.\r\n\r\nTherefore, you should test each mode manually, before using res_set.\r\n\r\nFailure to do so, may permanently damage your monitor, computer, and/or mind.\r\n\r\nTo avoid this, res_set will always select the mininum values for the color\r\ndepth and refresh rate, if you do not specify them.\r\n\r\nIf you do not specify the resolution, res_set will default to the current\r\nresolution for the current monitor, or the monitor you have specified.\r\n\r\nIf you only specify the width/height, res_set will use the minimum value\r\nfor the height/width supposed for the width/height you used.\r\n\r\n## Sources\r\n\r\n* http://www.vaughns-1-pagers.com/computer/video-resolution.htm\r\n* http://www1.us.dell.com/content/topics/global.aspx/vectors/en/2002_lcd?c=us\u0026l=en\u0026s=corp\r\n* http://www.videotechnology.com/0904/formats.html\r\n* http://www.berghell.com/whitepapers/Display%20Resolutions%20and%20Nomenclature%20-%20Display%20Sizes%20in%20Pixels%20-%20%20Horizontal%20by%20Vertical.pdf\r\n\r\n## Verify a Release\r\n\r\nTo verify a release, download the .zip, .sha256, and .asc files for the release \r\n(replacing res_set-1.8-win32.zip with the release you are verifying):\r\n\r\n````\r\n$ wget https://github.com/rasa/res_set/releases/download/v1.8/res_set-1.8-win32.zip{,.sha256,.asc}\r\n````\r\n\r\nNext, check that sha256sum reports \"OK\":\r\n````\r\n$ sha256sum -c res_set-1.8-win32.zip.sha256\r\nres_set-1.8-win32.zip: OK\r\n````\r\n\r\nLastly, check that GPG reports \"Good signature\":\r\n\r\n````\r\n$ gpg --keyserver hkps.pool.sks-keyservers.net --recv-key 0x105a5225b6ab4b22\r\n$ gpg --verify res_set-1.8-win32.zip.asc res_set-1.8-win32.zip\r\ngpg:                using RSA key 0xFF914F74B4BB6EF3\r\ngpg: Good signature from \"Ross Smith II \u003cross@smithii.com\u003e\" [ultimate]\r\n...\r\n````\r\n\r\n## Contributing\r\n\r\nTo contribute to this project, please see [CONTRIBUTING.md](CONTRIBUTING.md).\r\n\r\n## Bugs\r\n\r\nTo view existing bugs, or report a new bug, please see [issues](../../issues).\r\n\r\n## Changelog\r\n\r\nTo view the version history for this project, please see [CHANGELOG.md](CHANGELOG.md).\r\n\r\n## License\r\n\r\nThis project is [MIT licensed](LICENSE).\r\n\r\n## Contact\r\n\r\nThis project was created and is maintained by [Ross Smith II][] [![endorse][endorse_png]][endorse]\r\n\r\nFeedback, suggestions, and enhancements are welcome.\r\n\r\n[Ross Smith II]: mailto:ross@smithii.com \"ross@smithii.com\"\r\n[flatter]: https://flattr.com/submit/auto?user_id=rasa\u0026url=https%3A%2F%2Fgithub.com%2Frasa%2Fres_set\r\n[flatter_png]: http://button.flattr.com/flattr-badge-large.png \"Flattr this\"\r\n[endorse]: https://coderwall.com/rasa\r\n[endorse_png]: https://api.coderwall.com/rasa/endorsecount.png \"endorse\"\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frasa%2Fres_set","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frasa%2Fres_set","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frasa%2Fres_set/lists"}