After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 747339 - GDM Runs on TTY1, While GNOME Shell Started in TTY2 - Kill the greeter session once logged in
GDM Runs on TTY1, While GNOME Shell Started in TTY2 - Kill the greeter sessio...
Status: RESOLVED OBSOLETE
Product: gdm
Classification: Core
Component: general
3.24.x
Other Linux
: Normal normal
: ---
Assigned To: Hans de Goede
GDM maintainers
: 748039 750904 757490 782832 785950 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2015-04-04 15:30 UTC by Jeff Bai
Modified: 2018-07-27 10:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Kill Me (5.81 KB, image/png)
2015-05-19 23:58 UTC, Mikhail
Details
cat /proc/472/maps (86.95 KB, text/plain)
2015-05-21 06:47 UTC, Mikhail
Details
cat /proc/472/maps (some days later) (88.39 KB, text/plain)
2015-05-26 12:57 UTC, Mikhail
Details

Description Jeff Bai 2015-04-04 15:30:22 UTC
This bug is spotted in Arch Linux, and AOSC OS3 (GNOME, Beta 2).

When started GDM via systemctl, GDM is shown on TTY1. When starting GNOME, the screen turns black, and a cursor, then the desktop appears. Then I found that GNOME is started in TTY2, and when switching to TTY1, the GDM gray background and a cursor is still visible and movable on screen.

When starting GNOME with LightDM, the problem cannot be reproduced. Therefore the report is sent to GDM category.

Regards,
Jeff Bai
Comment 1 Jasper St. Pierre (not reading bugmail) 2015-04-04 15:48:49 UTC
Yes, this is how GDM works now. Is there anything wrong with this behavior?
Comment 2 Peter 2015-04-11 18:30:49 UTC
Hello Jasper!
Thanks for your response. This looks like a bug and a security issue for all users, furthermore a second TTY is lost. As you told us, this is not the case, but at least it is extremly bewildering even for people who don't know what a TTY is and just jump accidentally to the TTY with the login-screen.

Furthermore it looks like the gdm-screen is responsive to my inputs (correct?). I hesitate to push enter after entering my password, because of graphic corruptions.

I assume with GNOME 3.18 and the default switch to Wayland GDM and the GNOME-Session will run on on TTY again? Maybe you can "blank" the GDM-Screen in the meantime.

Furthermore there is at least another bug with graphic corruptions and complete hang of the system, which is maybe connected:
https://bugzilla.gnome.org/show_bug.cgi?id=747708

Thanks for your work Jasper
Bye
Comment 3 Peter 2015-04-11 18:31:49 UTC
... will run on *one* TTY again?..
Comment 4 Jasper St. Pierre (not reading bugmail) 2015-04-11 19:17:02 UTC
GDM's behavior was changed in 3.16 so that instead of running one X server on the login screen which is then transformed into the user's session, we now start a new X session from within the user's session, which means that we need to start the user's session on another TTY/VT.

Note that when using fast user switching, you effectively got this behavior as well, with each user on a different TTY/VT. We just extended it to the first user to log in as well.

How is it a security issue?

I don't know why users who are unaware of what a TTY is would be bewildered by the new behavior. How would they run into this behavior in the first place?
Comment 5 Peter 2015-04-11 20:09:24 UTC
It cannot be a security issue. You have already described that this is intentionally!

I just descirbed with "looks like" my first feeling "Wow! The login screen is visible. This must be accidentally happened. What happens if some stranger could access this!?". I assume Jeff has the same gut feeling. GDM is just using the possibilieties of the TTYs here, but it is rather uncommon and new.

Basically I would suggest that the release notes should mention such a change in behaviour. What do you think?
Comment 6 Jasper St. Pierre (not reading bugmail) 2015-04-11 22:14:34 UTC
Considering you can choose to launch the login screen from the screen lock prompt itself since 3.0, I didn't think it would come across as a security issue, nor a major change in behavior.
Comment 7 Clément Guérin 2015-05-07 07:11:08 UTC
The main issue about this behavior is that gdm uses 120MB of ram here for literally nothing. That's a lot.
Comment 8 John Woo 2015-05-14 17:33:45 UTC
I agree with Clement. In terms of resources i actually have double load.
I didnt even noticed another tty before I started to google why i'm lacking the resources with new gdm.
Comment 9 Brett 2015-05-14 19:20:39 UTC
Combined with some memory leaks (particularly with nvidia), this behavior means that an extra GIG of memory is used for no reason at all.
Comment 10 Brett 2015-05-14 19:33:09 UTC
A fresh reboot has a separate gdm sitting at 291 MB. I realize that you guys often have design decisions that conflict with what users would want but this is really something that should be addressed: Even with a perfect scenario of having zero memory leaks (good luck with that), having a 100 MB process that does absolutely *nothing* is the exact opposite of optimization and usability.

