Gaim and Firefox can't get input from keyboard.

Bug #106087 reported by BlueT - Matthew Lien - 練喆明
6
Affects Status Importance Assigned to Milestone
Ubuntu
Invalid
Undecided
Unassigned
scim (Ubuntu)
New
Low
Unassigned

Bug Description

Distro: Ubuntu 7.04 Feisty (following the latest updates everyday)
Env: Gnome, Compiz, Xen (2.6.19-4-generic), zh_TW.UTF-8, SCIM.
Problem at:
    firefox 2.0.0.3+1-0ubuntu2
    Gaim 2.0.0+beta6-1ubuntu4
    Gnome-Terminal 2.18.0-0ubuntu1
Description:
    1. Firefox:
        Sometimes firefox get no response of any keyboard input. In URL box, key binding, keyboard shortcuts
 and else. Cannot switch input methed/language. Only mouse can still use.
        No special web stie or else, I was surfing the web, everything's going well. And after takeing
 a break, make a cup of coffee then back to my desk, the firefox got no response from keyboard. It just
 hangs there. The only solution is "$ killall firefox-bin" to kill all firefox and open again.
       I can find no error log. :-(
    2. Gaim:
        Sometimes Gaim got no response of any keyboard input, too. The situation are almost all the
 same of firefox, but sometimes i can type 1 or a little more charactors and sometimes no before it hangs-up
. In a few times, I can type someting in the input box (there won't be anything inputed/display) in
 tab 1, switch to another tab and switch back, what I typed will display on the input box just like i'm
 typing very fast. But this rarely wroks.
    3. Gnome-Terminal
        All the same with the situations of gaim, even the mystery Tab switching magic.
Reproduce:
    Gaim:
        It's easy. Open Gaim in the first virtual desk, open a chat window and chat with someone or many
 people (multi-tabs). And then focus on gaim main window (contact list), use ctrl+alt+shift+"->" to move
 the gaim main window to the second virtual desk. Now ctrl+alt+"<-" to back to the first virtual desk
, focus on the chatting windows, try to continue chatting. And it happens.
        Gaim got no input from keyboard happenes in many situation, but it always happens when I place
 the main window and chatting window on different virtual desk. It's the most easy way to reproduce,
 i guess.
    FireFox, Gnome-Terminal:
        I didn't find how to reproduce, though it happens frequently.

description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug. Does it happen without using scim?

Changed in gtk+2.0:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: Unconfirmed → Needs Info
Revision history for this message
BlueT - Matthew Lien - 練喆明 (bluet) wrote :

nope.
And after killing all scim processes and $ scim &
usually everything will be ok again.

Changed in gtk+2.0:
assignee: desktop-bugs → nobody
status: Needs Info → Unconfirmed
Revision history for this message
Ming Hua (minghua) wrote : Re: [Bug 106087] Gaim and Firefox can't get input from keyboard.

On Thu, Apr 19, 2007 at 08:45:00AM -0000, Matthew Lien wrote:
>
> Distro: Ubuntu 7.04 Feisty (following the latest updates everyday)
> Env: Gnome, Compiz, Xen (2.6.19-4-generic), zh_TW.UTF-8, SCIM.

I have heard that scim doesn't work well with compiz/beryl. Never
tested myself though.

Does other input methods work in compiz?

Ming
2007.05.16

Revision history for this message
Ming Hua (minghua) wrote :

What is your setting for scim? Please show the output of the following commands:

echo $GTK_IM_MODULE
grep "/FrontEnd/X11/Dynamic" /etc/scim/config
grep "/FrontEnd/X11/Dynamic" ~/.scim/config
im-swtich -l

Thanks.

Revision history for this message
matthias (matthias-lein-web) wrote :

Hi Ming Hua!

I can confirm that I have the same problem. I'm using Xubuntu 7.04 (feisty) with a 2.6.20-16-generic kernel, an XFCE desktop, gaim 2.0.0beta6 and I'm using SCIM for typing Chinese while using an English system. I can't type in gaim at all - not even the shortcuts to change the input method work here (Firefox seems to be fine though...)

> echo $GTK_IM_MODULE
xim

> grep "/FrontEnd/X11/Dynamic" /etc/scim/config
/FrontEnd/X11/Dynamic = false

> grep "/FrontEnd/X11/Dynamic" ~/.scim/config
/FrontEnd/X11/Dynamic = false

> im-switch -l
Your input method setup under en_NZ locale as below.
=======================================================
The configuration "/home/matthias/.xinput.d/en_NZ" is defined as a link pointing to
scim_xim
This private configuration supersedes the system wide default.
=======================================================
The system wide default is pointed by "/etc/alternatives/xinput-all_ALL" .
xinput-all_ALL - status is auto.
 link currently points to default
scim - priority 0
scim-immodule - priority 0
default - priority 10
none - priority 0
Current `best' version is default.
=======================================================
The available input method configuration files are:
default none scim scim-chewing scim-hangul scim-hangul_xim scim-immodule scim-pinyin scim_xim th-xim
=======================================================

Revision history for this message
Ming Hua (minghua) wrote :

Hi matthias,

Please test the following:
1. Disable scim. The best way is probably run 'im-switch -s none', then logout and login again. You can also just use Alt-F1 to switch to terminal before XFCE login and do step 2 if you are familiar with that.
2. Make sure scim isn't started. Edit your ~/.scim/config file, change the '/FrontEnd/X11/Dynamic' setting to 'true'.
3. Renable scim, by running 'im-switch -s scim_xim'. Logout and login again. Now scim should be automatically started as before.

See if it helps.

Revision history for this message
matthias (matthias-lein-web) wrote :

Hi Ming Hua!

Thanks for the fix - it actually worked, but apparantly it breaks something else because my dead-keys are now truly dead. I guess I have to find a different solution.

Cheers,
Matthias

Revision history for this message
Ming Hua (minghua) wrote :

Hi Matthias,

Yes, dead-key won't work with '/FrontEnd/X11/Dynamic = true‘. That's the reason it's set to false by default.

In your case, you probably don't want to use XIM. Try 'im-switch -s scim-immodule' if you don't use Qt/KDE applications. Be aware that you may be bitten by bug #2246 though.

The second option is scim-bridge.

Revision history for this message
matthias (matthias-lein-web) wrote :

Hi Ming Hua,

Thanks a lot for the help. I'll probably give scim-immodule a go, I don't think that I have many libstdc++5 apps around. With my Xubuntu system I try to stay clear of Qt/GTK+ libraries to make sure everything runs smoothly on my legacy hardware.

Thanks a lot!

Cheers,
Matthias

Revision history for this message
Bryce Harrington (bryce) wrote :

Sounds like a scim bug. Moving out of general Ubuntu.

Revision history for this message
Cao Yi (iridiumcao) wrote :

Thank you very much, Ming Hua!
You help me to solve the same problem in the end, witch is recorded here:
http://forum.ubuntu.org.cn/viewtopic.php?p=395082

非常感谢!终于能打中文了!

Revision history for this message
Li Wei (liwei) wrote :

This problem is also observed in 7.10. Affected applications include Gnome Terminal and Firefox.

Revision history for this message
vyvee (vyvee1975) wrote :

I can confirm this problem on 7.10 Gutsy too. Changing the setting in ~/.scim/config.
However, note that you should change back to 'im-switch -s scim' in the final step.

Revision history for this message
Gnurou (gnurou) wrote :

Switching to scim-bridge definitely solved the problem for me. Thanks for suggesting it!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.