Re: Help with Optimus and external monitor use

2023-05-23 Thread Bob McGowan
Additional info:
$ nvidia-detect
Detected NVIDIA GPUs:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU117M
[GeForce GTX 1650 Mobile / Max-Q] [10de:1f91] (rev a1)

Checking card:  NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / Max-Q]
(rev a1)
Your card is supported by the default drivers.
Your card is also supported by the Tesla 470 drivers series.
Your card is also supported by the Tesla 450 drivers series.
Your card is also supported by the Tesla 418 drivers series.
It is recommended to install the
nvidia-driver
package.

$ apt search nvidia-driver
Sorting... Done
Full Text Search... Done
glx-alternative-nvidia/stable,now 1.2.1~deb11u1 amd64 [installed,automatic]
 allows the selection of NVIDIA as GLX provider

libegl-nvidia0/stable,now 470.182.03-1 amd64 [installed,automatic]
 NVIDIA binary EGL library

libgl1-nvidia-glvnd-glx/stable,now 470.182.03-1 amd64 [installed,automatic]
 NVIDIA binary OpenGL/GLX library (GLVND variant)

libgles-nvidia1/stable,now 470.182.03-1 amd64 [installed,automatic]
 NVIDIA binary OpenGL|ES 1.x library

libgles-nvidia2/stable,now 470.182.03-1 amd64 [installed,automatic]
 NVIDIA binary OpenGL|ES 2.x library

libglx-nvidia0/stable,now 470.182.03-1 amd64 [installed,automatic]
 NVIDIA binary GLX library

nvidia-alternative/stable,now 470.182.03-1 amd64 [installed,automatic]
 allows the selection of NVIDIA as GLX provider

nvidia-detect/stable,now 470.182.03-1 amd64 [installed]
 NVIDIA GPU detection utility

nvidia-driver/stable,now 470.182.03-1 amd64 [installed]
 NVIDIA metapackage

nvidia-driver-bin/stable,now 470.182.03-1 amd64 [installed,automatic]
 NVIDIA driver support binaries

nvidia-driver-libs/stable,now 470.182.03-1 amd64 [installed,automatic]
 NVIDIA metapackage (OpenGL/GLX/EGL/GLES libraries)

nvidia-kernel-dkms/stable,now 470.182.03-1 amd64 [installed,automatic]
 NVIDIA binary kernel module DKMS source

nvidia-kernel-source/stable 470.182.03-1 amd64
 NVIDIA binary kernel module source

nvidia-legacy-390xx-driver/stable 390.157-1~deb11u1 amd64
 NVIDIA metapackage (390xx legacy version)

nvidia-legacy-390xx-kernel-dkms/stable 390.157-1~deb11u1 amd64
 NVIDIA binary kernel module DKMS source (390xx legacy version)

nvidia-legacy-390xx-kernel-source/stable 390.157-1~deb11u1 amd64
 NVIDIA binary kernel module source (390xx legacy version)

xserver-xorg-video-nvidia/stable,now 470.182.03-1 amd64
[installed,automatic]
 NVIDIA binary Xorg driver

xserver-xorg-video-nvidia-legacy-390xx/stable 390.157-1~deb11u1 amd64
 NVIDIA binary Xorg driver (390xx legacy version)

$
Bob


Help with Optimus and external monitor use

2023-05-22 Thread Bob McGowan

Hi,

I have an Asus Tuf Gaming laptop which has an Optimus configuration, 
with an AMD GPU rather than Intel.


I'm running Debian 11.7

I do not have any of the "other" auxiliary software tools installed, 
such as Primus (primusrun...).


When I run glxgears -info, I see it using the AMD GPU as expected.

Setting __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 
__GLX_VENDOR_LIBRARY_NAME=nvidiaas described in the Debian Wiki 
 
and then running glxgears -info shows it is using the Nvidia GPU, as 
expected.


My problem is that what I want is to use the external HDMI with an 
external monitor.


So in the section of the Wiki page titled "PRIME Render Offload with an 
External Display", I followed the instructions to run nvidia-xconfig 
(had to install it first).


That failed. :(

I finally took a look at Xorg.0.logand discovered the following error:

   [  5116.917] (II) LoadModule: "nvidia"
   [  5116.917] (WW) Warning, couldn't open module nvidia
   [  5116.917] (EE) Failed to load module "nvidia" (module does not
   exist, 0)

What "module" is this referring to?

The kernal module is loaded:

   $ lsmod | grep nvidia
   nvidia_modeset   1204224  1
   nvidia  35528704  19 nvidia_modeset
   drm   630784  19
   gpu_sched,drm_kms_helper,nvidia,amdgpu,ttm

Do I have an incorrect X "driver" and if so, what do I need to 
remove/install?


Thanks for your help.

Bob