You are not logged in.

#1 2023-07-16 05:07:50

greenhandzdl
Member
Registered: 2023-03-11
Posts: 7

Linux-zen + nvidia-dkms + gdm + gnome :How to enable gnome on wayland

➜  ~ cat /etc/environment 
#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#



GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx
INPUT_METHOD=fcitx
SDL_IM_MODULE=fcitx
GLFW_IM_MODULE=ibus

__EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/10_nvidia_wayland.json

➜  ~ cat /etc/gdm/custom.conf           
# GDM configuration storage

[daemon]
# Uncomment the line below to force the login screen to use Xorg
#WaylandEnable=false
WaylandEnable=true

[security]

[xdmcp]

[chooser]

[debug]
# Uncomment the line below to turn on debugging
#Enable=true

➜  ~ cat /etc/mkinitcpio.conf           

MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)
BINARIES=()
FILES=()
HOOKS=(base udev autodetect keyboard keymap modconf block filesystems fsck)

Last edited by greenhandzdl (2023-07-21 12:53:19)

Offline

#2 2023-07-17 22:20:31

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

Re: Linux-zen + nvidia-dkms + gdm + gnome :How to enable gnome on wayland

Please use code tags instead of markdown, BBCode predates the use of markdown by a while.

See https://wiki.archlinux.org/title/GDM#Wa … DIA_driver for the proper preconditions if you want to do this correctly, or the easy way to disable the checks GDM attempts do do and coerce it into cooperation regardless.

One preconditon you absolutely have to have is enable nvidia-drm.modeset=1 on the kernel parameters however, make sure that is the case.

Offline

#3 2023-07-18 13:58:39

greenhandzdl
Member
Registered: 2023-03-11
Posts: 7

Re: Linux-zen + nvidia-dkms + gdm + gnome :How to enable gnome on wayland

I have read this wiki and now I am trying to install using the script provided by nvidia website

Offline

#4 2023-07-18 14:00:51

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: Linux-zen + nvidia-dkms + gdm + gnome :How to enable gnome on wayland

greenhandzdl wrote:

I have read this wiki and now I am trying to install using the script provided by nvidia website

You mean the one the wiki specifically tells you not to use?

Offline

#5 2023-07-18 17:29:21

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,648

Re: Linux-zen + nvidia-dkms + gdm + gnome :How to enable gnome on wayland

greenhandzdl reported wrote:

Nope,I've already tried `nvidia-dkms` package

I think you had meant to use the reply link, not the report link.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#6 2023-07-18 22:13:42

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

Re: Linux-zen + nvidia-dkms + gdm + gnome :How to enable gnome on wayland

This won't fix your problem. From "having read this wiki" post the exact conclusions and adjustments you made in response to having read it.

Offline

#7 2023-07-19 13:11:27

greenhandzdl
Member
Registered: 2023-03-11
Posts: 7

Re: Linux-zen + nvidia-dkms + gdm + gnome :How to enable gnome on wayland

ewaller wrote:
greenhandzdl reported wrote:

Nope,I've already tried `nvidia-dkms` package

I think you had meant to use the reply link, not the report link.

I am sorry to mix them..

Offline

#8 2023-07-21 12:52:47

greenhandzdl
Member
Registered: 2023-03-11
Posts: 7

Re: Linux-zen + nvidia-dkms + gdm + gnome :How to enable gnome on wayland

I switched back to the nvidia-dkms package, and then found a possible problem, when I started some software.

➜  ~ obs 
debug: Found portal inhibitor
debug: Attempted path: share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: share/obs/obs-studio/locale.ini
debug: Attempted path: /usr/share/obs/obs-studio/locale.ini
debug: Attempted path: share/obs/obs-studio/themes/Yami.qss
debug: Attempted path: /usr/share/obs/obs-studio/themes/Yami.qss
info: Using EGL/X11
info: CPU Name: Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz
info: CPU Speed: 4701.006MHz
info: Physical Cores: 8, Logical Cores: 16
info: Physical Memory: 32015MB Total, 22502MB Free
info: Kernel Version: Linux 6.4.3-zen1-2-zen
info: Distribution: "Arch Linux" Unknown
info: Desktop Environment: GNOME (gnome)
info: Session Type: x11
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.21.1
info: Qt Version: 6.5.1 (runtime), 6.5.1 (compiled)
info: Portable mode: false
info: OBS 29.1.3-1 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
	samples per sec: 48000
	speakers:        2
	max buffering:   960 milliseconds
	buffering type:  dynamically increasing
info: ---------------------------------
info: Initializing OpenGL...
error: Failed to get EGL display using eglGetDisplay
error: Failed to create context!
error: device_create (GL) failed
error: Failed to initialize video.  Your GPU may not be supported, or your graphics drivers may need to be updated.
info: Freeing OBS context data
info: == Profiler Results =============================
info: run_program_init: 2232 ms
info:  ┣OBSApp::AppInit: 2.544 ms
info:  ┃ ┗OBSApp::InitLocale: 0.547 ms
info:  ┗OBSApp::OBSInit: 148.633 ms
info:    ┣obs_startup: 0.841 ms
info:    ┗OBSBasic::OBSInit: 1.261 ms
info:      ┣OBSBasic::InitBasicConfig: 0.08 ms
info:      ┣OBSBasic::ResetAudio: 0.142 ms
info:      ┗OBSBasic::ResetVideo: 1.015 ms
info: obs_hotkey_thread(25 ms): min=0.038 ms, median=0.087 ms, max=4.351 ms, 99th percentile=4.351 ms, 100% below 25 ms
info: audio_thread(Audio): min=0.005 ms, median=0.009 ms, max=0.013 ms, 99th percentile=0.013 ms
info: =================================================
info: == Profiler Time Between Calls ==================
info: obs_hotkey_thread(25 ms): min=25.096 ms, median=25.158 ms, max=29.409 ms, 93.6709% within ±2% of 25 ms (0% lower, 6.32911% higher)
info: =================================================
info: Number of memory leaks: 583

Offline

Board footer

Powered by FluxBB