You are not logged in.

#1 2010-12-15 21:06:09

MilanKnizek
Member
Registered: 2005-12-13
Posts: 88

[SOLVED] GDM - how to preselect the 1st user in the list on startup

In arch, once the GDM screen appears there is no user selected (highlighted) in the list of available users. Pressing Enter does not select the 1st user in the list. The user has to use mouse or cursor keys.

In Ubuntu, once the GDM screen appears, the 1st user is already selected - then it is enough to press Enter + password + Enter...

Can anyone advice if it is a matter of GDM theme or Ubuntu's patch of GDM?

Last edited by MilanKnizek (2011-01-15 12:31:26)


--
Milan Knizek
http://knizek.net

Offline

#2 2010-12-15 22:14:59

Awebb
Member
Registered: 2010-05-06
Posts: 6,309

Re: [SOLVED] GDM - how to preselect the 1st user in the list on startup

It's a known issue. The board search will bring light to your darkness.

Offline

#3 2010-12-16 17:32:37

MilanKnizek
Member
Registered: 2005-12-13
Posts: 88

Re: [SOLVED] GDM - how to preselect the 1st user in the list on startup

It definitely must be my poor skills of selecting the correct keywords that do keep me in scary darkness.

I am happy to know how many users can now autologin, change cursor theme, avoid gdm crashes, choose users for display in greeter, yet my life continues to be poisened by the little annoyance I described earlier.

My days are not over yet and I keep on searching the light...


--
Milan Knizek
http://knizek.net

Offline

#4 2010-12-16 17:37:46

jarryson
Member
Registered: 2007-02-18
Posts: 298

Re: [SOLVED] GDM - how to preselect the 1st user in the list on startup

+1, i thought it's my mistake ro something that GDM can't select the user, had to use mouse to choose

Offline

#5 2010-12-17 20:21:53

MilanKnizek
Member
Registered: 2005-12-13
Posts: 88

Re: [SOLVED] GDM - how to preselect the 1st user in the list on startup


--
Milan Knizek
http://knizek.net

Offline

#6 2010-12-17 20:49:07

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] GDM - how to preselect the 1st user in the list on startup

upstream says is metacity fault

Last edited by wonder (2010-12-17 20:49:22)


Give what you have. To someone, it may be better than you dare to think.

Offline

#7 2010-12-17 22:39:08

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: [SOLVED] GDM - how to preselect the 1st user in the list on startup

How could it be a metacity fault if the windowmanager has yet to be selected?? hmm


Knute

Offline

#8 2010-12-17 23:29:12

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] GDM - how to preselect the 1st user in the list on startup


Give what you have. To someone, it may be better than you dare to think.

Offline

#9 2010-12-18 01:46:50

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: [SOLVED] GDM - how to preselect the 1st user in the list on startup

So you are saying that metacity is started when gdm starts???

If that's the case, then metacity would have to be in the "Depends On" list when you do a

 7:39PM % pacman -Si gdm                                                        ~ (knute) pts/0
Repository     : extra
Name           : gdm
Version        : 2.32.0-1
URL            : http://www.gnome.org
Licenses       : GPL
Groups         : gnome-extra
Provides       : None
Depends On     : libcanberra>=0.25  libxklavier>=5.0  tcp_wrappers  gnome-session>=2.32.0
                 upower>=0.9.5  consolekit>=0.4.1-4
Optional Deps  : gnome-panel-bonobo: needed for user switch applet
Conflicts With : fast-user-switch-applet
Replaces       : fast-user-switch-applet
Download Size  : 977.45 K
Installed Size : 7340.00 K
Packager       : Ionut Biru <ibiru@archlinux.org>
Architecture   : i686
Build Date     : Mon 27 Sep 2010 12:50:11 PM CDT
MD5 Sum        : 2bee9dc53f568bc8ab78b61fea67781e
Description    : Gnome Display Manager (a reimplementation of xdm)

 7:40PM %                                                                       ~ (knute) pts/0

Hrmmm.... Don't see that as a depends, so I think that the person that stated
that they thought it was something with metacity, I think is incorrect.

It just doesn't make sense to me that you would have to start a windowmanager BEFORE you login.  I don't have a solution, it's just that the suggestion doesn't make sense to me.


