[Share Experiences] How to Adjust System Resolution?
Experiences and Insight 1943 views · 0 replies ·
deepin小助手
Super Moderator
OM
2023-11-16 00:26
Author
Problem Description:
In the User Control Center display module, there is only one resolution available and no other resolutions can be selected or modified. Note: This solution is applicable when the graphics card driver is functioning properly. If the resolution cannot be adjusted due to the graphics card driver not being loaded, manually load the graphics card driver.
Solution:
1. Open the terminal and enter: cvt 1920 1080
2. In the terminal, enter: xrandr
Based on current experience, there may be two possible situations.
situation 1:
Solution:
Open: /etc/default/grub
Search: #GRUB_GFXMODE=640x480
Edit: Change 640x480 to your desired resolution and remove the #
For example: GRUB_GFXMODE=1920x1080
Update: sudo update-grub
Restart: reboot
If the resolution still cannot be adjusted after following these steps, check if it is a graphics card driver issue. Installing the graphics card driver should resolve the issue.
situation 2:
If encountering this situation, execute the following steps to resolve the issue.
3. In the terminal, execute: sudo xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
4. In the terminal, execute: sudo xrandr --addmode Virtual1 "1920x1080_60.00"
5. Check the resolution in the Control Center under Display.
6. In the terminal, execute: sudo gedit /etc/profile
If encountering the situation shown in the image below, there is a second solution.
Execute: cvt 1920 1080
Copy the content after Modeline: "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
Execute: xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
Execute: xrandr -q to view the interface of the connected display, such as HDMI-0, VGA-0, etc.
Execute: xrandr --addmode Fill in the interface of the display to be modified 1920x1080_60.00
Execute: xrandr -s 1920x1080_60.00
If it fails, it means that the resolution cannot be supported.
If the resolution modification is successful, it needs to be set as a startup file. Follow the steps below to set it as a startup file.
1. Create a script XXXX.sh
sudo deepin-editor /usr/bin/XXXX.sh
#Add the following content:
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode Fill in the interface of the display to be modified 1920x1080_60.00
xrandr -s 1920x1080_60.00
2. Save and close the file after writing the above commands.
4. Edit the desktop startup file.
deepin-editor ~/Desktop/XXXX.desktop
#Add the following content:
[Desktop Entry]
Exec=/usr/bin/XXXX.sh
Type=Application
Name=XXXX
5. Save and close the file. Double-click to run the XXXX on the desktop and confirm that /usr/bin/XXXX.sh is called and executed.
cp ~/Desktop/XXXX.desktop .config/autostart/
Problem Description:
In the User Control Center display module, there is only one resolution available and no other resolutions can be selected or modified. Note: This solution is applicable when the graphics card driver is functioning properly. If the resolution cannot be adjusted due to the graphics card driver not being loaded, manually load the graphics card driver.
Solution:
1. Open the terminal and enter: cvt 1920 1080
2. In the terminal, enter: xrandr
Based on current experience, there may be two possible situations.
situation 1:
Solution:
Open: /etc/default/grub
Search: #GRUB_GFXMODE=640x480
Edit: Change 640x480 to your desired resolution and remove the #
For example: GRUB_GFXMODE=1920x1080
Update: sudo update-grub
Restart: reboot
If the resolution still cannot be adjusted after following these steps, check if it is a graphics card driver issue. Installing the graphics card driver should resolve the issue.
situation 2:
If encountering this situation, execute the following steps to resolve the issue.
3. In the terminal, execute: sudo xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
4. In the terminal, execute: sudo xrandr --addmode Virtual1 "1920x1080_60.00"
5. Check the resolution in the Control Center under Display.
6. In the terminal, execute: sudo gedit /etc/profile
7. Edit the document:
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode Virtual1 "1920x1080_60.00"
(Add the corresponding content)
If encountering the situation shown in the image below, there is a second solution.
Execute: cvt 1920 1080
Copy the content after Modeline: "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
Execute: xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
Execute: xrandr -q to view the interface of the connected display, such as HDMI-0, VGA-0, etc.
Execute: xrandr --addmode Fill in the interface of the display to be modified 1920x1080_60.00
Execute: xrandr -s 1920x1080_60.00
If it fails, it means that the resolution cannot be supported.
If the resolution modification is successful, it needs to be set as a startup file. Follow the steps below to set it as a startup file.
1. Create a script XXXX.sh
sudo deepin-editor /usr/bin/XXXX.sh
#Add the following content:
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode Fill in the interface of the display to be modified 1920x1080_60.00
xrandr -s 1920x1080_60.00
2. Save and close the file after writing the above commands.
3. Add file execution permissions.
sudo chmod +x /usr/bin/XXXX.sh
4. Edit the desktop startup file.
deepin-editor ~/Desktop/XXXX.desktop
#Add the following content:
[Desktop Entry]
Exec=/usr/bin/XXXX.sh
Type=Application
Name=XXXX
5. Save and close the file. Double-click to run the XXXX on the desktop and confirm that /usr/bin/XXXX.sh is called and executed.
cp ~/Desktop/XXXX.desktop .config/autostart/