Score:0

TTY 1 opens everytime I want to login on ubuntu 21.10 with Gnome 40

my flag

Recently a weird thing is happening, every time I try to login into my user account, ubuntu opens something similar to a TTY, but it is not exactly a TTY.

So what exactly happens is, I boot up my system, the login screen prompts and I click on the user name I want to login to. Once I click on the username it opens a login prompt but instead of opening a GUI prompt, it opens a TTY-like CLI prompt.

The prompt looks like-

Ubuntu 21.10 Linux console

Linux login:

After I login into it, I get just a normal TTY interface (I can only type commands).

Some important information:-

  • I am on ubuntu 21.10 Impish with Gnome 40.

  • Sometimes it straightaway boots into that TTY-like interface.

  • I am using orchis as a shell theme and application theme.

  • I have changed the GDM background image to a custom wallpaper using this script from GitHub

  • I could temporarily fix this issue by going to TTY2 and then again TTY1.

When I go to TTY2 and then switch to TTY1 the Login prompt is fine as usual.

Here are the contents of /etc/gdm3/custom.conf

$ cat custom.conf


# GDM configuration storage
#
# See /usr/share/gdm/gdm.schemas for a list of available options.

[daemon]
# Uncomment the line below to force the login screen to use Xorg
#WaylandEnable=false

# Enabling automatic login
#  AutomaticLoginEnable = true
#  AutomaticLogin = user1

# Enabling timed login
#  TimedLoginEnable = true
#  TimedLogin = user1
#  TimedLoginDelay = 10

AutomaticLoginEnable=False
AutomaticLogin=user_name

[security]

[xdmcp]

[chooser]

[debug]
# Uncomment the line below to turn on debugging
# More verbose logs
# Additionally lets the X server dump core if it crashes
#Enable=true

Here is the list of gnome-extensions installed:

~/.local/share/gnome-shell/extensions$ ls -c

just-perfection-desktop@just-perfection
[email protected]
cpufreq@konkor
blur-my-shell@aunetx
[email protected]
[email protected]
[email protected]


If you want any other information then please feel free to ask me in the comments.

Edit

I tried using lightdm as the display manager but that also didn't worked.

user10489 avatar
in flag
Sounds like your Xorg server is crashing when you try to log in. Look at the latest file in `/var/log/X*` (or possibly the second latest) and see if there are interesting errors at the end.
user10489 avatar
in flag
Any line with EE on the left is interesting.
user10489 avatar
in flag
Is the gkr-pam line the last line in the file? Check the last several files (sort with `ls -ltr /var/log/X*`) and make sure you are looking at the log file from the crash, not the current one after it restarted.
heynnema avatar
ru flag
Your problem is with *"I have changed the GDM background image to a custom wallpaper using this script from GitHub"*. Undo this.
Someone avatar
my flag
@heynnema Did it, no change...
br flag
@someone can you give it a try with delay of 5sec https://askubuntu.com/q/1380436/739431
br flag
`[Service] ExecStartPre=/bin/sleep 5` two lines
br flag
`sudo systemctl edit gdm` and after edits, is the above MSG came??
Someone avatar
my flag
The file opened with `nano` text editor.
br flag
Ok I am doing it on my system too let's see
Someone avatar
my flag
Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/132448/discussion-between-someone-and-unknown).
Someone avatar
my flag
@heynnema It wasn't me!
heynnema avatar
ru flag
@someone Then I apologize.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.