It may happen that after installing deepin you find yourself facing a rare but feasible problem. It is manifested when the system does not list or allows to choose the appropriate resolution for the screen; In this opportunity we want to share a solution that we generated some time ago in ourgroup Telegram.
In the first instance we must execute in the terminal, the command that will list the available video connections; such as supported resolutions and their sweep frequencies.Do not worry if the resolution you are looking for is not listed.
xrandr Screen 0: minimum 320 x 200, current 1360 x 768, maximum 16384 x 16384 DisplayPort-0 disconnected (normal left inverted right x axis y axis) HDMI-0 disconnected (normal left inverted right x axis y axis) DVI-0 disconnected (normal left inverted right x axis y axis) VGA-0 connected primary 1360x768+0+0 (normal left inverted right x axis y axis) 580mm x 320mm 1360x768 60.02*+ 1920x1080 60.00 1280x1024 60.02 1280x720 60.00 1024x768 60.00 800x600 60.32 640x480 59.94 720x400 70.08
As we see in the example, 8 possibilities are listed, while the deepin interface will show a maximum of four and in the cases that we know as problematic, only one is shown and it is the wrong one.
For practical purposes we choose 800 x 600, which in my case the system does not offer.Find and use the correct nomenclatures; A 16: 9 HD resolution is 1360 × 768 while 4: 3 is 1024 × 768. Next we will ask the system to return the data that is required to add the desired resolution.
cvt 800 600 # 800x600 59.86 Hz (CVT 0.48M3) hsync: 37.35 kHz; pclk: 38.25 MHz Modeline "800x600_60.00" 38.25 800 832 912 1024 600 603 607 624 -hsync +vsync
We are returned a constant related exclusively to our hardware combination. Remember not to copy the values shown in this example and obtain the ones corresponding to your equipment. Next, using the data obtained, we will present the new resolution to the system.
xrandr --newmode "800x600_60.00" 38.25 800 832 912 1024 600 603 607 624 -hsync +vsync
Now we will add the new mode to the interface list.
xrandr --addmode VGA-0 800x600_60.00
To finalize this first stage we implemented the new resolution.
xrandr --output VGA-0 --mode 800x600_60.00
By now you will be enjoying the right proportion to your monitor; Unfortunately this will only last until you log out. But don't worry, we will show you a simple method that will allow you to run a script automatically when starting each session.
Create the Script
We want to clarify that we have tried classic methods, either using init.d with references at startup or creating the already neglected xorg.conf in X11, but these options give us inadequate results and their implementation becomes quite complex.
Method: Create a text file and rename it resolucion.sh Inside copy what is indicated below and edit its content, using the data you obtained in the steps described above. Then save and give it execute permissions.
#!/bin/bash cvt 800 600 xrandr --newmode "800x600_60.00" 38.25 800 832 912 1024 600 603 607 624 -hsync +vsync xrandr --addmode VGA-0 800x600_60.00 xrandr --output VGA-0 --mode 800x600_60.00 xrandr -s 800x600
We proceed to take it together with a png of the same name to a Resolution folder created in / opt to finally create with alacarte, an access to the Deepin applications menu and from there tell the system to run it when starting a session.