You are not logged in.

#26 2021-08-31 14:42:08

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,100

Re: xorg with amd APU and NVIDIA GPU

No log shows an extension of the ModulePath nor nvidia-drm.modeset=1 being used, so there's probably also no early KMS and the GPU is simply late.
https://wiki.archlinux.org/title/NVIDIA … de_setting


Semi-OT:

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

This is cruft, remove it, even iff you desire to maintain a static server layout.

Edit: the GPU still responds to nvidia-smi so I don't think there're another issue w/ the kernel module.

Last edited by seth (2021-08-31 14:43:18)

Offline

#27 2021-08-31 14:44:35

ExellentCoin
Member
Registered: 2021-07-17
Posts: 38

Re: xorg with amd APU and NVIDIA GPU

Lone_Wolf wrote:
ExellentCoin wrote:
Lone_Wolf wrote:

    Creating a config from scratch tends to be best method to get everything right.

Would this be good to start with?

I should rephrase that :

Configuring X is easiest when using autodetection and only adding *.conf files for stuff X autodetection gets wrong.

back to issue :
X still doesn't load nvidia, we may need to investigate what happens before X starts.

post lspci -k output .
As root , full dmesg and SYSTEMD_LESS=FRXMK journalctl -b output .

dmesg and journal are probably large, consider using  a pastebin service

lspci -k:
https://pastebin.com/2M2U1Tbq

dmesg:
https://pastebin.com/B2iHhJvJ

journalctl -b:
https://pastebin.com/MiX1cn0L

Offline

#28 2021-08-31 14:46:19

ExellentCoin
Member
Registered: 2021-07-17
Posts: 38

Re: xorg with amd APU and NVIDIA GPU

seth wrote:

Semi-OT:

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

This is cruft, remove it, even iff you desire to maintain a static server layout.

when I don't add this, I have no keyboard or mouse input.

Offline

#29 2021-08-31 14:51:37

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,094

Re: xorg with amd APU and NVIDIA GPU

Something you can do if you really do not get the nvidia X modules to load without your custom config which should not be normal if you've indeed properly enabled early KMS for all participants is adding

Section "Files"
  ModulePath "/usr/lib/nvidia/xorg"
  ModulePath "/usr/lib/xorg/modules"
EndSection

to your xorg.conf

Offline

#30 2021-08-31 14:53:51

ExellentCoin
Member
Registered: 2021-07-17
Posts: 38

Re: xorg with amd APU and NVIDIA GPU

V1del wrote:

Something you can do if you really do not get the nvidia X modules to load without your custom config which should not be normal if you've indeed properly enabled early KMS for all participants is adding

Section "Files"
  ModulePath "/usr/lib/nvidia/xorg"
  ModulePath "/usr/lib/xorg/modules"
EndSection

to your xorg.conf

It did't change anything weirdly enough. Is there an output I should post with it?

Offline

#31 2021-08-31 14:55:24

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,100

Re: xorg with amd APU and NVIDIA GPU

You wrote:

when I don't add this, I have no keyboard or mouse input.

your xorg log wrote:

[   391.634] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[   391.634] (WW) Disabling Keyboard0
[   391.634] (WW) Disabling Mouse0

Me wrote:

This is cruft

Me also wrote:

No log shows an extension of the ModulePath nor nvidia-drm.modeset=1 being used, so there's probably also no early KMS and the GPU is simply late.
https://wiki.archlinux.org/title/NVIDIA … de_setting

Offline

#32 2021-08-31 14:55:50

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,094

Re: xorg with amd APU and NVIDIA GPU

New xorg log. But also look at seths post to enable early KMS properly.

Offline

#33 2021-08-31 15:00:33

ExellentCoin
Member
Registered: 2021-07-17
Posts: 38

Re: xorg with amd APU and NVIDIA GPU

V1del wrote:

New xorg log. But also look at seths post to enable early KMS properly.

I think I did that. I added the modules to mkinitcpio.conf and recompiled it using mkinitcpio -p linux and rebooted. It did change the start resolution tho. This laptop is running with luks encryption and normally, the resolution is all fddd up, by doing what he told me this isn't the case anymore. I have normal prompts with normal input. Not just typing on feels anymore.

Offline

#34 2021-08-31 15:01:48

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,100

Re: xorg with amd APU and NVIDIA GPU

Updated xorg log and "glxinfo -B"?

Offline

#35 2021-08-31 15:03:01

ExellentCoin
Member
Registered: 2021-07-17
Posts: 38

Re: xorg with amd APU and NVIDIA GPU

your xorg log wrote:

[   391.634] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[   391.634] (WW) Disabling Keyboard0
[   391.634] (WW) Disabling Mouse0

Me wrote:

This is cruft

I removed them and indeed you were right, I am sorry. I have a working mouse and keyboard.

Offline

#36 2021-08-31 15:05:31

ExellentCoin
Member
Registered: 2021-07-17
Posts: 38

Re: xorg with amd APU and NVIDIA GPU

seth wrote:

Updated xorg log and "glxinfo -B"?

Updated Xorg.0.log:
https://pastebin.com/TbzjziWb

glxinfo -B:
https://pastebin.com/Ms9F3Tph

Offline

#37 2021-08-31 15:07:36

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,100

Re: xorg with amd APU and NVIDIA GPU

You're running on the AMDGPU, but "prime-run glxinfo -B" should™ get you the nvidia chip (everything is properly loaded) and "prime-run superturboturkeypuncher3" should™ allow you to smash turkeys on the nvidia chip.

Offline

#38 2021-08-31 15:15:53

ExellentCoin
Member
Registered: 2021-07-17
Posts: 38

Re: xorg with amd APU and NVIDIA GPU

seth wrote:

