Hello.
I was investigating, why when I choose Russian keyboard layout during installation, it changes language in lightdm to Russian by default, and as it results in Xorg layout being just 'ru', not 'us,ru' and doesn't set any switch keys, you can stuck trying to enter login name in Russian.

The issue is evident and strange. I mean, I don't know what they should do. Installer calls /usr/bin/kbd -s, and you can select your layout. Then HAL in https://github.com/illumos/illumos-gate/blob/f7877f5d39900cfd8b20dd673e5ccc1ef7cc7447/usr/src/cmd/hal/probing/xkb/probe-xkb.c#L334 sets input.x11_options.XkbLayout to "ru". When X starts and finds it, it does what it was asked to do... But we never set alternative layout. We never set toggle keys. So, user can't switch to English.

For now I think I'll just change
/usr/bin/kbd -s
to
/usr/bin/kbd -s US-English

But it seems to be not very correct. I suppose, there could be users with some strange keyboard layouts where this will not work. How should we fix it? Should HAL prober be more intellectual and set XKB layout to 'us,DETECTED_LAYOUT' and also set some switch keys?

--
System Administrator of Southern Federal University Computer Center

------------------------------------------
illumos-discuss
Archives: 
https://illumos.topicbox.com/groups/discuss/discussions/T83b946bc033900b2-M124a9f5d08500ba0d64d0065
Powered by Topicbox: https://topicbox.com

Reply via email to