What exactly is this supposed to accomplish? What use-cases is this supposed to fill? This also removes a flicker-free experience due to switching TTYs.
Comment 11 Mikhail 2015-05-15 19:11:53 UTC
Add me to the list, resources are hogged because of this.

Arch users are reporting this issue: https://bbs.archlinux.org/viewtopic.php?id=196776
Comment 12 Britt Yazel 2015-05-16 08:15:02 UTC
I have some weird effects I believe are related to this. When at the GDM login screen, if I switch to tty2 or tty3 it automatically forces me back to the login screen. Then after logging in, if I try to go to tty3 it forces me back to the login screen, though switching to tty2 still has my running gnome session. If I login again at the login screen it then puts gnome on tty4 or tty5 seemingly randomly. 

It is incredibly annoying to not be able to get to a sane tty session. Gdm isn't even limiting itself to tty1/2. It's jumping all over the place!
Comment 13 Britt Yazel 2015-05-16 09:54:27 UTC
Having gdm repeatedly yank me back to the login screen each time I try to switch to a different tty is really annoying. Honestly, this new feature in 3.16 seems really unstable and unintuitive
Comment 14 Mikhail 2015-05-19 23:58:11 UTC
Created attachment 303631 [details]
Kill Me

Just a few days of usage. I'm using a lot of swap now.
Comment 15 Jasper St. Pierre (not reading bugmail) 2015-05-20 00:05:31 UTC
Jeez. I've never seen GNOME rise up to such a size. Are you using the NVIDIA proprietary drivers by any chance?
Comment 16 Mikhail 2015-05-20 00:40:18 UTC
I am on my desktop. Gnome has consistently gotten this large on all Nvidia cards that I've run - I realize that it's the price that is paid and I fully accept the fact that these garbage drivers are not nearly as awesome as intel. My needs sadly dictate those drivers on the desktop.

My laptops run intel and are more under control, but it's still using at least 100 MB - perhaps not the end of the world but the occasional leak can raise it up quite a bit higher.

All in all, I've had to switch to lightdm because of this: I really like GDM's cohesiveness and simplicity but I cannot afford to spend an awful lot of resources on something that I use once every few weeks.

Please consider switching this behavior back. I can guarantee you that all NVIDIA users are suffering from this. I really hate NVIDIA and I fully intend on switching away from them in the future but the reality of the matter is that a lot of the world runs on the blobs they ship. Besides, if you want to combat the accusations of the world that Gnome is bloated, I don't think this is the way to go about this!

Thanks so much for your work, Jasper. Despite the disgruntled tone in here we really appreciate your work on this.
Comment 17 Jasper St. Pierre (not reading bugmail) 2015-05-20 01:03:39 UTC
That's actually quite useful for us, believe it or not. An NVIDIA contact previously told us the high memory usage was due to a specific architecture quirk in the driver that stored memory pixmaps in the Composite client, but that can't be true for the gdm instance, since there are no windows being created and redirected on the login screen. I'll see if I can grab NVIDIA's attention again and perhaps we'll solve the high memory usage problem for everyone.
Comment 18 Mikhail 2015-05-20 01:28:38 UTC
But doesn't this underlie the fact that this behavior is just bringing up issues for no gain? Like #10 says, so what if you can get this under ~200 MB? It's still an awful lot of bloat for a gain that still has yet to be announced. All this is doing is adding more resource consumption! It's a totally backwards way of thinking! Who on earth needs an instant TTY switch to a login screen that's sitting there all day, using up memory?

On a side note, I'm not confident in Nvidia's bug-fixing capabilities. Look at this year-old bug that has plagued users for over a year now:

https://devtalk.nvidia.com/default/topic/729908/linux/-gt-334-21-redrawing-problems-in-gnome-3-10-3-12-gtx-580/1/

The above is not just quirky bug, it's a *serious* one that really kills the desktop experience with a sickening thud.

Please, tell us why this change happened in the first place. It denigrates the otherwise-excellent release of GNOME 3.16!
Comment 19 Jasper St. Pierre (not reading bugmail) 2015-05-20 16:42:24 UTC
Mikhail, can you run $ cat /proc/$(pidof gnome-shell)/maps ?
Comment 20 Jasper St. Pierre (not reading bugmail) 2015-05-20 16:52:58 UTC
Let me explain a bit more about why we did this.

Previously, we launched one X server as root, and then when you logged in, we "morphed" it into the session X server. If you went to fast user switching, we then launched a second X server on-demand.

For security reasons, and Wayland porting reasons, we now launch the X server and Wayland server within the user's session, instead of starting one as root.

The way that we do this is that we launch two X servers, one for the gdm greeter session, and for the session user.

