You are not logged in.
Hello,
I'm on a personal pc.
Specs:
Nvidia 3090
Dell U-Series 38"
AMD Ryzen 9 5950X
When I try to load an awesomewm with startx I get a black screen, I suspect there is smth wrong with nvidia, but I need your help.
tried to set
sysctl -w nvidia-drm.modeset=1
But it says
sysctl: cannot stat /proc/sys/nvidia-drm/modeset: No such file or directory
tried "Prepend "xrandr --auto" to your xinitrc"
no effect
tried "You can also try to add the nvidia module directly to your mkinitcpio.conf." from the help
no effect or I did it wrong
Thank you
Ivan
.xinitrc
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login
exec awesome
lspci-vga
09:00.0 VGA compatible controller: NVIDIA Corporation GA102 [GeForce RTX 3090] (rev a1)
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 3884
Kernel driver in use: nvidia
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Starship/Matisse IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:05.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:07.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:07.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 7
01:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
02:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse Switch Upstream
03:01.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge
03:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge
03:08.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge
03:09.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge
03:0a.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Matisse PCIe GPP Bridge
04:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
05:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)
06:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP
06:00.1 USB controller: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller
06:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller
07:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)
08:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)
09:00.0 VGA compatible controller: NVIDIA Corporation GA102 [GeForce RTX 3090] (rev a1)
09:00.1 Audio device: NVIDIA Corporation GA102 High Definition Audio Controller (rev a1)
0a:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Function
0b:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP
0b:00.1 Encryption controller: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Cryptographic Coprocessor PSPCPP
0b:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller
0b:00.4 Audio device: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller
nvidia-smi
Thu Sep 29 08:03:19 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.76 Driver Version: 515.76 CUDA Version: 11.7 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... Off | 00000000:09:00.0 Off | N/A |
| 30% 40C P0 93W / 370W | 0MiB / 24576MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
startx >& log
X.Org X Server 1.21.1.4
X Protocol Version 11, Revision 0
Current Operating System: Linux archdeviner 5.19.11-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 24 Sep 2022 18:24:15 +0000 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=389c23bd-3a67-4485-a50c-36addff7b48e rw rootflags=subvol=@ loglevel=3 quiet
Current version of pixman: 0.40.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Sep 29 07:13:04 2022
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Xorg log
[ 50.714]
X.Org X Server 1.21.1.4
X Protocol Version 11, Revision 0
[ 50.714] Current Operating System: Linux archdeviner 5.19.11-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 24 Sep 2022 18:24:15 +0000 x86_64
[ 50.714] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=389c23bd-3a67-4485-a50c-36addff7b48e rw rootflags=subvol=@ loglevel=3 quiet
[ 50.714]
[ 50.714] Current version of pixman: 0.40.0
[ 50.714] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 50.714] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 50.715] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Sep 29 07:13:04 2022
[ 50.715] (==) Using config file: "/etc/X11/xorg.conf"
[ 50.715] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 50.715] (==) ServerLayout "Layout0"
[ 50.715] (**) |-->Screen "Screen0" (0)
[ 50.715] (**) | |-->Monitor "Monitor0"
[ 50.715] (**) | |-->Device "Device0"
[ 50.715] (**) |-->Input Device "Keyboard0"
[ 50.715] (**) |-->Input Device "Mouse0"
[ 50.715] (==) Automatically adding devices
[ 50.715] (==) Automatically enabling devices
[ 50.715] (==) Automatically adding GPU devices
[ 50.715] (==) Automatically binding GPU devices
[ 50.715] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 50.715] (WW) The directory "/usr/share/fonts/misc" does not exist.
[ 50.715] Entry deleted from font path.
[ 50.715] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[ 50.715] Entry deleted from font path.
[ 50.715] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[ 50.715] Entry deleted from font path.
[ 50.715] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[ 50.715] Entry deleted from font path.
[ 50.716] (==) FontPath set to:
/usr/share/fonts/100dpi,
/usr/share/fonts/75dpi
[ 50.716] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 50.716] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[ 50.716] (WW) Disabling Keyboard0
[ 50.716] (WW) Disabling Mouse0
[ 50.716] (II) Module ABI versions:
[ 50.716] X.Org ANSI C Emulation: 0.4
[ 50.716] X.Org Video Driver: 25.2
[ 50.716] X.Org XInput driver : 24.4
[ 50.716] X.Org Server Extension : 10.0
[ 50.716] (++) using VT number 1
[ 50.717] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[ 50.717] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 50.717] (II) Platform probe for /sys/devices/pci0000:00/0000:00:03.1/0000:09:00.0/drm/card0
[ 50.717] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 13 paused 0
[ 50.718] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules"
[ 50.719] (--) PCI:*(9@0:0:0) 10de:2204:1462:3884 rev 161, Mem @ 0xfb000000/16777216, 0xd0000000/268435456, 0xe0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[ 50.719] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 50.719] (II) LoadModule: "glx"
[ 50.720] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 50.724] (II) Module glx: vendor="X.Org Foundation"
[ 50.724] compiled for 1.21.1.4, module version = 1.0.0
[ 50.724] ABI class: X.Org Server Extension, version 10.0
[ 50.724] (II) LoadModule: "nvidia"
[ 50.724] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 50.732] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 50.732] compiled for 1.6.99.901, module version = 1.0.0
[ 50.732] Module class: X.Org Video Driver
[ 50.732] (II) NVIDIA dlloader X Driver 515.76 Mon Sep 12 19:18:09 UTC 2022
[ 50.732] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 50.732] (II) systemd-logind: releasing fd for 226:0
[ 50.733] (II) Loading sub module "fb"
[ 50.733] (II) LoadModule: "fb"
[ 50.733] (II) Module "fb" already built-in
[ 50.733] (II) Loading sub module "wfb"
[ 50.733] (II) LoadModule: "wfb"
[ 50.733] (II) Loading /usr/lib/xorg/modules/libwfb.so
[ 50.736] (II) Module wfb: vendor="X.Org Foundation"
[ 50.736] compiled for 1.21.1.4, module version = 1.0.0
[ 50.736] ABI class: X.Org ANSI C Emulation, version 0.4
[ 50.736] (II) Loading sub module "ramdac"
[ 50.736] (II) LoadModule: "ramdac"
[ 50.736] (II) Module "ramdac" already built-in
[ 50.737] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
[ 50.737] (==) NVIDIA(0): RGB weight 888
[ 50.737] (==) NVIDIA(0): Default visual is TrueColor
[ 50.737] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[ 50.737] (II) Applying OutputClass "nvidia" options to /dev/dri/card0
[ 50.737] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration"
[ 50.737] (**) NVIDIA(0): Enabling 2D acceleration
[ 50.737] (II) Loading sub module "glxserver_nvidia"
[ 50.737] (II) LoadModule: "glxserver_nvidia"
[ 50.737] (II) Loading /usr/lib/nvidia/xorg/libglxserver_nvidia.so
[ 50.791] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[ 50.791] compiled for 1.6.99.901, module version = 1.0.0
[ 50.791] Module class: X.Org Server Extension
[ 50.791] (II) NVIDIA GLX Module 515.76 Mon Sep 12 19:14:20 UTC 2022
[ 50.791] (II) NVIDIA: The X server supports PRIME Render Offload.
[ 51.935] (--) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:9:0:0
[ 51.935] (--) NVIDIA(0): DFP-0 (boot)
[ 51.935] (--) NVIDIA(0): DFP-1
[ 51.935] (--) NVIDIA(0): DFP-2
[ 51.935] (--) NVIDIA(0): DFP-3
[ 51.935] (--) NVIDIA(0): DFP-4
[ 51.935] (--) NVIDIA(0): DFP-5
[ 51.935] (--) NVIDIA(0): DFP-6
[ 51.935] (II) NVIDIA(0): NVIDIA GPU NVIDIA GeForce RTX 3090 (GA102-A) at PCI:9:0:0
[ 51.935] (II) NVIDIA(0): (GPU-0)
[ 51.935] (--) NVIDIA(0): Memory: 25165824 kBytes
[ 51.935] (--) NVIDIA(0): VideoBIOS: 94.02.42.00.f1
[ 51.935] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[ 51.980] (--) NVIDIA(GPU-0): DELL U3818DW (DFP-0): connected
[ 51.980] (--) NVIDIA(GPU-0): DELL U3818DW (DFP-0): Internal TMDS
[ 51.980] (--) NVIDIA(GPU-0): DELL U3818DW (DFP-0): 600.0 MHz maximum pixel clock
[ 51.980] (--) NVIDIA(GPU-0):
[ 51.980] (--) NVIDIA(GPU-0): DFP-1: disconnected
[ 51.980] (--) NVIDIA(GPU-0): DFP-1: Internal DisplayPort
[ 51.980] (--) NVIDIA(GPU-0): DFP-1: 2670.0 MHz maximum pixel clock
[ 51.980] (--) NVIDIA(GPU-0):
[ 51.980] (--) NVIDIA(GPU-0): DFP-2: disconnected
[ 51.980] (--) NVIDIA(GPU-0): DFP-2: Internal TMDS
[ 51.980] (--) NVIDIA(GPU-0): DFP-2: 165.0 MHz maximum pixel clock
[ 51.980] (--) NVIDIA(GPU-0):
[ 51.980] (--) NVIDIA(GPU-0): DFP-3: disconnected
[ 51.980] (--) NVIDIA(GPU-0): DFP-3: Internal DisplayPort
[ 51.980] (--) NVIDIA(GPU-0): DFP-3: 2670.0 MHz maximum pixel clock
[ 51.980] (--) NVIDIA(GPU-0):
[ 51.981] (--) NVIDIA(GPU-0): DFP-4: disconnected
[ 51.981] (--) NVIDIA(GPU-0): DFP-4: Internal TMDS
[ 51.981] (--) NVIDIA(GPU-0): DFP-4: 165.0 MHz maximum pixel clock
[ 51.981] (--) NVIDIA(GPU-0):
[ 51.981] (--) NVIDIA(GPU-0): DFP-5: disconnected
[ 51.981] (--) NVIDIA(GPU-0): DFP-5: Internal DisplayPort
[ 51.981] (--) NVIDIA(GPU-0): DFP-5: 2670.0 MHz maximum pixel clock
[ 51.981] (--) NVIDIA(GPU-0):
[ 51.981] (--) NVIDIA(GPU-0): DFP-6: disconnected
[ 51.981] (--) NVIDIA(GPU-0): DFP-6: Internal TMDS
[ 51.981] (--) NVIDIA(GPU-0): DFP-6: 165.0 MHz maximum pixel clock
[ 51.981] (--) NVIDIA(GPU-0):
[ 52.040] (==) NVIDIA(0):
[ 52.040] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
[ 52.040] (==) NVIDIA(0): will be used as the requested mode.
[ 52.040] (==) NVIDIA(0):
[ 52.041] (II) NVIDIA(0): Validated MetaModes:
[ 52.041] (II) NVIDIA(0): "DFP-0:nvidia-auto-select"
[ 52.041] (II) NVIDIA(0): Virtual screen size determined to be 3840 x 1600
[ 52.105] (--) NVIDIA(0): DPI set to (110, 109); computed from "UseEdidDpi" X config
[ 52.106] (--) NVIDIA(0): option
[ 52.106] (II) NVIDIA: Reserving 24576.00 MB of virtual memory for indirect memory
[ 52.106] (II) NVIDIA: access.
[ 52.115] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[ 52.115] (II) NVIDIA(0): may not be running or the "AcpidSocketPath" X
[ 52.115] (II) NVIDIA(0): configuration option may not be set correctly. When the
[ 52.115] (II) NVIDIA(0): ACPI event daemon is available, the NVIDIA X driver will
[ 52.115] (II) NVIDIA(0): try to use it to receive ACPI event notifications. For
[ 52.115] (II) NVIDIA(0): details, please see the "ConnectToAcpid" and
[ 52.115] (II) NVIDIA(0): "AcpidSocketPath" X configuration options in Appendix B: X
[ 52.115] (II) NVIDIA(0): Config Options in the README.
[ 52.125] (II) NVIDIA(0): Setting mode "DFP-0:nvidia-auto-select"
tree /etc/X11
/etc/X11/
└── xinit
├── xinitrc
├── xinitrc.d
│ └── 50-systemd-user.sh
└── xserverrc
2 directories, 3 files
Last edited by Deviner (2022-09-30 05:56:02)
Offline
That .xinitrc isn't right. After the first exec, the script doesn't run anything else, so you're trying to run twm/xclock/xterm, not awesome.
Offline
That .xinitrc isn't right. After the first exec, the script doesn't run anything else, so you're trying to run twm/xclock/xterm, not awesome.
Thanks, tried to comment out the first exec, but no luck
Offline
The first exec isn't enough. If that's all you did, you're trying to run both twm and awesome, that's not going to work.
Offline
hmm, commented out everything after the if block
only the "exec awesome" left untouched, same result.
Offline
Are there any errors in ~/.xsession-errors?
Do you have a rc file set up in ~/.config/awesome/rc.lua?
Offline
I forgot about rc.lua, but it wasn't the solution too. But thanks.
I spent quite some time fixing it and just decided to reinstall arch and it works now.
I just installed nvidia package, without other nvidia packages, without generating xconfig.
Made rc.lua and proper xinitrc too.
Thank you
Offline