You are not logged in.
I have a PC with an nvidia GPU and a CPU with integrated graphics and i wanted to configure arch so i could use the gpu for VMs and the igpu for linux.
Everything goes as intended until i reboot my PC to actually try if the passthrough for the GPU works, and it does.
But it seems like the display manager won't start at all even if i try to manually do it from tty.
Error logs didn't help much, it's just the display server crashing.
After a bit of searching it seems that its about an option on the BIOS for selecting wich GPU to give "priority" to for display output, but mine only gives the option to enable the igpu or not.
Is there a way of still giving my igpu priority for linux?
Last edited by bestbtw (2022-11-05 16:24:59)
Offline
Post your xorg log and move /etc/X11/xorg.conf away.
Offline
Thanks for the quick response!
Here is the xorg log copied from /var/log/: https://pastebin.com/Gib5rS9Y
Also what do you mean by moving /etc/X11/xorg.conf away?
I checked for that file but i don't have it...
Offline
Also what do you mean by moving /etc/X11/xorg.conf away?
Mere speculation on the reason, but it's not.
But the server tries to run on the non-existing cart1.
You do have xf86-video-nouveau installed, see whether removing that is sufficient.
Offline
Just did remove that exact package but still no luck.
Here are the logs: https://pastebin.com/cxSJjdVW
By taking a quick look at it it seems that it doesn't load the nouveau driver anymore but at the end it still gives the same error.
Offline
Please post teh system journal
sudo journalctl -b | curl -F 'file=@-' 0x0.stOffline
Offline
That boot doesn't pass through the nvidia chip, try eg.
sudo journalctl -b -1 | curl -F 'file=@-' 0x0.stfor the previous boot.
Offline
My bad, here: http://0x0.st/og6P.txt
Offline
It'S the exact same boot as you posted before:
Nov 04 16:46:47 synergy kernel: Linux version 6.0.6-arch1-1 (linux@archlinux) (gcc (GCC) 12.2.0, GNU ld (GNU Binutils) 2.39.0) #1 SMP PREEMPT_DYNAMIC Sat, 29 Oct 2022 14:08:39 +0000
Nov 04 16:46:47 synergy kernel: Command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=43932588-5c5f-4644-b113-11de31df8475 rw rootfstype=ext4 loglevel=3 intel_iommu=on iommu=ptOffline
That's strange, the urls are clearly different.
I'm sure i did the second one after rebooting with the vfio bootloader parameters set.
I literally did that from tty because lightdm crashes. I'll try again and repost the system journal if it's different.
Offline
If you rebooted w/ vfio enabled and then issued "sudo journalctl -b -1 | curl -F 'file=@-' 0x0.st" you posted the journal of the previous boot, ie. the one w/o vfio.
Offline
Still the same output, I don't know why...
But after rebooting without the parameters on grub so that i can actually use the system i noticed that the login manager showed on the monitor attached to the igpu. This never happened.
Here is still the link: http://0x0.st/og6E.txt
Last edited by bestbtw (2022-11-04 16:39:42)
Offline
Sorry, didn't know how to use journalctl in the first place. Still learning...
http://0x0.st/ogIK.txt
Offline
vfio takes cotrol of the device and nouveau isn't loaded.
Does this also happen if you only boot the mutli-user.target (2nd link below), login on the console, wait some seconds and start the lightdm service (or graphical.target) from there?
If nothing else helps, you could also just blacklist nouveau.
https://wiki.archlinux.org/title/Kernel … acklisting
Offline
Same happens trying both things.
If i try to startx or run light or start graphical.target with the default set to multi-user.target everything behaves the same.
Blacklisting nouveau didn't help.
Really if i had that option on the bios i was talking about earlier everything would be easier...
Also as i was trying to reboot with nouveau still blacklisted and with vfio parameters removed xorg still crashes.
Last edited by bestbtw (2022-11-05 08:56:56)
Offline
In doubt we'll force-configure x11 t use the intel chip, this just should(tm) not benecessary.
ls -R /{etc,usr/share}/X11/xorg.conf*Offline
That command still doesn't show any "xorg.conf" file.
Should i manually create it? If so how would i set xorg to force use the intel igpu?
Here is the list of .conf files: https://pastebin.com/yTL0288V
Last edited by bestbtw (2022-11-05 10:02:16)
Offline
Why are there 10-amdgpu.conf and 10-radeon.conf? You don'thave such GPUs?
Having a
Section "OutputClass"
Identifier "intel"
MatchDriver "i915"
Driver "modesetting"
EndSectionconfig should already prefer that GPU
Otherwise https://wiki.archlinux.org/title/PRIME#Configuration may serve as a pattern...
Offline
Fixed!
I've followed the linked you posted and created the xorg.conf file and configured the intel with its corresponding screen and busid.
I really cannot thank you enough for all of the help you gave me dude, this problem has been driving me crazy for more than a week!
Last edited by bestbtw (2022-11-05 11:12:47)
Offline
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
However this is more a workaround than a fix. The vfio module should™ grab the device (does) and X11 should™ not consider it and it also should™ not do so preferably.
Something™ makes 1@0:0:0 the default device but I neither see what nor understand why.
You might want to keep an eye on this, my best guess is the presence of xf86-video-ati and xf86-video-amdgpu - but that guess is based on exactly nothing ![]()
Offline