USB C to DP external monitor Asus tuf 15 laptop and Asus TUF gaming monitor <SOLVED>

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
MahaRav
Level 1
Level 1
Posts: 42
Joined: Wed Sep 22, 2021 5:48 am

USB C to DP external monitor Asus tuf 15 laptop and Asus TUF gaming monitor <SOLVED>

Post by MahaRav »

Hello,

I can connect the monitor without a problem in windows and make it run in 165hz.

I recently installed linux mint and I can't make it work, please help. I guess I am missing some drivers to make linux detect the USB C. Any help is highly appreciated!

Nico
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
SMG
Level 25
Level 25
Posts: 31914
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: USB C to DP external monitor Asus tuf 15 laptop and Asus TUF gaming monitor

Post by SMG »

MahaRav wrote: Wed Sep 22, 2021 5:51 amI recently installed linux mint and I can't make it work, please help. I guess I am missing some drivers to make linux detect the USB C. Any help is highly appreciated!
Welcome to the forum, Nico.

It is possible you are missing necessary graphics drivers, but without system information we would not know. Please give us information about your install by entering this command in a terminal: inxi -Fxxxrz
Click </> from the mini toolbar above the textbox where you type your reply and then place your cursor between the code markers and paste the results of the command between the code markers [code]Results[/code]. This will let us know how Mint sees your hardware.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
MahaRav
Level 1
Level 1
Posts: 42
Joined: Wed Sep 22, 2021 5:48 am

Re: USB C to DP external monitor Asus tuf 15 laptop and Asus TUF gaming monitor

Post by MahaRav »

Code: Select all

System:
  Kernel: 5.11.0-36-generic x86_64 bits: 64 compiler: N/A 
  Desktop: Cinnamon 5.0.5 wm: muffin 5.0.1 dm: LightDM 1.30.0 
  Distro: Linux Mint 20.2 Uma base: Ubuntu 20.04 focal 
Machine:
  Type: Laptop System: ASUSTeK product: ASUS TUF Gaming A15 FA506IV_TUF506IV 
  v: 1.0 serial: <filter> 
  Mobo: ASUSTeK model: FA506IV v: 1.0 serial: <filter> 
  UEFI: American Megatrends v: FA506IV.316 date: 03/12/2021 
Battery:
  ID-1: BAT1 charge: 62.1 Wh condition: 79.0/90.2 Wh (88%) volts: 15.9/15.9 
  model: ASUS A32-K55 type: Li-ion serial: <filter> status: Discharging 
CPU:
  Topology: 8-Core model: AMD Ryzen 7 4800H with Radeon Graphics bits: 64 
  type: MT MCP arch: Zen rev: 1 L2 cache: 4096 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 92626 
  Speed: 1397 MHz min/max: 1400/2900 MHz boost: enabled Core speeds (MHz): 
  1: 1397 2: 1397 3: 1316 4: 1397 5: 1397 6: 1397 7: 1397 8: 1397 9: 1398 
  10: 1396 11: 1397 12: 1397 13: 1397 14: 1397 15: 1537 16: 1212 
Graphics:
  Device-1: NVIDIA TU106 [GeForce RTX 2060] vendor: ASUSTeK driver: N/A 
  bus ID: 01:00.0 chip ID: 10de:1f15 
  Device-2: AMD Renoir vendor: ASUSTeK driver: amdgpu v: kernel 
  bus ID: 05:00.0 chip ID: 1002:1636 
  Display: x11 server: X.Org 1.20.11 driver: amdgpu,ati 
  unloaded: fbdev,modesetting,vesa resolution: 1920x1080~144Hz 
  OpenGL: renderer: AMD RENOIR (DRM 3.40.0 5.11.0-36-generic LLVM 12.0.0) 
  v: 4.6 Mesa 21.0.3 direct render: Yes 
Audio:
  Device-1: NVIDIA TU106 High Definition Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 10de:10f9 
  Device-2: AMD vendor: ASUSTeK driver: snd_hda_intel v: kernel 
  bus ID: 05:00.1 chip ID: 1002:1637 
  Device-3: AMD Raven/Raven2/FireFlight/Renoir Audio Processor driver: N/A 
  bus ID: 05:00.5 chip ID: 1022:15e2 
  Device-4: AMD Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel 
  v: kernel bus ID: 05:00.6 chip ID: 1022:15e3 
  Sound Server: ALSA v: k5.11.0-36-generic 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: ASUSTeK driver: r8169 v: kernel port: e000 bus ID: 02:00.0 
  chip ID: 10ec:8168 
  IF: enp2s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
  Device-2: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter 
  vendor: Lite-On driver: rtw_8822ce v: N/A port: d000 bus ID: 03:00.0 
  chip ID: 10ec:c822 
  IF: wlp3s0 state: down mac: <filter> 
