为什么SCIM输入法在FIREFOX下输入文字的时候,CPU占用极高

系统字体配置、中文显示和输入法问题
头像
kqueenc
帖子: 630
注册时间: 2007-05-27 20:29

#16

帖子 kqueenc » 2007-06-06 4:10

哈哈,我在浏览器中把JAVASCRIPT和图片载入都关闭了,情况似乎略有好转,占用率没那么高了,而且只在输入的时候才会增高。And only with SCIM.
有趣有趣:)
头像
kqueenc
帖子: 630
注册时间: 2007-05-27 20:29

#17

帖子 kqueenc » 2007-06-06 4:16

把图片载入关闭以后,输入框旁边那些闪啊闪的动态表情就没有了,光标放到输入框就不会再CPU占用率升高了。
但是一旦开始用SCIM输入中文的时候,CPU占用率就又上去了,尤其是字词候选条出现在TEXT FIELD以后。
我是菜鸟,也说不太清楚,个人感觉是不是和GTK什么的有关呢?

感觉系统重新刷新屏幕特别费力。
BTW,我什么桌面特效都没开。
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#18

帖子 zhuqin_83 » 2007-06-06 4:38

如果你装了xgl,并且进入了xgl会话,但没有打开composite,那么就会出现这种情况。
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
xhy
帖子: 3916
注册时间: 2005-12-28 1:16
系统: Ubuntu 12.10 X64
来自: 火星

#19

帖子 xhy » 2007-06-06 4:56

会不会是GTK的问题?
头像
kqueenc
帖子: 630
注册时间: 2007-05-27 20:29

#20

帖子 kqueenc » 2007-06-06 6:16

我在xorg.conf中似乎已经打开了Composite了啊。
是这段代码吗?

代码: 全选

Section "Extensions"
    Option "Composite" "Enable"
EndSection
还有一个情况,我用的是TWINVIEW显示模式,在打开桌面效果(立方体上的工作区)以后,主显示器没办法实现立方体效果,但是副显示器却可以。
而且打开桌面效果以后,主显示器上点击菜单弹出速度很迟缓,但是副显示器上却没有这个问题,超级无敌诡异吧?
不知道这个线索是否有用?
头像
kqueenc
帖子: 630
注册时间: 2007-05-27 20:29

#21

帖子 kqueenc » 2007-06-06 6:20

让我贴一下我的xorg.conf文件吧,也许更有利于大家集思广益:)

代码: 全选

Section "Files"
	
	# path to defoma fonts
	RgbPath	"usr/lib/X11/rgb"
	Fontpath	"/usr/share/fonts/X11/misc"
	Fontpath	"/usr/share/fonts/local"
	Fontpath	"/usr/share/fonts/X11/100dpi/:unscaled"
	Fontpath	"/usr/share/fonts/X11/75dpi/:unscaled"
	Fontpath	"/usr/share/fonts/X11/Type1"
	Fontpath	"/usr/share/fonts/X11/100dpi"
	Fontpath	"/usr/share/fonts/X11/75dpi"
	Fontpath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
	Load		"i2c"
	Load		"bitmap"
	Load		"ddc"
	Load		"extmod"
	Load		"freetype"
	Load		"glx"
	Load		"int10"
	Load		"vbe"
EndSection

Section "Extensions"
    Option "Composite" "Enable"
EndSection

Section "ServerFlags"
    Option	"blank time"	"1"
    Option	"standby time"	"2"
    Option	"suspend time"	"3"
    Option	"off time"	"4"
    # SELECT YOUR PREFERRED LAYOUT HERE
    Option	"DefaultServerLayout" "twinview"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	#Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"us"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"	"/dev/input/mice"
	Option		"Protocol"	"ExplorerPS/2"
	Option		"Buttons" "9"	
	Option		"ZAxisMapping"	"6 7"
	Option		"ButtonMapping"	"1 2 3 4 5"
	#Option		"Emulate3Buttons"	"false"
EndSection

#Section "InputDevice"
#	Identifier	"stylus"
#	Driver		"wacom"
#	Option		"Device"	"/dev/input/wacom"
#	Option		"Type"	"stylus"
#	Option		"ForceDevice"	"ISDV4"# Tablet PC ONLY
#EndSection

#Section "InputDevice"
#	Identifier	"eraser"
#	Driver		"wacom"
#	Option		"Device"	"/dev/input/wacom"
#	Option		"Type"	"eraser"
#	Option		"ForceDevice"	"ISDV4"# Tablet PC ONLY
#EndSection

#Section "InputDevice"
#	Identifier	"cursor"
#	Driver		"wacom"
#	Option		"Device"	"/dev/input/wacom"
#	Option		"Type"	"cursor"
#	Option		"ForceDevice"	"ISDV4"# Tablet PC ONLY
#EndSection

Section "Monitor"
	Identifier	"AOC Spectrum9G"
	Option		"DPMS"
	HorizSync 	30.0-95.0
    	VertRefresh 50-160
    	DisplaySize 376 301
EndSection

Section "Monitor"
    Identifier	"ViewSonic VX912"
    Option	"dpms"
    HorizSync 30.0-82.0
    VertRefresh 50-85
    DisplaySize 376 301
EndSection

Section "Monitor"
	Identifier	"TwinMoni"
	Option	"dpms"
	HorizSync   30.0-81.0
	VertRefresh 56-60
    	DisplaySize 752 301
