Hey all, I’m new to Linux and all this, so please do excuse my lack of technical knowledge.
I recently installed Manjaro (KDE Edition) on my Asus TUF A17 (2021), which has both a hybrid and discrete GPU. At some point, I uninstalled the default hybrid-amd-nvidia-prime driver, and replaced it with the nvidia driver, which was obviously a bad idea, because when I rebooted, I was met with a black screen, probably because my PC is only using the AMD GPU, and there was now no driver for it. I completely reinstalled Manjaro, and I am now trying to find a way to force it to use my Nvidia GPU.
(I know there is a way to do it with Nvidia optimus manager, but as far as I know that only works on Xorg, and I want to try and see if I can make this work on Wayland first)
Edit:
Kernel: 5.15.25-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.2.0
Desktop: KDE Plasma 5.24.2 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM
Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Laptop System: ASUSTeK product: ASUS TUF Gaming A17 FA706QM v: 1.0
serial: <superuser required>
Mobo: ASUSTeK model: FA706QM v: 1.0 serial: <superuser required>
UEFI: American Megatrends LLC. v: FA706QM.307 date: 06/02/2021
Battery:
ID-1: BAT1 charge: 84.9 Wh (100.0%) condition: 84.9/90.2 Wh (94.1%)
volts: 17.1 min: 15.9 model: ASUS A32-K55 type: Li-ion serial: N/A
status: Full
Memory:
RAM: total: 15.1 GiB used: 1.76 GiB (11.6%)
RAM Report:
permissions: Unable to run dmidecode. Root privileges required.
CPU:
Info: 8-core model: AMD Ryzen 7 5800H with Radeon Graphics bits: 64
type: MT MCP smt: enabled arch: Zen 3 rev: 0 cache: L1: 512 KiB L2: 4 MiB
L3: 16 MiB
Speed (MHz): avg: 1209 high: 1397 min/max: 1200/3200 boost: enabled
cores: 1: 1198 2: 1397 3: 1197 4: 1197 5: 1197 6: 1197 7: 1198 8: 1197
9: 1197 10: 1197 11: 1198 12: 1197 13: 1197 14: 1197 15: 1197 16: 1197
bogomips: 102243
Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total
cqm_occup_llc cr8_legacy cx16 cx8 de decodeassists erms extapic
extd_apicid f16c flushbyasid fma fpu fsgsbase fsrm fxsr fxsr_opt ht
hw_pstate ibpb ibrs ibs invpcid irperf lahf_lm lbrv lm mba mca mce
misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc nopl npt
nrip_save nx ospke osvw overflow_recov pae pat pausefilter pclmulqdq
pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pku pni
popcnt pse pse36 rapl rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good sep
sha_ni skinit smap smca smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3
stibp succor svm svm_lock syscall tce topoext tsc tsc_scale umip
v_spec_ctrl v_vmsave_vmload vaes vgif vmcb_clean vme vmmcall vpclmulqdq
wbnoinvd wdt xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves
Graphics:
Device-1: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] vendor: ASUSTeK
driver: nvidia v: 510.54 pcie: speed: 8 GT/s lanes: 8 bus-ID: 01:00.0
chip-ID: 10de:2520 class-ID: 0300
Device-2: AMD Cezanne vendor: ASUSTeK driver: amdgpu v: kernel pcie:
speed: 8 GT/s lanes: 16 ports: active: eDP-1 empty: HDMI-A-1
bus-ID: 04:00.0 chip-ID: 1002:1638 class-ID: 0300
Device-3: Sonix USB2.0 HD UVC WebCam type: USB driver: uvcvideo
bus-ID: 1-4:3 chip-ID: 322e:202c class-ID: 0e02
Display: x11 server: X.Org v: 1.21.1.3 compositor: kwin_x11 driver: X:
loaded: amdgpu,ati,nvidia unloaded: modesetting,nouveau
alternate: fbdev,nv,vesa gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
s-diag: 582mm (22.9")
Monitor-1: eDP res: 1920x1080 hz: 144 dpi: 128
size: 382x215mm (15.0x8.5") diag: 438mm (17.3")
OpenGL: renderer: AMD RENOIR (DRM 3.42.0 5.15.25-1-MANJARO LLVM 13.0.1)
v: 4.6 Mesa 21.3.7 direct render: Yes
Audio:
Device-1: NVIDIA vendor: ASUSTeK driver: snd_hda_intel v: kernel pcie:
speed: 8 GT/s lanes: 8 bus-ID: 01:00.1 chip-ID: 10de:228e class-ID: 0403
Device-2: AMD Renoir Radeon High Definition Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s lanes: 16
bus-ID: 04:00.1 chip-ID: 1002:1637 class-ID: 0403
Device-3: AMD Raven/Raven2/FireFlight/Renoir Audio Processor driver: N/A
pcie: speed: 8 GT/s lanes: 16 bus-ID: 04:00.5 chip-ID: 1022:15e2
class-ID: 0480
Device-4: AMD Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel
v: kernel pcie: speed: 8 GT/s lanes: 16 bus-ID: 04:00.6 chip-ID: 1022:15e3
class-ID: 0403
Sound Server-1: ALSA v: k5.15.25-1-MANJARO running: yes
Sound Server-2: JACK v: 1.9.20 running: no
Sound Server-3: PulseAudio v: 15.0 running: yes
Sound Server-4: PipeWire v: 0.3.47 running: yes
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: ASUSTeK driver: r8168 v: 8.049.02-NAPI pcie: speed: 2.5 GT/s
lanes: 1 port: e000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp2s0 state: up speed: 100 Mbps duplex: full mac: <filter>
IP v4: <filter> type: dynamic noprefixroute scope: global
broadcast: <filter>
IP v6: <filter> type: noprefixroute scope: link
WAN IP: <filter>
Bluetooth:
Device-1: IMC Networks Wireless_Device type: USB driver: btusb v: 0.8
bus-ID: 3-3:3 chip-ID: 13d3:3563 class-ID: e001 serial: <filter>
Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Logical:
Message: No logical block device data found.
Device-1: luks-ca362ee7-1e48-47a0-98df-5b9f23dba851 type: LUKS dm: dm-0
size: 476.64 GiB
Components: p-1: nvme0n1p2
RAID:
Message: No RAID data found.
Drives:
Local Storage: total: 476.94 GiB used: 90.78 GiB (19.0%)
ID-1: /dev/nvme0n1 vendor: SK Hynix model: HFM512GD3JX013N
size: 476.94 GiB speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
rev: 41000C20 temp: 28.9 C scheme: GPT
Message: No optical or floppy data found.
Partition:
ID-1: / size: 468.09 GiB used: 90.78 GiB (19.4%) fs: ext4 dev: /dev/dm-0
mapped: luks-ca362ee7-1e48-47a0-98df-5b9f23dba851 label: N/A
uuid: ac1f9a1a-7981-450e-8d02-df6ecca40792
ID-2: /boot/efi size: 299.4 MiB used: 440 KiB (0.1%) fs: vfat
dev: /dev/nvme0n1p1 label: NO_LABEL uuid: 244C-A6AE
Swap:
Alert: No swap data was found.
Unmounted:
Message: No unmounted partitions found.
USB:
Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0
speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
Device-1: 1-2:2 info: Logitech G502 SE HERO Gaming Mouse type: Mouse,HID
driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s
power: 300mA chip-ID: 046d:c08b class-ID: 0300 serial: <filter>
Device-2: 1-4:3 info: Sonix USB2.0 HD UVC WebCam type: Video
driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
chip-ID: 322e:202c class-ID: 0e02
Hub-2: 2-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s
chip-ID: 1d6b:0003 class-ID: 0900
Hub-3: 3-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0
speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
Device-1: 3-1:2 info: Microdia Backlit Gaming Keyboard
type: Keyboard,Mouse driver: hid-generic,usbhid interfaces: 2 rev: 2.0
speed: 12 Mb/s power: 400mA chip-ID: 0c45:652f class-ID: 0301
Device-2: 3-3:3 info: IMC Networks Wireless_Device type: Bluetooth
driver: btusb interfaces: 3 rev: 2.1 speed: 480 Mb/s power: 100mA
chip-ID: 13d3:3563 class-ID: e001 serial: <filter>
Hub-4: 4-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s
chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
System Temperatures: cpu: 45.0 C mobo: N/A gpu: amdgpu temp: 36.0 C
Fan Speeds (RPM): cpu: 0
Info:
Processes: 359 Uptime: 4m wakeups: 2 Init: systemd v: 250 Compilers:
gcc: 11.2.0 clang: 13.0.1 Packages: pacman: 1244 Shell: Zsh v: 5.8.1
default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.13```