haha123

头像

Opera 3.0
UID: 1230
帖子: 124
注册时间: 2007-09-07 10:26
在线状态: 离线

scim在opera中偶尔失去响应的解决方法

有时候opera地址栏中无法输入网址?
如题:这个是怎么回事?时不时的会发生这个问题。9.5B版的。
-----------------------
见4楼和5楼的方法。
图片
页首

Opera 中文维基 / Opera 10.61 正式版 - 极速安全的浏览体验 / Opera Mini 5.1 正式版 - 为超过 3000 款手机优化

kwindva

头像

Opera 3.0
UID: 6164
帖子: 119
注册时间: 2007-10-31 20:33
在线状态: 离线
经典问题了,重开浏览器吧。
页首
vvoody

头像

论坛版主
UID: 14
帖子: 2436
注册时间: 2007-07-30 22:22
地址: 上海
在线状态: 离线
您的首选浏览器是: Opera
为什么选择 Opera: 她太可爱了~
9.25也有按F2输入网址,无法输入的现象,然后除了alt-f4什么按键都无效
Opera,好快,好用,好玩
页首
haha123

头像

Opera 3.0
UID: 1230
帖子: 124
注册时间: 2007-09-07 10:26
在线状态: 离线
这个问题很有历史了,见http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=434180中的bug报告,里面有几句话提到了解决方法:
And the problem showed up from version 1.4.6. Current transitional
solution is changing the value of \"/FrontEnd/X11/Dynamic\" in
/etc/scim/config or ~/.scim/config from \"false\" to \"true\", which is
known to unfortunately break deadkeys usage in European keyboard layouts.
So this walk around is only recommend when such problem shows up. Seems
further investigation is required.

于是打开编辑~/.scim/config
               gedit ~/.scim/config
找到:/FrontEnd/X11/Dynamic = false
改为:/FrontEnd/X11/Dynamic = true
然后重新启动X,在opera中肆意蹂躏了下键盘,暂时没有出现和以前一样突然不能输入的情况。
(不过注意哦,这个方法有个问题上面也说到了:“ which is known to unfortunately break deadkeys usage in European keyboard layouts. ”)
-------------------------
还在网上搜索到下面几种解决方法:(本人未测试,不知道可行否,直接转过来给大家参考)

Ubuntu 7.10下scim/libx11的bug及解决方法
在7.10版本的Ubuntu中,默认的scim模式改成了XIM。造成在有些程序中无法输入文字,即使是英文字母也不行的bug。我多次在nautilus里遇到该bug。该bug很早就被报告了,只是最近才由于默认设置的改变而更加容易出现了。不过这似乎是libx11库的bug。

launchpad上给出了两种解决办法:

1. 如果不需要使用依赖 libstdc++5库的程序。可以执行
im-switch -s scim-immodule
把scim模式改掉。但是我需要用到java6,acroread这些依赖stdc++5的程序,所以该方法不适合我。

2. 如果不需要使用deadkeys,可以按以下步骤修改:
 a. 执行im-switch -s none,使得scim默认不会启动,退出并重登录
 b. 修改 ~/.scim/config 文件, 将 /FrontEnd/X11/Dynamic 改为 true
 c. 执行im-switch -s scim,使得scim默认启动。
但是我要用deadkeys来输入法文音标字母,所以该方法也不适合我。

于是有人给出了第三种方法,
 a. 按照方法2修改设定
 b. 安装 scim-uim以及 uim-latin
 c. 设置一个复合键(在gnome的键盘选项中)
 d. 启动scim,把输入法改为 UIM-Latin
 
voila!

还有个更简单的方法。既然是libx11的问题,那就应该从源头上解决,治标治本。
添加源
deb http://ppa.launchpad.net/arnegoetje/ubuntu gutsy main restricted universe multiverse
deb-src http://ppa.launchpad.net/arnegoetje/ubuntu gutsy main restricted universe multiverse
把libx11库更新即可。
-------------------------
图片
页首
haha123

头像

