You are not logged in.
I am facing a persistent issue with Xorg on my Arch Linux system running the Hardened Kernel. Despite extensive troubleshooting, I am unable to resolve a "no screens found" error. Below are the details about my system, the problem, and the steps I’ve taken so far.
---
System Information
OS: Arch Linux
Kernel: 6.12.6-hardened1-2-hardened
Intel GPU: Intel Raptor Lake-P (UHD Graphics), BusID PCI:0:2:0
NVIDIA GPU: NVIDIA RTX 2050, BusID PCI:1:0:0
Xorg version: 1.21.1.15
NVIDIA driver: nvidia-dkms 565.77-2
Intel driver: modesetting
---
Problem Description
When I try to start Xorg, it consistently fails with the error:
Fatal server error:
(EE) no screens found(EE)
The relevant portion of /var/log/Xorg.0.log is:
[4525.108] (II) xfree86: Adding drm device (/dev/dri/card1)
[4525.110] (II) LoadModule: "nvidia"
[4525.123] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[4525.123] (WW) Warning, couldn't open module modesetting
[4525.123] (EE) Failed to load module "modesetting" (module does not exist, 0)
[4527.024] (EE) No devices detected.
[4527.024] (EE) no screens found(EE)
---
Steps I Have Taken
1. Xorg Configuration File:
I created a configuration file at /etc/X11/xorg.conf.d/10-prime.conf:
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
2. Hardware and Drivers Verification:
lspci confirms that both GPUs are present.
nvidia-smi recognizes the NVIDIA GPU and confirms it is functional.
lsmod shows that both the nvidia and i915 modules are loaded.
3. Prime and Environment:
Tried prime-run glxinfo | grep "OpenGL renderer", but it fails with:
unable to open display
4. Reinstalled Drivers and Updated System:
Reinstalled xorg-server, nvidia-dkms, and mesa.
Updated the system with pacman -Syu
I used ChatGPT to try to fix this issue, but the problem persists.
---
Request for Assistance
I am unsure if I am missing something critical or if there is a conflict between the Hardened Kernel and the drivers. I kindly ask for any guidance or suggestions on what to try next.
Thank you in advance for your help!
Last edited by Bataya (2024-12-29 17:58:12)
404: Signature not found.
Offline
I've been stuck on this Xorg + NVIDIA issue on my Arch Linux system for hours now, and I'm starting to worry I’m digging myself into a deeper hole. I've been using ChatGPT to try to troubleshoot, but I’m afraid I might be making things worse or missing something obvious. I really need some guidance from someone who knows what they're doing.
Here’s the situation:
What I’ve Tried So Far:
1. PRIME Testing:
I ran prime-run glxinfo | grep "OpenGL renderer" to test the hybrid GPU setup, but it just throws:
Error: unable to open display
2. Checking SDDM:
The display manager is running (systemctl status display-manager), but logs show:
Failed to read display number from pipe
Could not start Display server on vt2
3. Xorg Logs:
/var/log/Xorg.0.log shows:
No screens found
No devices detected
Complaints about missing font directories like /usr/share/fonts/misc.
4. Startx:
Running startx gives the same errors (No screens found).
5. Configuration Attempts:
I haven’t touched /etc/X11/xorg.conf.d/10-prime.conf yet—it’s currently empty.
I haven’t made or edited /etc/sddm.conf.
6. Other Errors:
Running cat /etc/sddm.conf | grep -i "Session" returns:
cat: /etc/sddm.conf: No such file or directory
Trying chmod u+s /usr/libexec/Xorg results in:
chmod: cannot access '/usr/libexec/Xorg': No such file or directory
What’s Next?
I feel like I might be missing some critical configurations or permissions. Should I create a 10-prime.conf file? Do I need to fix something with SDDM? Or am I just going about this completely wrong?
If anyone’s dealt with something similar or has any advice, I’d really appreciate it. I’m worried I might break something even more if I keep following random steps from ChatGPT, especially since it's trying to guide me through the Arch Linux directories but seems to be getting lost in the process. Let me know if you need more info or logs.
Last edited by Bataya (2024-12-30 08:57:52)
404: Signature not found.
Offline
Never trust ShitGPT with anything, especially not with Arch setup advice. You can get rid of and revert literally everything you're trying to do here, nothing makes any sense at all. Things will work without any configuration for xorg correctly in normal circumstances with that HW config.
Why are you dead-set on the hardening kernel? It has very restrictive defaults for very specific purposes that require a deeper understanding of what one wants their kernel to do, which you apparently lack, try setting up a normal kernel first.
Also in general please post full logs. E.g. modesetting should be built into xorg and thus basically always available. That it generates that error suggests there's another weird configuration file you haven't yet disclosed, which we would see if we had the full log.
Offline