This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| monitor_resolution [2015/06/06 01:28] – created way12go | monitor_resolution [2021/05/04 13:24] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Or install arandr | + | ===== How to manually set a monitor resolution ===== |
| + | |||
| + | ==== Manual way ==== | ||
| + | |||
| + | 1. Check present resolution: | ||
| + | |||
| + | | ||
| + | |||
| + | An example output is: | ||
| + | |||
| + | VGA1 connected (normal left inverted right x axis y axis) | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | DP1 disconnected (normal left inverted right x axis y axis) | ||
| + | |||
| + | 2. Generate ‘modeline’ using ‘gtf’ command: | ||
| + | |||
| + | gtf width height refresh-frequency | ||
| + | |||
| + | Example: | ||
| + | |||
| + | gtf 1366 768 60 | ||
| + | |||
| + | The result is: | ||
| + | |||
| + | | ||
| + | | ||
| + | |||
| + | Where is: | ||
| + | |||
| + | * 1366 - width | ||
| + | * 768 - height | ||
| + | * 60 - refresh-frequency | ||
| + | |||
| + | 3. Set your resolution copying the last output of **gtf** command, starting after **Modeline**: | ||
| + | |||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | It is only temporary solution, after rebooting all the changes will be lost. | ||
| + | |||
| + | ---- | ||
| + | |||
| + | To make it permanent, do: | ||
| + | |||
| + | 1. Create a new file in your home directory, for example **.mymonitor**: | ||
| + | |||
| + | nano .mymonitor | ||
| + | |||
| + | 2. Copy previous 3 commands you used for manually setting the monitor, and paste onto the file: | ||
| + | |||
| + | #! /bin/bash | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | 3. Make the file executable: | ||
| + | |||
| + | chmod +x .mymonitor | ||
| + | |||
| + | 4. Add the ~HOME/ | ||
| + | |||
| + | More information about XRandR can be found via commands: | ||
| + | |||
| + | | ||
| + | man xrandr | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Randr/ | ||
| + | |||
| + | There are a few frontends for Rand/ | ||
| + | |||
| + | * LXrandr | ||
| + | |||
| + | {{: | ||
| + | |||
| + | * KDE Workspace Randr | ||
| + | * Arandr | ||
| + | |||
| + | To install arandr | ||
| sudo apt-get install arandr | sudo apt-get install arandr | ||
| - | and open terminal and enter | + | Then open a terminal and enter: |
| arandr | arandr | ||
| + | |||
| + | |||