Page 1 of 1

[INFO] Arch Linux hybrid graphics ArcoLinux

Posted: Fri Mar 20, 2020 8:05 am
by erikdubois
Since I do not have the hardware it takes to make videos, check out these tutorials

https://www.youtube.com/results?search_ ... d+graphics

To any users. Can you add your procedure to get it working on various computers as a comment of this post?

Re: [INFO] Arch Linux hybrid graphics ArcoLinux

Posted: Tue Feb 07, 2023 7:48 am
by oldman33
erikdubois wrote: Fri Mar 20, 2020 8:05 am Since I do not have the hardware it takes to make videos, check out these tutorials

https://www.youtube.com/results?search_ ... d+graphics

To any users. Can you add your procedure to get it working on various computers as a comment of this post?
Hi, thank your GUIDE, i think i installed NVIDIA Legacy and Optimus Manager successfull on Dell Inspiron 3558, would you take little look? Cause i dont know how to properly check it working or not
Here my probe: https://linux-hardware.org/?probe=420ccdfca6


Image
Image
Image
Image
Why i cant see NVIDIA GPU use % in above?

inxi -b

Code: Select all

System:
  Host: tran-inspiron3558 Kernel: 6.1.9-arch1-2 arch: x86_64 bits: 64
    Desktop: Xfce v: 4.18.1 Distro: ArcoLinux
Machine:
  Type: Laptop System: Dell product: Inspiron 3558 v: N/A
    serial: <superuser required>
  Mobo: Dell model: 0G1TDD v: A00 serial: <superuser required> UEFI: Dell
    v: A21 date: 07/09/2020
Battery:
  ID-1: BAT0 charge: 30.0 Wh (88.5%) condition: 33.9/41.4 Wh (81.7%)
CPU:
  Info: dual core Intel Core i5-5200U [MT MCP] speed (MHz): avg: 2559
    min/max: 500/2700
Graphics:
  Device-1: Intel HD Graphics 5500 driver: i915 v: kernel
  Device-2: NVIDIA GK208BM [GeForce 920M] driver: nvidia v: 470.161.03
  Device-3: Sunplus Innovation Integrated_Webcam_HD type: USB
    driver: uvcvideo
  Display: x11 server: X.Org v: 21.1.6 driver: X: loaded: modesetting,nvidia
    dri: iris gpu: i915 resolution: 1366x768~60Hz
  API: OpenGL v: 4.6.0 NVIDIA 470.161.03 renderer: NVIDIA GeForce
    920M/PCIe/SSE2
Network:
  Device-1: Intel Wireless 3160 driver: iwlwifi
  Device-2: Intel Bluetooth wireless interface type: USB driver: btusb
Drives:
  Local Storage: total: 471.36 GiB used: 21.45 GiB (4.5%)
Info:
  Processes: 257 Uptime: 22m Memory: 7.67 GiB used: 3.99 GiB (52.0%)
  Shell: Bash inxi: 3.3.24
inxi -G

Code: Select all

Graphics:
  Device-1: Intel HD Graphics 5500 driver: i915 v: kernel
  Device-2: NVIDIA GK208BM [GeForce 920M] driver: nvidia v: 470.161.03
  Device-3: Sunplus Innovation Integrated_Webcam_HD type: USB
    driver: uvcvideo
  Display: x11 server: X.Org v: 21.1.6 driver: X: loaded: modesetting,nvidia
    dri: iris gpu: i915 resolution: 1366x768~60Hz
  API: OpenGL v: 4.6.0 NVIDIA 470.161.03 renderer: NVIDIA GeForce
    920M/PCIe/SSE2
lsmod_grep-nvidia

Code: Select all

nvidia_drm             73728  8
nvidia_modeset       1478656  6 nvidia_drm
nvidia              40116224  483 nvidia_modeset
video                  65536  4 dell_wmi,dell_laptop,i915,nvidia_modeset
lspci-v
https://drive.google.com/file/d/1nBcE3d ... share_link

Xorg.0.log
https://drive.google.com/file/d/12xv5Wd ... share_link
Image

Re: [INFO] Arch Linux hybrid graphics ArcoLinux

Posted: Tue Feb 07, 2023 11:37 am
by fennec
I see you are able to bring up nvidia-smi as well as the Nvidia Settings window, it typically indicates the Nvidia drivers installed OK.
inix -G also reports Display: x11 server: X.Org v: 21.1.6 driver: X: loaded: modesetting,nvidia

Which mode you are using in Optimus Manager - Nvidia, integrated or hybrid ?
Why i cant see NVIDIA GPU use % in above?
Well it all depends on whether you are doing anything which relies on GPU processing, obviously if you are not doing anything inside Discord then you won't see the GPU % usage increase.

I have included some additional commands which can help out in debugging.

If you have prime-run installed and are using hybrid, you can run an application solely on the Nvidia GPU using

Code: Select all