It would be entirely possible to tear-down the greeter after we've switched to the user session, it just requires a bit more code, but unfortunately it wouldn't be possible to put both the greeter session and the user session on VT1, since we'd have to launch the user session first, and then tear down the greeter session, and we can't be in that intermediate state while there are two X servers on the same VT at the same time.

I just forgot about the resource issues around keeping around two gnome-shell instances. I'll have a chat with Ray to see if we want to tear down the greeter session and then launch it on demand for user switching / logout to save on resources.

The NVIDIA issue is unrelated, and I have an NVIDIA employee investigating now.
Comment 21 Mikhail 2015-05-21 06:46:23 UTC
Thank you for clarifying the position. Now the intention makes complete sense.

I do hope that some sort of implementation of loading resources on the fly could be implemented - that's a great idea!

I've re-enabled gdm but it's "only" at 200 MiB memory consumption right now: let me know if you need me to upload another output when it gets larger.
Comment 22 Mikhail 2015-05-21 06:47:04 UTC
Created attachment 303727 [details]
cat /proc/472/maps
Comment 23 Mikhail 2015-05-24 18:23:43 UTC
I will also point out another issue with this new paradigm: One must restart either GDM or the computer in order to use any new desktop environments that have been installed.
Comment 24 Ray Strode [halfline] 2015-05-26 11:58:21 UTC
that sounds like a separate bug, mind filing it in a new report?
Comment 25 Mikhail 2015-05-26 12:57:06 UTC
Created attachment 304007 [details]
cat /proc/472/maps (some days later)

Filed: https://bugzilla.gnome.org/show_bug.cgi?id=749899

Also, Here's another output of the same GDM session that's slowly grown over time: It's now at 715 MiB. GDM is my #1 process taking up RAM, followed by Gnome shell (the shell would have been much larger than it is now had I not restarted it a few days ago).
Comment 26 Ray Strode [halfline] 2015-05-26 13:39:49 UTC
the gdm process? or the gnome-shell process used by the login screen?
Comment 27 Mikhail 2015-05-26 14:30:11 UTC
that's the GDM process (PID 472) on both uploads.
Comment 28 Mikhail 2015-05-26 14:30:48 UTC
apologies, it's the gnome-shell process owned by the gdm user. Sorry for the spam.
Comment 29 Felipe Lessa 2015-06-04 14:25:43 UTC
> The NVIDIA issue is unrelated, and I have an NVIDIA employee investigating now.

Is there a bug tracking this issue given it's unrelated?  I just had GDM use 10 GB of RAM yesterday for some reason.  I only noticed it because the system start to become unstable (luckly I didn't have any swap for it to churn).  I am using NVIDIA's proprietary drivers*.

* I don't actually need them, but nouveau would randomly crash the X server every ~30 min last time I tried :(.
Comment 30 Pacho Ramos 2015-06-19 18:18:34 UTC
*** Bug 750904 has been marked as a duplicate of this bug. ***
Comment 31 Hussam Al-Tayeb 2015-07-02 06:37:23 UTC
Some of the pitfalls of caching are:

1) Caching the same pixmap resources over and over again instead of reading them from cache. This is a common mistake that many OpenGL games suffer from. For example, every time you load the same track in a car racing game, the memory usage increases by an additional 200 MB. I don't think gnome-shell suffers from this one because after the initial memory increase of 120MB when I click "Activities -> Show Applications", subsequent "Activities -> Show Applications" operations don't result in another 120MB memory increase.

2) Not invalidating objects that are no longer in use. I think gnome-shell may suffer from this one. If I update some applications then click "Activities -> Show Applications", there is around 120MB additional memory increase 
(so initial 90MB + 120MB for first load + 120MB after updating apps =330MB total).
It should invalidate and purge the first 120MB of obsoleted cached pixmaps from memory then cache the new pixmaps.
Comment 32 Britt Yazel 2015-07-02 19:09:13 UTC
Another issue I have have found that can be tracked to this bug is Bluetooth audio device support. Bug 749208 goes into this in more detail. I just thought I would draw you attention to the issue
Comment 33 Hussam Al-Tayeb 2015-07-16 07:16:30 UTC
Any updates on this? The gdm instance of gnome-shell keeps eating 50+ MB an hour which is not good on a system with only 4GB ram. That means I have to log off and log back on every few hours.
Is there at least a way to restart the gdm instance of gnome-shell without logging off?
Comment 34 Ray Strode [halfline] 2015-07-16 11:54:27 UTC
logging off doesn't restart the gdm instance of gnome-shell, so it's weird that logging off would fix it.  Maybe it's the user instance of gnome-shell that's growing for you?
Comment 35 Michael Catanzaro 2015-07-16 15:02:00 UTC
Do we agree that the following is what we want to do:

