Cinnamon desktop nvidia not used & issue with resolution: <missing: xdpyinfo>

Hello,

i installed recently manjaro these days ( i migrated from linux mint )

it’s a begginer friendly distro and everything goes smoothly at this moment except one thing…

as you can imagine i have the same problem than the others users with the famous driver of nvidia

i’m using the desktop environment cinnamon based on Lightdm so in this case what optimus program i have to use?

this one ? → GitHub - Askannz/optimus-manager: A Linux program to handle GPU switching on Optimus laptops.

or maybe this ? → GitHub - dglt1/optimus-switch: *installer finished* installs nvidia prime and makes switching to intel only and back again easy as one command. intel mode fully disables the nvidia gpu to extend battery life.

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



``glxinfo | grep -i vendor
server glx vendor string: SGI
client glx vendor string: Mesa Project and SGI
    Vendor: Intel (0x8086)
OpenGL vendor string: Intel``



i have an optimus laptop with this characteristics 


``System:
  Host: willpow4-hp Kernel: 5.12.2-1-MANJARO x86_64 bits: 64 
  Desktop: Cinnamon 4.8.6 Distro: Manjaro Linux 
Machine:
  Type: Laptop System: HP product: HP Pavilion Notebook v: N/A 
  serial: 5CD8475263 
  Mobo: HP model: 84F8 v: 08.10 serial: PHNEF018JBK089 UEFI: AMI v: F.18 
  date: 06/20/2018 
Battery:
  ID-1: BAT0 charge: 40.1 Wh (76.1%) condition: 52.7/52.7 Wh (100.0%) 
  volts: 11.5 min: 11.6 
CPU:
  Info: Quad Core model: Intel Core i5-8300H bits: 64 type: MT MCP cache: 
  L2: 8 MiB 
  Speed: 800 MHz min/max: 800/4000 MHz Core speeds (MHz): 1: 800 2: 800 
  3: 800 4: 800 5: 800 6: 800 7: 800 8: 799 
Graphics:
  Device-1: Intel UHD Graphics 630 driver: i915 v: kernel 
  Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] driver: nvidia v: 460.80 
  Device-3: Chicony HP Wide Vision HD type: USB driver: uvcvideo 
  Display: server: X.org 1.20.11 driver: loaded: modesetting,nvidia 
  resolution: <missing: xdpyinfo> 
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 21.0.3 
Audio:
  Device-1: Intel Cannon Lake PCH cAVS driver: snd_hda_intel 
  Sound Server-1: ALSA v: k5.12.2-1-MANJARO running: yes 
  Sound Server-2: PulseAudio v: 14.2 running: yes 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  driver: r8169 
  IF: eno1 state: down mac: 84:a9:3e:16:76:93 
  Device-2: Realtek RTL8822BE 802.11a/b/g/n/ac WiFi adapter 
  driver: rtw_8822be 
  IF: wlo1 state: up
Bluetooth:
  Device-1: Realtek Realtek Bluetooth 4.2 Adapter type: USB driver: btusb 
  Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: enabled,running 
  rfk-block: hardware: no software: yes address: see --recommends 
RAID:
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci 
Drives:
  Local Storage: total: 1.03 TiB used: 86.99 GiB (8.3%) 
  ID-1: /dev/sda vendor: SanDisk model: SD9SN8W-128G-1006 size: 119.24 GiB 
  ID-2: /dev/sdb vendor: Toshiba model: MQ04ABF100 size: 931.51 GiB 
Partition:
  ID-1: / size: 74.35 GiB used: 25.06 GiB (33.7%) fs: ext4 dev: /dev/sda3 
  ID-2: /boot/efi size: 514 MiB used: 296 KiB (0.1%) fs: vfat dev: /dev/sda2 
  ID-3: /home size: 876.01 GiB used: 61.93 GiB (7.1%) fs: ext4 
  dev: /dev/sdb1 
Swap:
  Alert: No swap data was found. 
Sensors:
  System Temperatures: cpu: 38.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 277 Uptime: 55m Memory: 7.62 GiB used: 2.27 GiB (29.8%) 
  Shell: Bash inxi: 3.3.04 

btw about the problem resolution: <missing: xdpyinfo> how i can fix it?

thank you so much

This is not really a problem. It means the xdpyinfo program is not installed, inxi cannot query the monitor resolutions. You can pacman -S xorg-xdpyinfo to install it.

Thanks for your fast reply

I will check it

Now what guide i have to follow if i want to install nvidia drivers on cinnamon?

Thax