prime-run $application_name
Alternatively, run (Tested on Wayland, however should work under X11)

Code: Select all

__NV_PRIME_RENDER_OFFLOAD=1 __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia $application_name
Here is an example for Discord:

Code: Select all

__NV_PRIME_RENDER_OFFLOAD=1 __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia discord
Check the output when running this inside a terminal to identify any problems.
Finally look at nvidia-smi then check the running processes.

Re: [INFO] Arch Linux hybrid graphics ArcoLinux

Posted: Sat Feb 11, 2023 4:46 am
by oldman33
fennec wrote: Tue Feb 07, 2023 11:37 am I see you are able to bring up nvidia-smi as well as the Nvidia Settings window, it typically indicates the Nvidia drivers installed OK.
inix -G also reports Display: x11 server: X.Org v: 21.1.6 driver: X: loaded: modesetting,nvidia

Which mode you are using in Optimus Manager - Nvidia, integrated or hybrid ?
Why i cant see NVIDIA GPU use % in above?
Well it all depends on whether you are doing anything which relies on GPU processing, obviously if you are not doing anything inside Discord then you won't see the GPU % usage increase.

I have included some additional commands which can help out in debugging.

If you have prime-run installed and are using hybrid, you can run an application solely on the Nvidia GPU using

Code: Select all

prime-run $application_name
Alternatively, run (Tested on Wayland, however should work under X11)

Code: Select all

__NV_PRIME_RENDER_OFFLOAD=1 __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia $application_name
Here is an example for Discord:

Code: Select all

__NV_PRIME_RENDER_OFFLOAD=1 __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia discord
Check the output when running this inside a terminal to identify any problems.
Finally look at nvidia-smi then check the running processes.
Thank sir!

Code: Select all

$ inix -G also reports Display: x11 server: X.Org v: 21.1.6 driver: X: loaded: modesetting,nvidia
bash: inix: command not found
And currently im running Optimus-Manager as you can see previous my post, didnt install prime-run. Can i using both prime and optimus manager on a system as i machine? or any alternative command to run your commands in optimus manager?

Re: [INFO] Arch Linux hybrid graphics ArcoLinux

Posted: Sat Feb 11, 2023 11:37 am
by fennec
$ inix -G also reports Display: x11 server: X.Org v: 21.1.6 driver: X: loaded: modesetting,nvidia
bash: inix: command not found
It was a typo disregard.
And currently im running Optimus-Manager as you can see previous my post, didnt install prime-run. Can i using both prime and optimus manager on a system as i machine? or any alternative command to run your commands in optimus manager?
You don't need prime-run installed.
This is just a wrapper script which invokes:

Code: Select all

#!/bin/bash
__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia $application_name
There are many options just test them and find out which works for you.

Disclaimer: I don't use Optimus Manager anymore, and switched over to EnvyControl for GPU switching.

Re: [INFO] Arch Linux hybrid graphics ArcoLinux

Posted: Mon Feb 13, 2023 6:31 am
by oldman33
fennec wrote: Sat Feb 11, 2023 11:37 am
$ inix -G also reports Display: x11 server: X.Org v: 21.1.6 driver: X: loaded: modesetting,nvidia
bash: inix: command not found
It was a typo disregard.
And currently im running Optimus-Manager as you can see previous my post, didnt install prime-run. Can i using both prime and optimus manager on a system as i machine? or any alternative command to run your commands in optimus manager?
You don't need prime-run installed.
This is just a wrapper script which invokes:

Code: Select all

#!/bin/bash
__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia $application_name
There are many options just test them and find out which works for you.

Disclaimer: I don't use Optimus Manager anymore, and switched over to EnvyControl for GPU switching.
Thank but i think will pin with Optimus Manager, cause everytime swithc graphics card need reboot with envycontrol. Why you decide using enycontrol?
Yes,

Code: Select all

 inxi -G
is correct, sorry

Code: Select all

#!/bin/bash
__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia $application_name
I created 2.sh text file with above content and cant run after

Code: Select all

chmod + x

Code: Select all

$ su ./2.sh
su: user ./2.sh does not exist or the user entry does not contain all the required fields

Re: [INFO] Arch Linux hybrid graphics ArcoLinux

Posted: Mon Feb 13, 2023 9:31 am
by fennec
I chose EnvyControl since I wanted a more lightweight solution to Optimus Manager.
Optimus Manager was also slowing down my boot time and I had to apply a patch to speed things up: https://arcolinuxforum.com/viewtopic.php?t=3362

Plus, I only use Hybrid mode on the Linux LTS kernel, rebooting isn't a real issue for me.

For more details on EnvyControl see: https://arcolinuxforum.com/viewtopic.php?t=3422

$ su ./2.sh
su: user ./2.sh does not exist or the user entry does not contain all the required fields
su isn't required here just use

Code: Select all

./2.sh
Obviously change $application_name to an actual application name.