You are not logged in.

#1 2020-12-07 01:07:32

ed-tyl
Member
Registered: 2020-06-10
Posts: 5

[SOLVED] problems setting up PRIME / NVIDIA + AMD in hybrid laptop

I'm having some issues setting up the graphics for my asus tuf gaming laptop a15 with hybrid amd/nvidia graphics.

This are the specifics for the graphics:

ed $ lspci | grep -iE "(vga|3d)"
01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile] (rev ff)
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c6)

I began by installing the following drivers

xf86-video-amdgpu
xf86-video-ati
xf86-video-fbdev
xf86-video-nouveau
xf86-video-vesa

but I noticed that when running the latest kernel, I got the following

ed $ lspci -v | grep -iE "(vga|3d)" -A 3
01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile] (rev ff) (prog-if ff)
	!!! Unknown header type 7f
	Kernel driver in use: nouveau
	Kernel modules: nouveau
--
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c6) (prog-if 00 [VGA controller])
	Subsystem: ASUSTeK Computer Inc. Device 16df
	Flags: bus master, fast devsel, latency 0, IRQ 63, IOMMU group 6
	Memory at d0000000 (64-bit, prefetchable) [size=256M]

specifically the integrated graphics were working correctly, but not the discrete nvidia card. I also got a lot of errors in dmesg which filled my console (tty1) repeating

nouveau 0000:01:00.0: tmr: stalled at ffffffffffffffff

so after starting the x server and trying to follow the guide for Arch Linux PRIME Guide and running the first step I only got

ed $ xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x55 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 2 associated providers: 0 name:Unknown AMD Radeon GPU @ pci:0000:05:00.0

1 provider instead of the expected output of two. No nvidia graphics to be seen, I blamed this on the newest kernel and decided to try on linux-lts, so I did the same now on lts

ed $ lspci -v | grep -i vga -A 10
01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile] (rev a1) (prog-if 00 [VGA controller])
	Subsystem: ASUSTeK Computer Inc. Device 16df
	Flags: bus master, fast devsel, latency 0, IRQ 79, IOMMU group 9
	Memory at fb000000 (32-bit, non-prefetchable) [size=16M]
	Memory at b0000000 (64-bit, prefetchable) [size=256M]
	Memory at c0000000 (64-bit, prefetchable) [size=32M]
	I/O ports at f000 [size=128]
	Expansion ROM at fc000000 [disabled] [size=512K]
	Capabilities: <access denied>
	Kernel driver in use: nouveau
	Kernel modules: nouveau
--
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c6) (prog-if 00 [VGA controller])
	Subsystem: ASUSTeK Computer Inc. Device 16df
	Flags: bus master, fast devsel, latency 0, IRQ 255, IOMMU group 6
	Memory at d0000000 (64-bit, prefetchable) [size=256M]
	Memory at e0000000 (64-bit, prefetchable) [size=2M]
	I/O ports at c000 [disabled] [size=256]
	Memory at fc500000 (32-bit, non-prefetchable) [size=512K]
	Capabilities: <access denied>
	Kernel modules: amdgpu

05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device 1637

so it appears to work on linux-lts, I didn't get the dmesg nouveau erros from before, however, if I try starting the x server it throws an error, the log looked like this

[   260.464] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[   260.464] 
X.Org X Server 1.20.10
X Protocol Version 11, Revision 0
[   260.465] Build Operating System: Linux Arch Linux
[   260.465] Current Operating System: Linux arch 5.4.81-1-lts #1 SMP Wed, 02 Dec 2020 16:19:12 +0000 x86_64
[   260.465] Kernel command line: initrd=\amd-ucode.img initrd=\initramfs-linux-lts.img root="UUID=32276ba7-b50e-4f41-9ea1-52175fe05ea4" acpi_backlight=vendor rw
[   260.465] Build Date: 01 December 2020  07:51:57PM
[   260.465]  
[   260.465] Current version of pixman: 0.40.0
[   260.465] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   260.465] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   260.465] (==) Log file: "/home/ed/.local/share/xorg/Xorg.0.log", Time: Sun Dec  6 18:01:41 2020
[   260.465] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   260.465] (==) No Layout section.  Using the first Screen section.
[   260.465] (==) No screen section available. Using defaults.
[   260.465] (**) |-->Screen "Default Screen Section" (0)
[   260.465] (**) |   |-->Monitor "<default monitor>"
[   260.465] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[   260.465] (==) Automatically adding devices
[   260.465] (==) Automatically enabling devices
[   260.465] (==) Automatically adding GPU devices
[   260.465] (==) Automatically binding GPU devices
[   260.465] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   260.465] (WW) The directory "/usr/share/fonts/misc" does not exist.
[   260.465] 	Entry deleted from font path.
[   260.466] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/TTF".
[   260.466] 	Entry deleted from font path.
[   260.466] 	(Run 'mkfontdir' on "/usr/share/fonts/TTF").
[   260.466] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[   260.466] 	Entry deleted from font path.
[   260.466] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[   260.466] 	Entry deleted from font path.
[   260.466] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[   260.466] 	Entry deleted from font path.
[   260.466] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[   260.466] 	Entry deleted from font path.
[   260.466] (==) FontPath set to:
	
[   260.466] (==) ModulePath set to "/usr/lib/xorg/modules"
[   260.466] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[   260.466] (II) Module ABI versions:
[   260.466] 	X.Org ANSI C Emulation: 0.4
[   260.466] 	X.Org Video Driver: 24.1
[   260.466] 	X.Org XInput driver : 24.1
[   260.466] 	X.Org Server Extension : 10.0
[   260.467] (++) using VT number 1

[   260.469] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[   260.470] (II) xfree86: Adding drm device (/dev/dri/card0)
[   260.471] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
[   260.475] (--) PCI: (1@0:0:0) 10de:1f95:1043:16df rev 161, Mem @ 0xfb000000/16777216, 0xb0000000/268435456, 0xc0000000/33554432, I/O @ 0x0000f000/128, BIOS @ 0x????????/524288
[   260.475] (--) PCI:*(5@0:0:0) 1002:1636:1043:16df rev 198, Mem @ 0xd0000000/268435456, 0xe0000000/2097152, 0xfc500000/524288, I/O @ 0x0000c000/256
[   260.475] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   260.475] (II) LoadModule: "glx"
[   260.475] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   260.477] (II) Module glx: vendor="X.Org Foundation"
[   260.477] 	compiled for 1.20.10, module version = 1.0.0
[   260.477] 	ABI class: X.Org Server Extension, version 10.0
[   260.477] (==) Matched nouveau as autoconfigured driver 0
[   260.477] (==) Matched nv as autoconfigured driver 1
[   260.477] (==) Matched ati as autoconfigured driver 2
[   260.477] (==) Matched modesetting as autoconfigured driver 3
[   260.477] (==) Matched fbdev as autoconfigured driver 4
[   260.477] (==) Matched vesa as autoconfigured driver 5
[   260.477] (==) Assigned the driver to the xf86ConfigLayout
[   260.477] (II) LoadModule: "nouveau"
[   260.477] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[   260.477] (II) Module nouveau: vendor="X.Org Foundation"
[   260.477] 	compiled for 1.20.8, module version = 1.0.16
[   260.478] 	Module class: X.Org Video Driver
[   260.478] 	ABI class: X.Org Video Driver, version 24.1
[   260.478] (II) LoadModule: "nv"
[   260.478] (WW) Warning, couldn't open module nv
[   260.478] (EE) Failed to load module "nv" (module does not exist, 0)
[   260.478] (II) LoadModule: "ati"
[   260.478] (II) Loading /usr/lib/xorg/modules/drivers/ati_drv.so
[   260.478] (II) Module ati: vendor="X.Org Foundation"
[   260.478] 	compiled for 1.20.8, module version = 19.1.0
[   260.478] 	Module class: X.Org Video Driver
[   260.478] 	ABI class: X.Org Video Driver, version 24.1
[   260.478] (II) LoadModule: "radeon"
[   260.478] (II) Loading /usr/lib/xorg/modules/drivers/radeon_drv.so
[   260.479] (II) Module radeon: vendor="X.Org Foundation"
[   260.479] 	compiled for 1.20.8, module version = 19.1.0
[   260.479] 	Module class: X.Org Video Driver
[   260.479] 	ABI class: X.Org Video Driver, version 24.1
[   260.479] (II) LoadModule: "modesetting"
[   260.479] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   260.479] (II) Module modesetting: vendor="X.Org Foundation"
[   260.479] 	compiled for 1.20.10, module version = 1.20.10
[   260.479] 	Module class: X.Org Video Driver
[   260.479] 	ABI class: X.Org Video Driver, version 24.1
[   260.479] (II) LoadModule: "fbdev"
[   260.479] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[   260.480] (II) Module fbdev: vendor="X.Org Foundation"
[   260.480] 	compiled for 1.20.8, module version = 0.5.0
[   260.480] 	Module class: X.Org Video Driver
[   260.480] 	ABI class: X.Org Video Driver, version 24.1
[   260.480] (II) LoadModule: "vesa"
[   260.480] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[   260.480] (II) Module vesa: vendor="X.Org Foundation"
[   260.480] 	compiled for 1.20.9, module version = 2.5.0
[   260.480] 	Module class: X.Org Video Driver
[   260.480] 	ABI class: X.Org Video Driver, version 24.1
[   260.480] (II) NOUVEAU driver 
[   260.480] (II) NOUVEAU driver for NVIDIA chipset families :
[   260.480] 	RIVA TNT            (NV04)
[   260.480] 	RIVA TNT2           (NV05)
[   260.480] 	GeForce 256         (NV10)
[   260.480] 	GeForce 2           (NV11, NV15)
[   260.480] 	GeForce 4MX         (NV17, NV18)
[   260.480] 	GeForce 3           (NV20)
[   260.480] 	GeForce 4Ti         (NV25, NV28)
[   260.480] 	GeForce FX          (NV3x)
[   260.480] 	GeForce 6           (NV4x)
[   260.480] 	GeForce 7           (G7x)
[   260.480] 	GeForce 8           (G8x)
[   260.480] 	GeForce 9           (G9x)
[   260.480] 	GeForce GTX 2xx/3xx (GT2xx)
[   260.480] 	GeForce GTX 4xx/5xx (GFxxx)
[   260.480] 	GeForce GTX 6xx/7xx (GKxxx)
[   260.480] 	GeForce GTX 9xx     (GMxxx)
[   260.480] 	GeForce GTX 10xx    (GPxxx)
[   260.480] (II) RADEON: Driver for ATI/AMD Radeon chipsets:
	ATI Radeon Mobility X600 (M24), ATI FireMV 2400,
	ATI Radeon Mobility X300 (M24), ATI FireGL M24 GL,
	ATI Radeon X600 (RV380), ATI FireGL V3200 (RV380),
	ATI Radeon IGP320 (A3), ATI Radeon IGP330/340/350 (A4),
	ATI Radeon 9500, ATI Radeon 9600TX, ATI FireGL Z1, ATI Radeon 9800SE,
	ATI Radeon 9800, ATI FireGL X2, ATI Radeon 9600, ATI Radeon 9600SE,
	ATI Radeon 9600XT, ATI FireGL T2, ATI Radeon 9650, ATI FireGL RV360,
	ATI Radeon 7000 IGP (A4+), ATI Radeon 8500 AIW,
	ATI Radeon IGP320M (U1), ATI Radeon IGP330M/340M/350M (U2),
	ATI Radeon Mobility 7000 IGP, ATI Radeon 9000/PRO, ATI Radeon 9000,
	ATI Radeon X800 (R420), ATI Radeon X800PRO (R420),
	ATI Radeon X800SE (R420), ATI FireGL X3 (R420),
	ATI Radeon Mobility 9800 (M18), ATI Radeon X800 SE (R420),
	ATI Radeon X800XT (R420), ATI Radeon X800 VE (R420),
	ATI Radeon X850 (R480), ATI Radeon X850 XT (R480),
	ATI Radeon X850 SE (R480), ATI Radeon X850 PRO (R480),
	ATI Radeon X850 XT PE (R480), ATI Radeon Mobility M7,
	ATI Mobility FireGL 7800 M7, ATI Radeon Mobility M6,
	ATI FireGL Mobility 9000 (M9), ATI Radeon Mobility 9000 (M9),
	ATI Radeon 9700 Pro, ATI Radeon 9700/9500Pro, ATI FireGL X1,
	ATI Radeon 9800PRO, ATI Radeon 9800XT,
	ATI Radeon Mobility 9600/9700 (M10/M11),
	ATI Radeon Mobility 9600 (M10), ATI Radeon Mobility 9600 (M11),
	ATI FireGL Mobility T2 (M10), ATI FireGL Mobility T2e (M11),
	ATI Radeon, ATI FireGL 8700/8800, ATI Radeon 8500, ATI Radeon 9100,
	ATI Radeon 7500, ATI Radeon VE/7000, ATI ES1000,
	ATI Radeon Mobility X300 (M22), ATI Radeon Mobility X600 SE (M24C),
	ATI FireGL M22 GL, ATI Radeon X800 (R423), ATI Radeon X800PRO (R423),
	ATI Radeon X800LE (R423), ATI Radeon X800SE (R423),
	ATI Radeon X800 XTP (R430), ATI Radeon X800 XL (R430),
	ATI Radeon X800 SE (R430), ATI Radeon X800 (R430),
	ATI FireGL V7100 (R423), ATI FireGL V5100 (R423),
	ATI FireGL unknown (R423), ATI Mobility FireGL V5000 (M26),
	ATI Mobility Radeon X700 XL (M26), ATI Mobility Radeon X700 (M26),
	ATI Radeon X550XTX, ATI Radeon 9100 IGP (A5),
	ATI Radeon Mobility 9100 IGP (U3), ATI Radeon XPRESS 200,
	ATI Radeon XPRESS 200M, ATI Radeon 9250, ATI Radeon 9200,
	ATI Radeon 9200SE, ATI FireMV 2200, ATI Radeon X300 (RV370),
	ATI Radeon X600 (RV370), ATI Radeon X550 (RV370),
	ATI FireGL V3100 (RV370), ATI FireMV 2200 PCIE (RV370),
	ATI Radeon Mobility 9200 (M9+), ATI Mobility Radeon X800 XT (M28),
	ATI Mobility FireGL V5100 (M28), ATI Mobility Radeon X800 (M28),
	ATI Radeon X850, ATI unknown Radeon / FireGL (R480),
	ATI Radeon X800XT (R423), ATI FireGL V5000 (RV410),
	ATI Radeon X700 XT (RV410), ATI Radeon X700 PRO (RV410),
	ATI Radeon X700 SE (RV410), ATI Radeon X700 (RV410),
	ATI Radeon X1800, ATI Mobility Radeon X1800 XT,
	ATI Mobility Radeon X1800, ATI Mobility FireGL V7200,
	ATI FireGL V7200, ATI FireGL V5300, ATI Mobility FireGL V7100,
	ATI FireGL V7300, ATI FireGL V7350, ATI Radeon X1600, ATI RV505,
	ATI Radeon X1300/X1550, ATI Radeon X1550, ATI M54-GL,
	ATI Mobility Radeon X1400, ATI Radeon X1550 64-bit,
	ATI Mobility Radeon X1300, ATI Radeon X1300, ATI FireGL V3300,
	ATI FireGL V3350, ATI Mobility Radeon X1450,
	ATI Mobility Radeon X2300, ATI Mobility Radeon X1350,
	ATI FireMV 2250, ATI Radeon X1650, ATI Mobility FireGL V5200,
	ATI Mobility Radeon X1600, ATI Radeon X1300 XT/X1600 Pro,
	ATI FireGL V3400, ATI Mobility FireGL V5250,
	ATI Mobility Radeon X1700, ATI Mobility Radeon X1700 XT,
	ATI FireGL V5200, ATI Radeon X2300HD, ATI Mobility Radeon HD 2300,
	ATI Radeon X1950, ATI Radeon X1900, ATI AMD Stream Processor,
	ATI RV560, ATI Mobility Radeon X1900, ATI Radeon X1950 GT, ATI RV570,
	ATI FireGL V7400, ATI Radeon 9100 PRO IGP,
	ATI Radeon Mobility 9200 IGP, ATI Radeon X1200, ATI RS740,
	ATI RS740M, ATI Radeon HD 2900 XT, ATI Radeon HD 2900 Pro,
	ATI Radeon HD 2900 GT, ATI FireGL V8650, ATI FireGL V8600,
	ATI FireGL V7600, ATI Radeon 4800 Series, ATI Radeon HD 4870 x2,
	ATI Radeon HD 4850 x2, ATI FirePro V8750 (FireGL),
	ATI FirePro V7760 (FireGL), ATI Mobility RADEON HD 4850,
	ATI Mobility RADEON HD 4850 X2, ATI FirePro RV770,
	AMD FireStream 9270, AMD FireStream 9250, ATI FirePro V8700 (FireGL),
	ATI Mobility RADEON HD 4870, ATI Mobility RADEON M98,
	ATI FirePro M7750, ATI M98, ATI Mobility Radeon HD 4650,
	ATI Radeon RV730 (AGP), ATI Mobility Radeon HD 4670,
	ATI FirePro M5750, ATI RV730XT [Radeon HD 4670], ATI RADEON E4600,
	ATI Radeon HD 4600 Series, ATI RV730 PRO [Radeon HD 4650],
	ATI FirePro V7750 (FireGL), ATI FirePro V5700 (FireGL),
	ATI FirePro V3750 (FireGL), ATI Mobility Radeon HD 4830,
	ATI Mobility Radeon HD 4850, ATI FirePro M7740, ATI RV740,
	ATI Radeon HD 4770, ATI Radeon HD 4700 Series, ATI RV610,
	ATI Radeon HD 2400 XT, ATI Radeon HD 2400 Pro,
	ATI Radeon HD 2400 PRO AGP, ATI FireGL V4000, ATI Radeon HD 2350,
	ATI Mobility Radeon HD 2400 XT, ATI Mobility Radeon HD 2400,
	ATI RADEON E2400, ATI FireMV 2260, ATI RV670, ATI Radeon HD3870,
	ATI Mobility Radeon HD 3850, ATI Radeon HD3850,
	ATI Mobility Radeon HD 3850 X2, ATI Mobility Radeon HD 3870,
	ATI Mobility Radeon HD 3870 X2, ATI Radeon HD3870 X2,
	ATI FireGL V7700, ATI Radeon HD3690, AMD Firestream 9170,
	ATI Radeon HD 4550, ATI Radeon RV710, ATI Radeon HD 4350,
	ATI Mobility Radeon 4300 Series, ATI Mobility Radeon 4500 Series,
	ATI FirePro RG220, ATI Mobility Radeon 4330, ATI RV630,
	ATI Mobility Radeon HD 2600, ATI Mobility Radeon HD 2600 XT,
	ATI Radeon HD 2600 XT AGP, ATI Radeon HD 2600 Pro AGP,
	ATI Radeon HD 2600 XT, ATI Radeon HD 2600 Pro, ATI Gemini RV630,
	ATI Gemini Mobility Radeon HD 2600 XT, ATI FireGL V5600,
	ATI FireGL V3600, ATI Radeon HD 2600 LE,
	ATI Mobility FireGL Graphics Processor, ATI Radeon HD 3470,
	ATI Mobility Radeon HD 3430, ATI Mobility Radeon HD 3400 Series,
	ATI Radeon HD 3450, ATI Radeon HD 3430, ATI FirePro V3700,
	ATI FireMV 2450, ATI Radeon HD 3600 Series, ATI Radeon HD 3650 AGP,
	ATI Radeon HD 3600 PRO, ATI Radeon HD 3600 XT,
	ATI Mobility Radeon HD 3650, ATI Mobility Radeon HD 3670,
	ATI Mobility FireGL V5700, ATI Mobility FireGL V5725,
	ATI Radeon HD 3200 Graphics, ATI Radeon 3100 Graphics,
	ATI Radeon HD 3300 Graphics, ATI Radeon 3000 Graphics, SUMO, SUMO2,
	ATI Radeon HD 4200, ATI Radeon 4100, ATI Mobility Radeon HD 4200,
	ATI Mobility Radeon 4100, ATI Radeon HD 4290, ATI Radeon HD 4250,
	AMD Radeon HD 6310 Graphics, AMD Radeon HD 6250 Graphics,
	AMD Radeon HD 6300 Series Graphics,
	AMD Radeon HD 6200 Series Graphics, PALM, CYPRESS,
	ATI FirePro (FireGL) Graphics Adapter, AMD Firestream 9370,
	AMD Firestream 9350, ATI Radeon HD 5800 Series,
	ATI Radeon HD 5900 Series, ATI Mobility Radeon HD 5800 Series,
	ATI Radeon HD 5700 Series, ATI Radeon HD 6700 Series,
	ATI Mobility Radeon HD 5000 Series, ATI Mobility Radeon HD 5570,
	ATI Radeon HD 5670, ATI Radeon HD 5570, ATI Radeon HD 5500 Series,
	REDWOOD, ATI Mobility Radeon Graphics, CEDAR, ATI FirePro 2270,
	ATI Radeon HD 5450, CAYMAN, AMD Radeon HD 6900 Series,
	AMD Radeon HD 6900M Series, Mobility Radeon HD 6000 Series, BARTS,
	AMD Radeon HD 6800 Series, AMD Radeon HD 6700 Series, TURKS, CAICOS,
	ARUBA, TAHITI, PITCAIRN, VERDE, OLAND, HAINAN, BONAIRE, KABINI,
	MULLINS, KAVERI, HAWAII