(In reply to Jasper St. Pierre from comment #20)
> It would be entirely possible to tear-down the greeter after we've switched
> to the user session, it just requires a bit more code

> I'll have a chat with Ray to see if we want to tear
> down the greeter session and then launch it on demand for user switching /
> logout to save on resources.
Comment 36 Michael Catanzaro 2015-07-16 15:06:08 UTC
That would incidentally fix the bug where the screenshield appears over the greeter
Comment 37 Clément Guérin 2015-07-16 15:07:50 UTC
Yes please...
Comment 38 Hussam Al-Tayeb 2015-07-16 15:23:05 UTC
(In reply to Ray Strode [halfline] from comment #34)
> logging off doesn't restart the gdm instance of gnome-shell, so it's weird
> that logging off would fix it.  Maybe it's the user instance of gnome-shell
> that's growing for you?

Both, sorry. The gdm instance of gnome-shell starts around 65MB then gradually grows close to ~180MB within three hours then slows down a lot afterwards.

The user instance of gnome-shell starts around 90MB. clicking activities gets it up to ~105 to 120MB. Then clicking 'show applications' brings it up to ~220MB. It starts growing slowly after that till around 300MB then even slower afterwards.

This all happens with negligible increase in Xorg memory usage.

However, on an offtopic note, Xorg suddenly jumps from 30MB to 380MB when I ctrl+alt+f2 then ctrl+alt+f3 back to gnome (subsequent ctrl+alt+f2/ctrl+alt+f3 don't cause visible memory increase). I posted the last observation in nvidia forums since this one appears to be their fault. http://pastebin.com/qmyu32G7
Comment 39 Hussam Al-Tayeb 2015-07-16 15:30:01 UTC
At least from my view, the user instance of gnome-shell can be easily restarted if its memory usage becomes an issue without interrupting my work.
The gdm instance of gnome-shell is really the problem since it cannot be restarted to save resources without logging off and restarting gdm.

Thank you for investigating.
Comment 40 Ray Strode [halfline] 2015-07-16 17:13:36 UTC
Hi,

> Do we agree that the following is what we want to do:
> > It would be entirely possible to tear-down the greeter after we've switched
> > to the user session, it just requires a bit more code

I think doing something like that makes sense, but I think it's going to require Xwayland fixes first (or mutter changes to not require Xwayland).  I believe anyway, it's been a while since I played around with it.
Comment 41 Hussam Al-Tayeb 2015-07-26 17:06:34 UTC
Interesting observation: If I disable swap, both gnome-shell instances slow down eating memory when 2.9GB/3.9GB ram is full (around 70% full).
Firefox appears to do the same.
Comment 42 Hussam Al-Tayeb 2015-07-30 18:45:18 UTC
I tried running valgrind but gnome-shell exit very quickly.

==14077== Memcheck, a memory error detector
==14077== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==14077== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==14077== Command: gnome-shell
==14077== Parent PID: 13612
==14077== 
==14077== Syscall param writev(vector[...]) points to uninitialised byte(s)
==14077==    at 0x7EF252D: ??? (in /usr/lib/libc-2.21.so)
==14077==    by 0x11F50CCA: ??? (in /usr/lib/libxcb.so.1.1.0)
==14077==    by 0x11F510C0: ??? (in /usr/lib/libxcb.so.1.1.0)
==14077==    by 0x11F51144: xcb_writev (in /usr/lib/libxcb.so.1.1.0)
==14077==    by 0xA05718D: _XSend (in /usr/lib/libX11.so.6.3.0)
==14077==    by 0xA057681: _XReply (in /usr/lib/libX11.so.6.3.0)
==14077==    by 0xF38B61C: XCompositeGetOverlayWindow (in /usr/lib/libXcomposite.so.1.0.0)
==14077==    by 0x605B14A: meta_screen_new (in /usr/lib/libmutter.so.0.0.0)
==14077==    by 0x604BCD8: meta_display_open (in /usr/lib/libmutter.so.0.0.0)
==14077==    by 0x605495B: meta_run (in /usr/lib/libmutter.so.0.0.0)
==14077==    by 0x40208C: main (in /usr/bin/gnome-shell)
==14077==  Address 0x1c58a590 is 32 bytes inside a block of size 16,384 alloc'd
==14077==    at 0x4C2C080: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==14077==    by 0xA0474E1: XOpenDisplay (in /usr/lib/libX11.so.6.3.0)
==14077==    by 0xA3A6BE5: _gdk_x11_display_open (gdkdisplay-x11.c:1424)
==14077==    by 0xA382CC5: gdk_display_manager_open_display (gdkdisplaymanager.c:463)
==14077==    by 0x64C829F: gtk_init_check (gtkmain.c:1000)
==14077==    by 0x6071C1C: meta_ui_init (in /usr/lib/libmutter.so.0.0.0)
==14077==    by 0x6054776: meta_init (in /usr/lib/libmutter.so.0.0.0)
==14077==    by 0x401DDA: main (in /usr/bin/gnome-shell)
==14077== 
==14077== Invalid read of size 4
==14077==    at 0xB7EC496: ??? (in /usr/lib/libmozjs-24.so)
==14077==    by 0xB73B91D: ??? (in /usr/lib/libmozjs-24.so)
==14077==    by 0xB739667: ??? (in /usr/lib/libmozjs-24.so)
==14077==    by 0x1CAB10B0: ???
==14077==    by 0xB7B3EAA: ??? (in /usr/lib/libmozjs-24.so)
==14077==    by 0xB52025A: ??? (in /usr/lib/libmozjs-24.so)
==14077==    by 0xB5176CC: ??? (in /usr/lib/libmozjs-24.so)
==14077==    by 0xB518760: ??? (in /usr/lib/libmozjs-24.so)
==14077==    by 0xB520167: ??? (in /usr/lib/libmozjs-24.so)
==14077==    by 0xB5176CC: ??? (in /usr/lib/libmozjs-24.so)
==14077==    by 0xB62A694: ??? (in /usr/lib/libmozjs-24.so)
==14077==    by 0xB517764: ??? (in /usr/lib/libmozjs-24.so)
==14077==  Address 0xfffffffffffffffc is not stack'd, malloc'd or (recently) free'd
==14077== 
==14077== 
==14077== Process terminating with default action of signal 11 (SIGSEGV)
==14077==  Access not within mapped region at address 0xFFFFFFFFFFFFFFFC
==14077==    at 0xB7EC496: ??? (in /usr/lib/libmozjs-24.so)
==14077==    by 0xB73B91D: ??? (in /usr/lib/libmozjs-24.so)
==14077==    by 0xB739667: ??? (in /usr/lib/libmozjs-24.so)
==14077==    by 0x1CAB10B0: ???
==14077==    by 0xB7B3EAA: ??? (in /usr/lib/libmozjs-24.so)
==14077==    by 0xB52025A: ??? (in /usr/lib/libmozjs-24.so)
==14077==    by 0xB5176CC: ??? (in /usr/lib/libmozjs-24.so)
==14077==    by 0xB518760: ??? (in /usr/lib/libmozjs-24.so)
==14077==    by 0xB520167: ??? (in /usr/lib/libmozjs-24.so)
==14077==    by 0xB5176CC: ??? (in /usr/lib/libmozjs-24.so)
==14077==    by 0xB62A694: ??? (in /usr/lib/libmozjs-24.so)
==14077==    by 0xB517764: ??? (in /usr/lib/libmozjs-24.so)
==14077==  If you believe this happened as a result of a stack
==14077==  overflow in your program's main thread (unlikely but
==14077==  possible), you can try to increase the size of the
==14077==  main thread stack using the --main-stacksize= flag.
==14077==  The main thread stack size used in this run was 8388608.
==14077== 
==14077== HEAP SUMMARY:
==14077==     in use at exit: 33,839,884 bytes in 83,731 blocks
==14077==   total heap usage: 627,746 allocs, 544,015 frees, 2,311,889,863 bytes allocated
==14077== 
==14077== LEAK SUMMARY:
==14077==    definitely lost: 41,183 bytes in 492 blocks
==14077==    indirectly lost: 5,348 bytes in 129 blocks
==14077==      possibly lost: 506,603 bytes in 2,449 blocks
==14077==    still reachable: 33,118,430 bytes in 79,734 blocks
==14077==         suppressed: 0 bytes in 0 blocks
==14077== Rerun with --leak-check=full to see details of leaked memory
==14077== 
==14077== For counts of detected and suppressed errors, rerun with: -v
==14077== Use --track-origins=yes to see where uninitialised values come from
==14077== ERROR SUMMARY: 3 errors from 2 contexts (suppressed: 0 from 0)
Comment 43 Hussam Al-Tayeb 2015-08-15 10:35:06 UTC
(In reply to Ray Strode [halfline] from comment #40)
> Hi,
> 
> > Do we agree that the following is what we want to do:
> > > It would be entirely possible to tear-down the greeter after we've switched
> > > to the user session, it just requires a bit more code
> 
> I think doing something like that makes sense, but I think it's going to
> require Xwayland fixes first (or mutter changes to not require Xwayland).  I
> believe anyway, it's been a while since I played around with it.

Anything like that planned for maybe gnome 3.20?
"gnome-shell --mode=gdm" is using 223.2 MB after only 13 hours of uptime.


I also can't figure out how to restart the gdm's instance of gnome-shell without logging off my user and restarting gdm (any idea on that too?).
Thank you.
Comment 44 Hussam Al-Tayeb 2015-08-19 11:49:11 UTC
Here is an interesting observation:
ctrl+alt+f1 then pressing escape to remove the 'curtain' completely stops the memory increase of gdm's gnome-shell instance for a few minutes.
This may be worth taking a look at.
Comment 45 David Guglielmi 2015-09-08 13:30:41 UTC
We have an issue with that change under XSpice.

When we launch GDM on XSpice we use a TCP port (not a tty) and we can't launch another xserver on the same port.
Comment 46 Ray Strode [halfline] 2015-09-08 13:47:18 UTC
David, do you mind filing another bug report?
Comment 47 David Guglielmi 2015-09-09 09:06:23 UTC
Yes, I just opened #754765
Comment 48 Jan Alexander Steffens (heftig) 2015-09-25 21:42:50 UTC
(In reply to Hussam Al-Tayeb from comment #44)

Sounds like the time-dependent background might be at fault.

You could try setting static images by running "gsettings set org.gnome.desktop.screensaver picture-uri file:///path/to/image.jpg" and "gsettings set org.gnome.desktop.background picture-uri file:///path/to/image.jpg" as GDM.
Comment 49 Hussam Al-Tayeb 2015-09-28 18:24:29 UTC
(In reply to Jan Alexander Steffens (heftig) from comment #48)
> (In reply to Hussam Al-Tayeb from comment #44)
> 
> Sounds like the time-dependent background might be at fault.
> 
> You could try setting static images by running "gsettings set
> org.gnome.desktop.screensaver picture-uri file:///path/to/image.jpg" and
> "gsettings set org.gnome.desktop.background picture-uri
> file:///path/to/image.jpg" as GDM.

How would you run a command as gdm? machinectl shell?
Comment 50 Clément Guérin 2015-09-28 18:54:12 UTC
I can't use gdm unless this issue is resolved... So I switched to lightdm for now :( I hope something will be planned for 3.20.
Comment 51 Jan Alexander Steffens (heftig) 2015-09-28 19:08:13 UTC
(In reply to Hussam Al-Tayeb from comment #49)
Yes, that seems to work. You get access to the ca.desrt.dconf bus service.
Comment 52 Britt Yazel 2015-10-09 06:03:48 UTC
Jasper, this change has caused ripple effects in bluetooth audio support in Gnome as well. Can you please take a look at bug749208? I am not against this change, but now it has been a full year and I am having to still manually hack fixes to use my bluetooth headset because of this gdm tty change
Comment 53 Gabriele Musco 2015-10-18 08:33:35 UTC
Months from the original report, this is just getting worse. I am using Arch with nvidia proprietary drivers and gdm 3.18 and now after I log in I just see a blank screen with gdm background and the cursor. I have to switch to tty2 manually after login to get to my gnome session. Please give us some love, this isn't a needed behaviour, lxdm and lightdm work fine. Thanks.
Comment 54 Hussam Al-Tayeb 2015-10-18 09:07:13 UTC
(In reply to Gabriele Musco from comment #53)
> Months from the original report, this is just getting worse. I am using Arch
> with nvidia proprietary drivers and gdm 3.18 and now after I log in I just
> see a blank screen with gdm background and the cursor. I have to switch to
> tty2 manually after login to get to my gnome session. Please give us some
> love, this isn't a needed behaviour, lxdm and lightdm work fine. Thanks.

likely bug 754814
Comment 55 Ray Strode [halfline] 2015-11-15 00:16:23 UTC
*** Bug 757490 has been marked as a duplicate of this bug. ***
Comment 56 jeremy9856 2015-11-18 23:54:38 UTC
Can we have some infos on this please.
Thank you.
Comment 57 André Klapper 2015-11-19 02:39:28 UTC
jeemy9856: Do you have a specific question? 
"Some info" is in the comments of this task.
Comment 58 jeremy9856 2015-11-19 07:26:53 UTC
(In reply to André Klapper from comment #57)
> jeemy9856: Do you have a specific question? 
Is there something actually made to fix this like said in #20 #35 #40 to avoid having 2 gnome-shell session ? If it's the case do you think it be fixed for Gnome 3.20 ?

Is Nvidia is really doing something about the high memory consumption like said in #20 ?

Since we basically don't know what is done a little bit of information can't hurt ;)

Thank you.
Comment 59 Daniel Rose 2015-12-16 22:38:08 UTC
I do hope that something is done about this bug. This does impact the viability of Gnome negatively.
Comment 60 Abi Hafshin 2015-12-17 04:25:20 UTC
I'm using Archlinux with Gnome 3.18
I can't get it, why user gdm run XWayland, gvfs, and pulseaudio. Why GDM need XWayland? Isn't GDM fully support Wayland? XWayland eats >15MB of my RAM.

Anyone can explain me why GDM need a lot of memory just for login greeter?
Comment 61 jeremy9856 2015-12-26 10:24:41 UTC
It seems that like the memory consomption problem (bug 735705, bug 701230, etc...) nothing will be done...
Comment 62 Jasper St. Pierre (not reading bugmail) 2015-12-26 20:46:18 UTC
Ray, the main gdm developer, has been on leave for a few months now. He'll be back next year.
Comment 63 jeremy9856 2015-12-26 20:51:42 UTC
(In reply to Jasper St. Pierre from comment #62)
> Ray, the main gdm developer, has been on leave for a few months now. He'll
> be back next year.

Ok, I hope he will take care of this and take a look at this bug 753615 ;)
Thanks !
Comment 64 Clément Guérin 2015-12-30 23:47:26 UTC
I compiled the GDM 3.14 branch against 3.18 and the old (sane?) behavior is back. I don't see any obvious issue so far. The downside is that Xorg is running as root now. :(
Comment 65 Hussam Al-Tayeb 2016-01-10 18:22:35 UTC
The issue is that even with gnome-shell 3.18.3 and gdm 3.18.2, the gdm version of gnome-shell keeps eating CPU unless I ctrl+alt+f1 and ctrl+alt+f2 every 10 minutes. I worked around it by enabling autologin which means only one gnome-shell process.

The leaks don't help but the main issue is the CPU usage. My core2duo 2.9GHZ is simply not enough for the gdm version of gnome-shell to keep eating 20% CPU.
The user version of gnome-shell barely uses 5% CPU.

Sadly, I don't think there is a unified api and configuration file for display managers (autologin settings, etc...) so it is not possible to use another display manager as a drop in replacement while still allowing gnome to configure it. I understand this is not something people want to hear but I feel the design of Linux desktops is not very complete.

In over 15 years of using Linux desktops, I have never had to enable autologin.

I noticed the CPU usage of gnome-shell almost always exactly corresponds to the Xorg process CPU usage. Is Wayland expected to lower the CPU usage or is that mostly up to the display driver?
Comment 66 Jasper St. Pierre (not reading bugmail) 2016-01-10 22:48:09 UTC
That's bizarre -- I have never seen gnome-shell eat CPU when VT switched away. Maybe this is another artifact of NVIDIA.
Comment 67 Hussam Al-Tayeb 2016-01-11 08:49:09 UTC
(In reply to Jasper St. Pierre from comment #66)
> That's bizarre -- I have never seen gnome-shell eat CPU when VT switched
> away. Maybe this is another artifact of NVIDIA.

I think bug 753891 isn't really fixed.
Comment 68 Michael Catanzaro 2016-01-11 18:17:19 UTC
*** Bug 748039 has been marked as a duplicate of this bug. ***
Comment 69 jeremy9856 2016-02-27 10:35:40 UTC
Is Ray, the main gdm developer, back ?
We really need some improvement here :D
Comment 70 Ray Strode [halfline] 2016-02-29 15:10:58 UTC
i'm back, but not currently looking at this bug. It's on my radar though, just behind other things.
Comment 71 jeremy9856 2016-02-29 15:19:29 UTC
(In reply to Ray Strode [halfline] from comment #70)
Welcome back ! It's nice to know that even if you are not currently looking at this bug, it's on your radar.
Thanks !
Comment 72 wiiliamchung360 2016-03-08 04:43:35 UTC
Is there a way to disable this "feature"? I'm the only user on my computer and I usually use only up to 2 tty's, one with console and one with GUI. I don't like how one tty is being "wasted" for a lock screen as it is just sitting there taking up valuable resources.
Comment 73 Hussam Al-Tayeb 2016-03-08 12:30:30 UTC
(In reply to wiiliamchung360 from comment #72)
> Is there a way to disable this "feature"? I'm the only user on my computer
> and I usually use only up to 2 tty's, one with console and one with GUI. I
> don't like how one tty is being "wasted" for a lock screen as it is just
> sitting there taking up valuable resources.
If this is a private computer at home, enabling auto-login does so.
Comment 74 Mikhail 2016-03-09 05:15:42 UTC
Unfortunately, the resource consumption still remains a problem, particularly when paired with the memory leaks gdm appears to have. I'm not particularly enthused about keeping 250 MB of ram dedicated to something that does literally nothing all day. Pair that with a second gdm process that's leaking and we have a bit of a resource consumption problem :)
Comment 75 Michael Catanzaro 2016-03-09 15:33:42 UTC
Please folks, stop complaining in this bug, it doesn't help anything. We know running the login screen twice is a problem and agreed to fix it, somebody just needs to find time to do so.
Comment 78 André Klapper 2016-11-08 08:58:14 UTC
@jeremy9856: Please refrain from adding comments to a bug report when your comment does not offer any additional information. Every comment creates notifications that someone has to read (who cannot write or fix code in that time), and advocacy is not welcome.
Comment 80 Hussam Al-Tayeb 2017-02-28 07:49:26 UTC
I just noticed that Ray Strode added a configure option in gdm master branch to restore the old behavior of using one VT with gdm running as root. I guess this means it is possible again to have only one gnome-shell instance running.
Thank you.
Comment 81 Ray Strode [halfline] 2017-08-08 15:46:55 UTC
*** Bug 785950 has been marked as a duplicate of this bug. ***
Comment 82 Andresayang 2017-08-11 20:39:31 UTC
Hi,
Sorry to come on this also, but for me, this new GDM behaviour is worth than expected.
I'm working as "IT" on company computers, try to go on with debian stretch. The problem is that we do use software that hard codding use DISPLAY :0.0.
This NEW GDM behaviour make user DISPLAY :1.0 and then our software can not work.

If you have any solution for my "small" problem, thanks.

Rgds

A.
Comment 83 André Klapper 2017-08-12 19:51:16 UTC
Sorry - this task is not a general support forum. Also see comment 75.
Comment 84 Christopher Halse Rogers 2017-09-28 13:40:21 UTC
For another datapoint - on my Ubuntu nvidia/intel hybrid system, having the greeter run a perpetual X server prevents the discrete card from being powered off.

On such a hybrid system, nvidia-settings has a button to switch between the nvidia and intel cards; this performs the update-alternatives dance to switch the libGL, DDX, and such so that the *next* X server started will use the Intel card. Since the greeter continues running, though, there's always an X server running on the nvidia card which prevents it from being powered off.
Comment 85 Luis Darui 2017-10-15 03:11:07 UTC
As a workaround, install and configure lightdm until GDM gets fixed.
Inconvenient as it is to type down the user name everytime, 
tty1-tty6 are free as before and xserver is running on tty7.
Comment 86 pakkilappachan 2018-02-22 19:54:42 UTC
https://bugzilla.gnome.org/show_bug.cgi?id=782832 another workaround by a member of manjaro linux team if you want to continue using GDM
Comment 87 Michael Catanzaro 2018-02-22 20:03:06 UTC
*** Bug 782832 has been marked as a duplicate of this bug. ***
Comment 88 purfett 2018-04-07 01:12:29 UTC
So, as of GNOME 3.28, gdm user has a memory footprint of over 300 mb on my 2gb ram, obviously single user, netbook.
Now gdm has even its own gnome-shell process.
Comment 90 Ray Strode [halfline] 2018-05-07 17:45:00 UTC
I have no idea what you're talking about. i don't see any claims being made or any assertions about relative knowledge being made. Anyway this isn't a discussion forum, please keep the bug report technical.
Comment 91 André Klapper 2018-05-08 10:58:52 UTC
@fmneto: Regarding your comment 89, either follow https://wiki.gnome.org/Foundation/CodeOfConduct or comment somewhere else. Thanks.
Comment 93 purfett 2018-05-12 20:17:34 UTC
@fmneto:
using wayland saves you from using a display manager at all, just make executable this code:

#!/bin/bash

XDG_SESSION_TYPE=wayland exec dbus-run-session gnome-session
Comment 94 Michael Catanzaro 2018-05-16 16:39:02 UTC
Hans, you're working on this?
Comment 95 Hans de Goede 2018-05-17 07:22:50 UTC
Hi,

(In reply to Michael Catanzaro from comment #94)
> Hans, you're working on this?

Yes as part of the GNOME performance hackfest I've written a set of patches to stop the greeter session after login and to start it again when necessary:

https://github.com/jwrdegoede/gdm/commits/stop-chooser-after-login

I finished this patch-set yesterday evening and consider it ready for review / merging now.

Ray, can you review these please?

Regards,

Hans
Comment 96 Stefano 2018-05-17 07:40:47 UTC
Hi,there i'm happy to test this patch in Manjaro with our community if you agree

Best
Stefano Capitani
Comment 97 Hans de Goede 2018-05-17 14:24:18 UTC
(In reply to Stefano from comment #96)
> Hi,there i'm happy to test this patch in Manjaro with our community if you
> agree

It is a patch-set of 6 (small) patches. I've ran a bunch of tests myself and it works well for me. Some wider testing would definitely be welcome.
Comment 98 Ray Strode [halfline] 2018-05-17 14:27:32 UTC
thanks for looking into this, will review your patches soon.
Comment 99 Stefano 2018-05-18 20:21:25 UTC
Done GDM with patch is in our repo ( Manjaro ) :)

Cheers 
Stefano
Comment 100 GNOME Infrastructure Team 2018-05-24 11:09:18 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gdm/issues/222.