I'd confirmed the regression with enabling Wayland.
Due to nvidia-driver (nvidia-driver-440) disable wayland as default, I'll 
separate the verification to two scenarios.

1. Make sure the new gdm3 fixes this issue.
2. Make sure the new gdm3 without the regression 
(https://gitlab.gnome.org/GNOME/gdm/-/issues/602)

---

* Make sure the new gdm3 fixes this issue *

[Summary]
Here are two scenario of auto login with groovy (20.10) daily build[1]:

1. Checked "Install third-party software" (e.g. nvidia-driver) with
enabling "Login automatically".

2. Install with default options
2.1 Install nvidia-driver-440 (450.66-0ubuntu2) from ubuntu-archive.
2.2 Enable "Login automatically" from system settings.

After reboot, the system won't login automatically even can not login
manually.

[Environment]
HP 800 G6 DM + GeForce GTX 1660 [10de:2191]

[Solution]
Backport the solution from comment#119 as a debian package[2] (commit ID from 
upstream: f843233a, 690b3c01). The problem is solved. (Verified in scenario 2)

The debdiff as attachment, please help to review.

[1] sha256sum
```
$ sha256sum ~/Downloads/groovy-desktop-amd64.iso
bf4359114660504ad3f6fbde5e0c3edbc67a4101e4480f576d3cbd4f59acf822 
/home/jeremysu/Downloads/groovy-desktop-amd64.iso
```
[2] gdm3 from 
https://launchpad.net/~os369510/+archive/ubuntu/gdm3-1845801/+packages

---

* Make sure the new gdm3 without the regression
(https://gitlab.gnome.org/GNOME/gdm/-/issues/602) *

This issue is happens when switching user under Wayland.
I'd verified gdm3#602 issue when using intel graphic in the same machine 
because nvidia-driver disable Wayland as default.

Steps to reproduce gdm3#602 issue:
1. Login a user "test" under x11
2. Create a user "test2"
3. Press "switch user ..." to "test2" under wayland
4. Switch back to "test" under x11
5. Switch to "test2" under wayland (then the running session be killed 
immediately)
6. Login again and then the mouse won't work.

After applying commit 690b3c01, above problems are solved. Repeat to
switch user and everything goes well.

** Patch added: "gdm3_3.34.1-1ubuntu2.debdiff"
   
https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1845801/+attachment/5407599/+files/gdm3_3.34.1-1ubuntu2.debdiff

** Attachment removed: "gdm3_3.34.1-1ubuntu2.debdiff"
   
https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1845801/+attachment/5406013/+files/gdm3_3.34.1-1ubuntu2.debdiff

** Description changed:

  [ Impact ]
  In some platforms with specific Nvidia cards (with nvidia-driver-440), enable 
auto-login (either during installation or after installation) will fail (either 
stuck in gdm login screen and not able to login even typing correct password).
  
  [ Test Case ]
  Here are two scenario of auto login with groovy (20.10) daily build[1]:
  
  1) Checked "Install third-party software" (e.g. nvidia-driver) with
  enabling "Login automatically" during installation.
  
  2) Install groovy daily build with default options, after installation 
completed:
- 2.1) Install nvidia-driver-440 (450.57-0ubuntu2) from ubuntu-archive.
+ 2.1) Install nvidia-driver-440 (450.66-0ubuntu1) from ubuntu-archive.
  2.2) Enable "Login automatically" from system settings.
  
  Then reboot.
  
  [Expected result]
  System will boot into desktop environment without the login page.
  
  [Actual result]
  System boots to login page, and can't login to desktop environment with the 
correct password.
  
  [ Regression potential ]
  Medium, the patch comes from upstream[2] to use /dev/tty1 (instead of tty0) 
to prevent the auto-login user gets tty1. I did verified gdm3 from my PPA[3] 
and it works good. It passed the 30 times reboot stress test by using 
stress/reboot_30 from checkbox.
  
  [1] sha256sum: 
