Skip to content

Mất chữ và mất dấu khi sử dụng terminal emulator Ghostty trên windows manager MangoWM #441

Description

@archion11

Mô tả lỗi

Lúc tôi sử dụng Sway thì vẫn gõ chữ tiếng việt (chế độ uinput smooth) trên ghostty được, nhưng khi chuyển qua dùng mangowm mới phát hiện ra là khi gõ chữ trên ghostty thì lại bị mất chữ và mất đấu trong lúc đang gõ. Điều này cũng xảy ra tương tự với foot, nhưng tình trạng xảy ra "ít" hơn một chút

Các bước tái hiện

  1. Cài đặt MangoWM và vào session MangoWM
  2. Mở terminal emulator Ghostty hoặc Foot
  3. Gõ chữ cái tiếng việt bất kì
  4. Lỗi xuất hiện
2026-09-02.10-46-10.mp4

Kết quả mong đợi

Khi gõ "đang gõ tiếng việt" thì nó phải hiện "đang gõ tiếng việt"

Kết quả thực tế

Thay vào đó bộ gõ hiện thị như này

Image

Phiên bản fcitx5-lotus

3.5.6-1

Cách cài đặt

AUR (fcitx5-lotus-bin)

Hệ điều hành / Distro

EnveadourOS

Môi trường Desktop

Khác (ghi cụ thể ở dưới)

Kiểu gõ

Telex

Diagnose

# System Info:
1.  `uname -a`:

        Linux use-endeavouros-btw 7.2.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 28 Aug 2026 16:09:39 +0000 x86_64 GNU/Linux

2.  `lsb_release -a`:

        LSB Version:	n/a
        Distributor ID:	EndeavourOS
        Description:	EndeavourOS Linux
        Release:	rolling
        Codename:	rolling

3.  `lsb_release -d`:

        Description:	EndeavourOS Linux

4.  `/etc/lsb-release`:

        DISTRIB_ID="EndeavourOS"
        DISTRIB_RELEASE="rolling"
        DISTRIB_DESCRIPTION="EndeavourOS Linux"
        DISTRIB_CODENAME="rolling"

5.  `/etc/os-release`:

        NAME="EndeavourOS"
        PRETTY_NAME="EndeavourOS"
        ID="endeavouros"
        ID_LIKE="arch"
        BUILD_ID=rolling
        ANSI_COLOR="38;2;23;147;209"
        HOME_URL="https://endeavouros.com"
        DOCUMENTATION_URL="https://discovery.endeavouros.com"
        SUPPORT_URL="https://forum.endeavouros.com"
        BUG_REPORT_URL="https://forum.endeavouros.com/c/general-system/endeavouros-installation"
        PRIVACY_POLICY_URL="https://endeavouros.com/privacy-policy-2"
        LOGO="endeavouros"

6.  Desktop Environment:

    Cannot determine desktop environment.

7.  XDG SESSION TYPE:

        XDG_SESSION_TYPE='wayland'

8.  Bash Version:

        BASH_VERSION='5.3.15(1)-release'

# Environment:
1.  DISPLAY:

        DISPLAY=':1'


        WAYLAND_DISPLAY='wayland-0'

2.  Keyboard Layout:

    1.  `setxkbmap`:

            WARNING: Running setxkbmap against an Xwayland server
            xkb_keymap {
            	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
            	xkb_types     { include "complete"	};
            	xkb_compat    { include "complete"	};
            	xkb_symbols   { include "pc+us+inet(evdev)"	};
            	xkb_geometry  { include "pc(pc105)"	};
            };

    2.  `xprop`:

            _XKB_RULES_NAMES(STRING) = "evdev", "pc105", "us", "", ""

3.  Locale:

    1.  All locales:

            C
            C.utf8
            en_US.utf8
            POSIX
            vi_VN
            vi_VN.utf8

    2.  Current locale:

            LANG=en_US.UTF-8
            LC_CTYPE="en_US.UTF-8"
            LC_NUMERIC=vi_VN
            LC_TIME=vi_VN
            LC_COLLATE="en_US.UTF-8"
            LC_MONETARY=vi_VN
            LC_MESSAGES="en_US.UTF-8"
            LC_PAPER=vi_VN
            LC_NAME=vi_VN
            LC_ADDRESS=vi_VN
            LC_TELEPHONE=vi_VN
            LC_MEASUREMENT=vi_VN
            LC_IDENTIFICATION=vi_VN
            LC_ALL=

4.  Directories:

    1.  Home:

            /home/archion

    2.  `${XDG_CONFIG_HOME}`:

        Environment variable `XDG_CONFIG_HOME` is not set.

        Current value of `XDG_CONFIG_HOME` is `~/.config` (`/home/archion/.config`).

    3.  Fcitx5 Settings Directory:

        Current fcitx5 settings directory is `~/.config/fcitx5` (`/home/archion/.config/fcitx5`).

