Ubuntu 22.04 does not support WQHD resolution

Asked 1 years ago, Updated 1 years ago, 331 views

I am connecting my Ubuntu desktop PC to an external display. How do I set the resolution to WQHD resolution?

  • OS:Ubuntu 22.04.01
  • GPU
 $lspci | grep-invidia
05:00.0 VGA compatible controller: NVIDIA Corporation GA106 [GeForce RTX 3060 Lite Hash Rate] (reva1)

  • Drivers
    Enter a description of the image here

  • Display: One WQHD (2560x1440)

  • HDMI cable: 4K compatible (Enter a description of the image here

    Display: One WQHD (2560x1440)

    HDMI cable: 4K compatible (Enter a description of the image here

    Change /etc/default/grub

    Edit /etc/default/grub and
    Save as GRUB_GFXMODE=2560x1440.

    $sudo update-grub
    $ reboot
    

    I ran , but somehow the resolution was 1024x768 after rebooting.Therefore, I changed the GRUB_GFXMODE value back to the original 1920x1080.

    Changing Drivers
    I posted driver information above, but by default, X.Org X server - Use Nouveau display driver from xserver-xorg-video-nouveau (open source) was selected.
    As far as I looked at the net lightly, it seemed that the corresponding resolution would be limited, so I changed it to the driver listed in the capture above.

    I did step 3 again.

    Add new resolution to xrandr

    $cvt25601440
    $ sudo xrandr -- newmode "2560x1440_60.00" 312.252560 2752 3024 3488 1440 1443 1448 1493
    xrandr —Failed to get size of gamma for output default
    

    xrandr--newmode got in trouble when I tried to add a new mode

    Is there anything to do with driver settings?I'm thinking about it, but I'm not familiar with that area, so I'd like someone who knows it to help me.Thank you for your cooperation.

    Reference Site
    https://qiita.com/nsd24/items/c06294d1de40f2e9870b
    https://blog.capilano-fw.com/?p=1881

    ubuntu

    2023-01-08 00:17

1 Answers

I solved myself.It appears that the driver was not installed properly.

Note:
[Note] Installing the NVIDIA GPU driver recommended by ubuntu-drivers devices will cause an accident.

before installation:

$nvidia-smi
No devices were found

After installing the driver, the output now appears as follows:

After installation:

Sat Jan 7 11:43:202023       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.60.11 Driver Version:525.60.11 CUDA Version:12.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr.ECC |
| Fan Temp Perf Pwr: Usage/Cap | Memory-Usage | GPU-Util Compute M. |
|                               | MIGM.|
|===============================+======================+======================|
|   0 NVIDIA GeForce...Off | 00000000:05:00.0 On | N/A |
|  0% 39CP813W/170W | 405MiB/12288MiB | 0% Default |
|                               | N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes: |
|  GPU GI CIPID Type Process name GPU Memory |
|        ID Usage|
|=============================================================================|
|    0 N/AN/A 1717G/usr/lib/xorg/Xorg 185MiB|
|    0 N/AN/A 1874 G/usr/bin/gnome-shell 90 MiB|
|    0 N/AN/A 2325G...RenderForSitePerProcess25MiB|
|    0 N/AN/A 3359 Ggnome-control-center 14 MiB|
|    0 N/AN/A 3482 C+G...160814179602901050, 13107284 MiB|
+-----------------------------------------------------------------------------+


2023-01-08 05:01

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.