[자답] xfce4 terminal 입력 정지 현상

freestyle의 이미지

fedora 12에서 gnome을 groupremove 하고, xfce와 compiz를 설치하고 conky를 돌리고 있습니다.

gnome을 그냥 사용할 때는 scim도 기본으로 한글을 사용하고 있었는데 xfce4을 사용하니 한글 입력이 안 되어서 scim을 조금 수정했습니다.

xfce에서 scim이 두 개 떠서 그런지 몰라도 터미널에서 Alt+Tab을 눌러 창 전환을 하면 xfce의 Terminal이 매우 높은 확률로 글자가 입력되지 않게 됩니다(항상은 아닙니다).
행 걸린 상태에서 키보드 입력을 안 먹다가, 다시 Alt+Tab을 눌러 터미널 창으로 되돌아 오면 글자를 입력할 수 있습니다. 행 걸린 탭이 아닌 터미널 탭은 또 입력 가능합니다.

의심 가는 건 Terminal이랑 scim입니다.
Terminal은 xfce 버전이고, scim은 아래처럼 데몬이 두 개 떠 있어서 의심하고 있습니다.

500       1844  1619  0 13:23 ?        00:00:00 /usr/bin/scim
500       1886     1  0 13:23 ?        00:00:00 /usr/lib/scim-1.0/scim-launcher -d -c simple -e all -f socket --no-stay
500       1887  1844  0 13:23 ?        00:00:00 /usr/lib/scim-1.0/scim-launcher -c socket -e socket -f x11
500       1890     1  0 13:23 ?        00:00:00 /usr/lib/scim-1.0/scim-helper-manager
500       1891     1  0 13:23 ?        00:00:00 /usr/lib/scim-1.0/scim-panel-gtk --display:0.0 -c socket -d --no-stay

원인이 무엇일까요? 궁금하네요.
수고하세요.

freestyle의 이미지

설정이 깔끔하지 않았나 봅니다.
해결하면 결과 올리겠습니다.
----------------------
Go to the U-City

----------------------------------------------------------------------------------------
Don't Feed the Trolls!
----------------------------------------------------------------------------------------

freestyle의 이미지

# cat > /etc/X11/xinit/xinput.d/scim.conf

XIM=SCIM
XIM_PROGRAM=/usr/bin/scim
XIM_ARGS=""
ICON="/usr/share/scim/icons/trademark.png"
PREFERENCE_PROGRAM=/usr/bin/scim-setup
SHORT_DESC="SCIM"

gtkimm_exists () {
# check if any immodules installed
for dir in /usr/lib*/gtk-2.0/immodules; do
[ -x ${dir}/im-$1.so ] && return 0
done
return 1
}

if gtkimm_exists scim-bridge; then
GTK_IM_MODULE=scim-bridge
elif gtkimm_exists scim; then
GTK_IM_MODULE=scim
else
GTK_IM_MODULE=xim
fi

qtimm_exists () {
# check if any immodule installed
for dir in /usr/lib*/qt4/plugins/inputmethods; do
[ -x ${dir}/$1.so ] && return 0
done
return 1
}

if qtimm_exists im-scim-bridge; then
QT_IM_MODULE=scim-bridge
elif qtimm_exists libqscim; then
QT_IM_MODULE=scim
else
QT_IM_MODULE=xim
fi

# alternatives --config xinputrc

3 개의 프로그램이 'xinputrc'를 제공합니다.
 
  선택    명령
-----------------------------------------------
   1           /etc/X11/xinit/xinput.d/none.conf
   2           /etc/X11/xinit/xinput.d/xim.conf
*+ 3           /etc/X11/xinit/xinput.d/scim.conf
</code
 
 
# vi ~freestyle/.xinitrc
<code>
export XMODIFIERS="@IM=SCIM"
export GTK_IM_MODULE=scim
export QT_IM_MODULE=scim
export XIM_PROGRAM = "scim -d"
 
scim -d
startxfce4

scim 설정은 인터넷에 잘 나와 있더군요.
혹시 잘못된 부분 있으면 지적해 주세요.

----------------------------------------------------------------------------------------
Don't Feed the Trolls!
----------------------------------------------------------------------------------------

krisna의 이미지

libx11 라이브러리에 버그가 있습니다.
GTK+ 프로그램을 xim 으로 입력할때 빠르게 focus를 바꾸면 (alt+tab 같이) 입력이 정지되는 경우가 발생할 수 있습니다.

http://bugs.freedesktop.org/show_bug.cgi?id=7869

혹시 이 문제가 아닐까 싶군요.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.