Hi,
I'm using GDM on Fedora 25 and want to change the default graphical session that is used. The "built in" default session is the "Gnome" session, but I want the default session to be the "Gnome Xorg" session.
I have added DefaultSession=gnome-xorg.desktop and WaylandEnable=false to the [daemon] section of /etc/gdm/custom.conf as recommend here: https://ask.fedoraproject.org/en/question/96134/how-can-i-set-xorg-as-a-defa...
I have also deleted all the contents of /var/lib/AccountsService/users so that no per-user defaults cause problems.
Here is what happens. I boot up the computer, type in my username, hit enter, and type in my password. Before I proceed, I check which session is going to be used. "Gnome" is the one selected on the list. I proceed anyway. After login, I see that Xorg is running, NOT Xwayland.
I log out, and the go to log back in. I check the list again, and "Gnome" is still selected. This time when I log in, Xwayland is running. Huh? If I manually select the "Gnome Xorg" entry, I get what I expect and my preference will be saved, but I want to set the default for all users.
Am I doing something wrong or does this seem like a bug? If it is a bug, I don't know which package it actually belongs to.
Thanks, Laverne Schrock
P.S.
My graphics card: $ lspci | grep VGA 00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 12)
On 03/04/17 11:25, Laverne Schrock wrote:
Hi,
I'm using GDM on Fedora 25 and want to change the default graphical session that is used. The "built in" default session is the "Gnome" session, but I want the default session to be the "Gnome Xorg" session.
I have added DefaultSession=gnome-xorg.desktop and WaylandEnable=false to the [daemon] section of /etc/gdm/custom.conf as recommend here: https://ask.fedoraproject.org/en/question/96134/how-can-i-set-xorg-as-a-defa...
I have also deleted all the contents of /var/lib/AccountsService/users so that no per-user defaults cause problems.
Here is what happens. I boot up the computer, type in my username, hit enter, and type in my password. Before I proceed, I check which session is going to be used. "Gnome" is the one selected on the list. I proceed anyway. After login, I see that Xorg is running, NOT Xwayland.
I log out, and the go to log back in. I check the list again, and "Gnome" is still selected. This time when I log in, Xwayland is running. Huh? If I manually select the "Gnome Xorg" entry, I get what I expect and my preference will be saved, but I want to set the default for all users.
Am I doing something wrong or does this seem like a bug? If it is a bug, I don't know which package it actually belongs to.
I use KDE and sddm..... But....
Looking at /etc/gdm/custom.conf I see the lines
# Uncoment the line below to force the login screen to use Xorg #WaylandEnable=false
I'd give un-commenting and restarting gdm a try.
On Fri, Mar 3, 2017 at 9:41 PM, Ed Greshko ed.greshko@greshko.com wrote:
On 03/04/17 11:25, Laverne Schrock wrote:
Hi,
I'm using GDM on Fedora 25 and want to change the default graphical session that is used. The "built in" default session is the "Gnome" session, but I want the default session to be the "Gnome Xorg" session.
I have added DefaultSession=gnome-xorg.desktop and WaylandEnable=false to the [daemon] section of /etc/gdm/custom.conf as recommend here: https://ask.fedoraproject.org/en/question/96134/how-can-i-set-xorg-as-a-defa...
I have also deleted all the contents of /var/lib/AccountsService/users so that no per-user defaults cause problems.
Here is what happens. I boot up the computer, type in my username, hit enter, and type in my password. Before I proceed, I check which session is going to be used. "Gnome" is the one selected on the list. I proceed anyway. After login, I see that Xorg is running, NOT Xwayland.
I log out, and the go to log back in. I check the list again, and "Gnome" is still selected. This time when I log in, Xwayland is running. Huh? If I manually select the "Gnome Xorg" entry, I get what I expect and my preference will be saved, but I want to set the default for all users.
Am I doing something wrong or does this seem like a bug? If it is a bug, I don't know which package it actually belongs to.
I use KDE and sddm..... But....
Looking at /etc/gdm/custom.conf I see the lines
# Uncoment the line below to force the login screen to use Xorg #WaylandEnable=false
I'd give un-commenting and restarting gdm a try.
Thanks for the suggestion, but as I mentioned, I have that flag present. This flag actually controls whether GDM uses Wayland for itself and has no impact on what the actual sessions it launches use.
On 03/04/17 11:48, Laverne Schrock wrote:
Thanks for the suggestion, but as I mentioned, I have that flag present. This flag actually controls whether GDM uses Wayland for itself and has no impact on what the actual sessions it launches use.
Sorry about that..... Not sure how I missed your having noted that..... Maybe I'll switch one of my systems to use GDM to test.
On 03/04/17 11:25, Laverne Schrock wrote:
Here is what happens. I boot up the computer, type in my username, hit enter, and type in my password. Before I proceed, I check which session is going to be used. "Gnome" is the one selected on the list. I proceed anyway. After login, I see that Xorg is running, NOT Xwayland.
I log out, and the go to log back in. I check the list again, and "Gnome" is still selected. This time when I log in, Xwayland is running. Huh? If I manually select the "Gnome Xorg" entry, I get what I expect and my preference will be saved, but I want to set the default for all users.
Am I doing something wrong or does this seem like a bug? If it is a bug, I don't know which package it actually belongs to.
OK.... I switched a system to use gdm.
I did not delete the info in AccountsServices. Using my wife's account I see this in the users file...
[egreshko@acer users]$ cat maria [User] Language= XSession=gnome SystemAccount=false
I then login after switching to 'GNOME on Xorg" and the file changes to now...
[egreshko@acer users]$ cat maria [User] Language= XSession=gnome-xorg SystemAccount=false
I logout and then go to login and the selection is still set to 'GNOME on Xorg"
I would have thought the intention of adding WaylandEnable=false would remove Wayland as an option.
If you only use GNOME on the system and you have a limited number of users... One thing you could try would be to create a /var/lib/AccountsService/users file for each user with XSession=gnome-xorg set and remove change the permissions on the file to -r--r--r--
On 03/04/17 12:40, Ed Greshko wrote:
If you only use GNOME on the system and you have a limited number of users... One thing you could try would be to create a /var/lib/AccountsService/users file for each user with XSession=gnome-xorg set and remove change the permissions on the file to -r--r--r--
Ahhh.... That doesn't work. The display manager restarts and restores write permission....
On Fri, Mar 3, 2017 at 10:46 PM, Ed Greshko ed.greshko@greshko.com wrote:
On 03/04/17 12:40, Ed Greshko wrote:
If you only use GNOME on the system and you have a limited number of users... One thing you could try would be to create a /var/lib/AccountsService/users file for each user with XSession=gnome-xorg set and remove change the permissions on the file to -r--r--r--
Ahhh.... That doesn't work. The display manager restarts and restores write permission....
Due to the number of users, and the number of machines I'm dealing with, manually setting those files won't really work for me.
However, if one wanted to prevent those files from being changed, one could probably use ACLs or SELinux policies to enforce that. :)
On 03/04/17 11:25, Laverne Schrock wrote:
Am I doing something wrong or does this seem like a bug? If it is a bug, I don't know which package it actually belongs to.
FWIW, I think you should file a bug....
Looking at https://fedoraproject.org/wiki/Changes/WaylandByDefault and the "How to Test" section I see....
Change the gdm configuration by adding WaylandEnable=false and reboot Verify that the login screen comes up under X Verify that only X-based sessions are offered in the session chooser
And that isn't the case...
On Sat, Mar 04, 2017 at 08:12:59AM -0600, Laverne Schrock wrote:
/var/lib/AccountsService/users file for each user with
Ahhh.... That doesn't work. The display manager restarts and restores write permission....
However, if one wanted to prevent those files from being changed, one could probably use ACLs or SELinux policies to enforce that. :)
Or the sysadmin's hammer, `chattr -i`.
On 04/03/2017 13:25, Laverne Schrock wrote:
Hi,
I'm using GDM on Fedora 25 and want to change the default graphical session that is used. The "built in" default session is the "Gnome" session, but I want the default session to be the "Gnome Xorg" session.
I have added DefaultSession=gnome-xorg.desktop and WaylandEnable=false to the [daemon] section of /etc/gdm/custom.conf as recommend here: https://ask.fedoraproject.org/en/question/96134/how-can-i-set-xorg-as-a-defa...
I have also deleted all the contents of /var/lib/AccountsService/users so that no per-user defaults cause problems.
Here is what happens. I boot up the computer, type in my username, hit enter, and type in my password. Before I proceed, I check which session is going to be used. "Gnome" is the one selected on the list. I proceed anyway. After login, I see that Xorg is running, NOT Xwayland.
I log out, and the go to log back in. I check the list again, and "Gnome" is still selected. This time when I log in, Xwayland is running. Huh? If I manually select the "Gnome Xorg" entry, I get what I expect and my preference will be saved, but I want to set the default for all users.
How do you check which Gnome session is running, Gnome-Wayland or Gnome-Xorg? I am using the proprietary Nvidia driver which runs with either Wayland or Xorg.
I have one issue with this process, if I logout and select Gnome-Xorg from GDM then Gnome starts quite happily and the logout and restart can be issued as many times as I like. If I select Gnome and login after booting my machine it starts Gnome quite happily, if I logout and leave the selection at Gnome and log back in, Gnome refuses to start until I reboot. If I login with Gnome and logout, then select Gnome-Xorg and login that starts Gnome quite happily, if I then logout and select Gnome again that refuses to start Gnome until I reboot as well. I have checked this with other users by trying to login with Gnome selected and that refuses to start Gnome as well. Also if I login with Gnome, logout, login with Plasma selected which starts KDE, logout, and select Gnome and attempt to login that refuses to start Gnome as well.
My understanding is that selecting Gnome starts Gnome with Wayland not Xorg, hence the Gnome-Xorg entry. If I am correct then I suspect the issues you are querying and the issues I am having are a bug in Wayland.
regards, Steve
Am I doing something wrong or does this seem like a bug? If it is a bug, I don't know which package it actually belongs to.
Thanks, Laverne Schrock
P.S.
My graphics card: $ lspci | grep VGA 00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 12) _______________________________________________ users mailing list --users@lists.fedoraproject.org To unsubscribe send an email tousers-leave@lists.fedoraproject.org
On 03/06/17 04:36, Stephen Morris wrote:
How do you check which Gnome session is running, Gnome-Wayland or Gnome-Xorg? I am using the proprietary Nvidia driver which runs with either Wayland or Xorg.
I believe both these ways should work...
In a terminal enter
gsettings set org.gtk.Settings.Debug enable-inspector-keybinding true then type Control-Shift-I. The go to the "Help" menu and select "Inspector". Navigate to the "General" tab and look at the GDK Backend entry
or
In a terminal enter
env | grep DISPLAY
On Sun, Mar 5, 2017 at 5:36 PM, Ed Greshko ed.greshko@greshko.com wrote:
On 03/06/17 04:36, Stephen Morris wrote:
How do you check which Gnome session is running, Gnome-Wayland or Gnome-Xorg? I am using the proprietary Nvidia driver which runs with either Wayland or Xorg.
I believe both these ways should work...
In a terminal enter
gsettings set org.gtk.Settings.Debug enable-inspector-keybinding true then type Control-Shift-I. The go to the "Help" menu and select "Inspector". Navigate to the "General" tab and look at the GDK Backend entry
or
In a terminal enter
env | grep DISPLAY
You can also use loginctl show-session <session_number>
for seat in $(loginctl list-sessions | grep <user> | grep seat | awk '{print $1}') do loginctl show-session $seat | grep Type done