Drives:
  Local Storage: total: 953.87 GiB used: 37.33 GiB (3.9%) 
  ID-1: /dev/nvme0n1 vendor: Western Digital 
  model: PC SN530 SDBPNPZ-1T00-1002 size: 953.87 GiB speed: 31.6 Gb/s 
  lanes: 4 serial: <filter> rev: 21106000 scheme: GPT 
Partition:
  ID-1: / size: 228.82 GiB used: 18.65 GiB (8.2%) fs: ext4 
  dev: /dev/nvme0n1p6 
Sensors:
  System Temperatures: cpu: 38.4 C mobo: N/A gpu: amdgpu temp: 37 C 
  Fan Speeds (RPM): cpu: 900 
Repos:
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
  1: deb http://packages.linuxmint.com uma main upstream import backport #id:linuxmint_main
  2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
  3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
  4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
  5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
  6: deb http://archive.canonical.com/ubuntu/ focal partner
  Active apt repos in: /etc/apt/sources.list.d/spotify.list 
  1: deb http://repository.spotify.com stable non-free
  Active apt repos in: /etc/apt/sources.list.d/vivaldi.list 
  1: deb http://repo.vivaldi.com/stable/deb/ stable main
Info:
  Processes: 370 Uptime: 2m Memory: 30.85 GiB used: 1.35 GiB (4.4%) 
  Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Shell: bash 
  v: 5.0.17 running in: gnome-terminal inxi: 3.0.38
MahaRav
Level 1
Level 1
Posts: 42
Joined: Wed Sep 22, 2021 5:48 am

Re: USB C to DP external monitor Asus tuf 15 laptop and Asus TUF gaming monitor

Post by MahaRav »

Hello, thanks for your reply, above are the results, hope this helps!

Also, nvidia settings show like this, which I don't think it is right as in windows I had much more details

https://i.imgur.com/5iWwpom.png
User avatar
SMG
Level 25
Level 25
Posts: 31914
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: USB C to DP external monitor Asus tuf 15 laptop and Asus TUF gaming monitor

Post by SMG »

MahaRav wrote: Wed Sep 22, 2021 2:39 pmHello, thanks for your reply, above are the results, hope this helps!
This data indicates your system is running in AMD power-save mode.

Graphics:
Device-1: NVIDIA TU106 [GeForce RTX 2060] vendor: ASUSTeK driver: N/A
bus ID: 01:00.0 chip ID: 10de:1f15
Device-2: AMD Renoir vendor: ASUSTeK driver: amdgpu v: kernel
bus ID: 05:00.0 chip ID: 1002:1636
Display: x11 server: X.Org 1.20.11 driver: amdgpu,ati
unloaded: fbdev,modesetting,vesa resolution: 1920x1080~144Hz
OpenGL: renderer: AMD RENOIR (DRM 3.40.0 5.11.0-36-generic LLVM 12.0.0)
v: 4.6 Mesa 21.0.3 direct render: Yes

The N/A showing for the Nvidia driver is the expected output when running in Powersave mode. The Nvidia driver is not loaded which helps extend battery life.

Very often on dual-graphics laptops, the Nvidia GPU is the one which runs the external monitor ports. If this is true for your computer, with no nvidia driver loaded, output is not possible for external monitors.
MahaRav wrote: Wed Sep 22, 2021 2:39 pmAlso, nvidia settings show like this, which I don't think it is right as in windows I had much more details

https://i.imgur.com/5iWwpom.png
That is indicating On-Demand mode. What is the nvidia-prime-applet in the panel in the lower right of your screen indicate is the GPU in use? I would expect different inxi output when running in On-Demand mode than what you posted. If that is not happening, let us know and we'll check some other places to see what may be happening.

If you have installed the Nvidia driver using the Driver Manager app, I would expect switching the applet to On-Demand mode and then rebooting the computer would activate the Nvidia driver.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
MahaRav
Level 1
Level 1
Posts: 42
Joined: Wed Sep 22, 2021 5:48 am