5.  Current user:

    The script is run as archion (1000).

# Fcitx State:
1.  executable:

    Found fcitx5 at `/usr/bin/fcitx5`.

2.  version:

    Fcitx version: `5.1.21`

3.  process:

    Found 2 fcitx5 processes:

            721 fcitx5-lotus-se
            949 fcitx5

4.  `fcitx5-remote`:

    `fcitx5-remote` works properly.

5.  DBus interface:

    Using `dbus-send` to check dbus.

    Owner of DBus name `org.fcitx.Fcitx5` is `:1.4`.

    PID of DBus name `org.fcitx.Fcitx5` owner is `949`.

    Debug information from dbus:

           Group [wayland:] has 13 InputContext(s)
          IC [1edc8cd3772345d6a4ddfbbf310433a2] program:turbowarp-desktop frontend:wayland_v2 cap:72 focus:0
          IC [9a9d08a01c4d47b3a2468e9bf7e6f68c] program: frontend:wayland_v2 cap:100000072 focus:0
          IC [0cb2b046d1ac4673b4f5ad8b211e4c34] program:protonvpn-app frontend:dbus cap:c001000032 focus:0
          IC [c59cb493a0174777a649639828c16111] program:librewolf frontend:dbus cap:e001000072 focus:0
          IC [4c58a3b8c1ea44f6870a1abc14eaa450] program:librewolf frontend:dbus cap:6001000032 focus:0
          IC [827bafcd2c714bd19aeaa3f207f615a1] program:librewolf frontend:wayland_v2 cap:72 focus:0
          IC [44a9d4ddbda84fb691ba4ef39314973c] program: frontend:dbus cap:c001000032 focus:0
          IC [4f8a582ffaef43e2a24060dfc7a112b5] program:com.mitchellh.ghostty frontend:wayland_v2 cap:72 focus:0
          IC [a85ed41e070e452f8f255ff18860f30b] program:foot frontend:wayland_v2 cap:100000072 focus:0
          IC [640bd9b30ad2434ab49b39c966c0b20f] program: frontend:dbus cap:c001000032 focus:1
          IC [2daaec725f1442dc9da2d79807488a71] program:com.mitchellh.ghostty frontend:wayland_v2 cap:72 focus:0
          IC [7ae029a09ce648f1ac19de8e449f76c2] program:com.mitchellh.ghostty frontend:wayland_v2 cap:72 focus:0
          IC [a9d7820b4c514247aa3b954376aa6823] program: frontend:dbus cap:c001000032 focus:0
        Group [x11::1] has 2 InputContext(s)
          IC [fa3be9c3bdff4a768ff0ffe5e6ba865d] program:keepassxc frontend:dbus cap:6000800072 focus:0
          IC [acc86f2107fa4b23ad64a16e1938ffe7] program:keepassxc frontend:dbus cap:16000800072 focus:0
        Input Context without group

# Frontends setup:
The environment variable checked by this script only shows the environment under current shell. It is still possible that you did not set the environment to the whole graphic desktop session. You may inspect the actual environment variable of a certain process by using `xargs -0 -L1 /proc/$PID/environ` for a certain process that you find not working.

## Xim:
1.  `${XMODIFIERS}`:

    Environment variable XMODIFIERS is set to "@im=fcitx" correctly.
    Xim Server Name from Environment variable is fcitx.

2.  XIM_SERVERS on root window:

    Xim server name is the same with that set in the environment variable.

## Qt:
1.  qt4 - `${QT4_IM_MODULE}`:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

    **`fcitx5-qt4-immodule-probing` not found.**

2.  qt5 - `${QT_IM_MODULE}`:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

    Using fcitx5-qt5-immodule-probing to check the actual im module to be used under current environment:

        QT_QPA_PLATFORM=xcb
        QT_IM_MODULE=fcitx
        IM_MODULE_CLASSNAME=fcitx::QFcitxPlatformInputContext

3.  qt6 - `${QT_IM_MODULE}`:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

    Using fcitx5-qt6-immodule-probing to check the actual im module to be used under current environment:

        QT_QPA_PLATFORM=wayland
        QT_IM_MODULE=fcitx
        IM_MODULE_CLASSNAME=fcitx::QFcitxPlatformInputContext