Knute

Offline

#10 2010-12-18 07:23:29

MilanKnizek
Member
Registered: 2005-12-13
Posts: 88

Re: [SOLVED] GDM - how to preselect the 1st user in the list on startup

Knute wrote:

So you are saying that metacity is started when gdm starts???
... cut on purpose ...
Hrmmm.... Don't see that as a depends, so I think that the person that stated
that they thought it was something with metacity, I think is incorrect.

It just doesn't make sense to me that you would have to start a windowmanager BEFORE you login.  I don't have a solution, it's just that the suggestion doesn't make sense to me.

Hey! My arch says the same (after reboot, gdm loaded, no user logged in X):

[root@comp ~] # ps aux | grep metacity
gdm       4197  0.0  0.3 265300 12336 ?        Sl   08:15   0:00 metacity
root      4309  0.0  0.0   8500   960 tty1     S+   08:16   0:00 grep metacity

Wondering, if it can help to use other window manager (or none, if possible).

EDIT: Ubuntu 10.10 on my netbook uses also metacity, yet the bug does not appear there.

Last edited by MilanKnizek (2010-12-18 07:38:47)


--
Milan Knizek
http://knizek.net

Offline

#11 2010-12-18 17:21:16

Stunts
Member
From: Portugal
Registered: 2009-03-28
Posts: 339
Website

Re: [SOLVED] GDM - how to preselect the 1st user in the list on startup

I suppose it could be tested by editing the following geconf entry for the user GDM:

/desktop/gnome/session/required_components/windowmanager

and changing it to openbox, or something. I remember trying it with compiz some time ago, but it slowed down my startup quite a bit.

Offline

#12 2010-12-18 18:00:20

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] GDM - how to preselect the 1st user in the list on startup

guys, don't make me slap somebody. STOP SAYING THAT IS NOT IN UBUNTU.

look at how many patches is in gdm ubuntu. is simple to point what's the one that fix the "issue".

try them one by one and if you find it let me know and i'll include it in the package


Give what you have. To someone, it may be better than you dare to think.

Offline

#13 2010-12-18 19:00:54

Stunts
Member
From: Portugal
Registered: 2009-03-28
Posts: 339
Website

Re: [SOLVED] GDM - how to preselect the 1st user in the list on startup

Wonder's solution is in fact much more mature...
But I must say I loled at your happy face avatar and the "slapping" part of your post.
I am currently testing some of Ubuntu's patches and see if that solves things. However, some of them won't work in GDM 2.32 (ubuntu uses 2.30).

Offline

#14 2010-12-18 19:34:29

Stunts
Member
From: Portugal
Registered: 2009-03-28
Posts: 339
Website

Re: [SOLVED] GDM - how to preselect the 1st user in the list on startup

OK, so after working on this for a while I have reached a roadblock.
I have tested a few of ubuntu's patches that worked fine, but none solved the problem.
However, one of the ubuntu patches _appears_ (from what I can read in the code, but I have never programmed in C before) to solve the problem, but I can't apply this patch.
The patch can be found here: http://archive.ubuntu.com/ubuntu/pool/m … ian.tar.gz
The file has plenty of patches, but the one I _think_ may solve the problem is this:
29_switch_user.patch
After removing a few parts of the patch that failed to apply (mostly related to plymouth), I am left with this:
http://pastebin.com/4RXybNnw

I modified the official PKGBUILD in order to add this patch too, but now it fails to compile. I have no idea what the error means, but is there some workaround for it? Or is it refering to something specific to Ubuntu/GDM 2.30.

Here is the error:

