← Back to team overview

desktop-packages team mailing list archive

[Bug 1509369] Re: gdm runs in vt7 and gnome-shell in vt2 after resuming

 

After some research, I think this is not strictly related to
suspend/resume and more to how gdm selects the next VT available to
spawn your session and how systemd manages VTs initialization (getty on
demand). From http://0pointer.de/blog/projects/serial-console.html

"""
Traditionally, the init system on Linux machines was configured to spawn a fixed number login prompts at boot.[...]

In a systemd world we made this more dynamic: in order to make things more efficient login prompts are now started on demand only. As you switch to the VTs the getty service is instantiated to getty@tty2.service, getty@tty5.service and so on.
"""

I rebooted my machine and before logging in I cycled from VT1 until
VT7(gdm), so systemd launched a getty in each VT, then I logged in gdm
and gnome-shell was launched in VT8 and this problem went away.

So this is what I think is happening:

- the system boots
- a getty in launched in VT1 and gdm in VT7
- the user logs in
- gdm looks for the next available VT, as systemd didn't launch VT2...VT6, gdm uses VT2 and from that point Alt+<arrow> behave like if you were running virtual terminal console instead of an X session.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gdm in Ubuntu.
https://bugs.launchpad.net/bugs/1509369

Title:
  gdm runs in vt7 and gnome-shell in vt2 after resuming

Status in gdm package in Ubuntu:
  New

Bug description:
  I installed ubuntu-gnome 15.04, then upgraded to Wily. I started
  getting problems when pressing "Alt+<arrow>" it switches to another
  virtual terminal like if I was pressing Ctrl+Alt+F<n>, after some
  troubleshooting these are the steps to reproduce:

  - Logged in a gnome session
  - Suspend laptop
  - Resume
  - Unlock screen
  - Press Alt+Arrow_Right, there you'll notice that gdm is running un VT7 and your user's gnome-shell is running in another VT, in my case VT2

  No LSB modules are available.
  Distributor ID:	Ubuntu
  Description:	Ubuntu 15.10
  Release:	15.10
  Codename:	wily

  ProblemType: Bug
  DistroRelease: Ubuntu 15.10
  Package: gdm 3.16.2-0ubuntu2
  ProcVersionSignature: Ubuntu 3.19.0-30.34-generic 3.19.8-ckt6
  Uname: Linux 3.19.0-30-generic x86_64
  ApportVersion: 2.19.1-0ubuntu3
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Fri Oct 23 11:02:05 2015
  InstallationDate: Installed on 2015-10-19 (3 days ago)
  InstallationMedia: Ubuntu-GNOME 15.04 "Vivid Vervet" - Release amd64 (20150422)
  SourcePackage: gdm
  UpgradeStatus: Upgraded to wily on 2015-10-19 (3 days ago)

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


References