[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2025-04-18 Thread Jürg Häfliger
** Tags added: kernel-daily-bug

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2025-01-20 Thread Launchpad Bug Tracker
This bug was fixed in the package gdm3 - 46.2-1ubuntu1~24.04.1

---
gdm3 (46.2-1ubuntu1~24.04.1) noble; urgency=medium

  [ Marco Trevisan (Treviño) ]
  * No-change backport of stable release 46.2 (LP: #2090876)

  [ Jeremy Bícha ]
  * Branch for noble

  [ Alessandro Astone ]
  * Default nvidia hybrid laptops to Xorg (LP: #2080498):
- Drop Revert-data-Disable-GDM-on-hybrid-graphics-laptops-with-v.patch
  The hunks that are still relevant have been split into their own patches.
- Add Prefer-Xorg-for-all-Nvidia-versions.patch
  This diff comes directly from the dropped patch.
- Add Drop-Nvidia-power-management-suspend-checks.patch
  This diff comes directly from the dropped patch, and is still necessary
  to keep Wayland as an option on nvidia >= 470 (both desktops and laptops).
- Add Drop-special-handling-of-nvidia-hybrid-laptops.patch
  Align nvidia hybrid laptops with nvidia desktops: that means
  disabling Wayland on nvidia < 470 and keeping it opt-in on nvidia >= 470.
  Upstream also did this with GNOME 47, with the difference that there the
  desktop defaults are different.

  [ Nathan Pratta Teodosio ]
  * Rewrite xresources_is_a_dir.patch.
To fix failure to load files in /etc/X11/Xresources (in case the latter is
a directory instead of a regular file). (LP: #1955850)

gdm3 (46.2-1ubuntu1) oracular; urgency=medium

  * Merge with Debian, containing new upstream release. Remaining changes:
+ readme.debian: update for correct paths in ubuntu
+ control.in:
  - don't recommend desktop-base
  - depend on bash for config_error_dialog.patch
  - update vcs field
+ rules:
  - don't override default user/group
  - -dgdm-xsession=true to install upstream xsession script
  - override dh_installinit with --no-start to avoid session being killed
+ rules, readme.debian, gdm3.8.pod:
  use upstream custom.conf instead of daemon.conf
+ gdm3.{postinst,postrm}: rename user and group back to gdm
+ debian/tests/control:
  - Use gdm user name
  - Use needs-root instead of needs-sudo (to remove when ubuntu autopkgtest
will be updated to include such feature)
+ debian/tests/sssd-gdm-smartcard-pam-auth-tester-env.sh:
  - Added to use needs-root autopkgtest instead of needs-sudo
+ gdm3.*.pam: make pam_env read ~/.pam_environment, as we use in g-c-c
  settings
+ gdm3.install:
  - don't install debian/xsession
+ add run_xsession.d.patch
+ add xresources_is_a_dir.patch
  - fix loading from /etc/x11/xresources/*
+ add nvidia_prime.patch:
  - add hook to run prime-offload (as root) and prime-switch if
nvidia-prime is installed
+ add revert_override_lang_with_accountservices.patch:
  - on ubuntu accountservices only stores the language and not the
full locale as needed by lang.
+ add dont_set_language_env.patch:
  - don't run the set_up_session_language() function, since it
overrides variable values set by ~/.pam_environment
+ add config_error_dialog.patch:
  - show warning dialog in case of error in ~/.profile etc. and
don't let a syntax error make the login fail
+ add debian/patches/revert_nvidia_wayland_blacklist.patch:
  - don't blacklist nvidia for wayland
+ add gdm3.service-wait-for-drm-device-before-trying-to-start-i.patch:
  - wait for the first valid gdm device on pre-start
+ add prefer_ubuntu_session_fallback.patch:
  - Prefer ubuntu session as fallback instead of GNOME
+ add XSession-Use-x-terminal-emulator-as-fallback-instead-of-x.patch:
  - Use x-terminal-emulator as fallback instead of xterm
+ add Revert-data-Disable-GDM-on-hybrid-graphics-laptops-with-v.patch:
  - Ensure Nvidia 5xx drivers always get Wayland as the default unless
there's a stronger reason why it won't work (like modeset has been
disabled on the kernel command line)
+ add debian/default.pa
  - disable bluetooth audio devices in pulseaudio from gdm3.
+ debian/gdm3.install
  - added details of the default.pa file
+ debian/gdm3.postinst
  - added installation of default.pa and creation of dir if it doesn't
exist.
+ debian/greeter.dconf-defaults: don't set debian settings in the
  greeter's dconf db
* Reverted debian patch to udev rules for nvidia S0ix suspend support

gdm3 (46.2-1) unstable; urgency=medium

  [ Jeremy Bícha ]
  * New upstream release
  * Drop 2 patches applied in new release

  [ Sebastian Andrzej Siewior ]
  * Adapt autopkgtest for openssl3.2 (Closes: #1061458)

gdm3 (46.0-2ubuntu2) oracular; urgency=medium

  * Remove the Ubuntu-specific rules that made Xorg the default for Nvidia.
Updated Revert-data-Disable-GDM-on-hybrid-graphics-laptops-with-v.patch
to ensure Nvidia 5xx drivers always get Wayland as the default unless
there's a stronger reason why it won't work (like modeset has been
disa

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-12-19 Thread Dirk Su
Test plans A had been verified in #32. Use same machine BRCO-PV-
SKU16-2_202312-33266. Follow test plan B steps to create new user then
login, the windowing system is X11.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-12-19 Thread Alessandro Astone
@dirksu I don't have a hybrid laptop yet; can you verify test plans A
and B?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-12-19 Thread Alessandro Astone
Verified test plans E and F on Ubuntu 24.04.1 in QEMU/KVM with a VirtIO
GPU, using gdm3, libgdm1, gir1.2-gdm-1.0 version 46.2-1ubuntu1~24.04.1
from noble-proposed.

Ideally someone could verify on real hardware, but GDM handles a virtual
GPU in the same way as a real GPU, except when both a virtual GPU and a
real GPU are available which is not my case. So I believe this is a good
enough test.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-12-19 Thread Alessandro Astone
Verified test plans C and D on a fresh install of Ubuntu 24.04.1 on a
system with a NVIDIA GTX 970 and NVIDIA driver version 550, using gdm3,
libgdm1, gir1.2-gdm-1.0 version 46.2-1ubuntu1~24.04.1 from noble-
proposed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-12-16 Thread Dirk Su
Tested with BRCO-PV-SKU16-2_202312-33266 which has Nvidia dGPU. Install
OEM preload image on BRCO-PV-SKU16-2_202312-33266, it will install
nvidia-driver-550 but default to Wayland. Install gdm3
46.2-1ubuntu1~24.04.1 from noble-proposed. After system reboot, default
windowing system will change to Xorg.

** Tags removed: verification-needed verification-needed-noble
** Tags added: verification-done verification-done-noble

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-12-13 Thread Timo Aaltonen
Hello Dirk, or anyone else affected,

Accepted gdm3 into noble-proposed. The package will build now and be
available at
https://launchpad.net/ubuntu/+source/gdm3/46.2-1ubuntu1~24.04.1 in a few
hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
noble to verification-done-noble. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-noble. In either case, without details of your testing we will
not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: gdm3 (Ubuntu Noble)
   Status: New => Fix Committed

** Tags added: verification-needed verification-needed-noble

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-12-09 Thread Alessandro Astone
** Changed in: gdm3 (Ubuntu Jammy)
   Status: Incomplete => In Progress

** Changed in: gdm3 (Ubuntu Noble)
   Status: Incomplete => In Progress

** Changed in: gdm3 (Ubuntu Jammy)
   Status: In Progress => New

** Changed in: gdm3 (Ubuntu Noble)
   Status: In Progress => New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-12-09 Thread Alessandro Astone
** Description changed:

  [ Impact ]
  
  On some nvidia hybrid systems, like the HP ZBook Fury G11 platform
  preloaded with Ubuntu 22.04, the windowing system in "Settings -> About"
  used to be Xorg but after doing kernel upgrade from 6.5-oem to 6.8-hwe,
  the windowing system become Wayland.
  
  There is a race condition in udev rules that makes the default desktop
  session either Xorg or Wayland depending on the ordering of hardware
  discovery and modules loading. This would affect both jammy and noble,
  but being a race condition it is unpredictable which hardware defaults
  to which desktop session, and the same hardware may behave differently
  in jammy vs in noble.
  
  The intended default desktop session was meant to be Wayland, however
  the vast majority of nvidia hybrid laptops defaulted to Xorg at launch,
  including and particularly all Ubuntu Certified laptops. For this reason
  we're considering this a bug and are taking measures to ensure that all
  nvidia hybrid laptops keep defaulting to Xorg.
+ 
+ There is also at least onw known issues affecting nvidia on Wayland which 
might swing the preference towards Xorg:
+ * bug 2064205
  
  The fix removes the udev logic that was trying to make nvidia hybrid
  laptops specifically prefer Wayland, making that hardware use the same
  udev rules as nvidia desktops which already default to Xorg.
  
  [ Glossary ]
  
  "nvidia" laptop/system/machine/etc...: A computer with at least one
  nvidia GPU, running the proprietary driver version 470 or higher.
  
  "affected" laptop/system/machine/etc...: An nvidia hybrid laptop that,
  before installing the fix, on the log-in screen presents the options to
  log-in to "Ubuntu" and "Ubuntu on Xorg".
  
  "existing user": A unix user that has already logged-in to a desktop
  session at least once, regardless of whether they ever changed the log-
  in session or not.
  
  "new user": A unix user that has never logged-in to a desktop session,
  regardless of whether it was created before or after the update, or
  whether it ever logged in to a TTY or not.
  
  [ Test-plans overview ]
  
  The expected behaviour after the update is that:
  * for nvidia hybrid laptops affected by the bug: both existing and new users 
will log-in to Xorg by default;
  * for nvidia hybrid laptops unaffected by the bug: the default session for 
new users is Xorg, but existing users will keep their previous preference;
  * for nvidia desktops: the default session for new users is Xorg, but 
existing users will keep their previous preference;
  * for all non-nvidia systems: the default session for new users is Wayland, 
but existing users will keep their previous preference;
  
  Test Plan A and B verify that on a nvidia hybrid laptop both existing
  users and new users log-in to Xorg by default after the update
  
  Test plans C and D verify that on unaffected nvidia systems the user
  preference about which session to log-in to is preserved the update.
  
  Test plans E and F verify that on non-nvidia systems the user preference
  about which session to log-in to is preserved after the update.
  
  Test plans *not* marked as "Regression" should only be verified on an
  affected laptop.
  
  [ Test Plan A ]
  
  1.  Get an affected nvidia hybrid laptop with Ubuntu 22.04 or 24.04
  2.  Before installing the update being tested, reboot to the log-in screen
  3.  Select your username
  4.  Click on the cogwheel icon at the bottom-right of the screen
  5.  Select "Ubuntu"
  6.  Log-in
  7.  Now install the gdm3 update being tested
  8.  Reboot
  9.  At the log-in screen, select your username
  10. Verify that there is a cogwheel icon at the bottom-right of the screen
  11. Click on the cogwheel icon to open up the menu
  12. Verify that the selected option is "Ubuntu"
  13. Verify that the alternative option is "Ubuntu on Wayland"
  14. Close the menu without changing the selection ("Ubuntu")
  15. Log-in
  16. Verify via "Settings -> About" that "Windowing System" is X11
  
  [ Test Plan B ]
  
  1.  Get an affected nvidia hybrid laptop with Ubuntu 22.04 or 24.04
  2.  Install the gdm3 update being tested
  3.  Create a new a new User on the system
  4.  Reboot
  5.  At the log-in screen, select the new User
  6.  Verify that there is a cogwheel icon at the bottom-right of the screen
  7.  Click on the cogwheel icon to open up the menu
  8.  Verify that the selected option is "Ubuntu"
  9.  Verify that the alternative option is "Ubuntu on Wayland"
  10. Close the menu without changing the selection
  11. Log-in
  12. Verify via "Settings -> About" that "Windowing System" is X11
  
  [ Test Plan C - Regression ]
  
  1.  Set up a desktop machine with a single nvidia GPU
  2.  Before installing the update being tested, reboot to the log-in screen
  3.  Select your username
  4.  Click on the cogwheel icon at the bottom-right of the screen
  5.  Select "Ubuntu on Wayland"
  6.  Log-in
  7.  Now install the gdm3 update being tested
 

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-12-09 Thread Alessandro Astone
** Description changed:

  [ Impact ]
  
  On some nvidia hybrid systems, like the HP ZBook Fury G11 platform
  preloaded with Ubuntu 22.04, the windowing system in "Settings -> About"
  used to be Xorg but after doing kernel upgrade from 6.5-oem to 6.8-hwe,
  the windowing system become Wayland.
  
  There is a race condition in udev rules that makes the default desktop
  session either Xorg or Wayland depending on the ordering of hardware
  discovery and modules loading. This would affect both jammy and noble,
  but being a race condition it is unpredictable which hardware defaults
  to which desktop session, and the same hardware may behave differently
  in jammy vs in noble.
  
  The intended default desktop session was meant to be Wayland, however
  the vast majority of nvidia hybrid laptops defaulted to Xorg at launch,
  including and particularly all Ubuntu Certified laptops. For this reason
  we're considering this a bug and are taking measures to ensure that all
  nvidia hybrid laptops keep defaulting to Xorg.
  
  The fix removes the udev logic that was trying to make nvidia hybrid
  laptops specifically prefer Wayland, making that hardware use the same
  udev rules as nvidia desktops which already default to Xorg.
  
- 
  [ Glossary ]
  
  "nvidia" laptop/system/machine/etc...: A computer with at least one
  nvidia GPU, running the proprietary driver version 470 or higher.
  
  "affected" laptop/system/machine/etc...: An nvidia hybrid laptop that,
  before installing the fix, on the log-in screen presents the options to
  log-in to "Ubuntu" and "Ubuntu on Xorg".
  
  "existing user": A unix user that has already logged-in to a desktop
  session at least once, regardless of whether they ever changed the log-
  in session or not.
  
  "new user": A unix user that has never logged-in to a desktop session,
  regardless of whether it was created before or after the update, or
  whether it ever logged in to a TTY or not.
- 
  
  [ Test-plans overview ]
  
  The expected behaviour after the update is that:
  * for nvidia hybrid laptops affected by the bug: both existing and new users 
will log-in to Xorg by default;
  * for nvidia hybrid laptops unaffected by the bug: the default session for 
new users is Xorg, but existing users will keep their previous preference;
  * for nvidia desktops: the default session for new users is Xorg, but 
existing users will keep their previous preference;
  * for all non-nvidia systems: the default session for new users is Wayland, 
but existing users will keep their previous preference;
  
  Test Plan A and B verify that on a nvidia hybrid laptop both existing
  users and new users log-in to Xorg by default after the update
  
  Test plans C and D verify that on unaffected nvidia systems the user
  preference about which session to log-in to is preserved the update.
  
  Test plans E and F verify that on non-nvidia systems the user preference
  about which session to log-in to is preserved after the update.
  
  Test plans *not* marked as "Regression" should only be verified on an
  affected laptop.
  
- 
  [ Test Plan A ]
  
- 1. Get an affected nvidia hybrid laptop with Ubuntu 22.04 or 24.04
- 2. Before installing the gdm3 update being tested, log-in selecting "Ubuntu"
- 3. Install the gdm3 update being tested
- 4. Reboot
- 5. At the log-in screen, select your username
- 6. Verify that there is a cogwheel icon at the bottom-right of the screen
- 7. Click on the cogwheel icon to open up the menu
- 8. Verify that the selected option is "Ubuntu"
- 9. Verify that the alternative option is "Ubuntu on Wayland"
- 10. Close the menu without changing the selection ("Ubuntu")
- 11. Log-in
- 12. Verify via "Settings -> About" that "Windowing System" is X11
- 
+ 1.  Get an affected nvidia hybrid laptop with Ubuntu 22.04 or 24.04
+ 2.  Before installing the update being tested, reboot to the log-in screen
+ 3.  Select your username
+ 4.  Click on the cogwheel icon at the bottom-right of the screen
+ 5.  Select "Ubuntu"
+ 6.  Log-in
+ 7.  Now install the gdm3 update being tested
+ 8.  Reboot
+ 9.  At the log-in screen, select your username
+ 10. Verify that there is a cogwheel icon at the bottom-right of the screen
+ 11. Click on the cogwheel icon to open up the menu
+ 12. Verify that the selected option is "Ubuntu"
+ 13. Verify that the alternative option is "Ubuntu on Wayland"
+ 14. Close the menu without changing the selection ("Ubuntu")
+ 15. Log-in
+ 16. Verify via "Settings -> About" that "Windowing System" is X11
  
  [ Test Plan B ]
  
  1.  Get an affected nvidia hybrid laptop with Ubuntu 22.04 or 24.04
  2.  Install the gdm3 update being tested
  3.  Create a new a new User on the system
  4.  Reboot
  5.  At the log-in screen, select the new User
  6.  Verify that there is a cogwheel icon at the bottom-right of the screen
  7.  Click on the cogwheel icon to open up the menu
  8.  Verify that the selected option is "Ubuntu"
  9.  Verify that the alternative option is "U

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-12-09 Thread Alessandro Astone
** Description changed:

  [ Impact ]
  
  On some nvidia hybrid systems, like the HP ZBook Fury G11 platform
  preloaded with Ubuntu 22.04, the windowing system in "Settings -> About"
  used to be Xorg but after doing kernel upgrade from 6.5-oem to 6.8-hwe,
  the windowing system become Wayland.
  
  There is a race condition in udev rules that makes the default desktop
  session either Xorg or Wayland depending on the ordering of hardware
  discovery and modules loading. This would affect both jammy and noble,
  but being a race condition it is unpredictable which hardware defaults
  to which desktop session, and the same hardware may behave differently
  in jammy vs in noble.
  
  The intended default desktop session was meant to be Wayland, however
  the vast majority of nvidia hybrid laptops defaulted to Xorg at launch,
  including and particularly all Ubuntu Certified laptops. For this reason
  we're considering this a bug and are taking measures to ensure that all
  nvidia hybrid laptops keep defaulting to Xorg.
  
  The fix removes the udev logic that was trying to make nvidia hybrid
  laptops specifically prefer Wayland, making that hardware use the same
  udev rules as nvidia desktops which already default to Xorg.
  
- [ Test Plan ]
  
- 1. Set up a nvidia hybrid laptop with Ubuntu 22.04 or 24.04
- 2. Install the latest updates, particularly the latest kernel
- 2. Install the gdm3 update being tested
- 3. Create a new a new User on the system
- 3. Reboot
- 4. At the log-in screen, select the new User
- 5. Verify that there is a cogwheel icon at the bottom-right of the screen.
- 6. Click on the cogwheel icon to open up the menu
- 7. Verify that the selected option is "Ubuntu"
- 8. Verify that the alternative option is "Ubuntu on Wayland"
- 9. Close the menu without changing the selection
- 10. Log-in
- 11. Verify via "Settings -> About" that "Windowing System" is X11
+ [ Glossary ]
+ 
+ "nvidia" laptop/system/machine/etc...: A computer with at least one
+ nvidia GPU, running the proprietary driver version 470 or higher.
+ 
+ "affected" laptop/system/machine/etc...: An nvidia hybrid laptop that,
+ before installing the fix, on the log-in screen presents the options to
+ log-in to "Ubuntu" and "Ubuntu on Xorg".
+ 
+ "existing user": A unix user that has already logged-in to a desktop
+ session at least once, regardless of whether they ever changed the log-
+ in session or not.
+ 
+ "new user": A unix user that has never logged-in to a desktop session,
+ regardless of whether it was created before or after the update, or
+ whether it ever logged in to a TTY or not.
+ 
+ 
+ [ Test-plans overview ]
+ 
+ The expected behaviour after the update is that:
+ * for nvidia hybrid laptops affected by the bug: both existing and new users 
will log-in to Xorg by default;
+ * for nvidia hybrid laptops unaffected by the bug: the default session for 
new users is Xorg, but existing users will keep their previous preference;
+ * for nvidia desktops: the default session for new users is Xorg, but 
existing users will keep their previous preference;
+ * for all non-nvidia systems: the default session for new users is Wayland, 
but existing users will keep their previous preference;
+ 
+ Test Plan A and B verify that on a nvidia hybrid laptop both existing
+ users and new users log-in to Xorg by default after the update
+ 
+ Test plans C and D verify that on unaffected nvidia systems the user
+ preference about which session to log-in to is preserved the update.
+ 
+ Test plans E and F verify that on non-nvidia systems the user preference
+ about which session to log-in to is preserved after the update.
+ 
+ Test plans *not* marked as "Regression" should only be verified on an
+ affected laptop.
+ 
+ 
+ [ Test Plan A ]
+ 
+ 1. Get an affected nvidia hybrid laptop with Ubuntu 22.04 or 24.04
+ 2. Before installing the gdm3 update being tested, log-in selecting "Ubuntu"
+ 3. Install the gdm3 update being tested
+ 4. Reboot
+ 5. At the log-in screen, select your username
+ 6. Verify that there is a cogwheel icon at the bottom-right of the screen
+ 7. Click on the cogwheel icon to open up the menu
+ 8. Verify that the selected option is "Ubuntu"
+ 9. Verify that the alternative option is "Ubuntu on Wayland"
+ 10. Close the menu without changing the selection ("Ubuntu")
+ 11. Log-in
+ 12. Verify via "Settings -> About" that "Windowing System" is X11
+ 
+ 
+ [ Test Plan B ]
+ 
+ 1.  Get an affected nvidia hybrid laptop with Ubuntu 22.04 or 24.04
+ 2.  Install the gdm3 update being tested
+ 3.  Create a new a new User on the system
+ 4.  Reboot
+ 5.  At the log-in screen, select the new User
+ 6.  Verify that there is a cogwheel icon at the bottom-right of the screen
+ 7.  Click on the cogwheel icon to open up the menu
+ 8.  Verify that the selected option is "Ubuntu"
+ 9.  Verify that the alternative option is "Ubuntu on Wayland"
+ 10. Close the menu without changing the selection
+ 11. Log-in
+ 12. Verify via "Settings -> A

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-12-05 Thread Alessandro Astone
re: a)
> perhaps also laptops with only nvidia cards if those exist

I don't think those exist; you typically want an iGPU for the low power 
consumption.
But, if they did exist they'd be rare enough for us to be unable to find anyone 
to verify the test plan.
In any case a laptop would trace all the same code-paths a desktop would, as 
there's no special handling of laptops (anymore).

re: b)

> is the SRU only changing the default session, i.e., for users who have
never logged in before, or have never made a choice.

No, changing the default will also affect users who have already logged
in, regardless of whether they ever made a choice or not.

> What if I have an affected system, but have opted in to use Wayland,
will this SRU change my choice and revert that to Xorg?

There are four possible situations here:
1. Laptop originally defaulted to Xorg, then the kernel 6.8 update changed the 
default to Wayland
  -> the fix will revert you back to Xorg
2. Laptop originally defaulted to Xorg, then you opted-in-to Wayland, then the 
kernel 6.8 update changed the default to Wayland but you didn't notice as you 
already were using Wayland:
  -> the fix will revert you back to Xorg
3. Laptop originally defaulted to Wayland (as far as we know that has only 
happened if installing with 22.04.5 or 24.04 which have kernel 6.8)
  -> the fix will revert you back to Xorg
4. Laptop is unaffected, it originally defaulted to Xorg, updating to kernel 
6.8 did not matter, and is still defaulting to Xorg
  -> the fix will not change the default, so you will keep your preference

While all cases 1~3 change the current behavior, I only see case n.2 as 
changing the user *choice*.
But we cannot do anything about it now because on an affected system there is 
no indication of whether the user is currently on Wayland because they chose to 
or because it is the default.

re: e)

We are choosing to default to Xorg mainly because all certified laptops
shipped with Xorg. And while the OEM team might be open to re-evaluating
Wayland in an existing LTS, that should only happen after testing (and
possibly re-certifying?) and not because of a sudden bug.



I will later edit the bug description addressing your points.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-12-05 Thread Andreas Hasenack
Thanks for working on this, sounds like getting to the bottom of it was
quite a ride!

I have some comments/questions. Please don't be scared away from this
large comment! I'm coming into this bug with a fresh perspective, and
with my SRU hat on, my main concern here is with regressions, since gdm3
is a critical piece of any ubuntu desktop system, nvidia or not.


But first, let me define what I think a regression would look like:

1. Inability to login
2. Session suddenly changed to some fallback, because, with the update, the 
session the user was using before is now crashing
3. Overriding the user's choice regarding the session they selected in previous 
logins. For example, I have manually opted in to wayland, and now after this 
update, suddenly I'm on xorg.
4. This one may be debatable, so please do share your thoughts: default session 
changes for users who have already logged in in the past, but have NOT made an 
explicit choice about which session they want. For example, they were logging 
into wayland because that just happened to be the default, everything is 
working, now after the update, the default for them reverts to xorg. The 
difference between (4) and (3) is that here the user made no choice, but in (3) 
they actually made a choice.

Now let's go over my comments/questions. These are all up for
discussion. If you have an argument of why foo is set to bar instead of
something else, go for it. If something is answered by the actual patch,
go for it. If some test idea is nonsense, justify it and we go from
there.

a) Non-nvidia systems
The test plan is focusing on the affected hardware. Since gdm3 is a critical 
component of any ubuntu desktop system, I'd like to see this test plan covering 
non-nvidia hardware, and nvidia-only hw.

The "where things could go wrong" section states:
"""
There should be no regression potential for nvidia desktops or non-nvidia 
hardware, because such hardware would not have matched the udev rules that are 
being removed here.
"""
Please update the test plan to cover this scenario, i.e., nvidia desktops, 
perhaps also laptops with only nvidia cards if those exist, and non-nvidia 
hardware.


b) comment #8 mentions something about user preference versus default session. 
What if I have an affected system, but have opted in to use wayland, will this 
SRU change my choice and revert that to Xorg? Or is the SRU only changing the 
default session, i.e., for users who have never logged in before, or have never 
made a choice? Regardless of the answer, this should also be covered in the 
test plan

c) Linked to (b), please make it clear in the SRU description what will be the 
behavior for:
- newly deployed systems with the update in place
- upgraded systems for users who have never logged in before
- upgraded systems for users who have logged in already, but never made an 
explicit choice regarding their session
- upgraded systems for users who have logged in already, and have made a choice 
regarding their session

And the test plan should match the behavior above.

d) nvidia version
The "where things could go wrong" section has this sentence:

  it is expected to do so only for nvidia driver versions < 470.

There is nothing else about this version in the bug's description.
Please clarify this behavior: what should happen differently across this
version barrier? And then also update the test plan to demonstrate that
the intention is actually being followed.


e) actual impact
Besides the unpredictability in which session is used, is there any other 
impact to systems that are using wayland instead of xorg? I see some in comment 
#6, and I think this is the most relevant one:

  1. External monitors plugged into Nvidia secondary GPUs weren't
accelerated for Wayland sessions until recently
(https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3304). Xorg was
a better user experience in hindsight.

Please list that in the bug's impact section. Is there something else
that's worth considering? Are we getting bug reports from users who are
having crashes or other undesirable behavior in wayland in these
systems?




** Changed in: gdm3 (Ubuntu Jammy)
   Status: Fix Committed => Incomplete

** Changed in: gdm3 (Ubuntu Noble)
   Status: Fix Committed => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-12-04 Thread Kai-Chuan Hsieh
** Tags added: jira-somerville-1270 oem-priority

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-12-02 Thread Treviño
** Changed in: gdm3 (Ubuntu Jammy)
   Status: In Progress => Fix Committed

** Changed in: gdm3 (Ubuntu Noble)
   Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-11-29 Thread Alessandro Astone
The fix is here in review:
noble: https://salsa.debian.org/gnome-team/gdm/-/merge_requests/26
jammy: https://salsa.debian.org/gnome-team/gdm/-/merge_requests/23
I've solicited my team for review.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-11-29 Thread Dirk Su
Enable udev debug by adding udev.log-priority=debug to kernel parameter.
I notice that the in 61-gdm3.rules, the condition for
gdm_hybrid_nvidia_laptop_check [1] will be fulfilled early then kernel
module nvidia_drm been inserted. So the "prefer xorg" logic [2] won't be
executed.

[1]
# If this is a hybrid graphics laptop with vendor nvidia driver, prefer Wayland
LABEL="gdm_hybrid_nvidia_laptop_check"
TEST!="/run/udev/gdm-machine-is-laptop", 
GOTO="gdm_hybrid_nvidia_laptop_check_end"
TEST!="/run/udev/gdm-machine-has-hybrid-graphics", 
GOTO="gdm_hybrid_nvidia_laptop_check_end"
TEST!="/run/udev/gdm-machine-has-vendor-nvidia-driver", 
GOTO="gdm_hybrid_nvidia_laptop_check_end"
GOTO="gdm_end"
LABEL="gdm_hybrid_nvidia_laptop_check_end"

[2]
KERNEL!="nvidia_drm", GOTO="gdm_nvidia_drm_end"
SUBSYSTEM!="module", GOTO="gdm_nvidia_drm_end"
ACTION!="add", GOTO="gdm_nvidia_drm_end"
# disable wayland if nvidia-drm modeset is not enabled
ATTR{parameters/modeset}!="Y", GOTO="gdm_disable_wayland"
# disable wayland for nvidia drivers versions lower than 470
ATTR{version}=="4[0-6][0-9].*|[0-3][0-9][0-9].*|[0-9][0-9].*|[0-9].*", 
GOTO="gdm_disable_wayland"
# For nvidia drivers versions Above 510, prefer Xorg by default
ATTR{version}=="[5-9][1-9][0-9].*", GOTO="gdm_prefer_xorg"
# For nvidia drivers versions 470-495, prefer Xorg by default
GOTO="gdm_prefer_xorg"
LABEL="gdm_nvidia_drm_end"

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-11-29 Thread Phoenix Liao
Hi @Alessandro and @Daniel
I'd like to circle back to this issue.
I'm afraid that I missed something here.
I'm not sure about the fix plan here; however, there's a project (Somerville) 
that also occurred with this issue: 
https://warthogs.atlassian.net/browse/SOMERVILLE-1270

In order to meet the target schedule, we expected that the fix would be
ready before the middle of December (13-Dec) and that it would finish
SRU and land in Noble at the beginning of January (03-Jan).

Would you please kindly help to evaluate?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-11-28 Thread Rex Tsai
** Also affects: oem-priority
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-11-20 Thread Alessandro Astone
No, that cannot be related.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-11-20 Thread stf fornengo
It seems my issue https://bugs.launchpad.net/ubuntu/+source/sddm/+bug/2089053 
could be related with my single-nvidia system but on sddm.
How to force xorg session ?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-11-10 Thread Daniel van Vugt
** Changed in: gdm3 (Ubuntu Jammy)
Milestone: None => jammy-updates

** Changed in: gdm3 (Ubuntu Noble)
Milestone: None => noble-updates

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-11-06 Thread Alessandro Astone
** Changed in: gdm3 (Ubuntu)
   Status: In Progress => Fix Released

** Changed in: gdm3 (Ubuntu Jammy)
   Status: New => In Progress

** Changed in: gdm3 (Ubuntu Noble)
   Status: New => In Progress

** Changed in: gdm3 (Ubuntu Jammy)
   Importance: Undecided => High

** Changed in: gdm3 (Ubuntu Noble)
   Importance: Undecided => Medium

** Changed in: gdm3 (Ubuntu Jammy)
   Importance: High => Medium

** Changed in: gdm3 (Ubuntu Jammy)
 Assignee: (unassigned) => Alessandro Astone (aleasto)

** Changed in: gdm3 (Ubuntu Noble)
 Assignee: (unassigned) => Alessandro Astone (aleasto)

** Changed in: gdm3 (Ubuntu)
Milestone: jammy-updates => None

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-11-06 Thread Alessandro Astone
** Description changed:

- [Summary]
- On HP ZBook Fury G11 platform preloaded with Ubuntu 22.04. The windowing 
system in "Settings -> About" is Xorg. After doing kernel upgrade from 6.5-oem 
to 6.8-hwe, windowing system become Wayland.
+ [ Impact ]
  
+ On some nvidia hybrid systems, like the HP ZBook Fury G11 platform
+ preloaded with Ubuntu 22.04, the windowing system in "Settings -> About"
+ used to be Xorg but after doing kernel upgrade from 6.5-oem to 6.8-hwe,
+ the windowing system become Wayland.
  
- [Reproduce Steps]
- 1. Update kernel by command "sudo apt install linux-image-oem-22.04d 
linux-modules-nvidia-535-oem-22.04d"
- 2. Reboot system
- 3. After enter desktop, check windowing system via "Settings -> About"
+ There is a race condition in udev rules that makes the default desktop
+ session either Xorg or Wayland depending on the ordering of hardware
+ discovery and modules loading. This would affect both jammy and noble,
+ but being a race condition it is unpredictable which hardware defaults
+ to which desktop session, and the same hardware may behave differently
+ in jammy vs in noble.
  
- [Results]
- Expected: Windowing system remain Xorg
- Actual: Windowing system become Wayland
+ The intended default desktop session was meant to be Wayland, however
+ the vast majority of nvidia hybrid laptops defaulted to Xorg at launch,
+ including and particularly all Ubuntu Certified laptops. For this reason
+ we're considering this a bug and are taking measures to ensure that all
+ nvidia hybrid laptops keep defaulting to Xorg.
+ 
+ The fix removes the udev logic that was trying to make nvidia hybrid
+ laptops specifically prefer Wayland, making that hardware use the same
+ udev rules as nvidia desktops which already default to Xorg.
+ 
+ [ Test Plan ]
+ 
+ 1. Set up a nvidia hybrid laptop with Ubuntu 22.04 or 24.04
+ 2. Install the latest updates, particularly the latest kernel
+ 2. Install the gdm3 update from this bug
+ 3. Create a new a new User on the system
+ 3. Reboot
+ 4. At the log-in screen, select the new User
+ 5. Verify that there is a cogwheel icon at the bottom-right of the screen.
+ 6. Click on the cogwheel icon to open up the menu
+ 7. Verify that the selected option is "Ubuntu"
+ 8. Verify that the alternative option is "Ubuntu on Wayland"
+ 9. Close the menu without changing the selection
+ 10. Log-in
+ 11. Verify via "Settings -> About" that "Windowing System" is X11
+ 
+ [ Where problems could occur ]
+ 
+ The patch only touches the gdm udev rules, only removing some broken udev 
rules that matched specific hardware configurations.
+ At worst, Wayland on nvidia laptops could end up completely hidden away 
rather than opt-in -- it is expected to do so only for nvidia driver versions < 
470.
+ 
+ There should be no regression potential for nvidia desktops or non-
+ nvidia hardware, because such hardware would not have matched the udev
+ rules that are being removed here.

** No longer affects: linux-hwe-6.8 (Ubuntu)

** Also affects: gdm3 (Ubuntu Noble)
   Importance: Undecided
   Status: New

** Also affects: gdm3 (Ubuntu Jammy)
   Importance: Undecided
   Status: New

** Description changed:

  [ Impact ]
  
  On some nvidia hybrid systems, like the HP ZBook Fury G11 platform
  preloaded with Ubuntu 22.04, the windowing system in "Settings -> About"
  used to be Xorg but after doing kernel upgrade from 6.5-oem to 6.8-hwe,
  the windowing system become Wayland.
  
  There is a race condition in udev rules that makes the default desktop
  session either Xorg or Wayland depending on the ordering of hardware
  discovery and modules loading. This would affect both jammy and noble,
  but being a race condition it is unpredictable which hardware defaults
  to which desktop session, and the same hardware may behave differently
  in jammy vs in noble.
  
  The intended default desktop session was meant to be Wayland, however
  the vast majority of nvidia hybrid laptops defaulted to Xorg at launch,
  including and particularly all Ubuntu Certified laptops. For this reason
  we're considering this a bug and are taking measures to ensure that all
  nvidia hybrid laptops keep defaulting to Xorg.
  
  The fix removes the udev logic that was trying to make nvidia hybrid
  laptops specifically prefer Wayland, making that hardware use the same
  udev rules as nvidia desktops which already default to Xorg.
  
  [ Test Plan ]
  
  1. Set up a nvidia hybrid laptop with Ubuntu 22.04 or 24.04
  2. Install the latest updates, particularly the latest kernel
- 2. Install the gdm3 update from this bug
+ 2. Install the gdm3 update being tested
  3. Create a new a new User on the system
  3. Reboot
  4. At the log-in screen, select the new User
  5. Verify that there is a cogwheel icon at the bottom-right of the screen.
  6. Click on the cogwheel icon to open up the menu
  7. Verify that the selected option is "Ubuntu"
  8. Verify that the alternative option is "Ubuntu on Wayland"
  9. Close the

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-10-25 Thread Alessandro Astone
See https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1968929
The verification of the gdm update that was supposed to make Wayland the 
default option was not done correctly:

We can see that all comments between #37 and #45 mention that Xorg was still 
their default but that they now had the option to switch to "Ubuntu on Wayland".
The verification test cases instead were meant to verify that the default was 
Wayland with an option to switch to "Ubuntu on Xorg".

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-10-25 Thread Alessandro Astone
Actually, I don't think Wayland was disabled but just not the default.
So we need another explanation. Luckily I got another explanation :)

Both the default Xorg and the default Wayland sessions are called 
"ubuntu.desktop" (under /usr/share/xsessions/ and /usr/share/wayland-sessions/ 
respectively).
The non-default sessions instead have a -xorg or -wayland postfix.
When the default changes, the saved session name is still "ubuntu" but it now 
points to a different session, thus the switch.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-10-23 Thread Alessandro Astone
> The default session type is meant to be remembered. So GDM's preference of 
> default should actually be irrelevant if the user has ever logged in prior to 
> the kernel update.
> 
> If previous successful logins used Xorg and suddenly it's going to Wayland 
> then perhaps the attempt to use Xorg is crashing and Wayland is only the 
> fallback?

I have another explanation for that:
gdm/accounts-daemon are not saving the last user session when there is only one 
available session. So if Wayland was disabled previously and is enabled+default 
now, you would see the session switch.

I verified that on my machine.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-10-23 Thread Alessandro Astone
** Changed in: gdm3 (Ubuntu)
   Status: New => In Progress

** Changed in: gdm3 (Ubuntu)
 Assignee: (unassigned) => Alessandro Astone (aleasto)

** Changed in: gdm3 (Ubuntu)
Milestone: None => jammy-updates

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-09-27 Thread Alessandro Astone
> That's bug 2062082 but I'm not sure how much it matters on Jammy.

There's no fallback-to-zink in jammy, so it would fall back to swrast instead.
However that's an issue for single-NVIDIA systems, while on hybrids it should 
pick the integrated GPU.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-09-25 Thread Daniel van Vugt
Yes those rules are messy and unreliable. Just yesterday we took the
late decision to delete most of our patches to those rules in 24.10.

** Changed in: gdm3 (Ubuntu)
   Status: Opinion => New

** Changed in: linux-hwe-6.8 (Ubuntu)
   Status: Incomplete => New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-09-25 Thread Dirk Su
** Attachment added: "journal_nvidia_wayland.gz"
   
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2080498/+attachment/5821954/+files/journal_nvidia_wayland.gz

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-09-25 Thread Dirk Su
I add udev.log-priority=debug to kernel parameter to enable udev debug.
I notice that in /usr/lib/udev/rules.d/61-gdm.rules, condition test in
gdm_hybrid_nvidia_laptop_check had been fulfilled early then nvidia_drm
driver loaded. Then the prefer Xorg rule will be skip.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-09-25 Thread Dirk Su
Reply #15, (a) and (b) not observed at same. I can see (a), and after
system reboot it will become (b).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-09-25 Thread Daniel van Vugt
> Reply #11, libnvidia-egl-wayland1 not installed in the system.

That's bug 2062082 but I'm not sure how much it matters on Jammy.

> Reply #12, there is nothing under /var/crash

Good, thanks.

> Reply #13, both (a) and (b) can be observed

It's not possible to have (a) and (b) simultaneously. What options
exactly do you see in the menu?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-09-25 Thread Dirk Su
Reply #11, libnvidia-egl-wayland1 not installed in the system.
Reply #12, there is nothing under /var/crash
Reply #13, both (a) and (b) can be observed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-09-18 Thread Daniel van Vugt
** Changed in: linux-hwe-6.8 (Ubuntu)
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-09-13 Thread Daniel van Vugt
Are there any crash files in /var/crash when the bug occurs?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-09-13 Thread Daniel van Vugt
Does the session menu on the login screen list:

(a) Ubuntu, Ubuntu on Xorg
(b) Ubuntu, Ubuntu on Wayland
(c) Nothing, or no menu?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-09-12 Thread Daniel van Vugt
Please also try uninstalling libnvidia-egl-wayland1. If that forces the
removal of the Nvidia driver then you should be able to install an older
Nvidia driver from the archive that doesn't depend on libnvidia-egl-
wayland1.

If you find the bug is now fixed without libnvidia-egl-wayland1, try
reinstalling libnvidia-egl-wayland1 and then confirm that the bug has
returned.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-09-12 Thread Daniel van Vugt
I think it's important for us to distinguish between the default session
in a new install (which is meant to be Wayland), and failing to choose
Xorg when Xorg was used in the previous login. The latter sounds like
more of a bug, and closer to what was initially reported here.

We'll need to zoom in on the section of the journal showing the login
when we expected it to keep choosing Xorg like the previous session, but
ended up with Wayland instead.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-09-12 Thread Dirk Su
Tested with 24.04.1 on same machine. The default session will be Wayland
as well.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2080498] Re: Default session type changed from Xorg to Wayland in some installs of 22.04 on Nvidia hybrids since kernel 6.8

2024-09-12 Thread Daniel van Vugt
** Summary changed:

- Default session type changed from Xorg to Wayland in some new installs of 
22.04 on Nvidia hybrids since kernel 6.8
+ Default session type changed from Xorg to Wayland in some installs of 22.04 
on Nvidia hybrids since kernel 6.8

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080498

Title:
  Default session type changed from Xorg to Wayland in some installs of
  22.04 on Nvidia hybrids since kernel 6.8

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2080498/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs