[Ubuntu] 한글 입력 설정 중 블랙 스크린

imtaejong·2020년 7월 1일
0

우분투에서 한글 입력기 설정을 하다보면 가끔 주화입마가 올 때가 있다.
오늘이 그 날이다..
한글 설정 하다 시스템 로그까지 까게 된 이 경험을 기록으로 남겨놔야만 한다...


히스토리

입력기 중 ibus 대신 fcitx로 전환했다가 다시 ibus로 돌리는 중에 문제가 발생했습니다. (와따리까따리...)

ibus는 특정 프로그램에서 한/영키가 작동하지 않을 때가 있었고,
fcitx는 그냥 지 혼자 됐다가 안됐다가...

답답한 마음에 그냥 본가인 ibus를 쓰기로 마음먹습니다..

문제

최초 fcitx를 통해 한글 입력 설정 하는 법은 이 곳을 참고했습니다.

그렇게 한글을 잘 쓰고 있었는데..
Ubuntu 업데이트 및 업그레이드 후 문제가 발생했습니다.

우분투님께서 업그레이드 하라고 부팅 할 때마다 잔소리하셔서 큰 맘 먹고 터미널에서 업그레이드 한번 갈겼습니다만..
(sudo apt-get update && sudo apt-get upgrade -y)

이 이후 제 컴퓨터는 computer가 되어버렸고 한글을 쓸 수 없는 기계가 되었습니다......

문제를 간단하게 생각하고 해결하려는 마음가짐이 언제나 제 시간을 갉아먹습니다.....
한글 입력 안되니까 그냥 fcitx를 버리고 다시 ibus로 돌아가는 시간을 가지기로 합니다..

sudo apt-get install ibus-hangul

# 하던 작업 마저 다 하고 재부팅
sudo reboot

다른 작업 때문에 재부팅을 했는데 이 때부터 마우스는 잘 움직이지만 화면만 검은색으로 나오는 대 참사가 일어납니다.

원인

대충 10분은 멍때린거 같습니다.
로그를 어디서 확인해야 할 지 모르겠다는 답답함이 몰려올 때..

"원일을 모를 땐 무조건 커널로그 시스템로그"라는 경험을 떠올려 확인했습니다.

우선 블랙스크린으로 인해 gui 환경으로 터미널을 접속 할 수 없으니
gui가 아닌 tty를 통해 터미널에 접근하기로 합니다.
그리고 sudo 유저를 하나 추가했습니다.

sudo useradd jeff2 sudo

그리고 해당 유저의 GUI로 접속해서 시스템 로그를 확인했습니다.
굳이 이렇게 한 이유는 tty 환경에서는 font color가 입혀지지 않은 상태라 로그 보기가 너무 힘들기 때문입니다.
jeff2 계정의 GUI로 로그인해서 커널 로그를 확인 해보지만 별 소득이 없었습니다.
커널 로그 중 알 수 없는 중국인이 아닌 짱깨X끼들이 ssh로 db 접속 시도 한 커널 로그를 무시하고
시스템 로그를 확인했는데 이상한 패턴이 보였습니다.

$ sudo vi /var/log/syslog

Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Jul  1 17:30:55 ej31 gnome-shell[2271]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).

특정 키의 바인딩이 무한정 덮어쓰기되는 중간에 gnome-shell에게 중재를 당한 모습이 보였습니다..
이제서야 libx 관련 gui의 문제가 아닌 키 바인딩 문제라는 확신을 했습니다.

해결

sudo apt-get remove --purge fcitx-hangul ibus-hangul
sudo reboot

결과


아무 일도 없었다는 듯 깔끔하게 잘 됩니다....


노력없이 뱉은 침은 다시 나에게 온다는 걸 느낀 하루입니다................

0개의 댓글