keyboard problem


i’m using a keyboard with spanish layout, and i’m using autologin with gnome. Every time i boot, the keyboard doesn’t function properly (for instance, 'e should produce é, but it doesn’t, altgr+2 should produce @, but it doesn’t). I then invoke:

yast2 keyboard

i change variant from ‘basic’ to something else, change it again to ‘basic’, click on ‘ok’, click ‘save’. After this operation, the keyboard behaves again

does anyone know how to solve this properly?

does anyone know how to do this without a graphic command (yast2), so i could put this in rc.local?

thanks in advance,