gdm-simple-slave.c: In function 'gdm_simple_slave_set_username':
gdm-simple-slave.c:562:28: error: 'GdmSimpleSlavePrivate' has no member named 'username'
gdm-simple-slave.c:563:20: error: 'GdmSimpleSlavePrivate' has no member named 'username'
gdm-simple-slave.c: In function 'gdm_simple_slave_set_property':
gdm-simple-slave.c:1288:14: error: 'PROP_USERNAME' undeclared (first use in this function)
gdm-simple-slave.c:1288:14: note: each undeclared identifier is reported only once for each function it appears in
gdm-simple-slave.c: In function 'gdm_simple_slave_get_property':
gdm-simple-slave.c:1308:14: error: 'PROP_USERNAME' undeclared (first use in this function)
gdm-simple-slave.c:1309:51: error: 'GdmSimpleSlavePrivate' has no member named 'username'
gdm-simple-slave.c: In function 'gdm_simple_slave_class_init':
gdm-simple-slave.c:1348:42: error: 'PROP_USERNAME' undeclared (first use in this function)
make[3]: *** [gdm-simple-slave.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/home/francisco/Desktop/extra-x86_64.r102254/src/gdm-2.32.0/daemon'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/francisco/Desktop/extra-x86_64.r102254/src/gdm-2.32.0/daemon'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/francisco/Desktop/extra-x86_64.r102254/src/gdm-2.32.0'
make: *** [all] Error 2

Help anyone?
Thanks.

Offline

#15 2010-12-20 07:55:48

jarryson
Member
Registered: 2007-02-18
Posts: 298

Re: [SOLVED] GDM - how to preselect the 1st user in the list on startup

yes, seems it's metacity's problem.

#cat /var/log/gdm/\:0-greeter.log
windowmanager warnning:CurrentTime used to choose focus window; focus window may not be correct.
windowmanager warnning:Got a request to focus the no_focus_window with a timestamp of 0.  This shouldn't happen!

Offline

#16 2010-12-20 13:52:28

Stunts
Member
From: Portugal
Registered: 2009-03-28
Posts: 339
Website

Re: [SOLVED] GDM - how to preselect the 1st user in the list on startup

So, does that mean that I should instead be checking what patches Ubuntu uses on metacity rather then GDM?

Offline

#17 2010-12-29 14:49:48

ZoSoDaltrey
Member
Registered: 2010-12-29
Posts: 35

Re: [SOLVED] GDM - how to preselect the 1st user in the list on startup

Hello I'm a new user in Arch, so I can't solve this problem, but I can tell you in a virtualbox machine with guest additions installed it works perfectly, maybe looking there you can get more ideas.

Offline

#18 2010-12-29 15:12:13

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: [SOLVED] GDM - how to preselect the 1st user in the list on startup

i dont think this bug was present in 2.30

so that might be the reason ubuntu doesnt have it.

Offline

#19 2011-01-13 19:47:21

Stunts
Member
From: Portugal
Registered: 2009-03-28
Posts: 339
Website

Re: [SOLVED] GDM - how to preselect the 1st user in the list on startup

Latest GDM fixed it for me.
Anyone know what it was?

Offline

#20 2011-01-13 19:49:39

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] GDM - how to preselect the 1st user in the list on startup

Stunts wrote:

Latest GDM fixed it for me.
Anyone know what it was?

yes. bug in 2.32.0 and fixed by this patch: http://projects.archlinux.org/svntogit/ … oser.patch

is pretty simple to find out yourself by looking the repostory.
http://projects.archlinux.org/svntogit/ … b097c66702


Give what you have. To someone, it may be better than you dare to think.

Offline

#21 2011-01-13 19:57:09

Stunts
Member
From: Portugal
Registered: 2009-03-28
Posts: 339
Website

Re: [SOLVED] GDM - how to preselect the 1st user in the list on startup

Thank you!
Very useful info. I will use it in the future!

Offline

#22 2011-01-15 08:42:02

MilanKnizek
Member
Registered: 2005-12-13
Posts: 88

Re: [SOLVED] GDM - how to preselect the 1st user in the list on startup

Since I started the thread, I should say it works now, too. Hence I do so :-)


--
Milan Knizek
http://knizek.net

Offline

#23 2011-01-15 11:10:51

Awebb
Member
Registered: 2010-05-06
Posts: 6,309

Re: [SOLVED] GDM - how to preselect the 1st user in the list on startup

Now I'm so used to pressing down->enter->password->enter, that I also do this when I'm in front of a windows machine at work. Now it's gone, leaving me behind with bad habits. GDM is a woman.

Stunts wrote:

Thank you!
Very useful info. I will use it in the future!

How about a [solved]? :-)

Last edited by Awebb (2011-01-15 11:14:33)

Offline

Board footer

Powered by FluxBB