Re: USB C to DP external monitor Asus tuf 15 laptop and Asus TUF gaming monitor

Post by MahaRav »

I changed from on demand to nvidia high performance, here are the results. The external monitor conected thorugh USB C still not being recognized, it looks that the port is dead when running linux.

I still get this in settings, instead of actual nvidia settings.
https://i.imgur.com/jsSzOtR.png

Code: Select all

System:
  Kernel: 5.11.0-36-generic x86_64 bits: 64 compiler: N/A 
  Desktop: Cinnamon 5.0.5 wm: muffin 5.0.1 dm: LightDM 1.30.0 
  Distro: Linux Mint 20.2 Uma base: Ubuntu 20.04 focal 
Machine:
  Type: Laptop System: ASUSTeK product: ASUS TUF Gaming A15 FA506IV_TUF506IV 
  v: 1.0 serial: <filter> 
  Mobo: ASUSTeK model: FA506IV v: 1.0 serial: <filter> 
  UEFI: American Megatrends v: FA506IV.316 date: 03/12/2021 
Battery:
  ID-1: BAT1 charge: 64.3 Wh condition: 79.0/90.2 Wh (88%) volts: 17.1/15.9 
  model: ASUS A32-K55 type: Li-ion serial: <filter> status: Charging 
CPU:
  Topology: 8-Core model: AMD Ryzen 7 4800H with Radeon Graphics bits: 64 
  type: MT MCP arch: Zen rev: 1 L2 cache: 4096 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 92623 
  Speed: 1397 MHz min/max: 1400/2900 MHz boost: enabled Core speeds (MHz): 
  1: 1397 2: 1397 3: 1397 4: 1397 5: 1344 6: 1211 7: 1629 8: 1697 9: 1397 
  10: 1397 11: 1397 12: 1397 13: 1397 14: 1397 15: 1397 16: 1390 
Graphics:
  Device-1: NVIDIA TU106 [GeForce RTX 2060] vendor: ASUSTeK driver: N/A 
  bus ID: 01:00.0 chip ID: 10de:1f15 
  Device-2: AMD Renoir vendor: ASUSTeK driver: amdgpu v: kernel 
  bus ID: 05:00.0 chip ID: 1002:1636 
  Display: x11 server: X.Org 1.20.11 driver: amdgpu,ati 
  unloaded: fbdev,modesetting,vesa resolution: 1920x1080~144Hz 
  OpenGL: renderer: AMD RENOIR (DRM 3.40.0 5.11.0-36-generic LLVM 12.0.0) 
  v: 4.6 Mesa 21.0.3 direct render: Yes 
Audio:
  Device-1: NVIDIA TU106 High Definition Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 10de:10f9 
  Device-2: AMD vendor: ASUSTeK driver: snd_hda_intel v: kernel 
  bus ID: 05:00.1 chip ID: 1002:1637 
  Device-3: AMD Raven/Raven2/FireFlight/Renoir Audio Processor driver: N/A 
  bus ID: 05:00.5 chip ID: 1022:15e2 
  Device-4: AMD Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel 
  v: kernel bus ID: 05:00.6 chip ID: 1022:15e3 
  Device-5: Microdia USB Camera type: USB driver: snd-usb-audio,uvcvideo 
  bus ID: 5-2:3 chip ID: 0c45:636b serial: <filter> 
  Sound Server: ALSA v: k5.11.0-36-generic 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: ASUSTeK driver: r8169 v: kernel port: e000 bus ID: 02:00.0 
  chip ID: 10ec:8168 
  IF: enp2s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
  Device-2: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter 
  vendor: Lite-On driver: rtw_8822ce v: N/A port: d000 bus ID: 03:00.0 
  chip ID: 10ec:c822 
  IF: wlp3s0 state: down mac: <filter> 
Drives:
  Local Storage: total: 953.87 GiB used: 38.19 GiB (4.0%) 
  ID-1: /dev/nvme0n1 vendor: Western Digital 
  model: PC SN530 SDBPNPZ-1T00-1002 size: 953.87 GiB speed: 31.6 Gb/s 
  lanes: 4 serial: <filter> rev: 21106000 scheme: GPT 
Partition:
  ID-1: / size: 228.82 GiB used: 19.08 GiB (8.3%) fs: ext4 
  dev: /dev/nvme0n1p6 
Sensors:
  System Temperatures: cpu: 46.4 C mobo: N/A gpu: amdgpu temp: 42 C 
  Fan Speeds (RPM): cpu: 2200 
