ADD Deepin SCREEN RESOLUTIONS

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.

3.8 4 votes
Rate the Article
 
Subscribe
Notificar de
13 Reacciones
More popular
Newer Older
Opinion from the article
See all comments
RealAct
RealAct (@realact)
2 años atrás

Interesting information, now we know how to do this, thank you.

Zuriel Soto
Zuriel Soto (@zurielsoto)
1 año atrás

hello the following appears to me zeja @ zeja-PC: ~ $ cvt 1280 800
# 1280×800 59.81 Hz (CVT 1.02MA) hsync: 49.70 kHz; pclk: 83.50 MHz
Modeline «1280x800_60.00» 83.50 1280 1352 1480 1680 800 803 809 831 -hsync +vsync
[email protected]:~$ xrandr –newmode «1280x800_60.00» 83.50 1280 1352 1480 1680 800 803 809 831 -hsync +vsync
xrandr: Failed to get size of gamma for output default
X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 16 (RRCreateMode)
Serial number of failed request: 19
Current serial number in output stream: 19
[email protected]:~$

someone would help me ????

Gabriel Aros
Gabriel Aros (@gabrielaros)
1 año atrás

Por que no viene como opción. en el sistema operativo??. Es muy enredosa la explicación para un usuario novato. Si no lo puedo cambiar volvere a mi SO por defecto

Isaías Gätjens M
Isaías Gätjens M (@igatjens)
Admin
Respondiendo a  Gabriel Aros
1 año atrás

Hi, yes, it is a problem, but will already arranging the Chinese. Just in case, I clarify that we do not develop Deepin, but we are a community of users Deepin, if you have problems with Deepin will do our best to provide help.

Greetings.

Gabriel Aros
Gabriel Aros (@gabrielaros)
1 año atrás

Desinstalare Deepin. Me avisan cuando vengan las resoluciones de pantalla como en otros SO. Que decepción. Se veia super.

Juan Perez
Juan Perez (@juanperez3)
9 meses atrás

The guide is super easy, if you pay attention to details (double hyphen for example), which is appreciated. However I have a problem to add this executable at startup, since "Main Menu" does not appear or anything similar in the search. For everything else I had no problems: I was able to create the executable, it works and I copied it together with a png in opt / resolution.

SOLVED!
Creo que valdría aclarar en la guía que este método para agregar el script al iniciar el sistema, vale diría que exclusivamente si tenemos instalado por ejemplo «Menú Libre».
Así que previamente instalarlo: sudo apt install menulibre
Y ahora sí podemos agregarlo al arranque como se indica en la guía.
Saludos.

DeepinScreenshot_20200509065516.png
niomante
niomante (@niomante)
2 años atrás

hola realice paso a paso lo descrito, y me sale este error » xrandr: unrecognized option ‘–newmode’ » y este otro » xrandr: unrecognized option ‘–addmode’ » y este » xrandr: unrecognized option ‘–output’ » osea reconoce los comandos, tendré que actualizar xrandr?
gracias por si alguien sabe como resolverlo , por que la verdad tengo solo una resolución y es enorme

Deputy result of the xrandr command:
xrandr
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192
VGA1 connected primary 1024×768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024×768 60.00*
800×600 60.32 56.25
848×480 60.00
640×480 59.94
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)

Deepin en Español
Deepin en Español (@deepin-en-espanol)
Admin
Respondiendo a  niomante
2 años atrás

Q Check're giving space command scripts.-addmode

Two hyphens separated by a space

Javier Martinez Guillen
Javier Martinez Guillen (@javiermartinezguillen)
Respondiendo a  niomante
2 años atrás

HELLO, I also AMI was the same but instead of UN -
TIENES QUE PONER DOS – –
EJEMPLO: – – addmode , – – newmode

THIS IS how I worked perfectly

Javier Martinez Guillen
Javier Martinez Guillen (@javiermartinezguillen)
Respondiendo a  Javier Martinez Guillen
2 años atrás

- - admode
— newmode

Lyriel
Lyriel (@lyriel)
1 año atrás

And in the case of HDMI that only shows at most 1024 x 768 and I want 1366 x 768?

13
0
We would like to know what you think, Join the discussion.x
()
x