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 720885 - gdm displays last login information too briefly to be of any use
gdm displays last login information too briefly to be of any use
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: login-screen
3.10.x
Other Linux
: Normal minor
: ---
Assigned To: Michael Catanzaro
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2013-12-21 16:20 UTC by Michael Catanzaro
Modified: 2015-03-27 15:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
user read time per charcher has been incresed from 16ms to 48ms (813 bytes, patch)
2015-03-20 10:16 UTC, sarvjeet
none Details | Review
user read time per charcher has been incresed from 16ms to 48ms (1.03 KB, patch)
2015-03-20 18:14 UTC, sarvjeet
committed Details | Review
Revert "windowManager: Block dynamic workspace updates while showing the popup" (3.77 KB, patch)
2015-03-27 13:33 UTC, drago01
rejected Details | Review
Revert "Give user 48ms to read each character of a PAM message, earlier it was 16ms" (1.04 KB, patch)
2015-03-27 13:37 UTC, drago01
none Details | Review

Description Michael Catanzaro 2013-12-21 16:20:28 UTC
After I enter my password and hit Enter, gdm displays a message indicating the last time I logged into my computer. But the message only displays for maybe half a second on my machine before gdm disappears. This is not a good user experience: if there's going to be a message, it should be displayed for long enough to be read, even by slow readers.
Comment 1 Ray Strode [halfline] 2014-01-09 19:46:39 UTC
we currently do 16ms for each letter.  So if the message 64 characters long, the user is going to get a second to read it.  We could potentially make the timeout longer, but of course, the message shouldn't be shown at all (see bug 720887 comment 1 )
Comment 2 Michael Catanzaro 2014-11-07 14:57:51 UTC
Well since the messages are gone, this could arguably be closed, but I guess 32ms or maybe even 48ms would be a more appropriate timeout.
Comment 3 sarvjeet 2015-03-13 20:11:57 UTC
@MichaelCatanzaro

So now what exactly has to be done, is it to increase timeout or the message shouldn`t be displayed at all ?
Comment 4 sarvjeet 2015-03-13 20:15:40 UTC
@MichaelCatanzaro

I have built jhbuild, now could you pleases tell where to get the code related to this bug from ?
Comment 5 Michael Catanzaro 2015-03-13 20:15:58 UTC
I would just increase the timeout. It will be a constant in one of the javascript files; I think tripling it would be a good.
Comment 6 Michael Catanzaro 2015-03-13 20:16:35 UTC
All the code is in https://git.gnome.org/browse/gnome-shell/tree/js/gdm
Comment 7 sarvjeet 2015-03-20 10:16:22 UTC
Created attachment 299932 [details] [review]
user read time per charcher has been incresed from 16ms to 48ms
Comment 8 Michael Catanzaro 2015-03-20 13:29:15 UTC
Yes, that's exactly what I was expecting. You'll want to follow the commit message guidelines, though: https://wiki.gnome.org/Git/CommitMessages
Comment 9 sarvjeet 2015-03-20 18:14:11 UTC
Created attachment 299979 [details] [review]
user read time per charcher has been incresed from 16ms to 48ms
Comment 10 Ray Strode [halfline] 2015-03-21 00:05:32 UTC
Review of attachment 299979 [details] [review]:

probably okay!
Comment 11 Michael Catanzaro 2015-03-21 02:06:47 UTC
I figure the only thing that can go wrong here is the message stays long enough to be annoying, but IMO distros should just not spam the user with login messages if they don't want users to read them....
Comment 12 drago01 2015-03-27 13:31:21 UTC
Ugh ... other then the message shouldn't exist in the fist place (it shows up for a longer time then the whole login process) this patch makes it even worse.
Comment 13 drago01 2015-03-27 13:33:06 UTC
Created attachment 300442 [details] [review]
Revert "windowManager: Block dynamic workspace updates while showing the popup"

This reverts commit aeb971c33a78308d793195127489b355bba4233a.


Seriously there has to be a better way to deal with this then slowing down 
login for messages that hardly anyone cares about.
Comment 14 drago01 2015-03-27 13:33:46 UTC
Review of attachment 300442 [details] [review]:

Wrong commit id.
Comment 15 Ray Strode [halfline] 2015-03-27 13:35:06 UTC
I think we all agree the last login message is a bad idea. but if it displays it should be readable. you can disable the last login message in authconfig now, and it'll be disabled by default in f22.
Comment 16 drago01 2015-03-27 13:37:02 UTC
Created attachment 300445 [details] [review]
Revert "Give user 48ms to read each character of a PAM message, earlier it was 16ms"

Seriously there has to be a better way to deal with this then slowing down
login for messages that hardly anyone cares about.

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

This reverts commit 88973857146f91acd3b633234afa2c2bb358392a.
Comment 17 Michael Catanzaro 2015-03-27 14:56:27 UTC
I'm of the opposite opinion: if a message is displayed, it'd be better not to log in at all until the user clicks something again to dismiss the message. Otherwise we can't know if he's read the message or not. 48ms instead of 16ms helps but it's just a hack, really: we shouldn't have disappearing messages at all.

(But I assume the messages are important. Like "4567 failed access attempts since last successful login", that should not disappear after 16ms per character. The silly Fedora authconfig spam is not what we should design for; thanks for getting rid of it, Ray.)
Comment 18 drago01 2015-03-27 15:19:00 UTC
(In reply to Michael Catanzaro from comment #17)
> I'm of the opposite opinion: if a message is displayed, it'd be better not
> to log in at all until the user clicks something again to dismiss the
> message. Otherwise we can't know if he's read the message or not. 48ms
> instead of 16ms helps but it's just a hack, really: we shouldn't have
> disappearing messages at all.
> 
> (But I assume the messages are important. Like "4567 failed access attempts
> since last successful login", that should not disappear after 16ms per
> character. The silly Fedora authconfig spam is not what we should design
> for; thanks for getting rid of it, Ray.)

You missed the part where you explain why it is important enough that it has be read *before* login.

Its not like your computer will blow up if you get informed about the failed login attempts *after* login.

But adding a delay to that takes as long or even longer as the entire boot process on modern machines to show a completely pointless message is the worst possible user experience.
Comment 19 Michael Catanzaro 2015-03-27 15:50:40 UTC
I agree that a notification after login would be better, but I have no clue if that's possible or not with PAM.

(In reply to drago01 from comment #18)
> But adding a delay to that takes as long or even longer as the entire boot
> process on modern machines to show a completely pointless message is the
> worst possible user experience.

We're agreed the messages are pointless, but that's a different bug (which as Ray says has been fixed). If a message is shown, we should assume it's important and make sure the can actually read it. Slowing down login is exactly what we want to do in this case.

* Good alternative: Display a notification after login instead, like you suggest.
* Maybe good alternative: Just don't show messages from PAM at all; replace them with hardcoded messages. (Not sure if that's feasible or desirable).
* Maybe good alternative: 32ms? Easy change....
* Not good alternative: Going back to 16ms; might as well not show it at all in this case. I can barely read it at that speed.

At any rate, I don't care too much as long as Fedora isn't using these anymore. :)
Comment 20 drago01 2015-03-27 15:59:00 UTC
(In reply to Michael Catanzaro from comment #19)
> I agree that a notification after login would be better, but I have no clue
> if that's possible or not with PAM.

PAM just gives us the message ... we could display it in gdm, paint the screen pink; play a sound or display it after login ... pam is only involved in the "give message" part.

But anyways if most users won't see it because authconfig got fixed it should be fine for now so lets just close this bug.