Setup screen resolution on deepin 15.11 - The method works on login screen and all user accounts too



1. Open terminal and enter the following command:
sudo nano /etc/my-resolution.sh


2. Write all the following lines and save the file:
#!/bin/bash

# My Resolution Settings - 1920x1080 60Hz for Dell monitor
xrandr --newmode "Dell" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode VGA1 Dell
xrandr --output VGA1 --primary --mode Dell

exit 0


3. Make the file executable:
sudo chmod +x /etc/my-resolution.sh


4. Open the display manager settings file:
sudo nano /etc/lightdm/lightdm.conf


5. Find display-setup-script under [Seat:*] settings, replace to the following line and save:
display-setup-script=/etc/my-resolution.sh


6. Reboot the system and enjoy the new resolution.