Bug 492542

Summary: gnome-keyboard-properties doesn't obey setting passed down from anaconda nor gdm
Product: [Fedora] Fedora Reporter: David Nielsen <gnomeuser>
Component: gdmAssignee: jmccann
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: high    
Version: rawhideCC: control-center-maint, corentin.perard, cschalle, dqarras, igor, jmccann, mads, mclasen, rstrode
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-05-02 05:43:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 446452    

Description David Nielsen 2009-03-27 11:40:48 UTC
Description of problem:

On a fresh install from Rawhide when selecting danish with a danish keyboard layout upon first log in these settings are correctly reflected in gdm however when gnome is up and running gnome-keyboard-properties is set to evdev controlled with a USA layout.

Version-Release number of selected component (if applicable):
control-center-2.25.92-1.fc11.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Install to a non-US layout setting
2. start up gdm and note how the setting is correct
  
Actual results:
Once logged in note how gnome-keyboard-proporties does not correctly reflect this setting.

Expected results:
Setting should be retained

Additional info:
x86_64, da_DK.UTF-8

Comment 1 Matthias Clasen 2009-03-28 00:02:14 UTC
control-center is not involved here, this is between gdm and gnome-settings-daemon

Please tell us 

a) what .dmrc contains after you initially log in

b) what the GDM_KEYBOARD_LAYOUT env var contains

Comment 2 Matthias Clasen 2009-03-28 00:24:23 UTC
Moving to gdm for now

Comment 3 David Nielsen 2009-03-28 08:04:55 UTC
Content of .dmrc

[Desktop]
Language=da_DK.UTF-8
Layout=dk

GDM_KEYBOARD_LAYOUT is empty

Comment 4 Matthias Clasen 2009-03-29 14:46:40 UTC
Which version of gdm ?

Comment 5 David Nielsen 2009-03-31 23:08:30 UTC
the problem presists with gdm-2.26.0-7.fc11.x86_64, I apologize for the delay.

Comment 6 David Nielsen 2009-04-24 06:47:58 UTC
Still happens on a fresh install (netinstall as of Thu 23th) and a fresh profile.
 
gdm-2.26.1-3.fc11.x86_64

Comment 7 Corentin Perard-Gayot 2009-04-24 19:32:05 UTC
Same problem here with french !

.dmrc :

[Desktop]
Language=fr_FR.UTF-8
Layout=fr

gdm-2.26.1-3.fc11.i586 : seems it's not related in any way to arch.

Comment 8 Daniel Qarras 2009-04-26 08:41:15 UTC
Same problem here. However, if there will be a change, perhaps this would be a good opportunity to take into consideration also the detection of the keyboard model as has been discussed in Bug 330881

https://bugzilla.redhat.com/show_bug.cgi?id=330881

So, for example, an Acer laptop user would get keyboard layout "Acer laptop" automagically and thus all inet etc keys. Although now with latest evdev changes I'm not quite is it really needed.

Comment 9 Matthias Clasen 2009-04-26 17:55:59 UTC
We are using the evdev keyboard driver, so keyboard model should always be 'evdev-controlled keyboard'

Comment 10 Igor Pires Soares 2009-04-26 22:29:32 UTC
Same problem for br-abnt (Brazil)

.drmc:

[Desktop]
Language=pt_BR.UTF-8
Layout=br

GDM version:
gdm-2.26.1-3.fc11.i586

As a result the keyboard use is really broken in F11.

Comment 11 Matthias Clasen 2009-04-28 03:44:53 UTC
Can all of you who see this problem tell me

a) the output of echo $GDM_KEYBOARD_LAYOUT

b) the output of cat /etc/sysconfig/keyboard

Comment 12 Igor Pires Soares 2009-04-28 04:14:50 UTC
Here it goes

[fedora11@f11beta ~]$ echo $GDM_KEYBOARD_LAYOUT

[fedora11@f11beta ~]$ cat /etc/sysconfig/keyboard
KEYBOARDTYPE="pc"
KEYTABLE="br-abnt2"

Humm... I guess $GDM_KEYBOARD_LAYOUT shouldn't be empty

Comment 13 Matthias Clasen 2009-04-28 04:43:46 UTC
/etc/sysconfig/keyboard should also have xkb information, like this:

cat /etc/sysconfig/keyboard 
KEYBOARDTYPE="pc"
KEYTABLE="et"
LAYOUT="ee"
MODEL="pc105"
OPTIONS=""
VARIANT=""

but actually, gdm does take its keyboard information from hal devel properties these days, so the output of 

lshal | grep xkb 

would also be interesting

Comment 14 Igor Pires Soares 2009-04-29 00:49:10 UTC
Here it is:

[fedora11@f11beta ~]$ lshal | grep xkb
  input.xkb.layout = 'us'  (string)
  input.xkb.model = 'evdev'  (string)
  input.xkb.rules = 'base'  (string)
  input.xkb.variant = ''  (string)
  input.xkb.layout = 'us'  (string)
  input.xkb.model = 'evdev'  (string)
  input.xkb.rules = 'base'  (string)
  input.xkb.variant = ''  (string)
  input.xkb.layout = 'br'  (string)
  input.xkb.model = 'abnt2'  (string)
  input.xkb.options = 'terminate:ctrl_alt_bksp'  (string)
  input.xkb.rules = 'base'  (string)
  input.xkb.variant = ''  (string)

This was also tested with gdm-2.26.1-4.fc11.i586

Comment 15 Matthias Clasen 2009-04-30 03:20:06 UTC
Can you all please try to see if this build fixes things for you ?

http://koji.fedoraproject.org/koji/buildinfo?buildID=100317

Comment 16 Corentin Perard-Gayot 2009-04-30 13:37:19 UTC
fr_FR : fixed !

Comment 17 Igor Pires Soares 2009-04-30 20:26:02 UTC
Also fixed things for br-abnt2. Thanks!

Comment 18 Matthias Clasen 2009-05-02 05:43:11 UTC
Ok, I'll take this as sufficient proof that things are working now.