Repos:
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
  1: deb http://packages.linuxmint.com uma main upstream import backport #id:linuxmint_main
  2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
  3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
  4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
  5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
  6: deb http://archive.canonical.com/ubuntu/ focal partner
  Active apt repos in: /etc/apt/sources.list.d/spotify.list 
  1: deb http://repository.spotify.com stable non-free
  Active apt repos in: /etc/apt/sources.list.d/vivaldi.list 
  1: deb http://repo.vivaldi.com/stable/deb/ stable main
Info:
  Processes: 380 Uptime: 4m Memory: 30.85 GiB used: 1.29 GiB (4.2%) 
  Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Shell: bash 
  v: 5.0.17 running in: gnome-terminal inxi: 3.0.38 
User avatar
SMG
Level 25
Level 25
Posts: 31914
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: USB C to DP external monitor Asus tuf 15 laptop and Asus TUF gaming monitor

Post by SMG »

MahaRav wrote: Thu Sep 23, 2021 7:52 am I changed from on demand to nvidia high performance, here are the results. The external monitor conected thorugh USB C still not being recognized, it looks that the port is dead when running linux.
The Nvidia driver is not showing as loaded.

Graphics:
Device-1: NVIDIA TU106 [GeForce RTX 2060] vendor: ASUSTeK driver: N/A
bus ID: 01:00.0 chip ID: 10de:1f15
Device-2: AMD Renoir vendor: ASUSTeK driver: amdgpu v: kernel
bus ID: 05:00.0 chip ID: 1002:1636
Display: x11 server: X.Org 1.20.11 driver: amdgpu,ati
unloaded: fbdev,modesetting,vesa resolution: 1920x1080~144Hz
OpenGL: renderer: AMD RENOIR (DRM 3.40.0 5.11.0-36-generic LLVM 12.0.0)
v: 4.6 Mesa 21.0.3 direct render: Yes

Did you reboot after you changed the modes? The nvidia drivers load during the boot cycle.

If you did reboot, please provide the output of mokutil --sb-state. If Secure Boot is enabled, then the Nvidia driver modules will need enrolled in MOK. Some computer automatically bring up the screen to do that while others do not. I can give you directions if you might need to enroll the driver files.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
MahaRav
Level 1
Level 1
Posts: 42
Joined: Wed Sep 22, 2021 5:48 am

Re: USB C to DP external monitor Asus tuf 15 laptop and Asus TUF gaming monitor

Post by MahaRav »

I did reboot the computer after changing to nvidia.

The result of Mokutil was:

Code: Select all

SecureBoot enabled
Please give me direction on how to enroll the driver files. Baby steps please :)
User avatar
SMG
Level 25
Level 25
Posts: 31914
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: USB C to DP external monitor Asus tuf 15 laptop and Asus TUF gaming monitor

Post by SMG »

MahaRav wrote: Thu Sep 23, 2021 4:13 pmPlease give me direction on how to enroll the driver files.
For instructions on how to get the Nvidia kernel modules signed, go way way way down to the section:
How to install the Nvidia driver with Secure Boot enabled; for drivers installed using Driver Manager, apt or Synaptic in this post.

Let us know if you have any questions about the steps.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
MahaRav
Level 1
Level 1
Posts: 42
Joined: Wed Sep 22, 2021 5:48 am

Re: USB C to DP external monitor Asus tuf 15 laptop and Asus TUF gaming monitor

Post by MahaRav »

Hi, the following are the output to the command listed in the "How to install the Nvidia driver with Secure Boot enabled; for drivers installed using Driver Manager, apt or Synaptic:" section of the guide you sent to me.

Code: Select all

~$ openssl req -new -x509 -newkey rsa:2048 -days 7300 -nodes -subj "/CN=nvidia module signing key/" -keyout MOK.priv -outform DER -out MOK.der -sha512
Generating a RSA private key
........+++++
.................+++++
writing new private key to 'MOK.priv'
-----

Code: Select all

$ ls /lib/modules/`uname -r`/kernel/drivers/char/drm
ls: cannot access '/lib/modules/5.11.0-36-generic/kernel/drivers/char/drm': No such file or directory

Code: Select all

At main.c:291:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
sign-file: /lib/modules/5.11.0-36-generic/kernel/drivers/char/drm/nvidia.ko: No such file or directory
After I sign the

Code: Select all