You're running on the AMDGPU, but "prime-run glxinfo -B" should™ get you the nvidia chip (everything is properly loaded) and "prime-run superturboturkeypuncher3" should™ allow you to smash turkeys on the nvidia chip.

I enabled prime (I think, just changed the device used by the screen). Now I have the external monitors, but not the internal one it just freezes until I close X.

glxinfo -B:
https://pastebin.com/TcZKsQ7g

And UNFORTUNATELY the superturboturkeypuncher3 isn't found and I have no idea how to install it smile

Offline

#39 2021-08-31 15:22:11

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,100

Re: xorg with amd APU and NVIDIA GPU

I enabled prime (I think, just changed the device used by the screen). Now I have the external monitors, but not the internal one it just freezes until I close X.

What exactly did you do?
https://wiki.archlinux.org/title/PRIME#Reverse_PRIME - but you'll have to use the modesetting driver (drop xf86-video-amdgpu)

I have no idea how to install it

https://doom.fandom.com/wiki/Super_Turb … _Puncher_3

Offline

#40 2021-08-31 15:27:03

ExellentCoin
Member
Registered: 2021-07-17
Posts: 38

Re: xorg with amd APU and NVIDIA GPU

I am propably blind, but I can't find it.

Offline

#41 2021-08-31 15:29:43

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,100

Re: xorg with amd APU and NVIDIA GPU

It's a running gag in Doom…

Offline

#42 2021-08-31 15:33:00

ExellentCoin
Member
Registered: 2021-07-17
Posts: 38

Re: xorg with amd APU and NVIDIA GPU

seth wrote:

It's a running gag in Doom…

Yeah that I know of, but I thought that it was also some kind of PRIME tester like fire from mese-demos smile

Offline

#43 2021-08-31 15:37:15

ExellentCoin
Member
Registered: 2021-07-17
Posts: 38

Re: xorg with amd APU and NVIDIA GPU

seth wrote:

I enabled prime (I think, just changed the device used by the screen). Now I have the external monitors, but not the internal one it just freezes until I close X.

What exactly did you do?
https://wiki.archlinux.org/title/PRIME#Reverse_PRIME - but you'll have to use the modesetting driver (drop xf86-video-amdgpu)

I don't know what you mean with drop amdgpu.

I now folowed the article and use their xorg.conf (see below) and used xrandr command (also see below), but nothing has changed. It does display all the outputs, but only enables the internal one. When I try to enable the external ones, I get the crtc error again.

xorg.conf:

Section "ServerLayout"
        Identifier "layout"
        Screen 0 "amdgpu"
        Inactive "nvidia"
        Option "AllowNVIDIAGPUScreens"
EndSection

Section "Device"
        Identifier "nvidia"
        Driver "nvidia"
EndSection

Section "Screen"
        Identifier "nvidia"
        Device "nvidia"
EndSection

Section "Device"
        Identifier "amdgpu"
        Driver "amdgpu"
        BusID "PCI:7:0:0"
EndSection

Section "Screen"
        Identifier "amdgpu"
        Device "amdgpu"
EndSection

xrandr --listproviders and the other one:

Providers: number : 2
Provider 0: id: 0x55 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 2 associated providers: 1 name:Unknown AMD Radeon GPU @ pci:0000:07:00.0
Provider 1: id: 0x1fb cap: 0x2, Sink Output crtcs: 4 outputs: 4 associated providers: 1 name:NVIDIA-G0
xrandr --setprovideroutputsource NVIDIA-G0 "Unknown AMD Radeon GPU @ pci:0000:07:00.0"

Offline

#44 2021-08-31 15:38:01

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,100

Re: xorg with amd APU and NVIDIA GPU

Nahh… I've a flash version, though smile

Edit:

I don't know what you mean with drop amdgpu.

pacman -R xf86-video-amdgpu

You'll be using the modesetting driver for the amd chip (on top of the amdgpu kernel module) since amdgpu can't do reverse prime (as by the wiki)

Last edited by seth (2021-08-31 15:39:40)

Offline

#45 2021-08-31 15:46:52

ExellentCoin
Member
Registered: 2021-07-17
Posts: 38

Re: xorg with amd APU and NVIDIA GPU

I don't know what you mean with drop amdgpu.

pacman -R xf86-video-amdgpu

You'll be using the modesetting driver for the amd chip (on top of the amdgpu kernel module) since amdgpu can't do reverse prime (as by the wiki)

Again the crtc X error.

Offline

#46 2021-08-31 15:49:27

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,100

Re: xorg with amd APU and NVIDIA GPU

Because you still have a static config referencing amdgpu?

Offline

#47 2021-08-31 16:04:34

ExellentCoin
Member
Registered: 2021-07-17
Posts: 38

Re: xorg with amd APU and NVIDIA GPU

seth wrote:

Because you still have a static config referencing amdgpu?

No the modesetting as the driver.

Offline

#48 2021-08-31 16:05:41

ExellentCoin
Member
Registered: 2021-07-17
Posts: 38

Re: xorg with amd APU and NVIDIA GPU

ExellentCoin wrote:
seth wrote:

Because you still have a static config referencing amdgpu?

No the modesetting as the driver.

I can get the xorg log in an hour if you want.

Offline

#49 2021-08-31 16:06:58

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,100

Re: xorg with amd APU and NVIDIA GPU

Log and present config files, yes (that includes anything in /{etc,usr/share}/X11/xorg.conf.d )

Offline

#50 2021-08-31 16:10:31

ExellentCoin
Member
Registered: 2021-07-17
Posts: 38

Re: xorg with amd APU and NVIDIA GPU

seth wrote:

Log and present config files, yes (that includes anything in /{etc,usr/share}/X11/xorg.conf.d )

Ok I am not home, but i can get them in an hour

Offline

Board footer

Powered by FluxBB