Nitro 5 3060/intel GFX switchable?

Hi, I’m just trying to get EndeavourOS installed on my laptop Nitro AN517-54.
It has switchable graphics Intel UHD/Nvidia 3060.

The default gpu is the Intel.

I installed proprietary drivers for Nivdia via nvidia-inst and tried nvidia-inst -b for bumblebee.

Nvidia-settings won’t open.

I’ve tried installing optimus-manager and optimus-manager-qt, but this leads to the system getting stuck at boot up.

lspci shows
0000:01:00.0 VGA compatible controller: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] (rev a1)

Does anyone know what my best approach should be to get this working?

Thanks.

Were you able to have it booting on nouveau open source drivers. You should be able to revert to nouveau with

nvidia-inst -n

Then see if it will boot properly with the open source drivers. If you get it booting then run and post the link.

inxi -Faz | eos-sendlog

Then we can try to install the nvidia drivers again. I don’t think i would use bumblebee. It’s old and outdated. optimus-manager is usually the way to go.

Edit: I don’t know your hardware and you may be able to set discrete graphics in UEFI as @jonathon says below.

Edit2: I think he is referring to prime render?

https://wiki.archlinux.org/title/PRIME#PRIME_GPU_offloading

Set discrete graphics in the UEFI.

If you want switchable graphics then don’t use Bumblebee, and you don’t even need optimus-manager for render offload to work.

HI Rick, I did an alt-f2, logged in and uninstalled the opitum-manager, which allowed me to get back to a login screen.

https://clbin.com/7UZmL

I originally tried optimus-manager-qt and it just seems to get stuck whilst loading.

Thanks jonathan, I’ll have a look for that in the UEFI, will that just set my GPU to be permanently NVIDIA instead of the intel, would be nice to be able to switch between the two for power saving.

Can you also run

inxi -Ga

Edit: I don’t see any nvidia drivers loaded.

thanks, that’s handy,