sudo mokutil --import MOK.der
and reboot, I do the MOK and enter the password, then reboot again. But it doesn't seem to work.

Code: Select all

System:
  Kernel: 5.11.0-36-generic x86_64 bits: 64 compiler: N/A 
  Desktop: Cinnamon 5.0.5 wm: muffin 5.0.1 dm: LightDM 1.30.0 
  Distro: Linux Mint 20.2 Uma base: Ubuntu 20.04 focal 
Machine:
  Type: Laptop System: ASUSTeK product: ASUS TUF Gaming A15 FA506IV_TUF506IV 
  v: 1.0 serial: <filter> 
  Mobo: ASUSTeK model: FA506IV v: 1.0 serial: <filter> 
  UEFI: American Megatrends v: FA506IV.316 date: 03/12/2021 
Battery:
  ID-1: BAT1 charge: 60.5 Wh condition: 79.9/90.2 Wh (89%) volts: 15.4/15.9 
  model: ASUS A32-K55 type: Li-ion serial: <filter> status: Discharging 
CPU:
  Topology: 8-Core model: AMD Ryzen 7 4800H with Radeon Graphics bits: 64 
  type: MT MCP arch: Zen rev: 1 L2 cache: 4096 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 92622 
  Speed: 1397 MHz min/max: 1400/2900 MHz boost: enabled Core speeds (MHz): 
  1: 1397 2: 1395 3: 1397 4: 1397 5: 1397 6: 1397 7: 1398 8: 1398 9: 1397 
  10: 1396 11: 1328 12: 1211 13: 1664 14: 1697 15: 1212 16: 1212 
Graphics:
  Device-1: NVIDIA TU106 [GeForce RTX 2060] driver: nouveau v: kernel 
  bus ID: 01:00.0 chip ID: 10de:1f15 
  Device-2: AMD Renoir vendor: ASUSTeK driver: amdgpu v: kernel 
  bus ID: 05:00.0 chip ID: 1002:1636 
  Display: x11 server: X.Org 1.20.11 driver: amdgpu,ati,modesetting 
  unloaded: fbdev,vesa resolution: 1920x1080~144Hz 
  OpenGL: renderer: AMD RENOIR (DRM 3.40.0 5.11.0-36-generic LLVM 12.0.0) 
  v: 4.6 Mesa 21.0.3 direct render: Yes 
Audio:
  Device-1: NVIDIA TU106 High Definition Audio driver: snd_hda_intel 
  v: kernel bus ID: 01:00.1 chip ID: 10de:10f9 
  Device-2: AMD vendor: ASUSTeK driver: snd_hda_intel v: kernel 
  bus ID: 05:00.1 chip ID: 1002:1637 
  Device-3: AMD Raven/Raven2/FireFlight/Renoir Audio Processor driver: N/A 
  bus ID: 05:00.5 chip ID: 1022:15e2 
  Device-4: AMD Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel 
  v: kernel bus ID: 05:00.6 chip ID: 1022:15e3 
  Sound Server: ALSA v: k5.11.0-36-generic 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: ASUSTeK driver: r8169 v: kernel port: e000 bus ID: 02:00.0 
  chip ID: 10ec:8168 
  IF: enp2s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
  Device-2: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter 
  vendor: Lite-On driver: rtw_8822ce v: N/A port: d000 bus ID: 03:00.0 
  chip ID: 10ec:c822 
  IF: wlp3s0 state: down mac: <filter> 
Drives:
  Local Storage: total: 953.87 GiB used: 41.48 GiB (4.3%) 
  ID-1: /dev/nvme0n1 vendor: Western Digital 
  model: PC SN530 SDBPNPZ-1T00-1002 size: 953.87 GiB speed: 31.6 Gb/s 
  lanes: 4 serial: <filter> rev: 21106000 scheme: GPT 
Partition:
  ID-1: / size: 228.82 GiB used: 20.73 GiB (9.1%) fs: ext4 
  dev: /dev/nvme0n1p6 
Sensors:
  System Temperatures: cpu: 41.1 C mobo: N/A 
  Fan Speeds (RPM): cpu: 0 
  GPU: device: nouveau temp: N/A device: amdgpu temp: 40 C 
Repos:
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
  1: deb http://packages.linuxmint.com uma main upstream import backport #id:linuxmint_main
  2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
  3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
  4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
  5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
  6: deb http://archive.canonical.com/ubuntu/ focal partner
  Active apt repos in: /etc/apt/sources.list.d/spotify.list 
  1: deb http://repository.spotify.com stable non-free
  Active apt repos in: /etc/apt/sources.list.d/vivaldi.list 
  1: deb http://repo.vivaldi.com/stable/deb/ stable main
