Skip to content

fcitx5-lotus không hoạt động với foot terminal #286

Description

@minhnbnt

Mô tả lỗi

Khi mình gõ chữ e 2 lần ở foot terminal, chữ ê có vẻ đã không được commit đúng dẫn đến bị mất chữ, gõ 3 lần chữ e vẫn xuất hiện 2 chữ e như bình thường.

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

  1. Mở footclient
  2. Gõ chữ e 2 lần

Kết quả mong đợi

Command là chữ ê

Kết quả thực tế

Command bị xoá hết

Phiên bản fcitx5-lotus

3.1.0-1

Cách cài đặt

AUR (fcitx5-lotus-bin)

Hệ điều hành / Distro

Arch Linux

Môi trường Desktop

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

Kiểu gõ

Telex

Diagnose

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

        Linux rimbook-l1 7.0.8-1-cachyos #1 SMP PREEMPT_DYNAMIC Fri, 15 May 2026 18:31:42 +0000 x86_64 GNU/Linux

2.  `lsb_release`:

    `lsb_release` not found.

3.  `/etc/lsb-release`:

    `/etc/lsb-release` not found.

4.  `/etc/os-release`:

        NAME="Arch Linux"
        PRETTY_NAME="Arch Linux"
        ID=arch
        BUILD_ID=rolling
        ANSI_COLOR="38;2;23;147;209"
        HOME_URL="https://archlinux.org/"
        DOCUMENTATION_URL="https://wiki.archlinux.org/"
        SUPPORT_URL="https://bbs.archlinux.org/"
        BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
        PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
        LOGO=archlinux-logo

5.  Desktop Environment:

    Cannot determine desktop environment.

6.  XDG SESSION TYPE:

        XDG_SESSION_TYPE='wayland'

7.  Bash Version:

        BASH_VERSION='5.3.9(1)-release'

# Environment:
1.  DISPLAY:

        DISPLAY=':0'


        WAYLAND_DISPLAY='wayland-1'

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
            ja_JP.utf8
            POSIX

    2.  Current locale:

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

4.  Directories:

    1.  Home:

            /home/minhnbnt

    2.  `${XDG_CONFIG_HOME}`:

        Environment variable `XDG_CONFIG_HOME` is set to `/home/minhnbnt/.config/`.

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

    3.  Fcitx5 Settings Directory:

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

5.  Current user:

    The script is run as minhnbnt (1000).

# Fcitx State:
1.  executable:

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

2.  version:

    Fcitx version: `5.1.19`

3.  process:

    Found 2 fcitx5 processes:

           1084 fcitx5-lotus-se
          32769 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.100`.

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

    Debug information from dbus:

           Group [wayland:] has 3 InputContext(s)
          IC [62cf7900d14947eaa90a89f7046ffb6a] program:helium frontend:wayland_v2 cap:100000072 focus:0
          IC [c3271337e2a148a181ee75926a369a5e] program:footclient frontend:wayland_v2 cap:100000072 focus:1
          IC [59f23d06a6ce41eca7d082472c1da844] program: frontend:wayland_v2 cap:100000072 focus:0
        Group [x11::0] has 0 InputContext(s)
        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}`:

    **XMODIFIERS is not set**

    **Please set environment variable XMODIFIERS to "@im=fcitx" using the tool your distribution provides or add `export XMODIFIERS=@im=fcitx` to your `~/.xprofile`. See [Input Method Related Environment Variables: XMODIFIERS](http://fcitx-im.org/wiki/Input_method_related_environment_variables#XMODIFIERS).**
    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}`:

    **Please set environment variable QT_IM_MODULE to "fcitx" using the tool your distribution provides or add `export QT_IM_MODULE=fcitx` to your `~/.xprofile`. See [Input Method Related Environment Variables: QT_IM_MODULE](http://fcitx-im.org/wiki/Input_method_related_environment_variables#QT_IM_MODULE).**

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

2.  qt5 - `${QT_IM_MODULE}`:

    **Please set environment variable QT_IM_MODULE to "fcitx" using the tool your distribution provides or add `export QT_IM_MODULE=fcitx` to your `~/.xprofile`. See [Input Method Related Environment Variables: QT_IM_MODULE](http://fcitx-im.org/wiki/Input_method_related_environment_variables#QT_IM_MODULE).**

    **It is OK to use qt5 built-in Wayland im module if your compositor fully supports text-input protocol used by qt5.**

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

        QT_QPA_PLATFORM=wayland
        QT_IM_MODULE=
        IM_MODULE_CLASSNAME=QComposeInputContext

3.  qt6 - `${QT_IM_MODULE}`:

    **Please set environment variable QT_IM_MODULE to "fcitx" using the tool your distribution provides or add `export QT_IM_MODULE=fcitx` to your `~/.xprofile`. See [Input Method Related Environment Variables: QT_IM_MODULE](http://fcitx-im.org/wiki/Input_method_related_environment_variables#QT_IM_MODULE).**

    **It is OK to use qt6 built-in Wayland im module if your compositor fully supports text-input protocol used by qt6.**

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

        QT_QPA_PLATFORM=wayland
        QT_IM_MODULE=
        IM_MODULE_CLASSNAME=QtWaylandClient::QWaylandInputContext

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 qt6 module: `/usr/lib/fcitx5/qt6/libfcitx-quickphrase-editor5.so`.
    Found fcitx5 im module for qt: `/usr/lib/qt/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.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}`:

    **Please set environment variable GTK_IM_MODULE to "fcitx" using the tool your distribution provides or add `export GTK_IM_MODULE=fcitx` to your `~/.xprofile`. See [Input Method Related Environment Variables: GTK_IM_MODULE](http://fcitx-im.org/wiki/Input_method_related_environment_variables#GTK_IM_MODULE).**

    **It is OK to use gtk built-in Wayland im module if your compositor fully supports text-input protocol used by gtk.**

    **`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=wayland

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

        GTK_IM_MODULE=wayland