[   260.482] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   260.482] (II) FBDEV: driver for framebuffer: fbdev
[   260.482] (II) VESA: driver for VESA chipsets: vesa
[   260.482] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[   260.483] (WW) Falling back to old probe method for modesetting
[   260.483] (II) modeset(1): using default device
[   260.483] (II) Loading sub module "fbdevhw"
[   260.483] (II) LoadModule: "fbdevhw"
[   260.483] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[   260.483] (II) Module fbdevhw: vendor="X.Org Foundation"
[   260.483] 	compiled for 1.20.10, module version = 0.0.2
[   260.483] 	ABI class: X.Org Video Driver, version 24.1
[   260.483] (EE) Unable to find a valid framebuffer device
[   260.483] (WW) Falling back to old probe method for fbdev
[   260.483] (II) Loading sub module "fbdevhw"
[   260.483] (II) LoadModule: "fbdevhw"
[   260.483] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[   260.483] (II) Module fbdevhw: vendor="X.Org Foundation"
[   260.483] 	compiled for 1.20.10, module version = 0.0.2
[   260.483] 	ABI class: X.Org Video Driver, version 24.1
[   260.483] (EE) open /dev/fb0: Permission denied
[   260.483] vesa: Refusing to run on UEFI
[   260.483] (II) [drm] nouveau interface version: 1.3.1
[   260.483] (EE) Unknown chipset: NV167
[   260.484] (II) modeset(G0): using drv /dev/dri/card0
[   260.484] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   260.484] (EE) Screen 0 deleted because of no matching config section.
[   260.484] (II) UnloadModule: "modesetting"
[   260.484] (EE) Screen 1 deleted because of no matching config section.
[   260.484] (II) UnloadModule: "fbdev"
[   260.484] (II) UnloadSubModule: "fbdevhw"
[   260.484] (EE) 
Fatal server error:
[   260.484] (EE) Cannot run in framebuffer mode. Please specify busIDs        for all framebuffer devices
[   260.484] (EE) 
[   260.484] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   260.484] (EE) Please also check the log file at "/home/ed/.local/share/xorg/Xorg.0.log" for additional information.
[   260.484] (EE) 
[   260.493] (EE) Server terminated with error (1). Closing log file.

I saw somewhere in the wiki that xf86-video-fbdev could be the problem, so I removed it but no luck, I got basically the same log again

[   441.263] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[   441.265] 
X.Org X Server 1.20.10
X Protocol Version 11, Revision 0
[   441.271] Build Operating System: Linux Arch Linux
[   441.273] Current Operating System: Linux arch 5.4.81-1-lts #1 SMP Wed, 02 Dec 2020 16:19:12 +0000 x86_64
[   441.273] Kernel command line: initrd=\amd-ucode.img initrd=\initramfs-linux-lts.img root="UUID=32276ba7-b50e-4f41-9ea1-52175fe05ea4" acpi_backlight=vendor rw
[   441.277] Build Date: 01 December 2020  07:51:57PM
[   441.279]  
[   441.280] Current version of pixman: 0.40.0
[   441.284] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   441.284] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   441.292] (==) Log file: "/home/ed/.local/share/xorg/Xorg.0.log", Time: Sun Dec  6 18:04:42 2020
[   441.294] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   441.294] (==) No Layout section.  Using the first Screen section.
[   441.294] (==) No screen section available. Using defaults.
[   441.294] (**) |-->Screen "Default Screen Section" (0)
[   441.294] (**) |   |-->Monitor "<default monitor>"
[   441.295] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[   441.295] (==) Automatically adding devices
[   441.295] (==) Automatically enabling devices
[   441.295] (==) Automatically adding GPU devices
[   441.295] (==) Automatically binding GPU devices
[   441.295] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   441.295] (WW) The directory "/usr/share/fonts/misc" does not exist.
[   441.295] 	Entry deleted from font path.
[   441.295] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/TTF".
[   441.295] 	Entry deleted from font path.
[   441.295] 	(Run 'mkfontdir' on "/usr/share/fonts/TTF").
[   441.295] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[   441.295] 	Entry deleted from font path.
[   441.295] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[   441.295] 	Entry deleted from font path.
[   441.295] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[   441.295] 	Entry deleted from font path.
[   441.295] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[   441.295] 	Entry deleted from font path.
[   441.295] (==) FontPath set to:
	
[   441.295] (==) ModulePath set to "/usr/lib/xorg/modules"
[   441.295] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[   441.295] (II) Module ABI versions:
[   441.295] 	X.Org ANSI C Emulation: 0.4
[   441.295] 	X.Org Video Driver: 24.1
[   441.295] 	X.Org XInput driver : 24.1
[   441.295] 	X.Org Server Extension : 10.0
[   441.296] (++) using VT number 1

[   441.299] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[   441.300] (II) xfree86: Adding drm device (/dev/dri/card0)
[   441.301] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
[   441.305] (--) PCI: (1@0:0:0) 10de:1f95:1043:16df rev 161, Mem @ 0xfb000000/16777216, 0xb0000000/268435456, 0xc0000000/33554432, I/O @ 0x0000f000/128, BIOS @ 0x????????/524288
[   441.305] (--) PCI:*(5@0:0:0) 1002:1636:1043:16df rev 198, Mem @ 0xd0000000/268435456, 0xe0000000/2097152, 0xfc500000/524288, I/O @ 0x0000c000/256
[   441.305] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   441.305] (II) LoadModule: "glx"
[   441.305] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   441.307] (II) Module glx: vendor="X.Org Foundation"
[   441.307] 	compiled for 1.20.10, module version = 1.0.0
[   441.307] 	ABI class: X.Org Server Extension, version 10.0
[   441.307] (==) Matched nouveau as autoconfigured driver 0
[   441.307] (==) Matched nv as autoconfigured driver 1
[   441.307] (==) Matched ati as autoconfigured driver 2
[   441.307] (==) Matched modesetting as autoconfigured driver 3
[   441.307] (==) Matched fbdev as autoconfigured driver 4
[   441.307] (==) Matched vesa as autoconfigured driver 5
[   441.307] (==) Assigned the driver to the xf86ConfigLayout
[   441.307] (II) LoadModule: "nouveau"
[   441.307] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[   441.307] (II) Module nouveau: vendor="X.Org Foundation"
[   441.307] 	compiled for 1.20.8, module version = 1.0.16
[   441.307] 	Module class: X.Org Video Driver
[   441.307] 	ABI class: X.Org Video Driver, version 24.1
[   441.307] (II) LoadModule: "nv"
[   441.308] (WW) Warning, couldn't open module nv
[   441.308] (EE) Failed to load module "nv" (module does not exist, 0)
[   441.308] (II) LoadModule: "ati"
[   441.308] (II) Loading /usr/lib/xorg/modules/drivers/ati_drv.so
[   441.308] (II) Module ati: vendor="X.Org Foundation"
[   441.308] 	compiled for 1.20.8, module version = 19.1.0
[   441.308] 	Module class: X.Org Video Driver
[   441.308] 	ABI class: X.Org Video Driver, version 24.1
[   441.308] (II) LoadModule: "radeon"
[   441.308] (II) Loading /usr/lib/xorg/modules/drivers/radeon_drv.so
[   441.309] (II) Module radeon: vendor="X.Org Foundation"
[   441.309] 	compiled for 1.20.8, module version = 19.1.0
[   441.309] 	Module class: X.Org Video Driver
[   441.309] 	ABI class: X.Org Video Driver, version 24.1
[   441.309] (II) LoadModule: "modesetting"
[   441.309] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   441.309] (II) Module modesetting: vendor="X.Org Foundation"
[   441.309] 	compiled for 1.20.10, module version = 1.20.10
[   441.309] 	Module class: X.Org Video Driver
[   441.309] 	ABI class: X.Org Video Driver, version 24.1
[   441.309] (II) LoadModule: "fbdev"
[   441.309] (WW) Warning, couldn't open module fbdev
[   441.309] (EE) Failed to load module "fbdev" (module does not exist, 0)
[   441.309] (II) LoadModule: "vesa"
[   441.309] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[   441.310] (II) Module vesa: vendor="X.Org Foundation"
[   441.310] 	compiled for 1.20.9, module version = 2.5.0
[   441.310] 	Module class: X.Org Video Driver
[   441.310] 	ABI class: X.Org Video Driver, version 24.1
[   441.310] (II) NOUVEAU driver 
[   441.310] (II) NOUVEAU driver for NVIDIA chipset families :
[   441.310] 	RIVA TNT            (NV04)
[   441.310] 	RIVA TNT2           (NV05)
[   441.310] 	GeForce 256         (NV10)
[   441.310] 	GeForce 2           (NV11, NV15)
[   441.310] 	GeForce 4MX         (NV17, NV18)
[   441.310] 	GeForce 3           (NV20)
[   441.310] 	GeForce 4Ti         (NV25, NV28)
[   441.310] 	GeForce FX          (NV3x)
[   441.310] 	GeForce 6           (NV4x)
[   441.310] 	GeForce 7           (G7x)
[   441.310] 	GeForce 8           (G8x)
[   441.310] 	GeForce 9           (G9x)
[   441.310] 	GeForce GTX 2xx/3xx (GT2xx)
[   441.310] 	GeForce GTX 4xx/5xx (GFxxx)
[   441.310] 	GeForce GTX 6xx/7xx (GKxxx)
[   441.310] 	GeForce GTX 9xx     (GMxxx)
[   441.310] 	GeForce GTX 10xx    (GPxxx)
[   441.310] (II) RADEON: Driver for ATI/AMD Radeon chipsets:
	ATI Radeon Mobility X600 (M24), ATI FireMV 2400,
	ATI Radeon Mobility X300 (M24), ATI FireGL M24 GL,
	ATI Radeon X600 (RV380), ATI FireGL V3200 (RV380),
	ATI Radeon IGP320 (A3), ATI Radeon IGP330/340/350 (A4),
	ATI Radeon 9500, ATI Radeon 9600TX, ATI FireGL Z1, ATI Radeon 9800SE,
	ATI Radeon 9800, ATI FireGL X2, ATI Radeon 9600, ATI Radeon 9600SE,
	ATI Radeon 9600XT, ATI FireGL T2, ATI Radeon 9650, ATI FireGL RV360,
	ATI Radeon 7000 IGP (A4+), ATI Radeon 8500 AIW,
	ATI Radeon IGP320M (U1), ATI Radeon IGP330M/340M/350M (U2),
	ATI Radeon Mobility 7000 IGP, ATI Radeon 9000/PRO, ATI Radeon 9000,
	ATI Radeon X800 (R420), ATI Radeon X800PRO (R420),
	ATI Radeon X800SE (R420), ATI FireGL X3 (R420),
	ATI Radeon Mobility 9800 (M18), ATI Radeon X800 SE (R420),
	ATI Radeon X800XT (R420), ATI Radeon X800 VE (R420),
	ATI Radeon X850 (R480), ATI Radeon X850 XT (R480),
	ATI Radeon X850 SE (R480), ATI Radeon X850 PRO (R480),
	ATI Radeon X850 XT PE (R480), ATI Radeon Mobility M7,
	ATI Mobility FireGL 7800 M7, ATI Radeon Mobility M6,
	ATI FireGL Mobility 9000 (M9), ATI Radeon Mobility 9000 (M9),
	ATI Radeon 9700 Pro, ATI Radeon 9700/9500Pro, ATI FireGL X1,
	ATI Radeon 9800PRO, ATI Radeon 9800XT,
	ATI Radeon Mobility 9600/9700 (M10/M11),
	ATI Radeon Mobility 9600 (M10), ATI Radeon Mobility 9600 (M11),
	ATI FireGL Mobility T2 (M10), ATI FireGL Mobility T2e (M11),
	ATI Radeon, ATI FireGL 8700/8800, ATI Radeon 8500, ATI Radeon 9100,
	ATI Radeon 7500, ATI Radeon VE/7000, ATI ES1000,
	ATI Radeon Mobility X300 (M22), ATI Radeon Mobility X600 SE (M24C),
	ATI FireGL M22 GL, ATI Radeon X800 (R423), ATI Radeon X800PRO (R423),
	ATI Radeon X800LE (R423), ATI Radeon X800SE (R423),
	ATI Radeon X800 XTP (R430), ATI Radeon X800 XL (R430),
	ATI Radeon X800 SE (R430), ATI Radeon X800 (R430),
	ATI FireGL V7100 (R423), ATI FireGL V5100 (R423),
	ATI FireGL unknown (R423), ATI Mobility FireGL V5000 (M26),
	ATI Mobility Radeon X700 XL (M26), ATI Mobility Radeon X700 (M26),
	ATI Radeon X550XTX, ATI Radeon 9100 IGP (A5),
	ATI Radeon Mobility 9100 IGP (U3), ATI Radeon XPRESS 200,
	ATI Radeon XPRESS 200M, ATI Radeon 9250, ATI Radeon 9200,
	ATI Radeon 9200SE, ATI FireMV 2200, ATI Radeon X300 (RV370),
	ATI Radeon X600 (RV370), ATI Radeon X550 (RV370),
	ATI FireGL V3100 (RV370), ATI FireMV 2200 PCIE (RV370),
	ATI Radeon Mobility 9200 (M9+), ATI Mobility Radeon X800 XT (M28),
	ATI Mobility FireGL V5100 (M28), ATI Mobility Radeon X800 (M28),
	ATI Radeon X850, ATI unknown Radeon / FireGL (R480),
	ATI Radeon X800XT (R423), ATI FireGL V5000 (RV410),
	ATI Radeon X700 XT (RV410), ATI Radeon X700 PRO (RV410),
	ATI Radeon X700 SE (RV410), ATI Radeon X700 (RV410),
	ATI Radeon X1800, ATI Mobility Radeon X1800 XT,
	ATI Mobility Radeon X1800, ATI Mobility FireGL V7200,
	ATI FireGL V7200, ATI FireGL V5300, ATI Mobility FireGL V7100,
	ATI FireGL V7300, ATI FireGL V7350, ATI Radeon X1600, ATI RV505,
	ATI Radeon X1300/X1550, ATI Radeon X1550, ATI M54-GL,
	ATI Mobility Radeon X1400, ATI Radeon X1550 64-bit,
	ATI Mobility Radeon X1300, ATI Radeon X1300, ATI FireGL V3300,
	ATI FireGL V3350, ATI Mobility Radeon X1450,
	ATI Mobility Radeon X2300, ATI Mobility Radeon X1350,
	ATI FireMV 2250, ATI Radeon X1650, ATI Mobility FireGL V5200,
	ATI Mobility Radeon X1600, ATI Radeon X1300 XT/X1600 Pro,
	ATI FireGL V3400, ATI Mobility FireGL V5250,
	ATI Mobility Radeon X1700, ATI Mobility Radeon X1700 XT,
	ATI FireGL V5200, ATI Radeon X2300HD, ATI Mobility Radeon HD 2300,
	ATI Radeon X1950, ATI Radeon X1900, ATI AMD Stream Processor,
	ATI RV560, ATI Mobility Radeon X1900, ATI Radeon X1950 GT, ATI RV570,
	ATI FireGL V7400, ATI Radeon 9100 PRO IGP,
	ATI Radeon Mobility 9200 IGP, ATI Radeon X1200, ATI RS740,
	ATI RS740M, ATI Radeon HD 2900 XT, ATI Radeon HD 2900 Pro,
	ATI Radeon HD 2900 GT, ATI FireGL V8650, ATI FireGL V8600,
	ATI FireGL V7600, ATI Radeon 4800 Series, ATI Radeon HD 4870 x2,
	ATI Radeon HD 4850 x2, ATI FirePro V8750 (FireGL),
	ATI FirePro V7760 (FireGL), ATI Mobility RADEON HD 4850,
	ATI Mobility RADEON HD 4850 X2, ATI FirePro RV770,
	AMD FireStream 9270, AMD FireStream 9250, ATI FirePro V8700 (FireGL),
	ATI Mobility RADEON HD 4870, ATI Mobility RADEON M98,
	ATI FirePro M7750, ATI M98, ATI Mobility Radeon HD 4650,
	ATI Radeon RV730 (AGP), ATI Mobility Radeon HD 4670,
	ATI FirePro M5750, ATI RV730XT [Radeon HD 4670], ATI RADEON E4600,
	ATI Radeon HD 4600 Series, ATI RV730 PRO [Radeon HD 4650],
	ATI FirePro V7750 (FireGL), ATI FirePro V5700 (FireGL),
	ATI FirePro V3750 (FireGL), ATI Mobility Radeon HD 4830,
	ATI Mobility Radeon HD 4850, ATI FirePro M7740, ATI RV740,
	ATI Radeon HD 4770, ATI Radeon HD 4700 Series, ATI RV610,
	ATI Radeon HD 2400 XT, ATI Radeon HD 2400 Pro,
	ATI Radeon HD 2400 PRO AGP, ATI FireGL V4000, ATI Radeon HD 2350,
	ATI Mobility Radeon HD 2400 XT, ATI Mobility Radeon HD 2400,
	ATI RADEON E2400, ATI FireMV 2260, ATI RV670, ATI Radeon HD3870,
	ATI Mobility Radeon HD 3850, ATI Radeon HD3850,
	ATI Mobility Radeon HD 3850 X2, ATI Mobility Radeon HD 3870,
	ATI Mobility Radeon HD 3870 X2, ATI Radeon HD3870 X2,
	ATI FireGL V7700, ATI Radeon HD3690, AMD Firestream 9170,
	ATI Radeon HD 4550, ATI Radeon RV710, ATI Radeon HD 4350,
	ATI Mobility Radeon 4300 Series, ATI Mobility Radeon 4500 Series,
	ATI FirePro RG220, ATI Mobility Radeon 4330, ATI RV630,
	ATI Mobility Radeon HD 2600, ATI Mobility Radeon HD 2600 XT,
	ATI Radeon HD 2600 XT AGP, ATI Radeon HD 2600 Pro AGP,
	ATI Radeon HD 2600 XT, ATI Radeon HD 2600 Pro, ATI Gemini RV630,
	ATI Gemini Mobility Radeon HD 2600 XT, ATI FireGL V5600,
	ATI FireGL V3600, ATI Radeon HD 2600 LE,
	ATI Mobility FireGL Graphics Processor, ATI Radeon HD 3470,
	ATI Mobility Radeon HD 3430, ATI Mobility Radeon HD 3400 Series,
	ATI Radeon HD 3450, ATI Radeon HD 3430, ATI FirePro V3700,
	ATI FireMV 2450, ATI Radeon HD 3600 Series, ATI Radeon HD 3650 AGP,
	ATI Radeon HD 3600 PRO, ATI Radeon HD 3600 XT,
	ATI Mobility Radeon HD 3650, ATI Mobility Radeon HD 3670,
	ATI Mobility FireGL V5700, ATI Mobility FireGL V5725,
	ATI Radeon HD 3200 Graphics, ATI Radeon 3100 Graphics,
	ATI Radeon HD 3300 Graphics, ATI Radeon 3000 Graphics, SUMO, SUMO2,
	ATI Radeon HD 4200, ATI Radeon 4100, ATI Mobility Radeon HD 4200,
	ATI Mobility Radeon 4100, ATI Radeon HD 4290, ATI Radeon HD 4250,
	AMD Radeon HD 6310 Graphics, AMD Radeon HD 6250 Graphics,
	AMD Radeon HD 6300 Series Graphics,
	AMD Radeon HD 6200 Series Graphics, PALM, CYPRESS,
	ATI FirePro (FireGL) Graphics Adapter, AMD Firestream 9370,
	AMD Firestream 9350, ATI Radeon HD 5800 Series,
	ATI Radeon HD 5900 Series, ATI Mobility Radeon HD 5800 Series,
	ATI Radeon HD 5700 Series, ATI Radeon HD 6700 Series,
	ATI Mobility Radeon HD 5000 Series, ATI Mobility Radeon HD 5570,
	ATI Radeon HD 5670, ATI Radeon HD 5570, ATI Radeon HD 5500 Series,
	REDWOOD, ATI Mobility Radeon Graphics, CEDAR, ATI FirePro 2270,
	ATI Radeon HD 5450, CAYMAN, AMD Radeon HD 6900 Series,
	AMD Radeon HD 6900M Series, Mobility Radeon HD 6000 Series, BARTS,
	AMD Radeon HD 6800 Series, AMD Radeon HD 6700 Series, TURKS, CAICOS,
	ARUBA, TAHITI, PITCAIRN, VERDE, OLAND, HAINAN, BONAIRE, KABINI,
	MULLINS, KAVERI, HAWAII
[   441.312] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   441.312] (II) VESA: driver for VESA chipsets: vesa
[   441.312] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[   441.312] (WW) Falling back to old probe method for modesetting
[   441.313] (II) modeset(1): using default device
[   441.313] vesa: Refusing to run on UEFI
[   441.313] (II) [drm] nouveau interface version: 1.3.1
[   441.313] (EE) Unknown chipset: NV167
[   441.313] (II) modeset(G0): using drv /dev/dri/card0
[   441.313] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   441.313] (EE) Screen 0 deleted because of no matching config section.
[   441.313] (II) UnloadModule: "modesetting"
[   441.313] (EE) 
Fatal server error:
[   441.313] (EE) Cannot run in framebuffer mode. Please specify busIDs        for all framebuffer devices
[   441.313] (EE) 
[   441.313] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   441.313] (EE) Please also check the log file at "/home/ed/.local/share/xorg/Xorg.0.log" for additional information.
[   441.313] (EE) 
[   441.322] (EE) Server terminated with error (1). Closing log file.

My takeaway from the whole thing is that my gpu won't work in the newest kernel, so it ends up using only the integrated graphics which work out of the box with no setup required (i don't have any xorg.conf at all), but the moment i use linux-lts, I get both graphics working, but maybe xorg doesn't like this for some reason ? I don't know if I'm missing some step, I'm pretty sure i followed the guides correctly, most of my confussion comes from the hybrid setup, as I had used arch before but on a regular setup. I'm also confused about the optimus thing, from what I undestand that's only for intel/nvidia hybrids so its not for me right ?

I also noticed the

cannot run on framebuffer mode

but couldn't find a solution to it, my searchs suggested configuring xorg in someway in the xorg.conf files, but I'm not sure how to configure the graphics cards for this.

I hope you can point me in the right direction, first post here so I hope I laid out the problem correctly ^_^ thanks in advance

Last edited by ed-tyl (2020-12-07 02:48:39)

Offline

#2 2020-12-07 01:26:22

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: [SOLVED] problems setting up PRIME / NVIDIA + AMD in hybrid laptop

Maybe the "nouveau" driver doesn't support your Nvidia GPU model? You should install the Nvidia proprietary driver. The package "nvidia-utils" is the main package for the Nvidia driver, and then you need a kernel module package: "nvidia" for the "linux" kernel, or "nvidia-lts" for "linux-lts", or you can use "nvidia-dkms" for all kernels.

You can follow articles about Optimus. Your hybrid setup is very similar. If you remove the "xf86-video-amdgpu" package, your system will fall back to using "modesetting" video module that's built into the Xorg server package. That "modesetting" module has support for "PRIME synchronization" which is about sharing Vsync info from the integrated graphics with the Nvidia GPU.

Offline

#3 2020-12-07 01:41:12

loqs
Member
Registered: 2014-03-06
Posts: 17,438

Re: [SOLVED] problems setting up PRIME / NVIDIA + AMD in hybrid laptop

Have you tried following PRIME#PRIME_render_offload adding in the busID by following  Xorg#More_than_one_graphics_card?

Offline

#4 2020-12-07 01:55:07

ed-tyl
Member
Registered: 2020-06-10
Posts: 5

Re: [SOLVED] problems setting up PRIME / NVIDIA + AMD in hybrid laptop

Ropid wrote:

Maybe the "nouveau" driver doesn't support your Nvidia GPU model? You should install the Nvidia proprietary driver. The package "nvidia-utils" is the main package for the Nvidia driver, and then you need a kernel module package: "nvidia" for the "linux" kernel, or "nvidia-lts" for "linux-lts", or you can use "nvidia-dkms" for all kernels.

You can follow articles about Optimus. Your hybrid setup is very similar. If you remove the "xf86-video-amdgpu" package, your system will fall back to using "modesetting" video module that's built into the Xorg server package. That "modesetting" module has support for "PRIME synchronization" which is about sharing Vsync info from the integrated graphics with the Nvidia GPU.

I removed all drivers and instead installed nvidia-lts plus nvidia-utils, I tried starting the x server in linux-lts but got the same problem of

cannot run in framebuffer mode

lspci did listed the card as expected and running the nvidia drivers.

I then tried

loqs wrote:

Have you tried following PRIME#PRIME_render_offload adding in the busID by following  Xorg#More_than_one_graphics_card?

especifically I created the file

# /etc/X11/xorg.conf.d/20-nvidia.conf
Section "Device"
	Identifier		        "Screen0"
	Driver			"nvidia"
	BusID			"PCI:1:0:0"
EndSection

where I got the "PCI:1:0:0" from the lspci from before, I also added the DRM option to the boot entry, it first appeard to be working under linux-lts (the startx command), but finally stopped with an error, log as follows:

[     9.939] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[     9.940] 
X.Org X Server 1.20.10
X Protocol Version 11, Revision 0
[     9.940] Build Operating System: Linux Arch Linux
[     9.940] Current Operating System: Linux arch 5.4.81-1-lts #1 SMP Wed, 02 Dec 2020 16:19:12 +0000 x86_64
[     9.940] Kernel command line: initrd=\amd-ucode.img initrd=\initramfs-linux-lts.img root="UUID=32276ba7-b50e-4f41-9ea1-52175fe05ea4" acpi_backlight=vendor nvidia-drm.modeset=1 rw
[     9.940] Build Date: 01 December 2020  07:51:57PM
[     9.940]  
[     9.940] Current version of pixman: 0.40.0
[     9.940] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[     9.940] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     9.941] (==) Log file: "/home/ed/.local/share/xorg/Xorg.0.log", Time: Sun Dec  6 19:45:49 2020
[     9.942] (==) Using config directory: "/etc/X11/xorg.conf.d"
[     9.942] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     9.943] (==) No Layout section.  Using the first Screen section.
[     9.943] (==) No screen section available. Using defaults.
[     9.943] (**) |-->Screen "Default Screen Section" (0)
[     9.943] (**) |   |-->Monitor "<default monitor>"
[     9.943] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[     9.943] (**) |   |-->Device "Screen0"
[     9.943] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[     9.943] (==) Automatically adding devices
[     9.943] (==) Automatically enabling devices
[     9.943] (==) Automatically adding GPU devices
[     9.943] (==) Automatically binding GPU devices
[     9.943] (==) Max clients allowed: 256, resource mask: 0x1fffff
[     9.943] (WW) The directory "/usr/share/fonts/misc" does not exist.
[     9.943] 	Entry deleted from font path.
[     9.944] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/TTF".
[     9.944] 	Entry deleted from font path.
[     9.944] 	(Run 'mkfontdir' on "/usr/share/fonts/TTF").
[     9.944] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[     9.944] 	Entry deleted from font path.
[     9.944] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[     9.944] 	Entry deleted from font path.
[     9.944] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[     9.944] 	Entry deleted from font path.
[     9.944] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[     9.944] 	Entry deleted from font path.
[     9.944] (==) FontPath set to:
	
[     9.944] (==) ModulePath set to "/usr/lib/xorg/modules"
[     9.944] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[     9.944] (II) Module ABI versions:
[     9.944] 	X.Org ANSI C Emulation: 0.4
[     9.944] 	X.Org Video Driver: 24.1
[     9.944] 	X.Org XInput driver : 24.1
[     9.944] 	X.Org Server Extension : 10.0
[     9.945] (++) using VT number 1

[     9.947] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[     9.947] (II) xfree86: Adding drm device (/dev/dri/card0)
[     9.948] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
[     9.949] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules"
[     9.950] (--) PCI: (1@0:0:0) 10de:1f95:1043:16df rev 161, Mem @ 0xfb000000/16777216, 0xb0000000/268435456, 0xc0000000/33554432, I/O @ 0x0000f000/128, BIOS @ 0x????????/524288
[     9.950] (--) PCI:*(5@0:0:0) 1002:1636:1043:16df rev 198, Mem @ 0xd0000000/268435456, 0xe0000000/2097152, 0xfc500000/524288, I/O @ 0x0000c000/256
[     9.950] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[     9.950] (II) LoadModule: "glx"
[     9.951] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[     9.955] (II) Module glx: vendor="X.Org Foundation"
[     9.955] 	compiled for 1.20.10, module version = 1.0.0
[     9.955] 	ABI class: X.Org Server Extension, version 10.0
[     9.955] (II) LoadModule: "nvidia"
[     9.955] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[     9.957] (II) Module nvidia: vendor="NVIDIA Corporation"
[     9.957] 	compiled for 1.6.99.901, module version = 1.0.0
[     9.957] 	Module class: X.Org Video Driver
[     9.957] (II) NVIDIA dlloader X Driver  455.45.01  Thu Nov  5 23:01:05 UTC 2020
[     9.957] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[     9.957] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[     9.957] (II) systemd-logind: releasing fd for 226:0
[     9.988] (II) Loading sub module "fb"
[     9.988] (II) LoadModule: "fb"
[     9.988] (II) Loading /usr/lib/xorg/modules/libfb.so
[     9.989] (II) Module fb: vendor="X.Org Foundation"
[     9.989] 	compiled for 1.20.10, module version = 1.0.0
[     9.989] 	ABI class: X.Org ANSI C Emulation, version 0.4
[     9.989] (II) Loading sub module "wfb"
[     9.989] (II) LoadModule: "wfb"
[     9.989] (II) Loading /usr/lib/xorg/modules/libwfb.so
[     9.990] (II) Module wfb: vendor="X.Org Foundation"
[     9.990] 	compiled for 1.20.10, module version = 1.0.0
[     9.990] 	ABI class: X.Org ANSI C Emulation, version 0.4
[     9.990] (II) Loading sub module "ramdac"
[     9.990] (II) LoadModule: "ramdac"
[     9.990] (II) Module "ramdac" already built-in
[     9.992] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[     9.992] (II) NVIDIA(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[     9.992] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[     9.992] (==) NVIDIA(0): RGB weight 888
[     9.992] (==) NVIDIA(0): Default visual is TrueColor
[     9.992] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[     9.992] (II) Applying OutputClass "nvidia" options to /dev/dri/card0
[     9.992] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration"
[     9.992] (**) NVIDIA(0): Enabling 2D acceleration
[     9.993] (II) Loading sub module "glxserver_nvidia"
[     9.993] (II) LoadModule: "glxserver_nvidia"
[     9.993] (II) Loading /usr/lib/nvidia/xorg/libglxserver_nvidia.so
[    10.019] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[    10.019] 	compiled for 1.6.99.901, module version = 1.0.0
[    10.019] 	Module class: X.Org Server Extension
[    10.019] (II) NVIDIA GLX Module  455.45.01  Thu Nov  5 22:58:18 UTC 2020
[    10.020] (II) NVIDIA: The X server supports PRIME Render Offload.
[    10.024] (--) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:1:0:0
[    10.024] (--) NVIDIA(0):     DFP-0
[    10.024] (--) NVIDIA(0):     DFP-1
[    10.024] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 1650 Ti (TU117-A) at PCI:1:0:0 (GPU-0)
[    10.024] (--) NVIDIA(0): Memory: 4194304 kBytes
[    10.024] (--) NVIDIA(0): VideoBIOS: 90.17.42.00.21
[    10.024] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[    10.024] (--) NVIDIA(GPU-0): DFP-0: disconnected
[    10.024] (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
[    10.024] (--) NVIDIA(GPU-0): DFP-0: 2660.0 MHz maximum pixel clock
[    10.024] (--) NVIDIA(GPU-0): 
[    10.025] (--) NVIDIA(GPU-0): DFP-1: disconnected
[    10.025] (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
[    10.025] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
[    10.025] (--) NVIDIA(GPU-0): 
[    10.025] (==) NVIDIA(0): 
[    10.025] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
[    10.025] (==) NVIDIA(0):     will be used as the requested mode.
[    10.025] (==) NVIDIA(0): 
[    10.025] (--) NVIDIA(0): No enabled display devices found; starting anyway because
[    10.025] (--) NVIDIA(0):     AllowEmptyInitialConfiguration is enabled
[    10.025] (II) NVIDIA(0): Validated MetaModes:
[    10.025] (II) NVIDIA(0):     "NULL"
[    10.025] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[    10.025] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[    10.025] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[    10.025] (WW) NVIDIA: Failed to bind sideband socket to
[    10.025] (WW) NVIDIA:     '/var/run/nvidia-xdriver-ff36f1d7' Permission denied
[    10.025] (II) NVIDIA: Using 24576.00 MB of virtual memory for indirect memory
[    10.025] (II) NVIDIA:     access.
[    10.035] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[    10.035] (II) NVIDIA(0):     may not be running or the "AcpidSocketPath" X
[    10.035] (II) NVIDIA(0):     configuration option may not be set correctly.  When the
[    10.035] (II) NVIDIA(0):     ACPI event daemon is available, the NVIDIA X driver will
[    10.035] (II) NVIDIA(0):     try to use it to receive ACPI event notifications.  For
[    10.035] (II) NVIDIA(0):     details, please see the "ConnectToAcpid" and
[    10.035] (II) NVIDIA(0):     "AcpidSocketPath" X configuration options in Appendix B: X
[    10.035] (II) NVIDIA(0):     Config Options in the README.
[    10.052] (II) NVIDIA(0): Setting mode "NULL"
[    10.062] (==) NVIDIA(0): Disabling shared memory pixmaps
[    10.062] (==) NVIDIA(0): Backing store enabled
[    10.062] (==) NVIDIA(0): Silken mouse disabled
[    10.062] (==) NVIDIA(0): DPMS enabled
[    10.062] (II) Loading sub module "dri2"
[    10.062] (II) LoadModule: "dri2"
[    10.062] (II) Module "dri2" already built-in
[    10.062] (II) NVIDIA(0): [DRI2] Setup complete
[    10.062] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[    10.063] (II) Initializing extension Generic Event Extension
[    10.063] (II) Initializing extension SHAPE
[    10.063] (II) Initializing extension MIT-SHM
[    10.063] (II) Initializing extension XInputExtension
[    10.063] (II) Initializing extension XTEST
[    10.063] (II) Initializing extension BIG-REQUESTS
[    10.063] (II) Initializing extension SYNC
[    10.063] (II) Initializing extension XKEYBOARD
[    10.063] (II) Initializing extension XC-MISC
[    10.063] (II) Initializing extension SECURITY
[    10.063] (II) Initializing extension XFIXES
[    10.063] (II) Initializing extension RENDER
[    10.063] (II) Initializing extension RANDR
[    10.063] (II) Initializing extension COMPOSITE
[    10.063] (II) Initializing extension DAMAGE
[    10.063] (II) Initializing extension MIT-SCREEN-SAVER
[    10.063] (II) Initializing extension DOUBLE-BUFFER
[    10.063] (II) Initializing extension RECORD
[    10.063] (II) Initializing extension DPMS
[    10.063] (II) Initializing extension Present
[    10.063] (II) Initializing extension DRI3
[    10.063] (II) Initializing extension X-Resource
[    10.063] (II) Initializing extension XVideo
[    10.063] (II) Initializing extension XVideo-MotionCompensation
[    10.063] (II) Initializing extension GLX
[    10.063] (II) Initializing extension GLX
[    10.063] (II) Indirect GLX disabled.
[    10.063] (II) GLX: Another vendor is already registered for screen 0
[    10.063] (II) Initializing extension XFree86-VidModeExtension
[    10.063] (II) Initializing extension XFree86-DGA
[    10.063] (II) Initializing extension XFree86-DRI
[    10.063] (II) Initializing extension DRI2
[    10.063] (II) Initializing extension NV-GLX
[    10.063] (II) Initializing extension NV-CONTROL
[    10.098] (II) config/udev: Adding input device Power Button (/dev/input/event3)
[    10.099] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[    10.099] (II) LoadModule: "libinput"
[    10.099] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[    10.101] (II) Module libinput: vendor="X.Org Foundation"
[    10.101] 	compiled for 1.20.8, module version = 0.30.0
[    10.101] 	Module class: X.Org XInput Driver
[    10.101] 	ABI class: X.Org XInput driver, version 24.1
[    10.101] (II) Using input driver 'libinput' for 'Power Button'
[    10.102] (II) systemd-logind: got fd for /dev/input/event3 13:67 fd 29 paused 0
[    10.102] (**) Power Button: always reports core events
[    10.102] (**) Option "Device" "/dev/input/event3"
[    10.102] (**) Option "_source" "server/udev"
[    10.105] (II) event3  - Power Button: is tagged by udev as: Keyboard
[    10.105] (II) event3  - Power Button: device is a keyboard
[    10.105] (II) event3  - Power Button: device removed
[    10.105] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input3/event3"
[    10.105] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[    10.106] (II) event3  - Power Button: is tagged by udev as: Keyboard
[    10.106] (II) event3  - Power Button: device is a keyboard
[    10.106] (II) config/udev: Adding input device Asus Wireless Radio Control (/dev/input/event12)
[    10.106] (**) Asus Wireless Radio Control: Applying InputClass "libinput keyboard catchall"
[    10.106] (II) Using input driver 'libinput' for 'Asus Wireless Radio Control'
[    10.107] (II) systemd-logind: got fd for /dev/input/event12 13:76 fd 32 paused 0
[    10.107] (**) Asus Wireless Radio Control: always reports core events
[    10.107] (**) Option "Device" "/dev/input/event12"
[    10.107] (**) Option "_source" "server/udev"
[    10.107] (II) event12 - Asus Wireless Radio Control: is tagged by udev as: Keyboard
[    10.107] (II) event12 - Asus Wireless Radio Control: device is a keyboard
[    10.107] (II) event12 - Asus Wireless Radio Control: device removed
[    10.107] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/ATK4002:00/input/input12/event12"
[    10.107] (II) XINPUT: Adding extended input device "Asus Wireless Radio Control" (type: KEYBOARD, id 7)
[    10.108] (II) event12 - Asus Wireless Radio Control: is tagged by udev as: Keyboard
[    10.108] (II) event12 - Asus Wireless Radio Control: device is a keyboard
[    10.108] (II) config/udev: Adding input device Video Bus (/dev/input/event4)
[    10.108] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[    10.108] (II) Using input driver 'libinput' for 'Video Bus'
[    10.109] (II) systemd-logind: got fd for /dev/input/event4 13:68 fd 33 paused 0
[    10.109] (**) Video Bus: always reports core events
[    10.109] (**) Option "Device" "/dev/input/event4"
[    10.109] (**) Option "_source" "server/udev"
[    10.110] (II) event4  - Video Bus: is tagged by udev as: Keyboard
[    10.110] (II) event4  - Video Bus: device is a keyboard
[    10.110] (II) event4  - Video Bus: device removed
[    10.110] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:10/LNXVIDEO:00/input/input4/event4"
[    10.110] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 8)
[    10.111] (II) event4  - Video Bus: is tagged by udev as: Keyboard
[    10.111] (II) event4  - Video Bus: device is a keyboard
[    10.111] (II) config/udev: Adding input device Power Button (/dev/input/event0)
[    10.111] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[    10.111] (II) Using input driver 'libinput' for 'Power Button'
[    10.112] (II) systemd-logind: got fd for /dev/input/event0 13:64 fd 34 paused 0
[    10.112] (**) Power Button: always reports core events
[    10.112] (**) Option "Device" "/dev/input/event0"
[    10.112] (**) Option "_source" "server/udev"
[    10.113] (II) event0  - Power Button: is tagged by udev as: Keyboard
[    10.113] (II) event0  - Power Button: device is a keyboard
[    10.113] (II) event0  - Power Button: device removed
[    10.113] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0/event0"
[    10.113] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 9)
[    10.113] (II) event0  - Power Button: is tagged by udev as: Keyboard
[    10.114] (II) event0  - Power Button: device is a keyboard
[    10.114] (II) config/udev: Adding input device Lid Switch (/dev/input/event2)
[    10.114] (II) No input driver specified, ignoring this device.
[    10.114] (II) This device may have been added with another device file.
[    10.114] (II) config/udev: Adding input device Sleep Button (/dev/input/event1)
[    10.114] (**) Sleep Button: Applying InputClass "libinput keyboard catchall"
[    10.114] (II) Using input driver 'libinput' for 'Sleep Button'
[    10.115] (II) systemd-logind: got fd for /dev/input/event1 13:65 fd 35 paused 0
[    10.115] (**) Sleep Button: always reports core events
[    10.115] (**) Option "Device" "/dev/input/event1"
[    10.115] (**) Option "_source" "server/udev"
[    10.116] (II) event1  - Sleep Button: is tagged by udev as: Keyboard
[    10.116] (II) event1  - Sleep Button: device is a keyboard
[    10.116] (II) event1  - Sleep Button: device removed
[    10.116] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input1/event1"
[    10.116] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 10)
[    10.116] (II) event1  - Sleep Button: is tagged by udev as: Keyboard
[    10.116] (II) event1  - Sleep Button: device is a keyboard
[    10.117] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=3 (/dev/input/event20)
[    10.117] (II) No input driver specified, ignoring this device.
[    10.117] (II) This device may have been added with another device file.
[    10.117] (II) config/udev: Adding input device HD-Audio Generic HDMI/DP,pcm=3 (/dev/input/event17)
[    10.117] (II) No input driver specified, ignoring this device.
[    10.117] (II) This device may have been added with another device file.
[    10.117] (II) config/udev: Adding input device Onn Mouse Onn Mouse (/dev/input/event6)
[    10.117] (**) Onn Mouse Onn Mouse: Applying InputClass "libinput pointer catchall"
[    10.117] (II) Using input driver 'libinput' for 'Onn Mouse Onn Mouse'
[    10.181] (II) systemd-logind: got fd for /dev/input/event6 13:70 fd 36 paused 0
[    10.182] (**) Onn Mouse Onn Mouse: always reports core events
[    10.182] (**) Option "Device" "/dev/input/event6"
[    10.182] (**) Option "_source" "server/udev"
[    10.182] (II) event6  - Onn Mouse Onn Mouse: is tagged by udev as: Mouse
[    10.183] (II) event6  - Onn Mouse Onn Mouse: device is a pointer
[    10.183] (II) event6  - Onn Mouse Onn Mouse: device removed
[    10.183] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-3/1-3:1.0/0003:3938:1215.0001/input/input6/event6"
[    10.183] (II) XINPUT: Adding extended input device "Onn Mouse Onn Mouse" (type: MOUSE, id 11)
[    10.183] (**) Option "AccelerationScheme" "none"
[    10.183] (**) Onn Mouse Onn Mouse: (accel) selected scheme none/0
[    10.183] (**) Onn Mouse Onn Mouse: (accel) acceleration factor: 2.000
[    10.183] (**) Onn Mouse Onn Mouse: (accel) acceleration threshold: 4
[    10.184] (II) event6  - Onn Mouse Onn Mouse: is tagged by udev as: Mouse
[    10.184] (II) event6  - Onn Mouse Onn Mouse: device is a pointer
[    10.184] (II) config/udev: Adding input device Onn Mouse Onn Mouse (/dev/input/mouse0)
[    10.184] (II) No input driver specified, ignoring this device.
[    10.184] (II) This device may have been added with another device file.
[    10.184] (II) config/udev: Adding input device Onn Mouse Onn Mouse (/dev/input/event10)
[    10.184] (II) No input driver specified, ignoring this device.
[    10.184] (II) This device may have been added with another device file.
[    10.185] (II) config/udev: Adding input device Onn Mouse Onn Mouse Keyboard (/dev/input/event7)
[    10.185] (**) Onn Mouse Onn Mouse Keyboard: Applying InputClass "libinput keyboard catchall"
[    10.185] (II) Using input driver 'libinput' for 'Onn Mouse Onn Mouse Keyboard'
[    10.186] (II) systemd-logind: got fd for /dev/input/event7 13:71 fd 37 paused 0
[    10.186] (**) Onn Mouse Onn Mouse Keyboard: always reports core events
[    10.186] (**) Option "Device" "/dev/input/event7"
[    10.186] (**) Option "_source" "server/udev"
[    10.188] (II) event7  - Onn Mouse Onn Mouse Keyboard: is tagged by udev as: Keyboard
[    10.188] (II) event7  - Onn Mouse Onn Mouse Keyboard: device is a keyboard
[    10.188] (II) event7  - Onn Mouse Onn Mouse Keyboard: device removed
[    10.188] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-3/1-3:1.1/0003:3938:1215.0002/input/input7/event7"
[    10.188] (II) XINPUT: Adding extended input device "Onn Mouse Onn Mouse Keyboard" (type: KEYBOARD, id 12)
[    10.189] (II) event7  - Onn Mouse Onn Mouse Keyboard: is tagged by udev as: Keyboard
[    10.189] (II) event7  - Onn Mouse Onn Mouse Keyboard: device is a keyboard
[    10.190] (II) config/udev: Adding input device Onn Mouse Onn Mouse System Control (/dev/input/event8)
[    10.190] (**) Onn Mouse Onn Mouse System Control: Applying InputClass "libinput keyboard catchall"
[    10.190] (II) Using input driver 'libinput' for 'Onn Mouse Onn Mouse System Control'
[    10.191] (II) systemd-logind: got fd for /dev/input/event8 13:72 fd 38 paused 0
[    10.191] (**) Onn Mouse Onn Mouse System Control: always reports core events
[    10.191] (**) Option "Device" "/dev/input/event8"
[    10.191] (**) Option "_source" "server/udev"
[    10.192] (II) event8  - Onn Mouse Onn Mouse System Control: is tagged by udev as: Keyboard
[    10.192] (II) event8  - Onn Mouse Onn Mouse System Control: device is a keyboard
[    10.192] (II) event8  - Onn Mouse Onn Mouse System Control: device removed
[    10.192] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-3/1-3:1.1/0003:3938:1215.0002/input/input8/event8"
[    10.192] (II) XINPUT: Adding extended input device "Onn Mouse Onn Mouse System Control" (type: KEYBOARD, id 13)
[    10.192] (II) event8  - Onn Mouse Onn Mouse System Control: is tagged by udev as: Keyboard
[    10.193] (II) event8  - Onn Mouse Onn Mouse System Control: device is a keyboard
[    10.193] (II) config/udev: Adding input device Onn Mouse Onn Mouse Consumer Control (/dev/input/event9)
[    10.193] (**) Onn Mouse Onn Mouse Consumer Control: Applying InputClass "libinput keyboard catchall"
[    10.193] (II) Using input driver 'libinput' for 'Onn Mouse Onn Mouse Consumer Control'
[    10.194] (II) systemd-logind: got fd for /dev/input/event9 13:73 fd 39 paused 0
[    10.194] (**) Onn Mouse Onn Mouse Consumer Control: always reports core events
[    10.194] (**) Option "Device" "/dev/input/event9"
[    10.194] (**) Option "_source" "server/udev"
[    10.195] (II) event9  - Onn Mouse Onn Mouse Consumer Control: is tagged by udev as: Keyboard
[    10.195] (II) event9  - Onn Mouse Onn Mouse Consumer Control: device is a keyboard
[    10.195] (II) event9  - Onn Mouse Onn Mouse Consumer Control: device removed
[    10.195] (II) libinput: Onn Mouse Onn Mouse Consumer Control: needs a virtual subdevice
[    10.195] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-3/1-3:1.1/0003:3938:1215.0002/input/input9/event9"
[    10.195] (II) XINPUT: Adding extended input device "Onn Mouse Onn Mouse Consumer Control" (type: MOUSE, id 14)
[    10.195] (**) Option "AccelerationScheme" "none"
[    10.195] (**) Onn Mouse Onn Mouse Consumer Control: (accel) selected scheme none/0
[    10.195] (**) Onn Mouse Onn Mouse Consumer Control: (accel) acceleration factor: 2.000
[    10.195] (**) Onn Mouse Onn Mouse Consumer Control: (accel) acceleration threshold: 4
[    10.196] (II) event9  - Onn Mouse Onn Mouse Consumer Control: is tagged by udev as: Keyboard
[    10.196] (II) event9  - Onn Mouse Onn Mouse Consumer Control: device is a keyboard
[    10.197] (II) config/udev: Adding input device Onn Mouse Onn Mouse (/dev/input/event11)
[    10.197] (**) Onn Mouse Onn Mouse: Applying InputClass "libinput pointer catchall"
[    10.197] (II) Using input driver 'libinput' for 'Onn Mouse Onn Mouse'
[    10.261] (II) systemd-logind: got fd for /dev/input/event11 13:75 fd 40 paused 0
[    10.261] (**) Onn Mouse Onn Mouse: always reports core events
[    10.262] (**) Option "Device" "/dev/input/event11"
[    10.262] (**) Option "_source" "server/udev"
[    10.263] (II) event11 - Onn Mouse Onn Mouse: is tagged by udev as: Mouse
[    10.263] (II) event11 - Onn Mouse Onn Mouse: device is a pointer
[    10.263] (II) event11 - Onn Mouse Onn Mouse: device removed
[    10.263] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-3/1-3:1.2/0003:3938:1215.0003/input/input11/event11"
[    10.263] (II) XINPUT: Adding extended input device "Onn Mouse Onn Mouse" (type: MOUSE, id 15)
[    10.263] (**) Option "AccelerationScheme" "none"
[    10.263] (**) Onn Mouse Onn Mouse: (accel) selected scheme none/0
[    10.263] (**) Onn Mouse Onn Mouse: (accel) acceleration factor: 2.000
[    10.263] (**) Onn Mouse Onn Mouse: (accel) acceleration threshold: 4
[    10.264] (II) event11 - Onn Mouse Onn Mouse: is tagged by udev as: Mouse
[    10.264] (II) event11 - Onn Mouse Onn Mouse: device is a pointer
[    10.264] (II) config/udev: Adding input device Onn Mouse Onn Mouse (/dev/input/mouse1)
[    10.264] (II) No input driver specified, ignoring this device.
[    10.264] (II) This device may have been added with another device file.
[    10.264] (II) config/udev: Adding input device USB2.0 HD UVC WebCam: USB2.0 HD (/dev/input/event16)
[    10.265] (**) USB2.0 HD UVC WebCam: USB2.0 HD: Applying InputClass "libinput keyboard catchall"
[    10.265] (II) Using input driver 'libinput' for 'USB2.0 HD UVC WebCam: USB2.0 HD'
[    10.266] (II) systemd-logind: got fd for /dev/input/event16 13:80 fd 41 paused 0
[    10.266] (**) USB2.0 HD UVC WebCam: USB2.0 HD: always reports core events
[    10.266] (**) Option "Device" "/dev/input/event16"
[    10.266] (**) Option "_source" "server/udev"
[    10.267] (II) event16 - USB2.0 HD UVC WebCam: USB2.0 HD: is tagged by udev as: Keyboard
[    10.267] (II) event16 - USB2.0 HD UVC WebCam: USB2.0 HD: device is a keyboard
[    10.267] (II) event16 - USB2.0 HD UVC WebCam: USB2.0 HD: device removed
[    10.267] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-4/1-4:1.0/input/input16/event16"
[    10.267] (II) XINPUT: Adding extended input device "USB2.0 HD UVC WebCam: USB2.0 HD" (type: KEYBOARD, id 16)
[    10.268] (II) event16 - USB2.0 HD UVC WebCam: USB2.0 HD: is tagged by udev as: Keyboard
[    10.268] (II) event16 - USB2.0 HD UVC WebCam: USB2.0 HD: device is a keyboard
[    10.269] (II) config/udev: Adding input device HD-Audio Generic Headphone (/dev/input/event19)
[    10.269] (II) No input driver specified, ignoring this device.
[    10.269] (II) This device may have been added with another device file.
[    10.269] (II) config/udev: Adding input device ELAN1203:00 04F3:307A Mouse (/dev/input/event14)
[    10.269] (**) ELAN1203:00 04F3:307A Mouse: Applying InputClass "libinput pointer catchall"
[    10.269] (II) Using input driver 'libinput' for 'ELAN1203:00 04F3:307A Mouse'
[    10.270] (II) systemd-logind: got fd for /dev/input/event14 13:78 fd 42 paused 0
[    10.270] (**) ELAN1203:00 04F3:307A Mouse: always reports core events
[    10.270] (**) Option "Device" "/dev/input/event14"
[    10.270] (**) Option "_source" "server/udev"
[    10.271] (II) event14 - ELAN1203:00 04F3:307A Mouse: is tagged by udev as: Mouse Pointingstick
[    10.271] (II) event14 - ELAN1203:00 04F3:307A Mouse: device is a pointer
[    10.271] (II) event14 - ELAN1203:00 04F3:307A Mouse: device removed
[    10.271] (**) Option "config_info" "udev:/sys/devices/platform/AMDI0010:03/i2c-0/i2c-ELAN1203:00/0018:04F3:307A.0004/input/input20/event14"
[    10.271] (II) XINPUT: Adding extended input device "ELAN1203:00 04F3:307A Mouse" (type: MOUSE, id 17)
[    10.272] (**) Option "AccelerationScheme" "none"
[    10.272] (**) ELAN1203:00 04F3:307A Mouse: (accel) selected scheme none/0
[    10.272] (**) ELAN1203:00 04F3:307A Mouse: (accel) acceleration factor: 2.000
[    10.272] (**) ELAN1203:00 04F3:307A Mouse: (accel) acceleration threshold: 4
[    10.273] (II) event14 - ELAN1203:00 04F3:307A Mouse: is tagged by udev as: Mouse Pointingstick
[    10.273] (II) event14 - ELAN1203:00 04F3:307A Mouse: device is a pointer
[    10.273] (II) config/udev: Adding input device ELAN1203:00 04F3:307A Mouse (/dev/input/mouse2)
[    10.273] (II) No input driver specified, ignoring this device.
[    10.273] (II) This device may have been added with another device file.
[    10.274] (II) config/udev: Adding input device ELAN1203:00 04F3:307A Touchpad (/dev/input/event15)
[    10.274] (**) ELAN1203:00 04F3:307A Touchpad: Applying InputClass "libinput touchpad catchall"
[    10.274] (II) Using input driver 'libinput' for 'ELAN1203:00 04F3:307A Touchpad'
[    10.275] (II) systemd-logind: got fd for /dev/input/event15 13:79 fd 43 paused 0
[    10.275] (**) ELAN1203:00 04F3:307A Touchpad: always reports core events
[    10.275] (**) Option "Device" "/dev/input/event15"
[    10.275] (**) Option "_source" "server/udev"
[    10.275] (II) event15 - ELAN1203:00 04F3:307A Touchpad: is tagged by udev as: Touchpad
[    10.276] (II) event15 - ELAN1203:00 04F3:307A Touchpad: device is a touchpad
[    10.276] (II) event15 - ELAN1203:00 04F3:307A Touchpad: device removed
[    10.276] (**) Option "config_info" "udev:/sys/devices/platform/AMDI0010:03/i2c-0/i2c-ELAN1203:00/0018:04F3:307A.0004/input/input21/event15"
[    10.276] (II) XINPUT: Adding extended input device "ELAN1203:00 04F3:307A Touchpad" (type: TOUCHPAD, id 18)
[    10.276] (**) Option "AccelerationScheme" "none"
[    10.276] (**) ELAN1203:00 04F3:307A Touchpad: (accel) selected scheme none/0
[    10.276] (**) ELAN1203:00 04F3:307A Touchpad: (accel) acceleration factor: 2.000
[    10.276] (**) ELAN1203:00 04F3:307A Touchpad: (accel) acceleration threshold: 4
[    10.277] (II) event15 - ELAN1203:00 04F3:307A Touchpad: is tagged by udev as: Touchpad
[    10.278] (II) event15 - ELAN1203:00 04F3:307A Touchpad: device is a touchpad
[    10.278] (II) config/udev: Adding input device ELAN1203:00 04F3:307A Touchpad (/dev/input/mouse3)
[    10.278] (II) No input driver specified, ignoring this device.
[    10.278] (II) This device may have been added with another device file.
[    10.278] (II) config/udev: Adding input device Asus WMI hotkeys (/dev/input/event18)
[    10.278] (**) Asus WMI hotkeys: Applying InputClass "libinput keyboard catchall"
[    10.278] (II) Using input driver 'libinput' for 'Asus WMI hotkeys'
[    10.279] (II) systemd-logind: got fd for /dev/input/event18 13:82 fd 44 paused 0
[    10.279] (**) Asus WMI hotkeys: always reports core events
[    10.279] (**) Option "Device" "/dev/input/event18"
[    10.279] (**) Option "_source" "server/udev"
[    10.280] (II) event18 - Asus WMI hotkeys: is tagged by udev as: Keyboard
[    10.280] (II) event18 - Asus WMI hotkeys: device is a keyboard
[    10.280] (II) event18 - Asus WMI hotkeys: device removed
[    10.280] (**) Option "config_info" "udev:/sys/devices/platform/asus-nb-wmi/input/input18/event18"
[    10.280] (II) XINPUT: Adding extended input device "Asus WMI hotkeys" (type: KEYBOARD, id 19)
[    10.280] (II) event18 - Asus WMI hotkeys: is tagged by udev as: Keyboard
[    10.280] (II) event18 - Asus WMI hotkeys: device is a keyboard
[    10.281] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event5)
[    10.281] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[    10.281] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[    10.282] (II) systemd-logind: got fd for /dev/input/event5 13:69 fd 45 paused 0
[    10.282] (**) AT Translated Set 2 keyboard: always reports core events
[    10.282] (**) Option "Device" "/dev/input/event5"
[    10.282] (**) Option "_source" "server/udev"
[    10.283] (II) event5  - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[    10.283] (II) event5  - AT Translated Set 2 keyboard: device is a keyboard
[    10.283] (II) event5  - AT Translated Set 2 keyboard: device removed
[    10.284] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input5/event5"
[    10.284] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 20)
[    10.284] (II) event5  - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[    10.284] (II) event5  - AT Translated Set 2 keyboard: device is a keyboard
[    10.285] (II) config/udev: Adding input device PC Speaker (/dev/input/event13)
[    10.285] (II) No input driver specified, ignoring this device.
[    10.285] (II) This device may have been added with another device file.
[    10.287] (**) Onn Mouse Onn Mouse Consumer Control: Applying InputClass "libinput keyboard catchall"
[    10.287] (II) Using input driver 'libinput' for 'Onn Mouse Onn Mouse Consumer Control'
[    10.287] (II) systemd-logind: returning pre-existing fd for /dev/input/event9 13:73
[    10.287] (**) Onn Mouse Onn Mouse Consumer Control: always reports core events
[    10.287] (**) Option "Device" "/dev/input/event9"
[    10.287] (**) Option "_source" "_driver/libinput"
[    10.287] (II) libinput: Onn Mouse Onn Mouse Consumer Control: is a virtual subdevice
[    10.287] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-3/1-3:1.1/0003:3938:1215.0002/input/input9/event9"
[    10.287] (II) XINPUT: Adding extended input device "Onn Mouse Onn Mouse Consumer Control" (type: KEYBOARD, id 21)
[    10.330] (--) NVIDIA(GPU-0): DFP-0: disconnected
[    10.330] (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
[    10.330] (--) NVIDIA(GPU-0): DFP-0: 2660.0 MHz maximum pixel clock
[    10.330] (--) NVIDIA(GPU-0): 
[    10.330] (--) NVIDIA(GPU-0): DFP-1: disconnected
[    10.330] (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
[    10.330] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
[    10.330] (--) NVIDIA(GPU-0): 
[    10.442] (**) Option "fd" "29"
[    10.442] (II) event3  - Power Button: device removed
[    10.442] (**) Option "fd" "32"
[    10.442] (II) event12 - Asus Wireless Radio Control: device removed
[    10.442] (**) Option "fd" "33"
[    10.442] (II) event4  - Video Bus: device removed
[    10.442] (**) Option "fd" "34"
[    10.442] (II) event0  - Power Button: device removed
[    10.442] (**) Option "fd" "35"
[    10.442] (II) event1  - Sleep Button: device removed
[    10.442] (**) Option "fd" "36"
[    10.442] (II) event6  - Onn Mouse Onn Mouse: device removed
[    10.442] (**) Option "fd" "37"
[    10.442] (II) event7  - Onn Mouse Onn Mouse Keyboard: device removed
[    10.442] (**) Option "fd" "38"
[    10.442] (II) event8  - Onn Mouse Onn Mouse System Control: device removed
[    10.442] (**) Option "fd" "39"
[    10.442] (**) Option "fd" "40"
[    10.442] (II) event11 - Onn Mouse Onn Mouse: device removed
[    10.442] (**) Option "fd" "41"
[    10.442] (II) event16 - USB2.0 HD UVC WebCam: USB2.0 HD: device removed
[    10.442] (**) Option "fd" "42"
[    10.442] (II) event14 - ELAN1203:00 04F3:307A Mouse: device removed
[    10.442] (**) Option "fd" "43"
[    10.442] (II) event15 - ELAN1203:00 04F3:307A Touchpad: device removed
[    10.442] (**) Option "fd" "44"
[    10.442] (II) event18 - Asus WMI hotkeys: device removed
[    10.442] (**) Option "fd" "45"
[    10.442] (II) event5  - AT Translated Set 2 keyboard: device removed
[    10.442] (**) Option "fd" "39"
[    10.442] (II) event9  - Onn Mouse Onn Mouse Consumer Control: device removed
[    10.445] (II) UnloadModule: "libinput"
[    10.445] (II) systemd-logind: not releasing fd for 13:73, still in use
[    10.445] (II) UnloadModule: "libinput"
[    10.445] (II) systemd-logind: releasing fd for 13:69
[    10.531] (II) UnloadModule: "libinput"
[    10.531] (II) systemd-logind: releasing fd for 13:82
[    10.731] (II) UnloadModule: "libinput"
[    10.731] (II) systemd-logind: releasing fd for 13:79
[    10.821] (II) UnloadModule: "libinput"
[    10.821] (II) systemd-logind: releasing fd for 13:78
[    10.921] (II) UnloadModule: "libinput"
[    10.921] (II) systemd-logind: releasing fd for 13:80
[    11.011] (II) UnloadModule: "libinput"
[    11.011] (II) systemd-logind: releasing fd for 13:75
[    11.131] (II) UnloadModule: "libinput"
[    11.131] (II) systemd-logind: releasing fd for 13:73
[    11.171] (II) UnloadModule: "libinput"
[    11.171] (II) systemd-logind: releasing fd for 13:72
[    11.231] (II) UnloadModule: "libinput"
[    11.231] (II) systemd-logind: releasing fd for 13:71
[    11.331] (II) UnloadModule: "libinput"
[    11.331] (II) systemd-logind: releasing fd for 13:70
[    11.441] (II) UnloadModule: "libinput"
[    11.441] (II) systemd-logind: releasing fd for 13:65
[    11.481] (II) UnloadModule: "libinput"
[    11.481] (II) systemd-logind: releasing fd for 13:64
[    11.531] (II) UnloadModule: "libinput"
[    11.531] (II) systemd-logind: releasing fd for 13:68
[    11.621] (II) UnloadModule: "libinput"
[    11.621] (II) systemd-logind: releasing fd for 13:76
[    11.733] (II) UnloadModule: "libinput"
[    11.733] (II) systemd-logind: releasing fd for 13:67
[    11.814] (II) NVIDIA(GPU-0): Deleting GPU-0
[    11.823] (II) Server terminated successfully (0). Closing log file.

I'm not sure if I messed up the xorg config file ? its weird cause I don't see any (EE) in the xorg log

UPDATE:

after trying again lspci on the latest linux kernel, for some reason now I get the following

01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile] (rev a1) (prog-if 00 [VGA controller])
	Subsystem: ASUSTeK Computer Inc. Device 16df
	Flags: fast devsel, IRQ 255, IOMMU group 9
	Memory at fb000000 (32-bit, non-prefetchable) [disabled] [size=16M]
	Memory at b0000000 (64-bit, prefetchable) [disabled] [size=256M]
	Memory at c0000000 (64-bit, prefetchable) [disabled] [size=32M]
	I/O ports at f000 [disabled] [size=128]
	Expansion ROM at fc000000 [disabled] [size=512K]
	Capabilities: <access denied>
	Kernel modules: nouveau

--
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c6) (prog-if 00 [VGA controller])
	Subsystem: ASUSTeK Computer Inc. Device 16df
	Flags: bus master, fast devsel, latency 0, IRQ 63, IOMMU group 6
	Memory at d0000000 (64-bit, prefetchable) [size=256M]
	Memory at e0000000 (64-bit, prefetchable) [size=2M]
	I/O ports at c000 [size=256]
	Memory at fc500000 (32-bit, non-prefetchable) [size=512K]
	Capabilities: <access denied>
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu

