I have Manjaro on my Pinebook pro and have no luck with night light mode. I tried following all discussions in the forums here and on internet. I tried installing gnome with gdm in majaro. Also tried redshift. But nothing worked.
I appreciate, if anyone can help by providing exact steps to enable night mode?
thanks,
Previous thread for reference:
Night Color not working
In particular it needs gnome plus the wayland compositor.
Can you enable choosing Wayland in gdm?
Activate wayland on manjaro gnome
If the video driver hasn't changed, Wayland + Gnome Night Light is the only working option on Manjaro.
07-31-2021, 04:27 PM
(This post was last modified: 07-31-2021, 04:59 PM by sushilsharma71@gmail.com.)
(07-31-2021, 07:29 AM)Dendrocalamus64 Wrote: Previous thread for reference:
Night Color not working
In particular it needs gnome plus the wayland compositor.
Can you enable choosing Wayland in gdm?
Activate wayland on manjaro gnome
If the video driver hasn't changed, Wayland + Gnome Night Light is the only working option on Manjaro.
Thanks, but I tried this already (uncommented WaylandEnable=true). After reboot, I do not see any option to select gnome+wayland on the login screen. Only options are gnome, kde(X11).
After logon, when I run
echo $XDG_SESSION_TYPE
the output is X11. Also, Night light/Mode does not work.
I also tried to install gnome-session-wayland using below command but received error, "target not found".
sudo pacman -Syu gnome-session-wayland
07-31-2021, 06:00 PM
(This post was last modified: 07-31-2021, 08:30 PM by sushilsharma71@gmail.com.)
Thanks, but I tried this already (uncommented WaylandEnable=true). After reboot, I do not see any option to select gnome+wayland on the login screen. Only options are Gnome, Gnome Classis, and KDE (X11).
After logon, when I run
Code: echo $XDG_SESSION_TYPE
the output is X11. Also, Night light/Mode does not work.
I also tried to install gnome-session-wayland using below command but received error, "target not found".
Code: sudo pacman -Syu gnome-session-wayland
further I enabled debug (debug=true in custom.conf). Here is the output of failed messages. Appreciate any help resolving the issue regarding gnome+wayland.
Code: [sushil@pbp ~]$ journalctl -b | grep fail | grep gnome
Jul 31 16:12:14 pbp gnome-session[950]: gnome-session-binary[950]: WARNING: Failed to reset failed state of units: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Jul 31 16:12:14 pbp gnome-session-binary[950]: WARNING: Failed to reset failed state of units: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Jul 31 16:12:15 pbp gnome-shell[974]: g_hash_table_destroy: assertion 'hash_table != NULL' failed
Jul 31 16:12:20 pbp gnome-shell[974]: meta_drm_buffer_gbm_new_lock_front failed: drmModeAddFB2WithModifiers failed: Invalid argument
Jul 31 16:12:20 pbp org.gnome.Shell.desktop[974]: mutter:ERROR:../mutter/src/backends/native/meta-onscreen-native.c:204:meta_onscreen_native_notify_frame_complete: assertion failed: (!cogl_onscreen_peek_head_frame_info (onscreen))
Jul 31 16:12:20 pbp org.gnome.Shell.desktop[974]: Bail out! mutter:ERROR:../mutter/src/backends/native/meta-onscreen-native.c:204:meta_onscreen_native_notify_frame_complete: assertion failed: (!cogl_onscreen_peek_head_frame_info (onscreen))
Jul 31 16:12:25 pbp org.gnome.Shell.desktop[996]: (EE) failed to read Wayland events: Connection reset by peer
Jul 31 16:12:25 pbp gnome-session-binary[950]: Unrecoverable failure in required component org.gnome.Shell.desktop
Jul 31 16:12:28 pbp gnome-session[1238]: gnome-session-binary[1238]: WARNING: Failed to reset failed state of units: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Jul 31 16:12:28 pbp gnome-session-binary[1238]: WARNING: Failed to reset failed state of units: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Jul 31 16:12:50 pbp audit[1499]: USER_AUTH pid=1499 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='op=PAM:authentication grantors=pam_shells,pam_faillock,pam_permit,pam_faillock,pam_gnome_keyring acct="sushil" exe="/usr/lib/gdm-session-worker" hostname=pbp addr=? terminal=/dev/tty1 res=success'
Jul 31 16:12:50 pbp kernel: audit: type=1100 audit(1627773170.230:152): pid=1499 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='op=PAM:authentication grantors=pam_shells,pam_faillock,pam_permit,pam_faillock,pam_gnome_keyring acct="sushil" exe="/usr/lib/gdm-session-worker" hostname=pbp addr=? terminal=/dev/tty1 res=success'
Jul 31 16:12:50 pbp audit[1499]: CRED_ACQ pid=1499 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='op=PAM:setcred grantors=pam_shells,pam_faillock,pam_permit,pam_faillock,pam_gnome_keyring acct="sushil" exe="/usr/lib/gdm-session-worker" hostname=pbp addr=? terminal=/dev/tty1 res=success'
Jul 31 16:12:50 pbp kernel: audit: type=1103 audit(1627773170.250:154): pid=1499 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='op=PAM:setcred grantors=pam_shells,pam_faillock,pam_permit,pam_faillock,pam_gnome_keyring acct="sushil" exe="/usr/lib/gdm-session-worker" hostname=pbp addr=? terminal=/dev/tty1 res=success'
Jul 31 16:13:06 pbp gnome-software[1871]: Failed to load /usr/lib/gnome-software/plugins-16/libgs_plugin_malcontent.so: failed to open plugin /usr/lib/gnome-software/plugins-16/libgs_plugin_malcontent.so: libmalcontent-0.so.0: cannot open shared object file: No such file or directory
Jul 31 16:13:09 pbp gnome-software[1871]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:13:09 pbp gnome-software[1871]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:13:09 pbp gnome-software[1871]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:13:09 pbp gnome-software[1871]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:13:09 pbp gnome-software[1871]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:13:09 pbp gnome-software[1871]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:13:09 pbp gnome-software[1871]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:13:09 pbp gnome-software[1871]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:13:09 pbp gnome-software[1871]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:13:09 pbp gnome-software[1871]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:13:09 pbp gnome-software[1871]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:13:09 pbp gnome-software[1871]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:13:09 pbp gnome-software[1871]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:13:09 pbp gnome-software[1871]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:13:10 pbp gnome-software[1871]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:13:10 pbp gnome-software[1871]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:13:10 pbp gnome-software[1871]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:13:10 pbp gnome-software[1871]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:13:10 pbp gnome-software[1871]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:13:10 pbp gnome-software[1871]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:31:25 pbp audit[5088]: USER_AUTH pid=5088 uid=0 auid=1000 ses=4 subj==unconfined msg='op=PAM:authentication grantors=pam_shells,pam_faillock,pam_permit,pam_faillock,pam_gnome_keyring acct="sushil" exe="/usr/lib/gdm-session-worker" hostname=pbp addr=? terminal=/dev/tty1 res=success'
Jul 31 16:31:25 pbp kernel: audit: type=1100 audit(1627774285.158:207): pid=5088 uid=0 auid=1000 ses=4 subj==unconfined msg='op=PAM:authentication grantors=pam_shells,pam_faillock,pam_permit,pam_faillock,pam_gnome_keyring acct="sushil" exe="/usr/lib/gdm-session-worker" hostname=pbp addr=? terminal=/dev/tty1 res=success'
Jul 31 16:31:25 pbp audit[5088]: CRED_REFR pid=5088 uid=0 auid=1000 ses=4 subj==unconfined msg='op=PAM:setcred grantors=pam_shells,pam_faillock,pam_permit,pam_faillock,pam_gnome_keyring acct="sushil" exe="/usr/lib/gdm-session-worker" hostname=pbp addr=? terminal=/dev/tty1 res=success'
Jul 31 16:31:25 pbp kernel: audit: type=1110 audit(1627774285.178:209): pid=5088 uid=0 auid=1000 ses=4 subj==unconfined msg='op=PAM:setcred grantors=pam_shells,pam_faillock,pam_permit,pam_faillock,pam_gnome_keyring acct="sushil" exe="/usr/lib/gdm-session-worker" hostname=pbp addr=? terminal=/dev/tty1 res=success'
Jul 31 16:40:49 pbp audit[1499]: CRED_DISP pid=1499 uid=0 auid=1000 ses=4 subj==unconfined msg='op=PAM:setcred grantors=pam_shells,pam_faillock,pam_permit,pam_faillock,pam_gnome_keyring acct="sushil" exe="/usr/lib/gdm-session-worker" hostname=pbp addr=? terminal=/dev/tty2 res=success'
Jul 31 16:40:49 pbp kernel: audit: type=1104 audit(1627774849.525:267): pid=1499 uid=0 auid=1000 ses=4 subj==unconfined msg='op=PAM:setcred grantors=pam_shells,pam_faillock,pam_permit,pam_faillock,pam_gnome_keyring acct="sushil" exe="/usr/lib/gdm-session-worker" hostname=pbp addr=? terminal=/dev/tty2 res=success'
Jul 31 16:40:51 pbp gnome-session[6816]: gnome-session-binary[6816]: WARNING: Failed to reset failed state of units: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Jul 31 16:40:51 pbp gnome-session-binary[6816]: WARNING: Failed to reset failed state of units: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Jul 31 16:40:51 pbp gnome-shell[6824]: g_hash_table_destroy: assertion 'hash_table != NULL' failed
Jul 31 16:40:55 pbp gnome-shell[6824]: meta_drm_buffer_gbm_new_lock_front failed: drmModeAddFB2WithModifiers failed: Invalid argument
Jul 31 16:40:55 pbp org.gnome.Shell.desktop[6824]: mutter:ERROR:../mutter/src/backends/native/meta-onscreen-native.c:204:meta_onscreen_native_notify_frame_complete: assertion failed: (!cogl_onscreen_peek_head_frame_info (onscreen))
Jul 31 16:40:55 pbp org.gnome.Shell.desktop[6824]: Bail out! mutter:ERROR:../mutter/src/backends/native/meta-onscreen-native.c:204:meta_onscreen_native_notify_frame_complete: assertion failed: (!cogl_onscreen_peek_head_frame_info (onscreen))
Jul 31 16:41:00 pbp org.gnome.Shell.desktop[6847]: (EE) failed to read Wayland events: Broken pipe
Jul 31 16:41:00 pbp /usr/lib/gdm-wayland-session[6815]: dbus-daemon[6815]: [session uid=120 pid=6815] Activated service 'org.gnome.Shell.Screencast' failed: Process org.gnome.Shell.Screencast exited with status 1
Jul 31 16:41:00 pbp gnome-session-binary[6816]: Unrecoverable failure in required component org.gnome.Shell.desktop
Jul 31 16:41:02 pbp gnome-session[7078]: gnome-session-binary[7078]: WARNING: Failed to reset failed state of units: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Jul 31 16:41:02 pbp gnome-session-binary[7078]: WARNING: Failed to reset failed state of units: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Jul 31 16:41:22 pbp audit[7320]: USER_AUTH pid=7320 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='op=PAM:authentication grantors=pam_shells,pam_faillock,pam_permit,pam_faillock,pam_gnome_keyring acct="sushil" exe="/usr/lib/gdm-session-worker" hostname=pbp addr=? terminal=/dev/tty1 res=success'
Jul 31 16:41:22 pbp kernel: audit: type=1100 audit(1627774882.185:308): pid=7320 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='op=PAM:authentication grantors=pam_shells,pam_faillock,pam_permit,pam_faillock,pam_gnome_keyring acct="sushil" exe="/usr/lib/gdm-session-worker" hostname=pbp addr=? terminal=/dev/tty1 res=success'
Jul 31 16:41:22 pbp audit[7320]: CRED_ACQ pid=7320 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='op=PAM:setcred grantors=pam_shells,pam_faillock,pam_permit,pam_faillock,pam_gnome_keyring acct="sushil" exe="/usr/lib/gdm-session-worker" hostname=pbp addr=? terminal=/dev/tty1 res=success'
Jul 31 16:41:22 pbp kernel: audit: type=1103 audit(1627774882.205:310): pid=7320 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='op=PAM:setcred grantors=pam_shells,pam_faillock,pam_permit,pam_faillock,pam_gnome_keyring acct="sushil" exe="/usr/lib/gdm-session-worker" hostname=pbp addr=? terminal=/dev/tty1 res=success'
Jul 31 16:41:36 pbp gnome-software[7677]: Failed to load /usr/lib/gnome-software/plugins-16/libgs_plugin_malcontent.so: failed to open plugin /usr/lib/gnome-software/plugins-16/libgs_plugin_malcontent.so: libmalcontent-0.so.0: cannot open shared object file: No such file or directory
Jul 31 16:41:39 pbp gnome-software[7677]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:41:39 pbp gnome-software[7677]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:41:39 pbp gnome-software[7677]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:41:39 pbp gnome-software[7677]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:41:40 pbp gnome-software[7677]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:41:40 pbp gnome-software[7677]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:41:40 pbp gnome-software[7677]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:41:40 pbp gnome-software[7677]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:41:40 pbp gnome-software[7677]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:41:40 pbp gnome-software[7677]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:41:40 pbp gnome-software[7677]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:41:40 pbp gnome-software[7677]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:41:40 pbp gnome-software[7677]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:41:40 pbp gnome-software[7677]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:41:40 pbp gnome-software[7677]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:41:40 pbp gnome-software[7677]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:41:40 pbp gnome-software[7677]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:41:40 pbp gnome-software[7677]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:41:40 pbp gnome-software[7677]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:41:40 pbp gnome-software[7677]: gs_app_add_icon: assertion 'G_IS_ICON (icon)' failed
Jul 31 16:41:49 pbp gnome-documents[7889]: g_irepository_find_by_name: assertion 'typelib != NULL' failed
Jul 31 16:41:49 pbp gnome-documents[7889]: g_irepository_find_by_name: assertion 'typelib != NULL' failed
Jul 31 16:41:49 pbp gnome-documents[7889]: g_irepository_find_by_name: assertion 'typelib != NULL' failed
Jul 31 16:41:49 pbp gnome-documents[7889]: g_irepository_find_by_name: assertion 'typelib != NULL' failed
Jul 31 16:41:49 pbp gnome-documents[7889]: g_irepository_find_by_name: assertion 'typelib != NULL' failed
Jul 31 16:41:49 pbp gnome-documents[7889]: g_irepository_find_by_name: assertion 'typelib != NULL' failed
Jul 31 16:41:49 pbp gnome-documents[7889]: g_irepository_find_by_name: assertion 'typelib != NULL' failed
Jul 31 16:41:49 pbp gnome-documents[7889]: g_irepository_find_by_name: assertion 'typelib != NULL' failed
Jul 31 16:41:49 pbp gnome-documents[7889]: g_irepository_find_by_name: assertion 'typelib != NULL' failed
Jul 31 16:41:49 pbp gnome-documents[7889]: g_irepository_find_by_name: assertion 'typelib != NULL' failed
Jul 31 16:41:49 pbp gnome-documents[7889]: g_irepository_find_by_name: assertion 'typelib != NULL' failed
Jul 31 16:41:49 pbp gnome-documents[7889]: g_irepository_find_by_name: assertion 'typelib != NULL' failed
Jul 31 16:41:49 pbp gnome-documents[7889]: g_irepository_find_by_name: assertion 'typelib != NULL' failed
Jul 31 16:41:49 pbp gnome-documents[7889]: g_irepository_find_by_name: assertion 'typelib != NULL' failed
I appreciate any help from the community. thanks,
Which display manager do you use? Make sure it is capable of starting wayland sessions, like gdm.
If all else fails, try starting gnome-session from a tty, I think it is
Code: dbus-run-session gnome-session --session-type=gnome-wayland
08-10-2021, 08:45 PM
(This post was last modified: 08-10-2021, 08:47 PM by sushilsharma71@gmail.com.)
(08-07-2021, 04:30 PM)maxjrh Wrote: Which display manager do you use? Make sure it is capable of starting wayland sessions, like gdm.
If all else fails, try starting gnome-session from a tty, I think it is
Code: dbus-run-session gnome-session --session-type=gnome-wayland
In my case, dbs-run=session has the option "session" instead of "session-type". After executing the above command from tty, I am getting following error
Code: dbus-daemon[4155]: [session uid=1000 pid=4155 Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
I know this used to work. I tried installing a minimal gnome via the package manager, and it would fall back to x11 and not work with wayland. So I took the latest image,
https://manjaro.org/downloads/arm/pinebo...pro-gnome/
and dd'ed it to a spare MicroSD card using a USB-C SD card reader. And it wouldn't boot. gparted couldn't even see a filesystem on it. Apparently that's a known problem, the combination of writing app plus microSD interface is finicky.
So I rebooted to the emmc to free up the built-in SD card slot, dd'ed it again using that, checked & fixed the filesystem with gparted, and then it would boot.
Code: $ echo $XDG_SESSION_TYPE
wayland
$ echo $WAYLAND_DISPLAY
wayland-0
And yet... Night Light didn't work.
So I cannot confirm Night Light working even after you get Wayland working. Maybe an update broke it.
(08-11-2021, 01:10 PM)Dendrocalamus64 Wrote: I know this used to work. I tried installing a minimal gnome via the package manager, and it would fall back to x11 and not work with wayland. So I took the latest image,
https://manjaro.org/downloads/arm/pinebo...pro-gnome/
and dd'ed it to a spare MicroSD card using a USB-C SD card reader. And it wouldn't boot. gparted couldn't even see a filesystem on it. Apparently that's a known problem, the combination of writing app plus microSD interface is finicky.
So I rebooted to the emmc to free up the built-in SD card slot, dd'ed it again using that, checked & fixed the filesystem with gparted, and then it would boot.
Code: $ echo $XDG_SESSION_TYPE
wayland
$ echo $WAYLAND_DISPLAY
wayland-0
And yet... Night Light didn't work.
So I cannot confirm Night Light working even after you get Wayland working. Maybe an update broke it.
+1
Last week, I also tried booting from SD card with the latest pbp gnome image and still did not have any luck with the night light.
So there are two bug reports that need to be filed.
1. A regression broke Gnome Night Light on PBP
2. The dependencies in the package system are not adequate to get a working Wayland session. Something wayland needs is not being pulled in when doing a minimal gnome install, but is present on the full image.
The question is whether to file these with Manjaro, Arch or Gnome.
|