Info:
  Processes: 353 Uptime: 8m Memory: 30.85 GiB used: 1.60 GiB (5.2%) 
  Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Shell: bash 
  v: 5.0.17 running in: gnome-terminal inxi: 3.0.38 
nvidia settings current look: https://i.imgur.com/RsLXAxM.png

Hope this is enough info to see next step :)
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: USB C to DP external monitor Asus tuf 15 laptop and Asus TUF gaming monitor

Post by roblm »

MahaRav wrote:

Code: Select all

$ ls /lib/modules/`uname -r`/kernel/drivers/char/drm
ls: cannot access '/lib/modules/5.11.0-36-generic/kernel/drivers/char/drm': No such file or directory
That output shows no Nvidia kernel modules were built during the Nvidia driver installation. You should remove the Nvidia driver: sudo apt-get purge *nvidia*

After rebooting, re-install the driver, and nvidia-prime-applet, which was removed with the purge command:
apt install nvidia-driver-470 nvidia-prime-applet

After rebooting, post the output of these commands to check the installation:

Code: Select all

dpkg -l | grep nvidia
lspci -nnk | grep -EA3 "3D|VGA"
MahaRav
Level 1
Level 1
Posts: 42
Joined: Wed Sep 22, 2021 5:48 am

Re: USB C to DP external monitor Asus tuf 15 laptop and Asus TUF gaming monitor

Post by MahaRav »

Hi, I got this after installing

Code: Select all

~$ dpkg -l | grep nvidia
rc  bumblebee-nvidia                           3.2.1-22                              amd64        NVIDIA Optimus support using the proprietary NVIDIA driver
ii  libnvidia-cfg1-470:amd64                   470.63.01-0ubuntu0.20.04.2            amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-470                       470.63.01-0ubuntu0.20.04.2            all          Shared files used by the NVIDIA libraries
rc  libnvidia-compute-460:amd64                460.91.03-0ubuntu0.20.04.1            amd64        NVIDIA libcompute package
ii  libnvidia-compute-470:amd64                470.63.01-0ubuntu0.20.04.2            amd64        NVIDIA libcompute package
ii  libnvidia-compute-470:i386                 470.63.01-0ubuntu0.20.04.2            i386         NVIDIA libcompute package
ii  libnvidia-decode-470:amd64                 470.63.01-0ubuntu0.20.04.2            amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-decode-470:i386                  470.63.01-0ubuntu0.20.04.2            i386         NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-470:amd64                 470.63.01-0ubuntu0.20.04.2            amd64        NVENC Video Encoding runtime library
ii  libnvidia-encode-470:i386                  470.63.01-0ubuntu0.20.04.2            i386         NVENC Video Encoding runtime library
ii  libnvidia-extra-470:amd64                  470.63.01-0ubuntu0.20.04.2            amd64        Extra libraries for the NVIDIA driver
ii  libnvidia-fbc1-470:amd64                   470.63.01-0ubuntu0.20.04.2            amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-fbc1-470:i386                    470.63.01-0ubuntu0.20.04.2            i386         NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-470:amd64                     470.63.01-0ubuntu0.20.04.2            amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-gl-470:i386                      470.63.01-0ubuntu0.20.04.2            i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-ifr1-470:amd64                   470.63.01-0ubuntu0.20.04.2            amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  libnvidia-ifr1-470:i386                    470.63.01-0ubuntu0.20.04.2            i386         NVIDIA OpenGL-based Inband Frame Readback runtime library
rc  nvidia-compute-utils-460                   460.91.03-0ubuntu0.20.04.1            amd64        NVIDIA compute utilities
ii  nvidia-compute-utils-470                   470.63.01-0ubuntu0.20.04.2            amd64        NVIDIA compute utilities
rc  nvidia-dkms-460                            460.91.03-0ubuntu0.20.04.1            amd64        NVIDIA DKMS package
ii  nvidia-dkms-470                            470.63.01-0ubuntu0.20.04.2            amd64        NVIDIA DKMS package
ii  nvidia-driver-470                          470.63.01-0ubuntu0.20.04.2            amd64        NVIDIA driver metapackage
rc  nvidia-kernel-common-460                   460.91.03-0ubuntu0.20.04.1            amd64        Shared files used with the kernel module
ii  nvidia-kernel-common-470                   470.63.01-0ubuntu0.20.04.2            amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-470                   470.63.01-0ubuntu0.20.04.2            amd64        NVIDIA kernel source package
rc  nvidia-prime                               0.8.16~0.20.04.1                      all          Tools to enable NVIDIA's Prime
ii  nvidia-prime-applet                        1.2.9                                 all          An applet for NVIDIA Prime
ii  nvidia-settings                            470.57.01-0ubuntu0.20.04.1            amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-470                           470.63.01-0ubuntu0.20.04.2            amd64        NVIDIA driver support binaries
ii  screen-resolution-extra                    0.18build1                            all          Extension for the nvidia-settings control panel
ii  xserver-xorg-video-nvidia-470              470.63.01-0ubuntu0.20.04.2            amd64        NVIDIA binary Xorg driver
kolya@kolya-ASUS-TUF-Gaming-A15-FA506IV-TUF506IV:~$ lspci -nnk | grep -EA3 "3D|VGA"