bf4359114660504ad3f6fbde5e0c3edbc67a4101e4480f576d3cbd4f59acf822
- [2] https://gitlab.gnome.org/GNOME/gdm/-/commit/f843233ad4
- [3] https://launchpad.net/~os369510/+archive/ubuntu/gdm-1845801
+ [2] https://gitlab.gnome.org/GNOME/gdm/-/commit/f843233ad4 
https://gitlab.gnome.org/GNOME/gdm/-/commit/690b3c01
+ [3] https://launchpad.net/~os369510/+archive/ubuntu/gdm3-1845801
  
  ---
  
  I just updated to the Ubuntu 19.10 beta. After boot, I'm shown the GDM
  login screen (which I shouldn't; I have auto login enabled), and logging
  in just takes me back to the same user selection screen even though the
  password is correct.
  
  If I switch to a TTY and run `sudo pkill gnome-session-binary`, logging
  in through GDM starts working again.
  
  I should add that the do-release-upgrade was rocky; I did it in a
  terminal from within gnome, went away for a while, and when I returned,
  I just saw an Ubuntu 19.10 in a TTY. I was able to do `sudo dpkg
  --configure -a` and complete the upgrade, but I don't know if
  something's still messed up due to that.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 19.10
  Package: xorg 1:7.7+19ubuntu12
  ProcVersionSignature: Ubuntu 5.3.0-13.14-generic 5.3.0
  Uname: Linux 5.3.0-13-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  .proc.driver.nvidia.gpus.0000.01.00.0: Error: [Errno 21] Is a directory: 
'/proc/driver/nvidia/gpus/0000:01:00.0'
  .proc.driver.nvidia.registry: Binary: ""
  .proc.driver.nvidia.suspend: suspend hibernate resume
  .proc.driver.nvidia.suspend_depth: default modeset uvm
  .proc.driver.nvidia.version:
   NVRM version: NVIDIA UNIX x86_64 Kernel Module  435.21  Sun Aug 25 08:17:57 
CDT 2019
   GCC version:  gcc version 9.2.1 20190909 (Ubuntu 9.2.1-8ubuntu1)
  ApportVersion: 2.20.11-0ubuntu7
  Architecture: amd64
  BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
  CompositorRunning: None
  CurrentDesktop: ubuntu:GNOME
  Date: Sat Sep 28 19:55:42 2019
  DistUpgraded: 2019-09-28 18:35:15,142 INFO cache.commit()
  DistroCodename: eoan
  DistroVariant: ubuntu
  DkmsStatus: nvidia, 435.21, 5.3.0-13-generic, x86_64: installed
  ExtraDebuggingInterest: Yes
  GraphicsCard:
   NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] [10de:1b06] (rev a1) (prog-if 
00 [VGA controller])
     Subsystem: ASUSTeK Computer Inc. GP102 [GeForce GTX 1080 Ti] [1043:85e4]
  InstallationDate: Installed on 2019-09-14 (13 days ago)
  InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
  MachineType: MSI MS-7A67
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.3.0-13-generic 
root=UUID=04974c80-e732-49b6-8148-c3dce7c02a25 ro quiet splash vt.handoff=7
  SourcePackage: xorg
  Symptom: display
  Title: Xorg crash
  UpgradeStatus: Upgraded to eoan on 2019-09-28 (0 days ago)
  dmi.bios.date: 01/25/2018
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: 2.60
  dmi.board.asset.tag: Default string
  dmi.board.name: H270I GAMING PRO AC (MS-7A67)
  dmi.board.vendor: MSI
  dmi.board.version: 1.0
  dmi.chassis.asset.tag: Default string
  dmi.chassis.type: 3
  dmi.chassis.vendor: MSI
  dmi.chassis.version: 1.0
  dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvr2.60:bd01/25/2018:svnMSI:pnMS-7A67:pvr1.0:rvnMSI:rnH270IGAMINGPROAC(MS-7A67):rvr1.0:cvnMSI:ct3:cvr1.0:
  dmi.product.family: Default string
  dmi.product.name: MS-7A67
  dmi.product.sku: Default string
  dmi.product.version: 1.0
  dmi.sys.vendor: MSI
  version.compiz: compiz N/A
  version.libdrm2: libdrm2 2.4.99-1ubuntu1
  version.libgl1-mesa-dri: libgl1-mesa-dri 19.1.6-1ubuntu1
  version.libgl1-mesa-glx: libgl1-mesa-glx N/A
  version.nvidia-graphics-drivers: nvidia-graphics-drivers-* N/A
  version.xserver-xorg-core: xserver-xorg-core 2:1.20.5+git20190820-0ubuntu3
  version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
  version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.0.1-1
  version.xserver-xorg-video-intel: xserver-xorg-video-intel 
2:2.99.917+git20190815-1
  version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.16-1

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to nvidia-graphics-drivers-390 in Ubuntu.
https://bugs.launchpad.net/bugs/1845801

Title:
  [nvidia] Automatic login fails and then all subsequent logins fail.
  Killing gnome-session-binary fixes it, or just not using automatic
  login.

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

_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to     : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp

Reply via email to