EndSection

#----- Single BEGIN ------------------------------------------------------------------------------
Section "ServerLayout"
    Identifier	"single"
    Screen	0 "Screen0"
    InputDevice	"Configured Mouse" "CorePointer"
    InputDevice "Generic Keyboard" "CoreKeyboard"
EndSection
#----- Single END --------------------------------------------------------------------------------

#----- Twinview BEGIN ----------------------------------------------------------------------------
Section "Device"
    Identifier "NvidiaTwin"
    VendorName "MSI"
    BoardName "NV 5900XT VIVO"
    Driver "nvidia"
    BusID "PCI:1:0:0"
    Option "NoLogo" "0"
    Option "TwinView"
    Option	"MetaModes"	"1280x1024,1280x1024;"
    Option "TwinViewOrientation" "CRT-0 RightOf DFP-0"
    Option "HorizSync"   "DFP-0: 30-82; CRT-0: 30-95"
    Option "VertRefresh" "DFP-0: 50-85; CRT-0: 50-160"
    Option "ConnectedMonitor" "DFP-0,CRT-0"
    Option "TwinViewXineramaInfoOrder" "DFP-0"
    Option "RenderAccel" "true"
    Option "AllowGLXWithComposite" "true"
    Option "UseEdidDpi" "FALSE"
EndSection

Section "Screen"
    Identifier	"ScreenTwin"
    Device      "NvidiaTwin"
    Monitor		"TwinMoni"
    DefaultDepth 24
    Subsection "Display"
        Depth 24
        Modes "1280x1024" "1024x768" "800x600"
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier	"twinview"
    Screen	0 	"ScreenTwin"
    InputDevice	"Configured Mouse" "CorePointer"
    InputDevice "Generic Keyboard" "CoreKeyboard"
    Option "Xinerama" "0"
EndSection
#----- Twinview END ------------------------------------------------------------------------------

#----- Xinerama BEGIN ----------------------------------------------------------------------------
Section "Device"
    Identifier "Nvidia0"
    VendorName "MSI"
    BoardName "NV 5900XT VIVO"
    Driver "nvidia"
    BusID "pci:1:0:0"
    Screen       0
    #SINCE NVIDIA VERSION 1.0-8756 YOU MUST USE UseDisplayDevice INSTEAD OF ConnectedMonitor TO GET XINERAMA WORK:
    #Option "ConnectedMonitor" "DFP"
    Option "UseDisplayDevice" "DFP"
    Option "NoLogo" "1"
    Option "RenderAccel" "true"
    Option "AllowGLXWithComposite" "true"
    Option "UseEdidDpi" "FALSE"
	Option 	"DPI"	"86x86"
	Option		"NvAgp" "1"
	Option		"AddARGBGLXVisuals"	"true"
	Option		"DynamicTwinView"	"0"
EndSection

Section "Device"
    Identifier  "Nvidia1"
    VendorName "MSI"
    BoardName "NV 5900XT VIVO"
    Driver "nvidia"
    BusID "pci:1:0:0"
    Screen       1
    #SINCE NVIDIA VERSION 1.0-8756 YOU MUST USE UseDisplayDevice INSTEAD OF ConnectedMonitor TO GET XINERAMA WORK:
    #Option "ConnectedMonitor" "CRT"
    Option "UseDisplayDevice" "CRT"
    Option "NoLogo" "1"
    Option "RenderAccel" "true"
    Option "AllowGLXWithComposite" "true"
    Option "UseEdidDpi" "FALSE"
	Option 	"DPI"	"86x86"
	Option		"NvAgp" "1"
	Option		"AddARGBGLXVisuals"	"true"
	Option		"DynamicTwinView"	"0"
EndSection

Section "Screen"
    Identifier	"Screen0"
    Device	"Nvidia0"
    Monitor	"ViewSonic VX912"
    DefaultDepth 24
    Subsection "Display"
        Depth 24
        Modes "1280x1024" "1024x768" "800x600"
    EndSubsection
EndSection

Section "Screen"
    Identifier	"Screen1"
    Device	"Nvidia1"
    Monitor	"AOC Spectrum9G"
    DefaultDepth 24
    Subsection "Display"
        Depth 24
        Modes "1280x1024" "1024x768" "800x600"
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier	"xinerama"
    Screen	0 "Screen0"
    Screen	1 "Screen1" RightOf "Screen0"
    InputDevice	"Configured Mouse" "CorePointer"
    InputDevice "Generic Keyboard" "CoreKeyboard"
    Option "Xinerama" "1"
EndSection
#----- Xinerama END ------------------------------------------------------------------------------

头像
kqueenc
帖子: 630
注册时间: 2007-05-27 20:29

#22

帖子 kqueenc » 2007-06-08 10:56

又仔细观察了一下系统监视器,发现一旦光标在输入框中,CPU占用率升高的不是FIREFOX,而是XGL。
为什么?
头像
kqueenc
帖子: 630
注册时间: 2007-05-27 20:29

#23

帖子 kqueenc » 2007-06-09 4:06

我现在也可以自己来回答这个问题了:
都是XGL捣的鬼,刚刚把XGL关闭了,UOALA!
整个世界清静了!
感觉系统前所未有的快啊 :D :D
回复