FreeBSD on legacy nvidia hybrid laptop

Hi I'm a newbie to FreeBSD and I have an old laptop with intel 4600hd and nvidia gtx 765M (should work with nvidia 470 driver)

I tried to do some research but most methods uses nvidia-drm-kmod (which doesn't seem to be available for legacy drivers) or using nvidia-hybrid-graphics which is deprecated

also I don't have any option in the laptop's bios to disable hybrid mode

my question is

is there any way to configure my hybrid setup or at least disable intel gpu from xorg config ?

my device is msi GE60 2OE from around 2013
 
So no wayland with that card?
Maybe it would depend on what compositor is used.
Starting with 470 series of drivers, graphics/egl-wayland should be functional.

So if you're lucky enough and the compositor used supports EGLStream-based Wayland external platform, it may possibly work without graphics/nvidia-drm-*-kmod on Wayland. But such a compositor would be limited. Not sure what compositor actually support EGLStream.
 
Logs appears to indicate that it's working on the Intel driver. Are you not getting a picture on the screen?
Xorg is indeed working but when doing
xrandr --listproviders
It only show intel but not nvidia

Also nvidia-smi works

When trying to use vkcube it tries to run on nvidia gpu then vkcube crashes with segmentation fault
 
I asked claude ai about the situation and it recommended me to connect a monitor to the hdmi connector to make nvidia gpu work

Conversation here
It mutually depends on how the notebook is "physically" designed whether the suggestion works or not.

As far as I've found before (cannot give you a link, I've lost track with it as it was 5+ years ago), at least some notebooks had "external" HDMI and/or DP port directly attached to NVIDIA dGPU, but not to internal display panel.

ThinkPad P52 (at the moment) alone had configuration to disable iGPU via UEFI firmware and let NVIDIA dGPU to drive internal display panel directly.
(To be honest, it seems that internal display panel TP P52 has multiple DP ports and attaching one for iGPU and another one for dGPU with auto selection of active port.)

Some manufacturers / models clearly stated that NVIDIA dGPU can be used via Optimus only.

And all others shows no clear information about the above.
And maybe some og them work indirect rendering without PRIME offloading (let dGPU as if some monitor is connected regardless actually do so or not, and tranfer the results of dGPU rendered image into VRAM area of iGPU, managed and transferred by softwares like x11/virtualgl).
 
It mutually depends on how the notebook is "physically" designed whether the suggestion works or not.

As far as I've found before (cannot give you a link, I've lost track with it as it was 5+ years ago), at least some notebooks had "external" HDMI and/or DP port directly attached to NVIDIA dGPU, but not to internal display panel.

ThinkPad P52 (at the moment) alone had configuration to disable iGPU via UEFI firmware and let NVIDIA dGPU to drive internal display panel directly.
(To be honest, it seems that internal display panel TP P52 has multiple DP ports and attaching one for iGPU and another one for dGPU with auto selection of active port.)

Some manufacturers / models clearly stated that NVIDIA dGPU can be used via Optimus only.

And all others shows no clear information about the above.
And maybe some og them work indirect rendering without PRIME offloading (let dGPU as if some monitor is connected regardless actually do so or not, and tranfer the results of dGPU rendered image into VRAM area of iGPU, managed and transferred by softwares like x11/virtualgl).
when I tried to connect the laptop using hdmi to a tv to see if I can use only nvidia , it seemed that the hdmi port is connected to the intel Igpu rather than nvidia dgpu sadly
 
when I tried to connect the laptop using hdmi to a tv to see if I can use only nvidia , it seemed that the hdmi port is connected to the intel Igpu rather than nvidia dgpu sadly
If your notebook has multiple outputs (i.e., HDMI, mini HDMI, DP, mini DP in any combination), possibly one of the ports alone is connected to dGPU, if you're lucky enough.
 
This lspci looks like it's muxless (Intel on main VGA/NVIDIA on 3D)

I had this years ago for a 1060 laptop and Linux (nothing special iirc but forces specific DDX instead of modesetting):

Code:
Section "OutputClass"
    Identifier  "Intel Graphics"
    MatchDriver "i915"
    Driver    "intel"
    Option    "DRI"       "3"
    Option    "TearFree"  "0"
EndSection

Section "OutputClass"
    Identifier  "NVIDIA Graphics"
    MatchDriver "nouveau"
    Driver    "nouveau"
    Option    "DRI"       "3"
EndSection

I can't find anything about a GE60 having a hardware mux, but I'd check around unlocked BIOS settings (there's likely a toggle for Mux mode but worst-case it doesn't work if there really isn't a hardware mux; with Intel iGPU there's likely Switchable Graphics/SG options that allow disabling external graphics detection and/or disabling NVIDIA's PCI bus).

I used UMAF, but there's a newer tool called zedk (UEFI boot to unlocked BIOS menus). Enabling CSM can also reveal more GPU options (I can set eDP or HDMI VBIOS with Intel with CSM whereas that setting doesn't exist pure-UEFI). If either tool works, it can expose a lot of settings to mess with!
 
This lspci looks like it's muxless (Intel on main VGA/NVIDIA on 3D)

I had this years ago for a 1060 laptop and Linux (nothing special iirc but forces specific DDX instead of modesetting):

Code:
Section "OutputClass"
    Identifier  "Intel Graphics"
    MatchDriver "i915"
    Driver    "intel"
    Option    "DRI"       "3"
    Option    "TearFree"  "0"
EndSection

Section "OutputClass"
    Identifier  "NVIDIA Graphics"
    MatchDriver "nouveau"
    Driver    "nouveau"
    Option    "DRI"       "3"
EndSection

I can't find anything about a GE60 having a hardware mux, but I'd check around unlocked BIOS settings (there's likely a toggle for Mux mode but worst-case it doesn't work if there really isn't a hardware mux; with Intel iGPU there's likely Switchable Graphics/SG options that allow disabling external graphics detection and/or disabling NVIDIA's PCI bus).

I used UMAF, but there's a newer tool called zedk (UEFI boot to unlocked BIOS menus). Enabling CSM can also reveal more GPU options (I can set eDP or HDMI VBIOS with Intel with CSM whereas that setting doesn't exist pure-UEFI). If either tool works, it can expose a lot of settings to mess with!
FreeBSD does NOT have nouveau driver ported. (If I recall correctly, someone once tried and created ports, but never worked well and removed.)

So if you try this way, in the mentioned config for NVIDIA dGPU, Driver line should be "nvidia" instead of "nouveau", would need to add BusID line like BusID "PCI:1:0:0" (here, the argument should edited to match with your PCI configuration if it differs). But would need x11/virtualgl installed and configured (sorry, I've never tried) to transfer anything rendered in VRAM of dGPU to video meory area in main memory that are allocated for iGPU.
 
Back
Top