Graphics:
  Device-1: Intel TigerLake-H GT1 [UHD Graphics]
    vendor: Acer Incorporated ALI driver: i915 v: kernel arch: Gen12.1
    process: Intel 10nm built: 2020-21 ports: active: eDP-1 empty: DP-1,DP-2
    bus-ID: 0000:00:02.0 chip-ID: 8086:9a60 class-ID: 0300
  Device-2: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q]
    vendor: Acer Incorporated ALI driver: N/A
    alternate: nouveau, nvidia_drm, nvidia non-free: 515.xx+
    status: current (as of 2022-06) arch: Ampere process: TSMC n7 (7nm)
    built: 2020-22 bus-ID: 0000:01:00.0 chip-ID: 10de:2520 class-ID: 0300
  Device-3: Quanta HD User Facing type: USB driver: uvcvideo bus-ID: 3-9:3
    chip-ID: 0408:a061 class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.2
    compositor: kwin_x11 driver: X: loaded: nvidia gpu: i915 display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.65x15.00")
    s-diag: 777mm (30.58")
  Monitor-1: eDP-1 mapped: eDP1 model: BOE Display 0x0a13 built: 2021
    res: 2560x1440 hz: 60 dpi: 171 gamma: 1.2 size: 380x210mm (14.96x8.27")
    diag: 437mm (17.2") ratio: 16:9 modes: 2560x1440
  OpenGL: renderer: Mesa Intel UHD Graphics (TGL GT1) v: 4.6 Mesa 22.1.2
    direct render: Yes

Yes.

The difference isn’t as great as you’d think with anything newer than Pascal, and Ampere is pretty efficient. Also given you have Intel+NVIDIA then the dynamic boost feature might even work, with power-profiles-daemon integration.

Don’t forget to use code tags around the output you post to make it easier to read.

Edit: It looks like it’s running strictly on Intel. I don’t see nvidia drivers installed.

You can run a test and show what it ouputs.

nvidia-inst -t
[jclow@Promootheus-Laptop ~]$ nvidia-inst -t
2022-06-25 15:50:45: Info: Running: nvidia-inst v1.2-1
2022-06-25 15:50:45: Info: Command line: nvidia-inst -t
2022-06-25 15:50:45: Info: Selected mode: nvidia
2022-06-25 15:50:46: Info: Removing user jclow from group: bumblebee
2022-06-25 15:50:46: Info: Removing user jclow from group: video
2022-06-25 15:50:46: Info: Disabling bumblebeed.service
2022-06-25 15:50:46: Info: Installing packages: nvidia-hook
2022-06-25 15:50:46: Info: Removing packages: bbswitch-dkms bumblebee lib32-nvidia-utils
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COMMANDS TO RUN:
    pacman -Rs --noconfirm --noprogressbar --nodeps bbswitch-dkms bumblebee lib32-nvidia-utils
    pacman -Syuq --noconfirm --noprogressbar --needed nvidia-hook
    gpasswd -d jclow bumblebee
    gpasswd -d jclow video
    systemctl disable bumblebeed.service
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I don’t know what @jonathon thinks but if it were me i would revert to nouveau first.

nvidia-inst -n

Make sure it boots and check the driver status

inxi -Ga

Hopefully it will show nouveau open source and it boots and works. Then i would install nvidia drivers.

nvidia-inst

Don’t install anything else. See if it boots and check driver status again. If all is good you should be able to use it and switch with prime render?

Thanks I’ll give that a go.

Unfortunately, it looks like the drivers for nouveau aren’t being loaded either.
I rebooted after nvidia-inst -n

Graphics:
  Device-1: Intel TigerLake-H GT1 [UHD Graphics]
    vendor: Acer Incorporated ALI driver: i915 v: kernel arch: Gen12.1
    process: Intel 10nm built: 2020-21 ports: active: eDP-1 empty: DP-1,DP-2
    bus-ID: 0000:00:02.0 chip-ID: 8086:9a60 class-ID: 0300
  Device-2: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q]
    vendor: Acer Incorporated ALI driver: N/A
    alternate: nouveau, nvidia_drm, nvidia non-free: 515.xx+
    status: current (as of 2022-06) arch: Ampere process: TSMC n7 (7nm)
    built: 2020-22 bus-ID: 0000:01:00.0 chip-ID: 10de:2520 class-ID: 0300
  Device-3: Quanta HD User Facing type: USB driver: uvcvideo bus-ID: 3-9:2
    chip-ID: 0408:a061 class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.2
    compositor: kwin_x11 driver: X: loaded: intel unloaded: modesetting
    alternate: fbdev,vesa gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.65x15.00")
    s-diag: 777mm (30.58")
  Monitor-1: eDP-1 mapped: eDP1 model: BOE Display 0x0a13 built: 2021
    res: 2560x1440 hz: 60 dpi: 171 gamma: 1.2 size: 380x210mm (14.96x8.27")
    diag: 437mm (17.2") ratio: 16:9 modes: 2560x1440
  OpenGL: renderer: Mesa Intel UHD Graphics (TGL GT1) v: 4.6 Mesa 22.1.2
    direct render: Yes

Is it booting to the desktop?

yes, boots to the desktop fine.

Didn’t install the nvidia drivers yet, was just checking to see if the neuvaeu ones loaded.

What does it show now if you run another test.

nvidia-inst -t
2022-06-25 16:06:45: Info: Running: nvidia-inst v1.2-1
2022-06-25 16:06:45: Info: Command line: nvidia-inst -t
2022-06-25 16:06:45: Info: Selected mode: nvidia
2022-06-25 16:06:48: Info: Disabling bumblebeed.service
2022-06-25 16:06:48: Info: Installing packages: nvidia-hook
2022-06-25 16:06:48: Info: Removing packages: bbswitch-dkms bumblebee lib32-nvidia-utils xf86-video-nouveau
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COMMANDS TO RUN:
    pacman -Rs --noconfirm --noprogressbar --nodeps bbswitch-dkms bumblebee lib32-nvidia-utils xf86-video-nouveau
    pacman -Syuq --noconfirm --noprogressbar --needed nvidia-hook
    systemctl disable bumblebeed.service
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I think i would try running it

nvidia-inst
[jclow@Promootheus-Laptop ~]$ nvidia-inst
2022-06-25 16:08:54: Info: Running: nvidia-inst v1.2-1
2022-06-25 16:08:54: Info: Command line: nvidia-inst 
2022-06-25 16:08:54: Info: Selected mode: nvidia
2022-06-25 16:08:55: Info: Disabling bumblebeed.service
2022-06-25 16:08:56: Info: Installing packages: nvidia-hook
2022-06-25 16:08:56: Info: Removing packages: bbswitch-dkms bumblebee lib32-nvidia-utils xf86-video-nouveau
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COMMANDS TO RUN:
    pacman -Rs --noconfirm --noprogressbar --nodeps bbswitch-dkms bumblebee lib32-nvidia-utils xf86-video-nouveau
    pacman -Syuq --noconfirm --noprogressbar --needed nvidia-hook
    systemctl disable bumblebeed.service
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

==> NOTE: running the commands may take several minutes...

Root Password: 
checking dependencies...
:: lib32-vulkan-icd-loader optionally requires lib32-vulkan-driver: packaged vulkan driver

Package (4)         Old Version  Net Change 

bbswitch-dkms       0.8-514        -0.02 MiB
bumblebee           3.2.1-21       -0.13 MiB
lib32-nvidia-utils  515.48.07-1  -119.84 MiB
xf86-video-nouveau  1.0.17-2       -0.22 MiB

Total Removed Size:  120.20 MiB

:: Do you want to remove these packages? [Y/n] 
:: Running pre-transaction hooks...
(1/1) Remove DKMS modules
==> dkms remove --no-depmod bbswitch/0.8 -k 5.18.6-arch1-1
==> depmod 5.18.6-arch1-1
:: Processing package changes...
removing xf86-video-nouveau...
removing lib32-nvidia-utils...
removing bumblebee...
removing bbswitch-dkms...
:: Running post-transaction hooks...
(1/3) Reloading system manager configuration...
(2/3) Reloading device manager configuration...
(3/3) Arming ConditionNeedsUpdate...
:: Synchronising package databases...
 core downloading...
 extra downloading...
 community downloading...
 multilib downloading...
 endeavouros downloading...
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (1)              New Version  Net Change

endeavouros/nvidia-hook  1.0-1          0.00 MiB

Total Installed Size:  0.00 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing nvidia-hook...
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
Failed to disable unit: Unit file bumblebeed.service does not exist.
[jclow@Promootheus-Laptop ~]$