Forcing Manjaro Cinnamon to use dedicated Nvidia GPU

Here is the output>

glxinfo | grep vendor
server glx vendor string: SGI
client glx vendor string: Mesa Project and SGI
OpenGL vendor string: Intel

Now I do the upgrqade.

On my lenovo I can select either Graphics system ONLY or Optimus in the BIOS.

Was mentioned here:

But as you’re not doing that, I might have another idea:

What’s the output of

mhwd --listinstalled

:question:

Last night I did the pamac upgrade.
Now here is the output of mhwd:

mhwd --listinstalled
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
     video-modesetting            2020.01.13                true            PCI
video-hybrid-intel-nvidia-prime            2020.11.30               false            PCI


Warning: No installed USB configs!

There is a strange thing. Meanwhile the pamac upgrade run i noticed this message series, more than one time.

ldconfig: /usr/lib32/libnvidia-glvkspirv.so.460.39 is not a symbolic link
ldconfig: /usr/lib32/libnvidia-glsi.so.460.39 is not a symbolic link
ldconfig: /usr/lib32/libnvidia-eglcore.so.460.39 is not a symbolic link
ldconfig: /usr/lib32/libnvidia-glcore.so.460.39 is not a symbolic link
ldconfig: /usr/lib32/libnvidia-tls.so.460.39 is not a symbolic link
ldconfig: /usr/lib/libnvidia-glvkspirv.so.460.39 is not a symbolic link
ldconfig: /usr/lib/libnvidia-glsi.so.460.39 is not a symbolic link
ldconfig: /usr/lib/libnvidia-gtk3.so.460.39 is not a symbolic link
ldconfig: /usr/lib/libnvidia-eglcore.so.460.39 is not a symbolic link
ldconfig: /usr/lib/libnvidia-rtcore.so.460.39 is not a symbolic link
ldconfig: /usr/lib/libnvidia-glcore.so.460.39 is not a symbolic link
ldconfig: /usr/lib/libnvidia-cbl.so.460.39 is not a symbolic link
ldconfig: /usr/lib/libnvidia-gtk2.so.460.39 is not a symbolic link
ldconfig: /usr/lib/libnvidia-tls.so.460.39 is not a symbolic link

Something went wrong?

On my MSI I can’t find such option. I don’t know why.

I must reinstall my system from the scratch, again. It wont work, I got only a black screen, nothing else, ctrl+alt+f2 wont respond.
So, here are the collected info again:

inxi --admin --verbosity=7 --filter --no-host --width 
System:
  Kernel: 5.9.16-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.1 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.9-x86_64 
  root=UUID=bd4da113-5777-4835-ae61-c87d9e43f3fb rw quiet udev.log_priority=3 
  Desktop: Cinnamon 4.8.6 tk: GTK 3.24.24 dm: LightDM 1.30.0 
  Distro: Manjaro Linux 
Machine:
  Type: Laptop System: Micro-Star product: GF63 Thin 10SCXR v: REV:1.0 
  serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: Micro-Star model: MS-16R4 v: REV:1.0 serial: <filter> 
  UEFI: American Megatrends v: E16R4IMS.105 date: 04/17/2020 
Battery:
  ID-1: BAT1 charge: 44.7 Wh condition: 47.6/51.3 Wh (93%) volts: 12.6/11.4 
  model: MSI Corp. MS-16R4 type: Li-ion serial: N/A status: Unknown 