Opera 3.0
UID: 1230
帖子: 124
注册时间: 2007-09-07 10:26
在线状态: 离线
上面那个是参照debian的bug报告:对于ubuntu用户见https://bugs.launchpad.net/ubuntu/+source/scim/+bug/66104
这里还提到了别的方法:
Bug description

In gutsy, the default mode of scim (detemined by im-switch\'s settings \"scim\") uses XIM mode. This may cause problems in some applications and make it impossible to input anything, even if you choose the English/Keyboard input method. This happens most often in nautilus, but is also seen in gedit, gnome-terminal, etc.

This bug has been around for a long time, it only became more visible because of the change in the default settings of scim and the Ubuntu package.

There are two work arounds for this problem:

1. If you do not use any programs linked to libstdc++5 (very few of the Ubuntu official packages do, one know exception is the fglrx video driver for ATi cards; but plenty of third-party programs do, such as firefox downloaded from http://www.mozilla.com, and Adobe\'s PDF reader), you can use the scim-immodule setting in im-switch. To change the im-switch setting, just run \"im-switch -s scim-immodule\" command.

2. If you do not use the deadkeys (often seen on European keyboards, and if you don\'t know what a deadkey is, you are not using it), you can change scim\'s \"/FrontEnd/X11/Dynamic\" setting. The procedure to change this setting is:
(a) Set scim not to start automatically (because it\'s useless to change the configuration file when scim is running) using the command \"im-switch -s none\". Log out and re-login.
(b) Edit your ~/.scim/config configuration file, change the /FrontEnd/X11/Dynamic option to true.
(c) Reset scim to start automatically with command \"im-switch -s scim\". Log out and re-login.

If you are using programs linked to libstdc++5 as well as deadkeys, there is no known workaround for you. You may try the scim-bridge settings (you need to install scim-bridge-* packages first), but it\'s not clear whether it works or not (and I don\'t even know if there is a written scim-bridge setting for im-switch of not).
This description was updated. View original description.
--------------------
搜索到了这么多信息,希望对朋友们有用。
图片
页首
qkthomas

头像

Opera 1.0
UID: 15751
帖子: 10
注册时间: 2008-02-10 19:10
在线状态: 离线
其实有个很简单的方法,在网页空白地方点右键打开菜单就又可以继续输入啦
Opera/9.51 (X11; Linux x86_64; U; en)页首
czj0120



Opera 1.0
UID: 3483
帖子: 22
注册时间: 2007-09-25 21:10
在线状态: 离线
您的首选浏览器是: Opera
qkthomas 写道:其实有个很简单的方法,在网页空白地方点右键打开菜单就又可以继续输入啦


这只是折衷的办法,希望Opera能早一点修复这个Bug。。。
Opera/9.63 (Windows NT 5.1; U; Edition IBIS; zh-cn) Presto/2.1.1页首
vvoody

头像

论坛版主
UID: 14
帖子: 2436
注册时间: 2007-07-30 22:22
地址: 上海
在线状态: 离线
您的首选浏览器是: Opera
为什么选择 Opera: 她太可爱了~
Cs,这篇移到 Linux 版~
Opera,好快,好用,好玩
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009011912 Firefox/3.0.6页首
sahala232

头像

Opera 3.0
UID: 35163
帖子: 108
注册时间: 2008-12-19 21:24
在线状态: 离线
您的首选浏览器是: Opera
为什么选择 Opera: Opera公司和它的产品有苹果的影子,和苹果公司有很多相似之处
按一下alt-tab切换一下,再按alt-tab切换回来也能解决问题。
Opera/10.00 (Windows NT 6.0; U; zh-cn) Presto/2.2.0页首
早起看月亮

头像

Opera 2.0
UID: 23116
帖子: 50
注册时间: 2008-06-12 17:27
在线状态: 离线
您的首选浏览器是: Opera
已经按照4楼说法修改了,等待结果
Opera/9.80 (X11; Linux i686; U; Linux Mint; zh-cn) Presto/2.2.15 Version/10.00页首