4.  Qt IM module files:

    Found fcitx5 im module for qt6: `/usr/lib/qt6/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so`.
    Found unknown fcitx qt module: `/usr/lib/qt6/plugins/plasma/kcms/systemsettings/kcm_fcitx5.so`.
    Found fcitx5 im module for qt: `/usr/lib/qt/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so`.
    Found fcitx5 qt6 module: `/usr/lib/fcitx5/qt6/libfcitx-quickphrase-editor5.so`.

    Following error may not be accurate because guessing Qt version from path depends on how your distribution packages Qt. It is not a critical error if you do not use any Qt application with certain version of Qt or you are using text-input support by Qt under Wayland.
    **Cannot find fcitx5 input method module for Qt4.**

## Gtk:
1.  gtk - `${GTK_IM_MODULE}`:

    Environment variable GTK_IM_MODULE is set to "fcitx" correctly.

    **`fcitx5-gtk2-immodule-probing` not found.**

    Using fcitx5-gtk3-immodule-probing to check the actual im module to be used under current environment:

        GTK_IM_MODULE=fcitx

    Using fcitx5-gtk4-immodule-probing to check the actual im module to be used under current environment:

        GTK_IM_MODULE=fcitx

2.  `gtk-query-immodules`:

    1.  gtk 2:

        **Cannot find `gtk-query-immodules` for gtk 2**

        **Cannot find fcitx5 im module for gtk 2.**

    2.  gtk 3:

        Found `gtk-query-immodules` for gtk `3.24.52` at `/usr/bin/gtk-query-immodules-3.0`.
        Version Line:

            # Created by /usr/bin/gtk-query-immodules-3.0 from gtk+-3.24.52

        Found fcitx5 im modules for gtk `3.24.52`.

            "/usr/lib/gtk-3.0/3.0.0/immodules/im-fcitx5.so" 
            "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 
            "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 

3.  Gtk IM module cache:

    1.  gtk 2:

        **Cannot find immodules cache for gtk 2**

        **Cannot find fcitx5 im module for gtk 2 in cache.**

    2.  gtk 3:

        Found immodules cache for gtk `3.24.52` at `/usr/lib/gtk-3.0/3.0.0/immodules.cache`.
        Version Line:

            # Created by /usr/bin/gtk-query-immodules-3.0 from gtk+-3.24.52

        Found fcitx5 im modules for gtk `3.24.52`.

            "/usr/lib/gtk-3.0/3.0.0/immodules/im-fcitx5.so" 
            "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 
            "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 

4.  Gtk IM module files:

    1.  gtk 2:

        All found Gtk 2 immodule files exist.

    2.  gtk 3:

        All found Gtk 3 immodule files exist.

    3.  gtk 4:

        All found Gtk 4 immodule files exist.

# Configuration:
## Fcitx Addons:
1.  Addon Config Dir:

    Found fcitx5 addon config directory: `/usr/share/fcitx5/addon`.

2.  Addon List:

    1.  Found 21 enabled addons:

            Classic User Interface 5.1.21
            Clipboard 5.1.21
            DBus 5.1.21
            DBus Frontend 5.1.21
            Emoji 5.1.21
            Fcitx4 Frontend 5.1.21
            IBus Frontend 5.1.21
            Input method selector 5.1.21
            Keyboard 5.1.21
            KDE Input Method Panel 5.1.21
            Lotus Wrapper For Fcitx 3.5.6
            Status Notifier 5.1.21
            Notification 5.1.21
            Quick Phrase 5.1.21
            Spell 5.1.21
            Unicode 5.1.21
            DBus Virtual Keyboard 5.1.21
            Wayland 5.1.21
            Wayland Input method frontend 5.1.21
            XCB 5.1.21
            X Input Method Frontend 5.1.21

    2.  Found 0 disabled addons:

3.  Addon Libraries:

    All libraries for all addons are found.

4.  User Interface:

    Found 3 enabled user interface addons:

        Classic User Interface
        KDE Input Method Panel
        DBus Virtual Keyboard

## Input Methods:
1.  `/home/archion/.config/fcitx5/profile`:

        [Groups/0]
        # Group Name
        Name=Default
        # Layout
        Default Layout=us
        # Default Input Method
        DefaultIM=lotus

        [Groups/0/Items/0]
        # Name
        Name=keyboard-us
        # Layout
        Layout=

        [Groups/0/Items/1]
        # Name
        Name=lotus
        # Layout
        Layout=

        [GroupOrder]
        0=Default

# Log:
1.  `date`:

        Thứ tư, 02 Tháng 9 năm 2026 11:04:09 +07

2.  `/home/archion/.config/fcitx5/crash.log`:

    `/home/archion/.config/fcitx5/crash.log` not found.

**Warning: the output of fcitx5-diagnose contains sensitive information, including the distribution name, kernel version, name of currently running programs, etc.**

**Though such information can be helpful to developers for diagnostic purpose, please double check and remove as necessary before posting it online publicly.**

Log của Uinput server

No response

Log của fcitx5

Thông tin bổ sung

Sử dụng MangoWM

  • [ ]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions