The Following 20 Users Say Thank You to Xagoln For This Useful Post: | ||
|
2011-05-11
, 15:42
|
|
Posts: 2,021 |
Thanked: 1,060 times |
Joined on Apr 2010
@ Hong Kong
|
#2
|
|
2011-05-11
, 16:06
|
|
Posts: 1,444 |
Thanked: 461 times |
Joined on Dec 2010
@ pakistan
|
#3
|
|
2011-05-11
, 16:25
|
Posts: 47 |
Thanked: 27 times |
Joined on Apr 2011
|
#4
|
|
2011-05-11
, 16:27
|
Posts: 262 |
Thanked: 315 times |
Joined on Jun 2010
|
#5
|
|
2011-05-11
, 16:35
|
Posts: 262 |
Thanked: 315 times |
Joined on Jun 2010
|
#6
|
@Xagoln
Thank you for the nice work. I just made a quick test - the "Conversation" seems to be unstable (application no response) after I disabled MSCIM. I tried this for 4 times (reboot + activate Conversation) and observed the same symptom. Any clue to fix this ?? Thanks,
ps -ef | grep scim
ls -l /etc/gtk-2.0
|
2011-05-12
, 02:14
|
Posts: 69 |
Thanked: 18 times |
Joined on Apr 2010
|
#7
|
|
2011-05-12
, 02:38
|
Posts: 47 |
Thanked: 27 times |
Joined on Apr 2011
|
#8
|
Nokia-N900:~# ps -ef | grep scim
1674 user 13976 S /usr/lib/scim-1.0/scim-launcher -d -c simple -e all -
1689 user 27560 T /usr/lib/scim-1.0/scim-panel-gtk --display :0.0 -c so
1871 root 2092 S grep scim
Nokia-N900:~# ls -l /etc/gtk-2.0
-rw-r--r-- 1 root root 3084 Sep 10 2010 gdk-pixbuf.loaders
-rw-r--r-- 1 root root 767 May 5 08:46 gtk.immodules
-rw-rw-rw- 1 user root 158 May 11 22:54 gtk.immodules_mscim_off
-rw-rw-rw- 1 user root 105 May 11 22:54 gtk.immodules_mscim_on
-rw-r--r-- 1 root root 565 Jun 9 2010 im-multipress.conf
|
2011-05-12
, 07:10
|
Posts: 262 |
Thanked: 315 times |
Joined on Jun 2010
|
#9
|
The Following 2 Users Say Thank You to Xagoln For This Useful Post: | ||
|
2011-05-12
, 07:46
|
Posts: 47 |
Thanked: 27 times |
Joined on Apr 2011
|
#10
|
@shawwawa
Thanks for that Shawwawa. I had omitted to grant sudoers permissions for creating the symlinks required for MSCIM Switcher to actually work! They only allow the precise operation required, as you'll see if you install the latest package from post #1 and check /etc/sudoers.d/mscimswitcherstatus.sudoers
Please upgrade and re-test!
Why do I care about M/SCIM?
For those interested in communicating in or learning languages that use complex characters, particularly Chinese, Japanese and Korean, but many others too, there exist special 'input methods' for the N900. Most are based on the SCIM project (called MSCIM in its Maemo incarnation, but SCIM is also used by some), and are distributed as Maemo packages, and use a special keyboard combination to switch between normal and additional input methods.
Unfortunately M/SCIM is a known battery hog. Furthermore, installing M/SCIM would normally disable the virtual keyboard and the symbol keyboard. Not any more!
On my phone, powertop shows that its 'scim-panel-gtk' process constantly wakes up the CPU many times per second when running. My N900 went from fully charged to switching itself off in around 5 hours on standby with it running recently.
Unfortunately, the process respawns immediately if killed, and nobody seems to know how to stop it. Last night I had the idea of sending the process a SIGSTOP signal, which effectively pauses it.
I scripted it up in Ash shell, and it seemed to work, so today I've coded a status menu applet to enable and disable MSCIM this way.
For now this is very alpha. You have been warned!
Usage
- Bring up the status menu and click the Preferences icon, configure to your preference and then click Save.
- Back at the status menu, you can select either "Hildon" or "MSCIM".
- Depending on how you have configured the applet, When switching to Hildon the battery-hungry SCIM process may be suspended, or left running.
- If, and only if, you have chosen to suspend the SCIM process in the configuration, any applications started under SCIM are likely to hang until SCIM is re-enabled.
- Applications started while Hildon Input is active will not hang under any circumstances. However, they will not have access to SCIM input unless restarted while MSCIM is active.
- Conversations and IM/SMS cannot be restarted without killing a process. If configured, this applet can do that for you.
- In general, enabling M/SCIM again via the applet should always bring hung applications back to life.
Please see this post for instructions on how to make SCIM work best for you.How does it work?
Yes, this is all very inelegant, but I don't have time right now to see if M/SCIM can be optimised.
Possible future additions
In brainstorming, I was thinking that whenever the device goes off AC power it should warn the user and/disable M/SCIM.
Also, apart from using the device with TV out, we probably should stop M/SCIM whenever the screen is locked. Whether this can be done with a reduction in power consumption is another question.
When the keyboard slider is closed (except when bluetooth keyboard in use), would be another nice time to disable M/SCIM and allow use of the virtual keyboard.
All feedback/queries to this thread please.
Change Log for Updates/Corrections
v0.3.1
v0.3.0
v0.2.1
v0.2.0
v0.1.1
v0.1.0
v0.0.5
v0.0.4
v0.0.3
v0.0.2
Screenshots
Last edited by Xagoln; 2011-05-21 at 02:43. Reason: Added Chinese Traditional, Chinese Simplifed & French localisations