You are not logged in.
Pages: 1
Hello. I'm switching from KDE to GNOME. I successfully install it but I can't login into a Wayland session.
Into GDM select wheel, I can see "GNOME" and "GNOME CLASSIC".
If I choose GNOME, I get:
$ echo "$XDG_SESSION_TYPE"
x11
Here some info about my system:
$ neofetch
-` lorenzo@greygoo
.o+` ---------------
`ooo/ OS: Arch Linux x86_64
`+oooo: Host: Nitro AN515-57 V1.18
`+oooooo: Kernel: 6.6.1-arch1-1
-+oooooo+: Uptime: 9 mins
`/:-:++oooo+: Packages: 1470 (pacman), 9 (flatp
`/++++/+++++++: Shell: bash 5.2.15
`/++++++++++++++: Resolution: 1920x1080
`/+++ooooooooooooo/` DE: GNOME 45.1
./ooosssso++osssssso+` WM: Mutter
.oossssso-````/ossssss+` WM Theme: Adwaita
-osssssso. :ssssssso. Theme: Adwaita [GTK2/3]
:osssssss/ osssso+++. Icons: Adwaita [GTK2/3]
/ossssssss/ +ssssooo/- Terminal: kgx
`/ossssso+/:- -:/+osssso+- CPU: 11th Gen Intel i7-11800H (16
`+sso+:-` `.-/+oso: GPU: NVIDIA GeForce RTX 3050 Ti M
`++:. `-/+/ GPU: Intel TigerLake-H GT1 [UHD G
.` `/ Memory: 3274MiB / 31877MiB
$ echo $GBM_BACKEND
$ echo $__GLX_VENDOR_LIBRARY_NAME
$ journalctl -b 0 --grep "renderer for"
-- No entries --
$ sudo pacman -Qi nvidia
Name : nvidia
Version : 545.29.02-4
Description : NVIDIA drivers for linux
Architecture : x86_64
URL : https://www.nvidia.com/
Licenses : custom
Groups : None
Provides : NVIDIA-MODULE
Depends On : linux nvidia-utils=545.29.02 libglvnd
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 42.65 MiB
Packager : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Build Date : Wed Nov 8 17:49:30 2023
Install Date : Thu Nov 9 12:05:02 2023
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
$ sudo pacman -Qi wayland
Name : wayland
Version : 1.22.0-1
Description : A computer display server protocol
Architecture : x86_64
URL : https://wayland.freedesktop.org/
Licenses : MIT
Groups : None
Provides : libwayland-client.so=0-64 libwayland-cursor.so=0-64
libwayland-egl.so=1-64 libwayland-server.so=0-64
Depends On : glibc libffi expat libxml2 default-cursors
Optional Deps : None
Required By : egl-wayland freerdp glfw-wayland gst-plugins-bad-libs
gst-plugins-base-libs gtk3 gtk4 lib32-wayland libva
mesa mpv onevpl qt6-wayland spice-gtk tecla
webkit2gtk-4.1 webkitgtk-6.0 wpebackend-fdo
xdg-desktop-portal-gnome xorg-xwayland
Optional For : libxkbcommon
Conflicts With : None
Replaces : None
Installed Size : 800.82 KiB
Packager : Sébastien Luttringer <seblu@seblu.net>
Build Date : Thu Apr 6 20:29:46 2023
Install Date : Thu May 25 09:10:27 2023
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-linux root=/dev/mapper/MyVolGroup-archOs rw loglevel=3 nvidia_drm.modeset=1
$ nvidia-smi
Thu Nov 9 12:49:04 2023
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.29.02 Driver Version: 545.29.02 CUDA Version: 12.3 |
|-----------------------------------------+----------------------+----------------------+
| 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 RTX 3050 ... Off | 00000000:01:00.0 Off | N/A |
| N/A 36C P0 10W / 60W | 9MiB / 4096MiB | 0% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 1367 G /usr/lib/Xorg 4MiB |
+---------------------------------------------------------------------------------------+
Last edited by loranto (2023-11-09 22:29:12)
Offline
DE: GNOME 45.1
GPU: NVIDIA GeForce RTX 3050 Ti M
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
DE: GNOME 45.1 GPU: NVIDIA GeForce RTX 3050 Ti M
So, I enabled DRM adding nvidia_drm.fbdev=1 into the GRUB_CMDLINE_LINUX_DEFAULT of /etc/default/grub (I already had nvidia_drm.modeset=1) and the rebuilt grub with
sudo grub-mkconfig -o /boot/grub/grub.cfg
Then, I added nvidia, nvidia_modeset, nvidia_uvm and nvidia_drm to intramfs into the MODULES() section of /etc/mkinitcpio.conf and I regenerete initramfs with
sudo mkinitcpio -P
I also tried this:
sudo ln -s /dev/null /etc/udev/rules.d/61-gdm.rules
But after all, I still get only X11
edit:
According to https://askubuntu.com/questions/1403854 … 99#1403999, I also tried:
# echo "options nvidia NVreg_PreserveVideoMemoryAllocations=1" > /etc/modprobe.d/nvidia-power-management.conf
Last edited by loranto (2023-11-09 19:36:44)
Offline
gnoem also expects you to enable (I think, but it's one of the) the resume service [edit: this is btw. linked/explained in the arch wiki] and if you added the modprobe config after putting the nvidia modules into the initramfs (what's not required), you'll have to rebuild the initramfs in order to apply it.
If this all doesn't help, please post your complete system journal for the boot:
sudo journalctl -b | curl -F 'file=@-' 0x0.st
Last edited by seth (2023-11-09 20:38:16)
Offline
gnoem also expects you to enable (I think, but it's one of the) the resume service [edit: this is btw. linked/explained in the arch wiki] and if you added the modprobe config after putting the nvidia modules into the initramfs (what's not required), you'll have to rebuild the initramfs in order to apply it.
I don't remember but I still rebuilt initramfs and I still get X11.
If this all doesn't help, please post your complete system journal for the boot:
sudo journalctl -b | curl -F 'file=@-' 0x0.st
Offline
GDM starts on X11, wayland isn't even considered.
Did you maybe https://wiki.archlinux.org/title/GDM#Use_Xorg_backend ?
Edit: this is btw. a hybrid graphics system and you're running on the intel chip.
Edit #2: just to be absolutely sure
stat /etc/udev/rules.d/61-gdm.rules
stat /usr/lib/udev/rules.d/61-gdm.rules
though this should™ not even be required for the newer nvidia drivers.
Last edited by seth (2023-11-09 21:43:07)
Offline
stat /etc/udev/rules.d/61-gdm.rules stat /usr/lib/udev/rules.d/61-gdm.rules
$ stat /etc/udev/rules.d/61-gdm.rules
File: /etc/udev/rules.d/61-gdm.rules -> /dev/null
Size: 9 Blocks: 0 IO Block: 4096 symbolic link
Device: 254,0 Inode: 2359422 Links: 1
Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2023-11-09 14:39:25.937190910 +0100
Modify: 2023-11-09 14:39:09.760739517 +0100
Change: 2023-11-09 14:39:09.760739517 +0100
Birth: 2023-11-09 14:39:09.760739517 +0100
$ stat /usr/lib/udev/rules.d/61-gdm.rules
File: /usr/lib/udev/rules.d/61-gdm.rules
Size: 7350 Blocks: 16 IO Block: 4096 regular file
Device: 254,0 Inode: 257400 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2023-11-09 12:20:35.333798024 +0100
Modify: 2023-11-09 12:18:09.472935184 +0100
Change: 2023-11-09 12:18:09.472935184 +0100
Birth: 2023-11-08 23:22:12.351680850 +0100
Offline
Did you maybe https://wiki.archlinux.org/title/GDM#Use_Xorg_backend ?
Offline
seth also wrote:Did you maybe https://wiki.archlinux.org/title/GDM#Use_Xorg_backend ?
Thanks! I'm writing about it.
I solved by commenting this line...
$ cat /etc/gdm/custom.conf | grep "#WaylandEnable=false"
#WaylandEnable=false
Offline
Writing where? The line is commented by default.
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.
Offline
Writing where? The line is commented by default.
I think I got confused trying to change it to WaylandEnable=true.
Thank you!
Offline
Pages: 1