so I'm guessing changing drivers from the xf86-video-* for nvidia-utils worked, however I still haven't installed nvidia, only nvidia-lts (?) so it looks like it know detects it just right, but I see there's no "driver in use"

Last edited by ed-tyl (2020-12-07 02:04:30)

Offline

#5 2020-12-07 02:04:19

loqs
Member
Registered: 2014-03-06
Posts: 17,438

Re: [SOLVED] problems setting up PRIME / NVIDIA + AMD in hybrid laptop

20-nvidia.conf only uses the Nvidia GPU which the Xorg log shows has no screen attached to it.  If you want to follow Prime you need to have both GPUs configured.
If you want to use Optimus you need to remove the configuration file and follow https://wiki.archlinux.org/index.php/NVIDIA_Optimus.
Prime and Optimus are mutually exclusive you have to pick one to use.

Offline

#6 2020-12-07 02:20:12

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: [SOLVED] problems setting up PRIME / NVIDIA + AMD in hybrid laptop

ed-tyl wrote:

[...]

UPDATE:

after trying again lspci on the latest linux kernel, for some reason now I get the following

[...]

so I'm guessing changing drivers from the xf86-video-* for nvidia-utils worked, however I still haven't installed nvidia, only nvidia-lts (?) so it looks like it know detects it just right, but I see there's no "driver in use"