2.  `gtk-query-immodules`:

    1.  gtk 2:

        Found `gtk-query-immodules` for gtk `2.24.33` at `/usr/bin/gtk-query-immodules-2.0`.
        Version Line:

            # Created by /usr/bin/gtk-query-immodules-2.0 from gtk+-2.24.33

        **Failed to find fcitx5 in the output of `/usr/bin/gtk-query-immodules-2.0`**

        **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:

        Found immodules cache for gtk `2.24.33` at `/usr/lib/gtk-2.0/2.10.0/immodules.cache`.
        Version Line:

            # Created by /usr/bin/gtk-query-immodules-2.0 from gtk+-2.24.33

        **Failed to find fcitx5 in immodule cache at `/usr/lib/gtk-2.0/2.10.0/immodules.cache`**

        **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 24 enabled addons:

            Classic User Interface 5.1.19
            Clipboard 5.1.19
            DBus 5.1.19
            DBus Frontend 5.1.19
            Emoji 5.1.19
            Fcitx4 Frontend 5.1.19
            IBus Frontend 5.1.19
            Lua IME API 5.0.16
            Input method selector 5.1.19
            Keyboard 5.1.19
            KDE Input Method Panel 5.1.19
            Lotus Wrapper For Fcitx 3.1.0
            Lua Addon Loader 5.0.16
            Mozc 
            Status Notifier 5.1.19
            Notification 5.1.19
            Quick Phrase 5.1.19
            Spell 5.1.19
            Unicode 5.1.19
            DBus Virtual Keyboard 5.1.19
            Wayland 5.1.19
            Wayland Input method frontend 5.1.19
            XCB 5.1.19
            X Input Method Frontend 5.1.19

    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/minhnbnt/.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=

        [Groups/0/Items/2]
        # Name
        Name=mozc
        # Layout
        Layout=

        [GroupOrder]
        0=Default

# Log:
1.  `date`:

        Sat May 16 09:27:40 AM +07 2026

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

    `/home/minhnbnt/.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

2026-05-16 05:37:33.569 [INFO] Target user: minhnbnt
2026-05-16 05:37:49.805 [INFO] Device added: SYNA3602:00 36B6:C001 Mouse
2026-05-16 05:37:49.805 [INFO] Device added: SYNA3602:00 36B6:C001 Touchpad
2026-05-16 05:37:49.805 [INFO] Device added: Lid Switch
2026-05-16 05:37:49.805 [INFO] Device added: Video Bus
2026-05-16 05:37:49.805 [INFO] Device added: Intel HID events
2026-05-16 05:37:49.805 [INFO] Device added: Power Button
2026-05-16 05:37:49.805 [INFO] Device added: Sleep Button
2026-05-16 05:37:49.805 [INFO] Device added: AT Translated Set 2 keyboard
2026-05-16 05:37:49.805 [INFO] Device added: Lotus-Uinput-Server
2026-05-16 06:18:13.231 [INFO] Device added: Logi POP Mouse
2026-05-16 06:32:56.132 [INFO] New mouse flag client connected
2026-05-16 06:32:57.924 [INFO] Fcitx5 connected to keyboard socket (PID: 1274)
2026-05-16 09:23:38.617 [WARN] Keyboard client disconnected or connection error
2026-05-16 09:23:42.480 [WARN] Failed to send to mouse flag client, closing connection
2026-05-16 09:23:50.649 [INFO] New mouse flag client connected
2026-05-16 09:24:00.872 [INFO] Fcitx5 connected to keyboard socket (PID: 30197)
2026-05-16 09:24:22.033 [WARN] Keyboard client disconnected or connection error
2026-05-16 09:24:31.123 [WARN] Failed to send to mouse flag client, closing connection
2026-05-16 09:26:31.363 [INFO] New mouse flag client connected
2026-05-16 09:26:33.103 [INFO] Fcitx5 connected to keyboard socket (PID: 32408)
2026-05-16 09:26:37.563 [WARN] Keyboard client disconnected or connection error
2026-05-16 09:26:41.590 [WARN] Failed to send to mouse flag client, closing connection

Log của fcitx5

I2026-05-16 09:26:31.362786 lotus-engine.cpp:394] [INFO] App name: footclient
I2026-05-16 09:26:31.362880 lotus-engine.cpp:397] [INFO] Target mode: Uinput (Smooth)
I2026-05-16 09:26:31.363197 lotus-monitor.cpp:26] [INFO] Mouse press reset thread started.
I2026-05-16 09:26:31.363326 lotus-monitor.cpp:48] [INFO] Mouse socket connected.
W2026-05-16 09:26:33.102923 lotus-state.cpp:876] [WARN] Cannot connect to uinput server, reconnecting....
I2026-05-16 09:26:33.552357 lotus-state.cpp:477] [INFO] Perform replacement: e -> ê
I2026-05-16 09:26:33.552465 lotus-state.cpp:492] [INFO] Send 2 backspaces
I2026-05-16 09:26:33.565705 lotus-state.cpp:462] [INFO] Commit: ê
I2026-05-16 09:26:36.516912 lotus-engine.cpp:394] [INFO] App name: footclient
I2026-05-16 09:26:36.516991 lotus-engine.cpp:397] [INFO] Target mode: Uinput (Smooth)

Thông tin bổ sung

Mình dùng niri 26.04

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
      Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions