Bug 337238 - [kbd] When entering Cyrilic letters they are not displayed in a framebuffer console
Summary: [kbd] When entering Cyrilic letters they are not displayed in a framebuffer c...
Status: RESOLVED FIXED
: 337359 (view as bug list)
Alias: None
Product: openSUSE 11.0
Classification: openSUSE
Component: Other (show other bugs)
Version: Beta 3
Hardware: Other Other
: P5 - None : Normal with 21 votes (vote)
Target Milestone: ---
Assignee: Juergen Weigert
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-26 19:09 UTC by Nikolay Derkach
Modified: 2008-06-04 17:02 UTC (History)
5 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
UTF variant of ru1.map.gz (3.12 KB, application/x-gzip)
2008-05-17 12:49 UTC, Forgotten User JoZGrGEMhM
Details
ru1_win-utf.map.gz - winkeys ru1-utf variant (3.20 KB, application/x-gzip)
2008-05-17 13:44 UTC, Forgotten User JoZGrGEMhM
Details
ru-utf.map.gz, used and workinkg fine in all others linux distribution (6.97 KB, application/x-gzip)
2008-05-19 11:11 UTC, Forgotten User JoZGrGEMhM
Details
werners-change.patch (3.87 KB, patch)
2008-06-04 17:01 UTC, Mike Fabian
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolay Derkach 2007-10-26 19:09:40 UTC
I'm using ru1 keymap. After toggling Cyrillic characters with double alt if I enter some characters it's impossible to see anything on the input. The characters are really entered but not displayed while typing. If I enter something from a console to a text file, after that in X.Org those characters are displayed in the wrong encoding.
Comment 1 Nikolay Derkach 2007-10-27 12:36:16 UTC
*** Bug 337359 has been marked as a duplicate of this bug. ***
Comment 2 Forgotten User JoZGrGEMhM 2008-05-17 10:47:13 UTC
In Beta 3 still no working Cyrillic keymap. Setted by default ru1.map.gz dont work at all. Only spaces typed instead of cyrillic chars.
Comment 3 Forgotten User JoZGrGEMhM 2008-05-17 12:49:35 UTC
Created attachment 216175 [details]
UTF variant of ru1.map.gz

I'we made itf version of ru1.map.gz that used by default in russian installation. I'we just replaced ASCII codes by UTF keycodes. All alphabetical key looks work fine, functional works too.
Comment 4 Forgotten User JoZGrGEMhM 2008-05-17 12:54:37 UTC
Please test if it works fine for ou by loading keymap with command 
loadkeys ru1-utf.map.gz 
or by placing it into /usr/share/kbd/keymaps/i386/qwerty/  and setting 
KEYTABLE="ru1-utf.map.gz"
in  /etc/sysconfig/keyboard 
Comment 5 Forgotten User JoZGrGEMhM 2008-05-17 13:44:29 UTC
Created attachment 216178 [details]
ru1_win-utf.map.gz - winkeys ru1-utf variant

Made some changes to get more often using russian layout called winkeys in X. In that layout Shift +7 types '?', comma and period located near right shift.
Comment 6 Forgotten User JoZGrGEMhM 2008-05-19 10:09:00 UTC
Have tested this keymaps and got other problem, keymaps works only when loaded with loadkeys command, but when loaded from /etc/sysconfig/keyboard with rckbd script layots dont switch, or switch, but cant input anything in russian, cursor just stay in one place.
Comment 7 Juergen Weigert 2008-05-19 10:42:12 UTC
added data/keymaps/i386/qwerty/ru1_win-utf.map
submitted to stable.

thanks!

Comment 8 Forgotten User JoZGrGEMhM 2008-05-19 11:11:23 UTC
Created attachment 216359 [details]
ru-utf.map.gz, used and workinkg fine in all others linux distribution

Juergen, please read my post above, this keymap works fine only loaded directly with loadkeys command, and dont work when loaded with script. The same thing happened with ru-utf.map.gz that used in all other distribution. It works when loaded with loadkeys and cant switch layout when loaded by script, but in all other distribution this keymap works fine.

And another one question: Where from all this russian keymaps /keymaps/i386/qwerty/ru*, it all for 8-bit local terminals.
Comment 9 Forgotten User JoZGrGEMhM 2008-05-19 11:25:29 UTC
/keymaps/i386/qwerty/ua-utf.map
that already exist in opensuse kbd packages have the same problem. It works fine loaded by loadkeys command and dont work when loaded by /etc/init.d/kbd script.
Comment 10 Juergen Weigert 2008-05-19 13:07:09 UTC
Adding suggested keymaps to the package is what I *can* do.
I cannot debug the rc issue.
Comment 11 Forgotten User JoZGrGEMhM 2008-05-19 13:32:08 UTC
I have found that keymaps working fine when loaded by script if it runned from text terminal and dont work correctly if it runned from an X terminal.

Just test it. Set some utf keymap in /etc/sysconfig/keyboard, for example bg_pho-utf8.map.gz, ua-utf.map.gz or one of attached. Next run rckbd restart from text terminal. Test keymap, just switch layout by Ctrl+Shift or by two Alts and try to type. It should work. Next run rckbd restart from an X terminal and try to switch layout in text terminal and type, it cant type anything.

When rckbd running on boot result the same as I run it from X terminal and keymap dont work.

I think it problem in /etc/init.d/kbd script or in loadkeys.

Maybe you should reassign bug to someone who can debug that script and loadkeys? 
Comment 12 Stephan Kulow 2008-05-29 07:20:43 UTC
Mike, any experience with loadkeys?
Comment 13 Mike Fabian 2008-06-04 12:41:16 UTC
I can reproduce that if I use the following settings:

mfabian@magellan:~$ grep KEYTABLE /etc/sysconfig/keyboard
# e.g. KEYTABLE="de-latin1-nodeadkeys", "us" or empty for US settings
KEYTABLE="ru1_win-utf"
#  or KEYTABLE will be used then -- most keyboard maps don't have a
mfabian@magellan:~$ grep CONSOLE_FONT /etc/sysconfig/console 
CONSOLE_FONT="Cyr_a8x16.psfu"
mfabian@magellan:~$

The Russian keyboard works if “sudo rckbd restart” is executed on the
Linux console but it does not work if “sudo rckbd restart” is started
from a terminal running under X.

But why is it necessary to run this under X?

Comment 14 Juergen Weigert 2008-06-04 13:03:10 UTC
Thanks Mike for testing this.
rckbd restart is not supported from within an X terminal.
rckbd only works for the text console and must not be called while X is running.

rckbd should work on reboot just the same as when called manually from a console.
Comment 15 Mike Fabian 2008-06-04 15:46:24 UTC
Now I tested booting. I booted 3 times:

- once everything worked
- two times the Russian keyboard did not work showing the same
  symptoms as when running "sudo rcxkb restart" under X

I.e. I can reproduce the problem of the reporter probably most
of the time.

 
Comment 16 Mike Fabian 2008-06-04 16:39:53 UTC
commenting out the line

    ( dumpkeys | loadkeys -C "$KBD_TTY" --unicode ) > /dev/null 2>&1

in /etc/init.d/kbd seems to make it work.

Probably, this line is not necessary when the keymap is already
a native unicode keymap like the reporter’s ru1_win-utf.map.gz.

But commenting this out might cause trouble
when using non-Unicode keymaps like de-latin1-nodeadkeys.
Comment 17 Mike Fabian 2008-06-04 16:57:22 UTC
Looks like Werner fixed it ☺!
Comment 18 Mike Fabian 2008-06-04 17:01:47 UTC
Created attachment 220160 [details]
werners-change.patch

Werners patch to fix this.
Comment 19 Mike Fabian 2008-06-04 17:02:26 UTC
FIXED.