i see this in settings https://i.imgur.com/y5mgh41.png
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: USB C to DP external monitor Asus tuf 15 laptop and Asus TUF gaming monitor

Post by roblm »

You have Bumblebee installed and it’s configuration files prevent the Nvidia driver from loading. Use this command to remove it: apt purge bumblebee* primus*
MahaRav
Level 1
Level 1
Posts: 42
Joined: Wed Sep 22, 2021 5:48 am

Re: USB C to DP external monitor Asus tuf 15 laptop and Asus TUF gaming monitor

Post by MahaRav »

Ok, I did it, rebooted, and this is what I got.

Code: Select all

~$ dpkg -l | grep nvidia
ii  libnvidia-cfg1-470:amd64                   470.63.01-0ubuntu0.20.04.2            amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-470                       470.63.01-0ubuntu0.20.04.2            all          Shared files used by the NVIDIA libraries
rc  libnvidia-compute-460:amd64                460.91.03-0ubuntu0.20.04.1            amd64        NVIDIA libcompute package
ii  libnvidia-compute-470:amd64                470.63.01-0ubuntu0.20.04.2            amd64        NVIDIA libcompute package
ii  libnvidia-compute-470:i386                 470.63.01-0ubuntu0.20.04.2            i386         NVIDIA libcompute package
ii  libnvidia-decode-470:amd64                 470.63.01-0ubuntu0.20.04.2            amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-decode-470:i386                  470.63.01-0ubuntu0.20.04.2            i386         NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-470:amd64                 470.63.01-0ubuntu0.20.04.2            amd64        NVENC Video Encoding runtime library
ii  libnvidia-encode-470:i386                  470.63.01-0ubuntu0.20.04.2            i386         NVENC Video Encoding runtime library
ii  libnvidia-extra-470:amd64                  470.63.01-0ubuntu0.20.04.2            amd64        Extra libraries for the NVIDIA driver
ii  libnvidia-fbc1-470:amd64                   470.63.01-0ubuntu0.20.04.2            amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-fbc1-470:i386                    470.63.01-0ubuntu0.20.04.2            i386         NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-470:amd64                     470.63.01-0ubuntu0.20.04.2            amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-gl-470:i386                      470.63.01-0ubuntu0.20.04.2            i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-ifr1-470:amd64                   470.63.01-0ubuntu0.20.04.2            amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  libnvidia-ifr1-470:i386                    470.63.01-0ubuntu0.20.04.2            i386         NVIDIA OpenGL-based Inband Frame Readback runtime library
rc  nvidia-compute-utils-460                   460.91.03-0ubuntu0.20.04.1            amd64        NVIDIA compute utilities
ii  nvidia-compute-utils-470                   470.63.01-0ubuntu0.20.04.2            amd64        NVIDIA compute utilities
rc  nvidia-dkms-460                            460.91.03-0ubuntu0.20.04.1            amd64        NVIDIA DKMS package
ii  nvidia-dkms-470                            470.63.01-0ubuntu0.20.04.2            amd64        NVIDIA DKMS package
ii  nvidia-driver-470                          470.63.01-0ubuntu0.20.04.2            amd64        NVIDIA driver metapackage
rc  nvidia-kernel-common-460                   460.91.03-0ubuntu0.20.04.1            amd64        Shared files used with the kernel module
ii  nvidia-kernel-common-470                   470.63.01-0ubuntu0.20.04.2            amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-470                   470.63.01-0ubuntu0.20.04.2            amd64        NVIDIA kernel source package
rc  nvidia-prime                               0.8.16~0.20.04.1                      all          Tools to enable NVIDIA's Prime
ii  nvidia-prime-applet                        1.2.9                                 all          An applet for NVIDIA Prime
ii  nvidia-settings                            470.57.01-0ubuntu0.20.04.1            amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-470                           470.63.01-0ubuntu0.20.04.2            amd64        NVIDIA driver support binaries
ii  screen-resolution-extra                    0.18build1                            all          Extension for the nvidia-settings control panel
ii  xserver-xorg-video-nvidia-470              470.63.01-0ubuntu0.20.04.2            amd64        NVIDIA binary Xorg driver
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: USB C to DP external monitor Asus tuf 15 laptop and Asus TUF gaming monitor