Memory:
  RAM: total: 31.18 GiB used: 1.75 GiB (5.6%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: 6-Core model: Intel Core i7-10750H bits: 64 type: MT MCP 
  arch: Comet Lake family: 6 model-id: A5 (165) stepping: 2 microcode: E0 
  L2 cache: 12 MiB bogomips: 62431 
  Speed: 800 MHz min/max: 800/5000 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 
  4: 800 5: 800 6: 800 7: 800 8: 800 9: 800 10: 800 11: 800 12: 800 
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_capabilities 
  arch_perfmon art avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc 
  cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms 
  est f16c flexpriority flush_l1d fma fpu fsgsbase fxsr ht hwp hwp_act_window 
  hwp_epp hwp_notify ibpb ibrs ibrs_enhanced ida intel_pt invpcid 
  invpcid_single lahf_lm lm mca mce md_clear mmx monitor movbe mpx msr mtrr 
  nonstop_tsc nopl nx ospke pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge 
  pku pln pni popcnt pse pse36 pts rdrand rdseed rdtscp rep_good sdbg sep smap 
  smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow 
  tsc tsc_adjust tsc_deadline_timer vme vmx vnmi vpid x2apic xgetbv1 xsave 
  xsavec xsaveopt xsaves xtopology xtpr 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel UHD Graphics vendor: Micro-Star MSI driver: i915 v: kernel 
  bus ID: 00:02.0 chip ID: 8086:9bc4 class ID: 0300 
  Device-2: NVIDIA TU117M vendor: Micro-Star MSI driver: nouveau v: kernel 
  bus ID: 01:00.0 chip ID: 10de:1f99 class ID: 0302 
  Display: x11 server: X.Org 1.20.10 driver: loaded: intel,modesetting,nouveau 
  alternate: fbdev,nv,vesa display ID: :0 screens: 1 
  Screen-1: 0 s-res: 1920x1200 s-dpi: 96 s-size: 508x318mm (20.0x12.5") 
  s-diag: 599mm (23.6") 
  OpenGL: renderer: Mesa Intel UHD Graphics (CML GT2) v: 4.6 Mesa 20.3.4 
  direct render: Yes 
Audio:
  Device-1: Intel Comet Lake PCH cAVS vendor: Micro-Star MSI 
  driver: snd_hda_intel v: kernel alternate: snd_soc_skl,snd_sof_pci 
  bus ID: 00:1f.3 chip ID: 8086:06c8 class ID: 0403 
  Sound Server: ALSA v: k5.9.16-1-MANJARO 
Network:
  Device-1: Intel Wireless-AC 9462/9560 driver: iwlwifi v: kernel port: 5000 
  bus ID: 00:14.3 chip ID: 8086:06f0 class ID: 0280 
  IF: wlo1 state: up mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Micro-Star MSI driver: r8169 v: kernel port: 3000 bus ID: 03:00.0 
  chip ID: 10ec:8168 class ID: 0200 
  IF: enp3s0 state: down mac: <filter> 
  WAN IP: <filter> 
Bluetooth:
  Device-1: Intel type: USB driver: btusb v: 0.8 bus ID: 1-14:4 
  chip ID: 8087:0026 class ID: e001 
  Message: Required tool hciconfig not installed. Check --recommends 
RAID:
  Message: No RAID data was found. 
Drives:
  Local Storage: total: 1.38 TiB used: 24.47 GiB (1.7%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Kingston model: RBUSNS8154P3512GJ5 
  size: 476.94 GiB block size: physical: 512 B logical: 512 B speed: 15.8 Gb/s 
  lanes: 2 rotation: SSD serial: <filter> rev: E8FK12.D temp: 32.9 C 
  scheme: GPT 
  ID-2: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000LM048-2E7172 
  size: 931.51 GiB block size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  rotation: 5400 rpm serial: <filter> rev: 0001 scheme: GPT 
  Message: No Optical or Floppy data was found. 
Partition:
  ID-1: / raw size: 238.42 GiB size: 233.68 GiB (98.01%) used: 6.76 GiB (2.9%) 
  fs: ext4 dev: /dev/sda2 maj-min: 8:2 label: N/A 
  uuid: bd4da113-5777-4835-ae61-c87d9e43f3fb 
  ID-2: /boot/efi raw size: 300 MiB size: 299.4 MiB (99.80%) 
  used: 312 KiB (0.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1 label: N/A 
  uuid: FF3C-41DF 
  ID-3: /mnt/misc_disk raw size: 684 GiB size: 672.26 GiB (98.28%) 
  used: 17.71 GiB (2.6%) fs: ext4 dev: /dev/sda4 maj-min: 8:4 label: misc 
  uuid: f417ae0c-6b9f-45d7-affb-827b6ad26286 
Swap:
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/sda3 maj-min: 8:3 label: N/A 
  uuid: 42569afe-0e3a-49ef-9c01-93d866fdac4a 
Unmounted:
  ID-1: /dev/nvme0n1p1 maj-min: 259:1 size: 300 MiB fs: vfat label: N/A 
  uuid: 5784-E453 
  ID-2: /dev/nvme0n1p2 maj-min: 259:2 size: 467.84 GiB fs: ext4 label: N/A 
  uuid: 60978d81-4b3b-428f-a697-d01b64bee662 
  ID-3: /dev/nvme0n1p3 maj-min: 259:3 size: 8.8 GiB fs: swap label: N/A 
  uuid: 1b1e4b23-4337-48a2-adda-b0cb3b11da59 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 16 rev: 2.0 
  speed: 480 Mb/s chip ID: 1d6b:0002 class ID: 0900 
  Device-1: 1-3:2 info: Logitech M105 Optical Mouse type: Mouse 
  driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 1.5 Mb/s 
  chip ID: 046d:c077 class ID: 0301 
  Device-2: 1-4:3 info: Logitech Keyboard K120 type: Keyboard,HID 
  driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 1.5 Mb/s 
  chip ID: 046d:c31c class ID: 0300 
  Device-3: 1-14:4 info: Intel type: Bluetooth driver: btusb interfaces: 2 
  rev: 2.0 speed: 12 Mb/s chip ID: 8087:0026 class ID: e001 
  Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 8 rev: 3.1 speed: 10 Gb/s 
  chip ID: 1d6b:0003 class ID: 0900 
Sensors:
  System Temperatures: cpu: 40.0 C mobo: N/A gpu: nouveau temp: 25.0 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 281 Uptime: 9m wakeups: 1 Init: systemd v: 247 Compilers: 
  gcc: N/A Packages: pacman: 912 lib: 330 flatpak: 0 Shell: Bash v: 5.1.0 
  running in: gnome-terminal inxi: 3.3.01
glxinfo | grep vendor
server glx vendor string: SGI
client glx vendor string: Mesa Project and SGI
OpenGL vendor string: Intel
mhwd --listinstalled
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI


Warning: No installed USB configs!

Let me know what else do you need?

Let’s take a step back:

  • in this config you should just have removed video-modesetting and video-hybrid-intel-nvidia-prime and added video-nvidia.
  • in this one you need to add video-nvidia and remove video-linux.

as stated in my original message

If that doesn’t work, your system’s nVidia card is not hooked up to the internal display electrically (it happens on cheap systems) and then you need to install the video-hybrid-intel-nvidia-prime and do a prime-switch to make the nVidia card the primary. (the intel will be used as a pass-through card for displaying what the nVidia calculated)…

Am I making sense now or am I still talking gibberish?

:fearful:

None of the commands were worked, with one exception the reboot.

  1. Error: config video-hybrid-intel-nvidia-prime is not installed!
  2. No such file or directory
  3. No such file or directory
  4. Error: config video-nvidia does not exist!

So I would follow the second part of your post.
Which command does install the video-hybrid-intel-nvidia-prime?

Can you give me the full output, please?

Also, what’s the output of:

mhwd --listall

:thinking:

sudo mhwd --remove pci video-hybrid-intel-nvidia-prime
Error: config 'video-hybrid-intel-nvidia-prime' is not installed!

sudo mv /etc/X11/mhwd.d/nvidia.conf /etc/X11/mhwd.d/nvidia.conf.bak
mv: cannot stat '/etc/X11/mhwd.d/nvidia.conf': No such file or directory

sudo mv /etc/X11/xorg.conf.d/90-mhwd.conf /etc/X11/xorg.conf.d/90-mhwd.conf.bak
mv: cannot stat '/etc/X11/xorg.conf.d/90-mhwd.conf': No such file or directory

sudo mhwd --install pci video-nvidia
Error: config 'video-nvidia' does not exist!

mhwd --listall
> All PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
          video-voodoo            2017.03.12                true            PCI
  video-virtualmachine            2020.03.26                true            PCI
              video-s3            2020.01.18                true            PCI
            video-vesa            2017.03.12                true            PCI
          video-sisusb            2020.01.18                true            PCI
           video-linux            2018.05.04                true            PCI
       video-rendition            2020.01.18                true            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2020.11.30               false            PCI
    video-nvidia-390xx            2020.11.30               false            PCI
      video-openchrome            2020.01.18                true            PCI
     video-modesetting            2020.01.13                true            PCI
     network-rt3562sta            2013.12.07                true            PCI
   network-broadcom-wl            2018.10.07                true            PCI
         network-r8168            2016.04.20                true            PCI
       network-slmodem            2013.12.07                true            PCI


Warning: No USB configs found!

You’re on the 5.9 kernel and that’s EOL!

sudo mhwd-kernel --install linux510
sudo mhwd-kernel --install linux54
sudo mhwd-kernel --remove linux59
sudo reboot

then try again…

Sorry! I should have caught that!!!

:man_facepalming:

The kernel is updated with that three commands.
Now:

mhwd --listall
> All PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
          video-voodoo            2017.03.12                true            PCI
  video-virtualmachine            2020.03.26                true            PCI
              video-s3            2020.01.18                true            PCI
            video-vesa            2017.03.12                true            PCI
          video-sisusb            2020.01.18                true            PCI
           video-linux            2018.05.04                true            PCI
       video-rendition            2020.01.18                true            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2020.11.30               false            PCI
    video-nvidia-390xx            2020.11.30               false            PCI
      video-openchrome            2020.01.18                true            PCI
     video-modesetting            2020.01.13                true            PCI
     network-rt3562sta            2013.12.07                true            PCI
   network-broadcom-wl            2018.10.07                true            PCI
         network-r8168            2016.04.20                true            PCI
       network-slmodem            2013.12.07                true            PCI


Warning: No USB configs found!

Did you do a

pamac upgrade

for one of those kernels too?

:question:

I didn’t do that. But after I read your post I did right now.

pamac upgrade
Preparing...
Synchronizing package databases...
Nothing to do.
Transaction successfully finished.

:open_mouth:

mhwd --listall
> All PCI configs:
--------------------------------------------------------------------------------
NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-openchrome            2020.01.18                true            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2020.11.30               fa
video-nvidia            2020.11.30               false            PCI
video-s3            2020.01.18                true            PCI
video-hybrid-amd-nvidia-prime            2020.11.30               false         
video-sisusb            2020.01.18                true            PCI
video-modesetting            2020.01.13                true            PCI
video-vesa            2017.03.12                true            PCI
video-rendition            2020.01.18                true            PCI
video-linux            2018.05.04                true            PCI
video-hybrid-intel-nvidia-prime            2020.11.30               false       
video-nvidia-390xx            2020.11.30               false            PCI
video-voodoo            2017.03.12                true            PCI
video-virtualmachine            2020.03.26                true            PCI
network-r8168            2016.04.20                true            PCI
network-rt3562sta            2013.12.07                true            PCI
network-slmodem            2013.12.07                true            PCI
network-broadcom-wl            2018.10.07                true            PCI


Warning: No USB configs found!

Lemme reboot into 5.4 and please check these as well:

lsb_release --all
LSB Version:    n/a
Distributor ID: ManjaroLinux
Description:    Manjaro Linux
Release:        20.2.1
Codename:       Nibia

uname --kernel-release
5.10.18-1-MANJARO

:thinking:

Here is the same, I think.

lsb_release --all
LSB Version:	n/a
Distributor ID:	ManjaroLinux
Description:	Manjaro Linux
Release:	20.2.1
Codename:	Nibia

uname --kernel-release
5.10.18-1-MANJARO

Tha only thing I can think of now is that you re-installed with Open Source drivers only…

What does running mhwd from the GUI give you???

1 Like

I’m sorry to say but the only thing I can think of is: another re-install and ensure you turn on “proprietary drivers” because I can’t seem to find how to do that after the fact…

(and nearly bed time here!)

OK. Here is bed time too. Next day I try from the scratch again.

1 Like