From: Андрей <pcwork@ok.ru> To: community@lists.altlinux.org Subject: [Comm] ввод русских символов - UTF-8, X, Firefox Date: Wed, 22 Oct 2008 11:43:31 +0400 Message-ID: <web-357953477@zbackend1.aha.ru> (raw) Добрый день! Установлен Altlinux Desktop 4.1. Файл xorg.conf выглядел таким образом (обратите внимание - ничего нет про клавиатуру, но под KDE все работало исправно (переключение на русский язык и т.п.), поэтому вопросов не вызывало): --- # With libXiconfig we don't need configuration for # ps and usb mice. # For serial mice we will set up all serial devices. # # Composite is not yet stable on even major drivers; # uncomment to enable #Section "Extensions" # Option "RENDER" "Enable" # Option "Composite" "Enable" #EndSection Section "ServerLayout" Identifier "Minimal layout" Screen "Screen0" 0 0 InputDevice "/dev/ttyS0" "CorePointer" EndSection Section "Module" Load "freetype" Load "glx" Load "dri" Load "dbe" SubSection "extmod" Option "omit xfree86-dga" EndSubSection EndSection Section "ServerFlags" Option "AutoAddDevices" "true" Option "AllowMouseOpenFail" "true" EndSection Section "InputDevice" Identifier "/dev/ttyS1" Driver "mouse" Option "Device" "/dev/ttyS1" Option "Protocol" "microsoft" EndSection Section "InputDevice" Identifier "/dev/ttyS0" Driver "mouse" Option "Device" "/dev/ttyS0" Option "Protocol" "microsoft" EndSection Section "Monitor" Identifier "Monitor0" EndSection Section "Device" Identifier "Card0|0" Driver "nvidia" EndSection Section "Screen" Identifier "Screen0" Device "Card0|0" Monitor "Monitor0" DefaultDepth 16 SubSection "Display" Depth 8 EndSubSection SubSection "Display" Depth 15 EndSubSection SubSection "Display" Depth 16 EndSubSection SubSection "Display" Depth 24 EndSubSection SubSection "Display" Depth 32 EndSubSection EndSection Section "DRI" Group "xgrp" Mode 0660 EndSection --- Затем встала такая задача: запускать компьютер с одним лишь окном Firefox (дать возможность пользователям (множеству) пользоваться только этим приложением). Для этого создал .xinitrc такого содержания: --- firefox --- Поправил .bashrc так: --- # .bashrc # User specific aliases and functions # Source global definitions #if [ -r /etc/bashrc ]; then # . /etc/bashrc #fi startx logout --- При таких условиях как только пользователь вводит логин-пароль (некий универсальный для всех, кому надо пользоваться Firefox) вместо окружения KDE он видит окно Firefox (без всяких меню и др.), а как только он выходит из приложения, то снова выводится окошко выбора пользователя и его пароля. Однако оказалось, что при этом ни в адресной строке браузера, ни в каких-либо полях загруженных страниц нет возможности вводить русские символы, т.е. по Ctrl+Shift (переключение раскладки) не происходит переключения языков - все время печатаются английские символы. После некоторого изучения вопроса решил добавить руками в xorg.conf клавиатурную часть (перед mouse частью - которых почему то две (???)): --- Section "InputDevice" Identifier "Generic Keyboard" Driver "kbd" Option "CoreKeyboard" Option "XkbRules" "xorg" Option "XkbModel" "pc105" Option "XkbLayout" "us,ru" Option "XkbVariant" ",winkeys" Option "XkbOptions" "grp:ctrl_shift_toggle,grp_led:scroll" EndSection --- Однако это не решило проблемы - по-прежнему не происходит переключения русского языка. Попробовал то же с запуском только терминального окошка - тоже нет переключения на ввод русских букв. Если все возвращаю к исходному состоянию (кроме xorg.conf - клавиатурную часть оставил), то загружается KDE и все в порядке - в разных приложениях работает переключение языка. При любых условиях переключение языка в окошке выбора пользователя работает. Попробовал поставить xxkb и прописывать запуск в .xinitrc вместе с firefox (не знаю могло ли это мне помочь), но результата не добился. LOCALE - UTF-8. Клавиатура PS/2 (важно ли это?) Мышь USB, но подключена через переходник к PS/2 разъему. Может быть в какой-то момент (на время установки системы или после) использовались USB-шные клавиатура и(или) мышь (это к вопросу "почему в xorg.conf исходном ничего не было про клавиатуру, но два раза про мышь?0"). Что тут можно посоветовать? Спасибо. Андрей --- Professional hosting for everyone - http://www.host.ru
next reply other threads:[~2008-10-22 7:43 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-10-22 7:43 Андрей [this message] 2008-10-22 8:04 ` Yuri Bushmelev 2008-10-22 8:24 ` Kirill Maslinsky 2008-10-22 8:54 ` [Comm] ввод русских символов - UTF-8 , " Yuri Bushmelev
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=web-357953477@zbackend1.aha.ru \ --to=pcwork@ok.ru \ --cc=community@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git