You need a kernel module package for each kernel you have installed:

"linux-lts" --> "nvidia-lts"
"linux" --> "nvidia"

If you want to be able to use both 'linux' and 'linux-lts', you need to install both 'nvidia' and 'nvidia-lts'.

Offline

#7 2020-12-07 02:33:13

ed-tyl
Member
Registered: 2020-06-10
Posts: 5

Re: [SOLVED] problems setting up PRIME / NVIDIA + AMD in hybrid laptop

Ropid wrote:

You need a kernel module package for each kernel you have installed:

"linux-lts" --> "nvidia-lts"
"linux" --> "nvidia"

If you want to be able to use both 'linux' and 'linux-lts', you need to install both 'nvidia' and 'nvidia-lts'.

yep that much I know, I wasn't able to get the card to work on linux with the correct driver before but now I can, so that's good.

Now I have the following issue, I don't know if I'm still missunderstanding the instructions from the PRIME setup, but I created the file

Section "ServerLayout"
	Identifier	"layout"
	Screen 0	"nvidia"
	Inactive	"amd"
EndSection

Section "Device"
	Identifier	"nvidia"
	Driver		"nvidia"
	BusId		"PCI:1:0:0"
EndSection

Section "Screen"
	Identifier	"nvidia"
	Device		"nvidia"
	Option		"AllowEmptyInitialConfiguration"
EndSection

Section "Device"
	Identifier	"amd"
	Driver		"modesetting"
	BusId		"PCI:5:0:0"
EndSection

Section "Screen"
	Identifier	"amd"
	Device		"amd"
EndSection

following the specifications on this page linked from the wiki but my x still won't start, I still don't quite get how to read the log from xorg but I get the following

[     9.939] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[     9.940] 
X.Org X Server 1.20.10
X Protocol Version 11, Revision 0
[     9.940] Build Operating System: Linux Arch Linux
[     9.940] Current Operating System: Linux arch 5.4.81-1-lts #1 SMP Wed, 02 Dec 2020 16:19:12 +0000 x86_64
[     9.940] Kernel command line: initrd=\amd-ucode.img initrd=\initramfs-linux-lts.img root="UUID=32276ba7-b50e-4f41-9ea1-52175fe05ea4" acpi_backlight=vendor nvidia-drm.modeset=1 rw
[     9.940] Build Date: 01 December 2020  07:51:57PM
[     9.940]  
[     9.940] Current version of pixman: 0.40.0
[     9.940] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[     9.940] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     9.941] (==) Log file: "/home/ed/.local/share/xorg/Xorg.0.log", Time: Sun Dec  6 19:45:49 2020
[     9.942] (==) Using config directory: "/etc/X11/xorg.conf.d"
[     9.942] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     9.943] (==) No Layout section.  Using the first Screen section.
[     9.943] (==) No screen section available. Using defaults.
[     9.943] (**) |-->Screen "Default Screen Section" (0)
[     9.943] (**) |   |-->Monitor "<default monitor>"
[     9.943] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[     9.943] (**) |   |-->Device "Screen0"
[     9.943] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[     9.943] (==) Automatically adding devices
[     9.943] (==) Automatically enabling devices
[     9.943] (==) Automatically adding GPU devices
[     9.943] (==) Automatically binding GPU devices
[     9.943] (==) Max clients allowed: 256, resource mask: 0x1fffff
[     9.943] (WW) The directory "/usr/share/fonts/misc" does not exist.
[     9.943] 	Entry deleted from font path.
[     9.944] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/TTF".
[     9.944] 	Entry deleted from font path.
[     9.944] 	(Run 'mkfontdir' on "/usr/share/fonts/TTF").
[     9.944] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[     9.944] 	Entry deleted from font path.
[     9.944] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[     9.944] 	Entry deleted from font path.
[     9.944] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[     9.944] 	Entry deleted from font path.
[     9.944] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[     9.944] 	Entry deleted from font path.
[     9.944] (==) FontPath set to:
	
[     9.944] (==) ModulePath set to "/usr/lib/xorg/modules"
[     9.944] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[     9.944] (II) Module ABI versions:
[     9.944] 	X.Org ANSI C Emulation: 0.4
[     9.944] 	X.Org Video Driver: 24.1
[     9.944] 	X.Org XInput driver : 24.1
[     9.944] 	X.Org Server Extension : 10.0
[     9.945] (++) using VT number 1