Post by roblm »

What is the output of this command: ls /lib/modules/`uname -r`/kernel/drivers/char/drm
MahaRav
Level 1
Level 1
Posts: 42
Joined: Wed Sep 22, 2021 5:48 am

Re: USB C to DP external monitor Asus tuf 15 laptop and Asus TUF gaming monitor

Post by MahaRav »

nvidia-drm.ko nvidia.ko nvidia-modeset.ko nvidia-peermem.ko nvidia-uvm.ko
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: USB C to DP external monitor Asus tuf 15 laptop and Asus TUF gaming monitor

Post by roblm »

If you still desire to leave Secure Boot enabled, then follow my instructions again in How to install the Nvidia driver with Secure Boot enabled; for drivers installed using Driver Manager, apt or Synaptic.

The only difference is there are 5 kernel modules built after installing the Nvidia-470 driver, instead of 4 modules for previous drivers. I personally recommend disabling Secure Boot, as I don’t think it is needed for most users.
MahaRav
Level 1
Level 1
Posts: 42
Joined: Wed Sep 22, 2021 5:48 am

Re: USB C to DP external monitor Asus tuf 15 laptop and Asus TUF gaming monitor

Post by MahaRav »

Ok, so I disabled secure boot.

Now how can we see that everything is working fine? In the event that the discreet card is now active, how cn I switch from nvidia to the amd, which is suppose to be better for battery saving.

I would have to try tomorrow to see if the external monito connected through usb c works or not. Is there any command that I can use to make sure this is working?
User avatar
SMG
Level 25
Level 25
Posts: 31914
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: USB C to DP external monitor Asus tuf 15 laptop and Asus TUF gaming monitor

Post by SMG »

MahaRav wrote: Sat Sep 25, 2021 1:22 pmNow how can we see that everything is working fine?
If you provide the output of inxi -Gx we can see which card is in use. If Nvidia is showing as the renderer then I expect your external monitor will work (unless there are other issues we have yet to uncover).

I will leave your question about switching to roblm. I believe there have been recent changes to the code and I'm not sure exactly what advances may have been made with regards to easily switching back and forth. I think he may have a computer with the AMD/Nvidia combo and thus would be more likely to know. (I do not have a computer with that graphics combo.)
Image
A woman typing on a laptop with LM20.3 Cinnamon.
MahaRav
Level 1
Level 1
Posts: 42
Joined: Wed Sep 22, 2021 5:48 am

Re: USB C to DP external monitor Asus tuf 15 laptop and Asus TUF gaming monitor

Post by MahaRav »

Thanks, this is the output of

Code: Select all

inxi -Gx

Code: Select all

Graphics:
  Device-1: NVIDIA TU106 [GeForce RTX 2060] vendor: ASUSTeK driver: nvidia 
  v: 470.63.01 bus ID: 01:00.0 
  Device-2: AMD Renoir vendor: ASUSTeK driver: amdgpu v: kernel 
  bus ID: 05:00.0 
  Display: x11 server: X.Org 1.20.11 driver: amdgpu,ati,nvidia 
  unloaded: fbdev,modesetting,nouveau,vesa resolution: 1920x1080~144Hz 
  OpenGL: renderer: AMD RENOIR (DRM 3.40.0 5.11.0-36-generic LLVM 12.0.0) 
  v: 4.6 Mesa 21.0.3 direct render: Yes 
Let me know what you think, it seems to me that AMD still active :(

Roblm looking forward :)
Locked

Return to “Graphics Cards & Monitors”