[     9.947] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[     9.947] (II) xfree86: Adding drm device (/dev/dri/card0)
[     9.948] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
[     9.949] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules"
[     9.950] (--) PCI: (1@0:0:0) 10de:1f95:1043:16df rev 161, Mem @ 0xfb000000/16777216, 0xb0000000/268435456, 0xc0000000/33554432, I/O @ 0x0000f000/128, BIOS @ 0x????????/524288
[     9.950] (--) PCI:*(5@0:0:0) 1002:1636:1043:16df rev 198, Mem @ 0xd0000000/268435456, 0xe0000000/2097152, 0xfc500000/524288, I/O @ 0x0000c000/256
[     9.950] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[     9.950] (II) LoadModule: "glx"
[     9.951] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[     9.955] (II) Module glx: vendor="X.Org Foundation"
[     9.955] 	compiled for 1.20.10, module version = 1.0.0
[     9.955] 	ABI class: X.Org Server Extension, version 10.0
[     9.955] (II) LoadModule: "nvidia"
[     9.955] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[     9.957] (II) Module nvidia: vendor="NVIDIA Corporation"
[     9.957] 	compiled for 1.6.99.901, module version = 1.0.0
[     9.957] 	Module class: X.Org Video Driver
[     9.957] (II) NVIDIA dlloader X Driver  455.45.01  Thu Nov  5 23:01:05 UTC 2020
[     9.957] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[     9.957] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[     9.957] (II) systemd-logind: releasing fd for 226:0
[     9.988] (II) Loading sub module "fb"
[     9.988] (II) LoadModule: "fb"
[     9.988] (II) Loading /usr/lib/xorg/modules/libfb.so
[     9.989] (II) Module fb: vendor="X.Org Foundation"
[     9.989] 	compiled for 1.20.10, module version = 1.0.0
[     9.989] 	ABI class: X.Org ANSI C Emulation, version 0.4
[     9.989] (II) Loading sub module "wfb"
[     9.989] (II) LoadModule: "wfb"
[     9.989] (II) Loading /usr/lib/xorg/modules/libwfb.so
[     9.990] (II) Module wfb: vendor="X.Org Foundation"
[     9.990] 	compiled for 1.20.10, module version = 1.0.0
[     9.990] 	ABI class: X.Org ANSI C Emulation, version 0.4
[     9.990] (II) Loading sub module "ramdac"
[     9.990] (II) LoadModule: "ramdac"
[     9.990] (II) Module "ramdac" already built-in
[     9.992] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[     9.992] (II) NVIDIA(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[     9.992] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[     9.992] (==) NVIDIA(0): RGB weight 888
[     9.992] (==) NVIDIA(0): Default visual is TrueColor
[     9.992] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[     9.992] (II) Applying OutputClass "nvidia" options to /dev/dri/card0
[     9.992] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration"
[     9.992] (**) NVIDIA(0): Enabling 2D acceleration
[     9.993] (II) Loading sub module "glxserver_nvidia"
[     9.993] (II) LoadModule: "glxserver_nvidia"
[     9.993] (II) Loading /usr/lib/nvidia/xorg/libglxserver_nvidia.so
[    10.019] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[    10.019] 	compiled for 1.6.99.901, module version = 1.0.0
[    10.019] 	Module class: X.Org Server Extension
[    10.019] (II) NVIDIA GLX Module  455.45.01  Thu Nov  5 22:58:18 UTC 2020
[    10.020] (II) NVIDIA: The X server supports PRIME Render Offload.
[    10.024] (--) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:1:0:0
[    10.024] (--) NVIDIA(0):     DFP-0
[    10.024] (--) NVIDIA(0):     DFP-1
[    10.024] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 1650 Ti (TU117-A) at PCI:1:0:0 (GPU-0)
[    10.024] (--) NVIDIA(0): Memory: 4194304 kBytes
[    10.024] (--) NVIDIA(0): VideoBIOS: 90.17.42.00.21
[    10.024] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[    10.024] (--) NVIDIA(GPU-0): DFP-0: disconnected
[    10.024] (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
[    10.024] (--) NVIDIA(GPU-0): DFP-0: 2660.0 MHz maximum pixel clock
[    10.024] (--) NVIDIA(GPU-0): 
[    10.025] (--) NVIDIA(GPU-0): DFP-1: disconnected
[    10.025] (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
[    10.025] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
[    10.025] (--) NVIDIA(GPU-0): 
[    10.025] (==) NVIDIA(0): 
[    10.025] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
[    10.025] (==) NVIDIA(0):     will be used as the requested mode.
[    10.025] (==) NVIDIA(0): 
[    10.025] (--) NVIDIA(0): No enabled display devices found; starting anyway because
[    10.025] (--) NVIDIA(0):     AllowEmptyInitialConfiguration is enabled
[    10.025] (II) NVIDIA(0): Validated MetaModes:
[    10.025] (II) NVIDIA(0):     "NULL"
[    10.025] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[    10.025] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[    10.025] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[    10.025] (WW) NVIDIA: Failed to bind sideband socket to
[    10.025] (WW) NVIDIA:     '/var/run/nvidia-xdriver-ff36f1d7' Permission denied
[    10.025] (II) NVIDIA: Using 24576.00 MB of virtual memory for indirect memory
[    10.025] (II) NVIDIA:     access.
[    10.035] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[    10.035] (II) NVIDIA(0):     may not be running or the "AcpidSocketPath" X
[    10.035] (II) NVIDIA(0):     configuration option may not be set correctly.  When the
[    10.035] (II) NVIDIA(0):     ACPI event daemon is available, the NVIDIA X driver will
[    10.035] (II) NVIDIA(0):     try to use it to receive ACPI event notifications.  For
[    10.035] (II) NVIDIA(0):     details, please see the "ConnectToAcpid" and
[    10.035] (II) NVIDIA(0):     "AcpidSocketPath" X configuration options in Appendix B: X
[    10.035] (II) NVIDIA(0):     Config Options in the README.
[    10.052] (II) NVIDIA(0): Setting mode "NULL"
[    10.062] (==) NVIDIA(0): Disabling shared memory pixmaps
[    10.062] (==) NVIDIA(0): Backing store enabled
[    10.062] (==) NVIDIA(0): Silken mouse disabled
[    10.062] (==) NVIDIA(0): DPMS enabled
[    10.062] (II) Loading sub module "dri2"
[    10.062] (II) LoadModule: "dri2"
[    10.062] (II) Module "dri2" already built-in
[    10.062] (II) NVIDIA(0): [DRI2] Setup complete
[    10.062] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[    10.063] (II) Initializing extension Generic Event Extension
[    10.063] (II) Initializing extension SHAPE
[    10.063] (II) Initializing extension MIT-SHM
[    10.063] (II) Initializing extension XInputExtension
[    10.063] (II) Initializing extension XTEST
[    10.063] (II) Initializing extension BIG-REQUESTS
[    10.063] (II) Initializing extension SYNC
[    10.063] (II) Initializing extension XKEYBOARD
[    10.063] (II) Initializing extension XC-MISC
[    10.063] (II) Initializing extension SECURITY
[    10.063] (II) Initializing extension XFIXES
[    10.063] (II) Initializing extension RENDER
[    10.063] (II) Initializing extension RANDR
[    10.063] (II) Initializing extension COMPOSITE
[    10.063] (II) Initializing extension DAMAGE
[    10.063] (II) Initializing extension MIT-SCREEN-SAVER
[    10.063] (II) Initializing extension DOUBLE-BUFFER
[    10.063] (II) Initializing extension RECORD
[    10.063] (II) Initializing extension DPMS
[    10.063] (II) Initializing extension Present
[    10.063] (II) Initializing extension DRI3
[    10.063] (II) Initializing extension X-Resource
[    10.063] (II) Initializing extension XVideo
[    10.063] (II) Initializing extension XVideo-MotionCompensation
[    10.063] (II) Initializing extension GLX
[    10.063] (II) Initializing extension GLX
[    10.063] (II) Indirect GLX disabled.
[    10.063] (II) GLX: Another vendor is already registered for screen 0
[    10.063] (II) Initializing extension XFree86-VidModeExtension
[    10.063] (II) Initializing extension XFree86-DGA
[    10.063] (II) Initializing extension XFree86-DRI
[    10.063] (II) Initializing extension DRI2
[    10.063] (II) Initializing extension NV-GLX
[    10.063] (II) Initializing extension NV-CONTROL
[    10.098] (II) config/udev: Adding input device Power Button (/dev/input/event3)
[    10.099] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[    10.099] (II) LoadModule: "libinput"
[    10.099] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[    10.101] (II) Module libinput: vendor="X.Org Foundation"
[    10.101] 	compiled for 1.20.8, module version = 0.30.0
[    10.101] 	Module class: X.Org XInput Driver
[    10.101] 	ABI class: X.Org XInput driver, version 24.1
[    10.101] (II) Using input driver 'libinput' for 'Power Button'
[    10.102] (II) systemd-logind: got fd for /dev/input/event3 13:67 fd 29 paused 0
[    10.102] (**) Power Button: always reports core events
[    10.102] (**) Option "Device" "/dev/input/event3"
[    10.102] (**) Option "_source" "server/udev"
[    10.105] (II) event3  - Power Button: is tagged by udev as: Keyboard
[    10.105] (II) event3  - Power Button: device is a keyboard
[    10.105] (II) event3  - Power Button: device removed
[    10.105] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input3/event3"
[    10.105] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[    10.106] (II) event3  - Power Button: is tagged by udev as: Keyboard
[    10.106] (II) event3  - Power Button: device is a keyboard
[    10.106] (II) config/udev: Adding input device Asus Wireless Radio Control (/dev/input/event12)
[    10.106] (**) Asus Wireless Radio Control: Applying InputClass "libinput keyboard catchall"
[    10.106] (II) Using input driver 'libinput' for 'Asus Wireless Radio Control'
[    10.107] (II) systemd-logind: got fd for /dev/input/event12 13:76 fd 32 paused 0
[    10.107] (**) Asus Wireless Radio Control: always reports core events
[    10.107] (**) Option "Device" "/dev/input/event12"
[    10.107] (**) Option "_source" "server/udev"
[    10.107] (II) event12 - Asus Wireless Radio Control: is tagged by udev as: Keyboard
[    10.107] (II) event12 - Asus Wireless Radio Control: device is a keyboard
[    10.107] (II) event12 - Asus Wireless Radio Control: device removed
[    10.107] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/ATK4002:00/input/input12/event12"
[    10.107] (II) XINPUT: Adding extended input device "Asus Wireless Radio Control" (type: KEYBOARD, id 7)
[    10.108] (II) event12 - Asus Wireless Radio Control: is tagged by udev as: Keyboard
[    10.108] (II) event12 - Asus Wireless Radio Control: device is a keyboard
[    10.108] (II) config/udev: Adding input device Video Bus (/dev/input/event4)
[    10.108] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[    10.108] (II) Using input driver 'libinput' for 'Video Bus'
[    10.109] (II) systemd-logind: got fd for /dev/input/event4 13:68 fd 33 paused 0
[    10.109] (**) Video Bus: always reports core events
[    10.109] (**) Option "Device" "/dev/input/event4"
[    10.109] (**) Option "_source" "server/udev"
[    10.110] (II) event4  - Video Bus: is tagged by udev as: Keyboard
[    10.110] (II) event4  - Video Bus: device is a keyboard
[    10.110] (II) event4  - Video Bus: device removed
[    10.110] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:10/LNXVIDEO:00/input/input4/event4"
[    10.110] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 8)
[    10.111] (II) event4  - Video Bus: is tagged by udev as: Keyboard
[    10.111] (II) event4  - Video Bus: device is a keyboard
[    10.111] (II) config/udev: Adding input device Power Button (/dev/input/event0)
[    10.111] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[    10.111] (II) Using input driver 'libinput' for 'Power Button'
[    10.112] (II) systemd-logind: got fd for /dev/input/event0 13:64 fd 34 paused 0
[    10.112] (**) Power Button: always reports core events
[    10.112] (**) Option "Device" "/dev/input/event0"
[    10.112] (**) Option "_source" "server/udev"
[    10.113] (II) event0  - Power Button: is tagged by udev as: Keyboard
[    10.113] (II) event0  - Power Button: device is a keyboard
[    10.113] (II) event0  - Power Button: device removed
[    10.113] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0/event0"
[    10.113] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 9)
[    10.113] (II) event0  - Power Button: is tagged by udev as: Keyboard
[    10.114] (II) event0  - Power Button: device is a keyboard
[    10.114] (II) config/udev: Adding input device Lid Switch (/dev/input/event2)
[    10.114] (II) No input driver specified, ignoring this device.
[    10.114] (II) This device may have been added with another device file.
[    10.114] (II) config/udev: Adding input device Sleep Button (/dev/input/event1)
[    10.114] (**) Sleep Button: Applying InputClass "libinput keyboard catchall"
[    10.114] (II) Using input driver 'libinput' for 'Sleep Button'
[    10.115] (II) systemd-logind: got fd for /dev/input/event1 13:65 fd 35 paused 0
[    10.115] (**) Sleep Button: always reports core events
[    10.115] (**) Option "Device" "/dev/input/event1"
[    10.115] (**) Option "_source" "server/udev"
[    10.116] (II) event1  - Sleep Button: is tagged by udev as: Keyboard
[    10.116] (II) event1  - Sleep Button: device is a keyboard
[    10.116] (II) event1  - Sleep Button: device removed
[    10.116] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input1/event1"
[    10.116] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 10)
[    10.116] (II) event1  - Sleep Button: is tagged by udev as: Keyboard
[    10.116] (II) event1  - Sleep Button: device is a keyboard
[    10.117] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=3 (/dev/input/event20)
[    10.117] (II) No input driver specified, ignoring this device.
[    10.117] (II) This device may have been added with another device file.
[    10.117] (II) config/udev: Adding input device HD-Audio Generic HDMI/DP,pcm=3 (/dev/input/event17)
[    10.117] (II) No input driver specified, ignoring this device.
[    10.117] (II) This device may have been added with another device file.
[    10.117] (II) config/udev: Adding input device Onn Mouse Onn Mouse (/dev/input/event6)
[    10.117] (**) Onn Mouse Onn Mouse: Applying InputClass "libinput pointer catchall"
[    10.117] (II) Using input driver 'libinput' for 'Onn Mouse Onn Mouse'
[    10.181] (II) systemd-logind: got fd for /dev/input/event6 13:70 fd 36 paused 0
[    10.182] (**) Onn Mouse Onn Mouse: always reports core events
[    10.182] (**) Option "Device" "/dev/input/event6"
[    10.182] (**) Option "_source" "server/udev"
[    10.182] (II) event6  - Onn Mouse Onn Mouse: is tagged by udev as: Mouse
[    10.183] (II) event6  - Onn Mouse Onn Mouse: device is a pointer
[    10.183] (II) event6  - Onn Mouse Onn Mouse: device removed
[    10.183] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-3/1-3:1.0/0003:3938:1215.0001/input/input6/event6"
[    10.183] (II) XINPUT: Adding extended input device "Onn Mouse Onn Mouse" (type: MOUSE, id 11)
[    10.183] (**) Option "AccelerationScheme" "none"
[    10.183] (**) Onn Mouse Onn Mouse: (accel) selected scheme none/0
[    10.183] (**) Onn Mouse Onn Mouse: (accel) acceleration factor: 2.000
[    10.183] (**) Onn Mouse Onn Mouse: (accel) acceleration threshold: 4
[    10.184] (II) event6  - Onn Mouse Onn Mouse: is tagged by udev as: Mouse
[    10.184] (II) event6  - Onn Mouse Onn Mouse: device is a pointer
[    10.184] (II) config/udev: Adding input device Onn Mouse Onn Mouse (/dev/input/mouse0)
[    10.184] (II) No input driver specified, ignoring this device.
[    10.184] (II) This device may have been added with another device file.
[    10.184] (II) config/udev: Adding input device Onn Mouse Onn Mouse (/dev/input/event10)
[    10.184] (II) No input driver specified, ignoring this device.
[    10.184] (II) This device may have been added with another device file.
[    10.185] (II) config/udev: Adding input device Onn Mouse Onn Mouse Keyboard (/dev/input/event7)
[    10.185] (**) Onn Mouse Onn Mouse Keyboard: Applying InputClass "libinput keyboard catchall"
[    10.185] (II) Using input driver 'libinput' for 'Onn Mouse Onn Mouse Keyboard'
[    10.186] (II) systemd-logind: got fd for /dev/input/event7 13:71 fd 37 paused 0
[    10.186] (**) Onn Mouse Onn Mouse Keyboard: always reports core events
[    10.186] (**) Option "Device" "/dev/input/event7"
[    10.186] (**) Option "_source" "server/udev"
[    10.188] (II) event7  - Onn Mouse Onn Mouse Keyboard: is tagged by udev as: Keyboard
[    10.188] (II) event7  - Onn Mouse Onn Mouse Keyboard: device is a keyboard
[    10.188] (II) event7  - Onn Mouse Onn Mouse Keyboard: device removed
[    10.188] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-3/1-3:1.1/0003:3938:1215.0002/input/input7/event7"
[    10.188] (II) XINPUT: Adding extended input device "Onn Mouse Onn Mouse Keyboard" (type: KEYBOARD, id 12)
[    10.189] (II) event7  - Onn Mouse Onn Mouse Keyboard: is tagged by udev as: Keyboard
[    10.189] (II) event7  - Onn Mouse Onn Mouse Keyboard: device is a keyboard
[    10.190] (II) config/udev: Adding input device Onn Mouse Onn Mouse System Control (/dev/input/event8)
[    10.190] (**) Onn Mouse Onn Mouse System Control: Applying InputClass "libinput keyboard catchall"
[    10.190] (II) Using input driver 'libinput' for 'Onn Mouse Onn Mouse System Control'
[    10.191] (II) systemd-logind: got fd for /dev/input/event8 13:72 fd 38 paused 0
[    10.191] (**) Onn Mouse Onn Mouse System Control: always reports core events
[    10.191] (**) Option "Device" "/dev/input/event8"
[    10.191] (**) Option "_source" "server/udev"
[    10.192] (II) event8  - Onn Mouse Onn Mouse System Control: is tagged by udev as: Keyboard
[    10.192] (II) event8  - Onn Mouse Onn Mouse System Control: device is a keyboard
[    10.192] (II) event8  - Onn Mouse Onn Mouse System Control: device removed
[    10.192] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-3/1-3:1.1/0003:3938:1215.0002/input/input8/event8"
[    10.192] (II) XINPUT: Adding extended input device "Onn Mouse Onn Mouse System Control" (type: KEYBOARD, id 13)
[    10.192] (II) event8  - Onn Mouse Onn Mouse System Control: is tagged by udev as: Keyboard
[    10.193] (II) event8  - Onn Mouse Onn Mouse System Control: device is a keyboard
[    10.193] (II) config/udev: Adding input device Onn Mouse Onn Mouse Consumer Control (/dev/input/event9)
[    10.193] (**) Onn Mouse Onn Mouse Consumer Control: Applying InputClass "libinput keyboard catchall"
[    10.193] (II) Using input driver 'libinput' for 'Onn Mouse Onn Mouse Consumer Control'
[    10.194] (II) systemd-logind: got fd for /dev/input/event9 13:73 fd 39 paused 0
[    10.194] (**) Onn Mouse Onn Mouse Consumer Control: always reports core events
[    10.194] (**) Option "Device" "/dev/input/event9"
[    10.194] (**) Option "_source" "server/udev"
[    10.195] (II) event9  - Onn Mouse Onn Mouse Consumer Control: is tagged by udev as: Keyboard
[    10.195] (II) event9  - Onn Mouse Onn Mouse Consumer Control: device is a keyboard
[    10.195] (II) event9  - Onn Mouse Onn Mouse Consumer Control: device removed
[    10.195] (II) libinput: Onn Mouse Onn Mouse Consumer Control: needs a virtual subdevice
[    10.195] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-3/1-3:1.1/0003:3938:1215.0002/input/input9/event9"
[    10.195] (II) XINPUT: Adding extended input device "Onn Mouse Onn Mouse Consumer Control" (type: MOUSE, id 14)
[    10.195] (**) Option "AccelerationScheme" "none"
[    10.195] (**) Onn Mouse Onn Mouse Consumer Control: (accel) selected scheme none/0
[    10.195] (**) Onn Mouse Onn Mouse Consumer Control: (accel) acceleration factor: 2.000
[    10.195] (**) Onn Mouse Onn Mouse Consumer Control: (accel) acceleration threshold: 4
[    10.196] (II) event9  - Onn Mouse Onn Mouse Consumer Control: is tagged by udev as: Keyboard
[    10.196] (II) event9  - Onn Mouse Onn Mouse Consumer Control: device is a keyboard
[    10.197] (II) config/udev: Adding input device Onn Mouse Onn Mouse (/dev/input/event11)
[    10.197] (**) Onn Mouse Onn Mouse: Applying InputClass "libinput pointer catchall"
[    10.197] (II) Using input driver 'libinput' for 'Onn Mouse Onn Mouse'
[    10.261] (II) systemd-logind: got fd for /dev/input/event11 13:75 fd 40 paused 0
[    10.261] (**) Onn Mouse Onn Mouse: always reports core events
[    10.262] (**) Option "Device" "/dev/input/event11"
[    10.262] (**) Option "_source" "server/udev"
[    10.263] (II) event11 - Onn Mouse Onn Mouse: is tagged by udev as: Mouse
[    10.263] (II) event11 - Onn Mouse Onn Mouse: device is a pointer
[    10.263] (II) event11 - Onn Mouse Onn Mouse: device removed
[    10.263] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-3/1-3:1.2/0003:3938:1215.0003/input/input11/event11"
[    10.263] (II) XINPUT: Adding extended input device "Onn Mouse Onn Mouse" (type: MOUSE, id 15)
[    10.263] (**) Option "AccelerationScheme" "none"
[    10.263] (**) Onn Mouse Onn Mouse: (accel) selected scheme none/0
[    10.263] (**) Onn Mouse Onn Mouse: (accel) acceleration factor: 2.000
[    10.263] (**) Onn Mouse Onn Mouse: (accel) acceleration threshold: 4
[    10.264] (II) event11 - Onn Mouse Onn Mouse: is tagged by udev as: Mouse
[    10.264] (II) event11 - Onn Mouse Onn Mouse: device is a pointer
[    10.264] (II) config/udev: Adding input device Onn Mouse Onn Mouse (/dev/input/mouse1)
[    10.264] (II) No input driver specified, ignoring this device.
[    10.264] (II) This device may have been added with another device file.
[    10.264] (II) config/udev: Adding input device USB2.0 HD UVC WebCam: USB2.0 HD (/dev/input/event16)
[    10.265] (**) USB2.0 HD UVC WebCam: USB2.0 HD: Applying InputClass "libinput keyboard catchall"
[    10.265] (II) Using input driver 'libinput' for 'USB2.0 HD UVC WebCam: USB2.0 HD'
[    10.266] (II) systemd-logind: got fd for /dev/input/event16 13:80 fd 41 paused 0
[    10.266] (**) USB2.0 HD UVC WebCam: USB2.0 HD: always reports core events
[    10.266] (**) Option "Device" "/dev/input/event16"
[    10.266] (**) Option "_source" "server/udev"
[    10.267] (II) event16 - USB2.0 HD UVC WebCam: USB2.0 HD: is tagged by udev as: Keyboard
[    10.267] (II) event16 - USB2.0 HD UVC WebCam: USB2.0 HD: device is a keyboard
[    10.267] (II) event16 - USB2.0 HD UVC WebCam: USB2.0 HD: device removed
[    10.267] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-4/1-4:1.0/input/input16/event16"
[    10.267] (II) XINPUT: Adding extended input device "USB2.0 HD UVC WebCam: USB2.0 HD" (type: KEYBOARD, id 16)
[    10.268] (II) event16 - USB2.0 HD UVC WebCam: USB2.0 HD: is tagged by udev as: Keyboard
[    10.268] (II) event16 - USB2.0 HD UVC WebCam: USB2.0 HD: device is a keyboard
[    10.269] (II) config/udev: Adding input device HD-Audio Generic Headphone (/dev/input/event19)
[    10.269] (II) No input driver specified, ignoring this device.
[    10.269] (II) This device may have been added with another device file.
[    10.269] (II) config/udev: Adding input device ELAN1203:00 04F3:307A Mouse (/dev/input/event14)
[    10.269] (**) ELAN1203:00 04F3:307A Mouse: Applying InputClass "libinput pointer catchall"
[    10.269] (II) Using input driver 'libinput' for 'ELAN1203:00 04F3:307A Mouse'
[    10.270] (II) systemd-logind: got fd for /dev/input/event14 13:78 fd 42 paused 0
[    10.270] (**) ELAN1203:00 04F3:307A Mouse: always reports core events
[    10.270] (**) Option "Device" "/dev/input/event14"
[    10.270] (**) Option "_source" "server/udev"
[    10.271] (II) event14 - ELAN1203:00 04F3:307A Mouse: is tagged by udev as: Mouse Pointingstick
[    10.271] (II) event14 - ELAN1203:00 04F3:307A Mouse: device is a pointer
[    10.271] (II) event14 - ELAN1203:00 04F3:307A Mouse: device removed
[    10.271] (**) Option "config_info" "udev:/sys/devices/platform/AMDI0010:03/i2c-0/i2c-ELAN1203:00/0018:04F3:307A.0004/input/input20/event14"
[    10.271] (II) XINPUT: Adding extended input device "ELAN1203:00 04F3:307A Mouse" (type: MOUSE, id 17)
[    10.272] (**) Option "AccelerationScheme" "none"
[    10.272] (**) ELAN1203:00 04F3:307A Mouse: (accel) selected scheme none/0
[    10.272] (**) ELAN1203:00 04F3:307A Mouse: (accel) acceleration factor: 2.000
[    10.272] (**) ELAN1203:00 04F3:307A Mouse: (accel) acceleration threshold: 4
[    10.273] (II) event14 - ELAN1203:00 04F3:307A Mouse: is tagged by udev as: Mouse Pointingstick
[    10.273] (II) event14 - ELAN1203:00 04F3:307A Mouse: device is a pointer
[    10.273] (II) config/udev: Adding input device ELAN1203:00 04F3:307A Mouse (/dev/input/mouse2)
[    10.273] (II) No input driver specified, ignoring this device.
[    10.273] (II) This device may have been added with another device file.
[    10.274] (II) config/udev: Adding input device ELAN1203:00 04F3:307A Touchpad (/dev/input/event15)
[    10.274] (**) ELAN1203:00 04F3:307A Touchpad: Applying InputClass "libinput touchpad catchall"
[    10.274] (II) Using input driver 'libinput' for 'ELAN1203:00 04F3:307A Touchpad'
[    10.275] (II) systemd-logind: got fd for /dev/input/event15 13:79 fd 43 paused 0
[    10.275] (**) ELAN1203:00 04F3:307A Touchpad: always reports core events
[    10.275] (**) Option "Device" "/dev/input/event15"
[    10.275] (**) Option "_source" "server/udev"
[    10.275] (II) event15 - ELAN1203:00 04F3:307A Touchpad: is tagged by udev as: Touchpad
[    10.276] (II) event15 - ELAN1203:00 04F3:307A Touchpad: device is a touchpad
[    10.276] (II) event15 - ELAN1203:00 04F3:307A Touchpad: device removed
[    10.276] (**) Option "config_info" "udev:/sys/devices/platform/AMDI0010:03/i2c-0/i2c-ELAN1203:00/0018:04F3:307A.0004/input/input21/event15"
[    10.276] (II) XINPUT: Adding extended input device "ELAN1203:00 04F3:307A Touchpad" (type: TOUCHPAD, id 18)
[    10.276] (**) Option "AccelerationScheme" "none"
[    10.276] (**) ELAN1203:00 04F3:307A Touchpad: (accel) selected scheme none/0
[    10.276] (**) ELAN1203:00 04F3:307A Touchpad: (accel) acceleration factor: 2.000
[    10.276] (**) ELAN1203:00 04F3:307A Touchpad: (accel) acceleration threshold: 4
[    10.277] (II) event15 - ELAN1203:00 04F3:307A Touchpad: is tagged by udev as: Touchpad
[    10.278] (II) event15 - ELAN1203:00 04F3:307A Touchpad: device is a touchpad
[    10.278] (II) config/udev: Adding input device ELAN1203:00 04F3:307A Touchpad (/dev/input/mouse3)
[    10.278] (II) No input driver specified, ignoring this device.
[    10.278] (II) This device may have been added with another device file.
[    10.278] (II) config/udev: Adding input device Asus WMI hotkeys (/dev/input/event18)
[    10.278] (**) Asus WMI hotkeys: Applying InputClass "libinput keyboard catchall"
[    10.278] (II) Using input driver 'libinput' for 'Asus WMI hotkeys'
[    10.279] (II) systemd-logind: got fd for /dev/input/event18 13:82 fd 44 paused 0
[    10.279] (**) Asus WMI hotkeys: always reports core events
[    10.279] (**) Option "Device" "/dev/input/event18"
[    10.279] (**) Option "_source" "server/udev"
[    10.280] (II) event18 - Asus WMI hotkeys: is tagged by udev as: Keyboard
[    10.280] (II) event18 - Asus WMI hotkeys: device is a keyboard
[    10.280] (II) event18 - Asus WMI hotkeys: device removed
[    10.280] (**) Option "config_info" "udev:/sys/devices/platform/asus-nb-wmi/input/input18/event18"
[    10.280] (II) XINPUT: Adding extended input device "Asus WMI hotkeys" (type: KEYBOARD, id 19)
[    10.280] (II) event18 - Asus WMI hotkeys: is tagged by udev as: Keyboard
[    10.280] (II) event18 - Asus WMI hotkeys: device is a keyboard
[    10.281] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event5)
[    10.281] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[    10.281] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[    10.282] (II) systemd-logind: got fd for /dev/input/event5 13:69 fd 45 paused 0
[    10.282] (**) AT Translated Set 2 keyboard: always reports core events
[    10.282] (**) Option "Device" "/dev/input/event5"
[    10.282] (**) Option "_source" "server/udev"
[    10.283] (II) event5  - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[    10.283] (II) event5  - AT Translated Set 2 keyboard: device is a keyboard
[    10.283] (II) event5  - AT Translated Set 2 keyboard: device removed
[    10.284] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input5/event5"
[    10.284] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 20)
[    10.284] (II) event5  - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[    10.284] (II) event5  - AT Translated Set 2 keyboard: device is a keyboard
[    10.285] (II) config/udev: Adding input device PC Speaker (/dev/input/event13)
[    10.285] (II) No input driver specified, ignoring this device.
[    10.285] (II) This device may have been added with another device file.
[    10.287] (**) Onn Mouse Onn Mouse Consumer Control: Applying InputClass "libinput keyboard catchall"
[    10.287] (II) Using input driver 'libinput' for 'Onn Mouse Onn Mouse Consumer Control'
[    10.287] (II) systemd-logind: returning pre-existing fd for /dev/input/event9 13:73
[    10.287] (**) Onn Mouse Onn Mouse Consumer Control: always reports core events
[    10.287] (**) Option "Device" "/dev/input/event9"
[    10.287] (**) Option "_source" "_driver/libinput"
[    10.287] (II) libinput: Onn Mouse Onn Mouse Consumer Control: is a virtual subdevice
[    10.287] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-3/1-3:1.1/0003:3938:1215.0002/input/input9/event9"
[    10.287] (II) XINPUT: Adding extended input device "Onn Mouse Onn Mouse Consumer Control" (type: KEYBOARD, id 21)
[    10.330] (--) NVIDIA(GPU-0): DFP-0: disconnected
[    10.330] (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
[    10.330] (--) NVIDIA(GPU-0): DFP-0: 2660.0 MHz maximum pixel clock
[    10.330] (--) NVIDIA(GPU-0): 
[    10.330] (--) NVIDIA(GPU-0): DFP-1: disconnected
[    10.330] (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
[    10.330] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
[    10.330] (--) NVIDIA(GPU-0): 
[    10.442] (**) Option "fd" "29"
[    10.442] (II) event3  - Power Button: device removed
[    10.442] (**) Option "fd" "32"
[    10.442] (II) event12 - Asus Wireless Radio Control: device removed
[    10.442] (**) Option "fd" "33"
[    10.442] (II) event4  - Video Bus: device removed
[    10.442] (**) Option "fd" "34"
[    10.442] (II) event0  - Power Button: device removed
[    10.442] (**) Option "fd" "35"
[    10.442] (II) event1  - Sleep Button: device removed
[    10.442] (**) Option "fd" "36"
[    10.442] (II) event6  - Onn Mouse Onn Mouse: device removed
[    10.442] (**) Option "fd" "37"
[    10.442] (II) event7  - Onn Mouse Onn Mouse Keyboard: device removed
[    10.442] (**) Option "fd" "38"
[    10.442] (II) event8  - Onn Mouse Onn Mouse System Control: device removed
[    10.442] (**) Option "fd" "39"
[    10.442] (**) Option "fd" "40"
[    10.442] (II) event11 - Onn Mouse Onn Mouse: device removed
[    10.442] (**) Option "fd" "41"
[    10.442] (II) event16 - USB2.0 HD UVC WebCam: USB2.0 HD: device removed
[    10.442] (**) Option "fd" "42"
[    10.442] (II) event14 - ELAN1203:00 04F3:307A Mouse: device removed
[    10.442] (**) Option "fd" "43"
[    10.442] (II) event15 - ELAN1203:00 04F3:307A Touchpad: device removed
[    10.442] (**) Option "fd" "44"
[    10.442] (II) event18 - Asus WMI hotkeys: device removed
[    10.442] (**) Option "fd" "45"
[    10.442] (II) event5  - AT Translated Set 2 keyboard: device removed
[    10.442] (**) Option "fd" "39"
[    10.442] (II) event9  - Onn Mouse Onn Mouse Consumer Control: device removed
[    10.445] (II) UnloadModule: "libinput"
[    10.445] (II) systemd-logind: not releasing fd for 13:73, still in use
[    10.445] (II) UnloadModule: "libinput"
[    10.445] (II) systemd-logind: releasing fd for 13:69
[    10.531] (II) UnloadModule: "libinput"
[    10.531] (II) systemd-logind: releasing fd for 13:82
[    10.731] (II) UnloadModule: "libinput"
[    10.731] (II) systemd-logind: releasing fd for 13:79
[    10.821] (II) UnloadModule: "libinput"
[    10.821] (II) systemd-logind: releasing fd for 13:78
[    10.921] (II) UnloadModule: "libinput"
[    10.921] (II) systemd-logind: releasing fd for 13:80
[    11.011] (II) UnloadModule: "libinput"
[    11.011] (II) systemd-logind: releasing fd for 13:75
[    11.131] (II) UnloadModule: "libinput"
[    11.131] (II) systemd-logind: releasing fd for 13:73
[    11.171] (II) UnloadModule: "libinput"
[    11.171] (II) systemd-logind: releasing fd for 13:72
[    11.231] (II) UnloadModule: "libinput"
[    11.231] (II) systemd-logind: releasing fd for 13:71
[    11.331] (II) UnloadModule: "libinput"
[    11.331] (II) systemd-logind: releasing fd for 13:70
[    11.441] (II) UnloadModule: "libinput"
[    11.441] (II) systemd-logind: releasing fd for 13:65
[    11.481] (II) UnloadModule: "libinput"
[    11.481] (II) systemd-logind: releasing fd for 13:64
[    11.531] (II) UnloadModule: "libinput"
[    11.531] (II) systemd-logind: releasing fd for 13:68
[    11.621] (II) UnloadModule: "libinput"
[    11.621] (II) systemd-logind: releasing fd for 13:76
[    11.733] (II) UnloadModule: "libinput"
[    11.733] (II) systemd-logind: releasing fd for 13:67
[    11.814] (II) NVIDIA(GPU-0): Deleting GPU-0
[    11.823] (II) Server terminated successfully (0). Closing log file.

UPDATE :

After updating my xorg conf to

# /etc/X11/xorg.conf.d/10-gpu.conf
Section "Device"
	Identifier	"iGPU"
	Driver		"modesetting"
	BusID		"PCI:5:0:0"
EndSection

Section "Device"
	Identifier	"dGPU"
	Driver		"nvidia"
	BusID		"PCI:1:0:0"
EndSection

Section "Screen"
	Identifier	"iGPU"
	Device		"iGPU"
EndSection

it appears to have worked, I correctly see the cards in lspci, and my x starts correctly, I understand that this way I'm using the integrated graphics as primary, and I should be able to run applications with the discrete card via the use of

xrandr --setprovideroffloadsink 1 0

and running them with

DRI_PRIME=1

is that correct ?

Last edited by ed-tyl (2020-12-07 02:41:53)

Offline

#8 2020-12-07 02:41:21

loqs
Member
Registered: 2014-03-06
Posts: 17,438

Re: [SOLVED] problems setting up PRIME / NVIDIA + AMD in hybrid laptop

If you install xf86-video-amdgpu and use the following config does X then start on the integrated AMD gpu?

Section "Device"
	Identifier	"nvidia"
	Driver		"nvidia"
	BusId		"PCI:1:0:0"
EndSection

Section "Device"
	Identifier	"amd"
	Driver		"amdgpu"
	BusId		"PCI:5:0:0"
EndSection

If that works after installing nvidia-prime and mesa-demos what is the output of

prime-run glxinfo | grep "OpenGL renderer"

Offline

#9 2020-12-07 02:47:35

ed-tyl
Member
Registered: 2020-06-10
Posts: 5

Re: [SOLVED] problems setting up PRIME / NVIDIA + AMD in hybrid laptop

I updated my previous post just as you responded, but I think it works correctly, I get the following outputs with the configuration from the update

ed $ glxinfo | grep "OpenGL renderer"
OpenGL renderer string: AMD RENOIR (DRM 3.39.0, 5.9.12-arch1-1, LLVM 11.0.0)

ed $ prime-run glxinfo | grep "OpenGL renderer"
OpenGL renderer string: GeForce GTX 1650 Ti/PCIe/SSE2

so I think this is finally solved ! Thanks for the help !

(SO impressed with the arch forums, first time here after using arch a fair amount of time, love you guys)

Offline

Board footer

Powered by FluxBB