Mô tả lỗi
Không gõ được tiếng việt trên Arch + Niri (Dankmaterialshell)
Các bước tái hiện
paru -S fcitx5-lotus-bin
sudo systemctl enable --now fcitx5-lotus-server@$(whoami).service || (sudo systemd-sysusers && sudo systemctl enable --now fcitx5-lotus-server@$(whoami).service)
killall ibus-daemon || ibus exit
cat <> ~/.bash_profile
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
export SDL_IM_MODULE=fcitx
export GLFW_IM_MODULE=ibus
EOF
Đã autostart
Đã cấu hình bộ gõ trong fcitx5-configtool
Khuyến nghị Xwayland: phần Chromium thì mình dùng zen nên không làm
Kết quả mong đợi
Khi gõ:
gox tieengs vieetj
Kết quả:
gox tieengs vieetj
Kết quả thực tế
Khi gõ:
gox tieengs vieetj
Kết quả:
gox tieengs vieetj
Phiên bản fcitx5-lotus
fcitx5-lotus-bin 2.0.1-1
Cách cài đặt
AUR (fcitx5-lotus-bin)
Hệ điều hành / Distro
Archlinux
Môi trường Desktop
Khác (ghi cụ thể ở dưới)
Diagnose
[ann9cht@archlinux ~]$ fcitx5-diagnose
# Thông tin hệ thống:
1. `uname -a`:
Linux archlinux 6.19.11-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 02 Apr 2026 23:33:01 +0000 x86_64 GNU/Linux
2. `lsb_release`:
`lsb_release`không tìm thấy.
3. `/etc/lsb-release`:
`/etc/lsb-release`không tìm thấy.
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. Môi trường Desktop:
Không thể xác định môi trường Desktop.
6. XDG SESSION TYPE:
XDG_SESSION_TYPE='wayland'
7. Phiên bản Bash:
BASH_VERSION='5.3.9(1)-release'
# Môi trường:
1. DISPLAY:
DISPLAY=':0'
WAYLAND_DISPLAY='wayland-1'
2. Bố Cục Bàn Phím:
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. Địa phương:
1. Tất cả địa phương:
C
C.utf8 POSIX
vi_VN
vi_VN.utf8
2. Ngôn ngữ hiện tại:
LANG=vi_VN.UTF-8
LC_CTYPE="vi_VN.UTF-8"
LC_NUMERIC="vi_VN.UTF-8"
LC_TIME="vi_VN.UTF-8" LC_COLLATE="vi_VN.UTF-8"
LC_MONETARY="vi_VN.UTF-8" LC_MESSAGES="vi_VN.UTF-8"
LC_PAPER="vi_VN.UTF-8"
LC_NAME="vi_VN.UTF-8"
LC_ADDRESS="vi_VN.UTF-8"
LC_TELEPHONE="vi_VN.UTF-8"
LC_MEASUREMENT="vi_VN.UTF-8"
LC_IDENTIFICATION="vi_VN.UTF-8"
LC_ALL=
4. Thư mục:
1. Home:
/home/ann9cht
2. `${XDG_CONFIG_HOME}`:
Biến môi trường `XDG_CONFIG_HOME` không được đặt.
Giá trị hiện tại của `XDG_CONFIG_HOME` là `~/.config` (`/home/ann9cht/.config`).
3. Fcitx5Thư mục cài đặt:
Cấu hình hiện hành fcitx5 là `~/.config/fcitx5` (`/home/ann9cht/.config/fcitx5`).
5. Người dùng hiện tại:
Mã lệnh được chạy dưới dạng ann9cht (1000).
# Trạng thái Fcitx:
1. thực thi:
Đã tìm thấy fcitx5 tại `/usr/bin/fcitx5`.
2. phiên bản:
Phiên bản Fcitx: `5.1.19`
3. tiến trình:
Tìm thấy 2 fcitx5 tiến trình:
553 fcitx5-lotus-se
887 fcitx5
4. `fcitx5-remote`:
`fcitx5-remote` chạy bình thường.
5. Giao diện DBus:
Dùng `dbus-send` để kiểm tra dbus.
Owner of DBus name `org.fcitx.Fcitx5` is `:1.34`.
PID of DBus name `org.fcitx.Fcitx5` owner is `887`.
Thông tin gỡ lỗi từ dbus:
Group [wayland:] has 6 InputContext(s)
IC [d7649484a1e247c5b039fd01081e3048] program: frontend:dbus cap:c001000032 focus:1
IC [ce8acb2f060340169735efeff2de33e7] program:com.mitchellh.ghostty frontend:wayland_v2 cap:72 focus:0
IC [49f4e7c2570d424c829eda947f7e9f67] program:zen frontend:wayland_v2 cap:72 focus:0
IC [95b8da45ba9442cf85bdb756931ed6b3] program:zen frontend:dbus cap:6001000032 focus:0
IC [3161646b985344a8ba5116ab2703115f] program:zen frontend:dbus cap:e001000072 focus:0
IC [3a04a5f1d28d46aba18a52b788e51b5b] program: frontend:wayland_v2 cap:72 focus:0
Group [x11::0] has 0 InputContext(s)
Input Context without group
# Thiết lập giao diện:
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}`:
Biến môi trường XMODIFIERS được đặt thành "@im=fcitx" chính xác.
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}`:
Biến môi trường QT_IM_MODULE được đặt thành "fcitx" chính xác.
**`fcitx5-qt4-immodule-probing`không tìm thấy.**
2. qt5 - `${QT_IM_MODULE}`:
Biến môi trường QT_IM_MODULE được đặt thành "fcitx" chính xác.
Using fcitx5-qt5-immodule-probing to check the actual im module to be used under current environment:
3. qt6 - `${QT_IM_MODULE}`:
Biến môi trường QT_IM_MODULE được đặt thành "fcitx" chính xác.
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 qt: `/usr/lib/qt/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so`.
Tìm thấy fcitx5 qt6 module: `/usr/lib/fcitx5/qt6/libfcitx5-unikey-keymap-editor.so`.
Tìm thấy fcitx5 qt6 module: `/usr/lib/fcitx5/qt6/libfcitx5-unikey-macro-editor.so`.
Tìm thấy fcitx5 qt6 module: `/usr/lib/fcitx5/qt6/libfcitx-quickphrase-editor5.so`.
Tìm thấy không rõ fcitx qt module: `/usr/lib/qt6/plugins/plasma/kcms/systemsettings/kcm_fcitx5.so`.
Found fcitx5 im module for qt6: `/usr/lib/qt6/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so`.
Lỗi sau có thể không chính xác vì việc đoán phiên bản Qt từ đường dẫn phụ thuộc vào cách gói phân phối Qt của bạn. Đây không phải là lỗi nghiêm trọng nếu bạn không sử dụng bất kỳ ứng dụng Qt nào với phiên bản Qt nhất định hoặc bạn đang sử dụng hỗ trợ nhập văn bản của Qt trong Wayland.
**Không thể tìm thấy module kiểu gõ fcitx5 cho Qt4.**
## Gtk:
1. gtk - `${GTK_IM_MODULE}`:
Biến môi trường GTK_IM_MODULE được đặt thành "fcitx" chính xác.
**`fcitx5-gtk2-immodule-probing`không tìm thấy.**
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:
**Không thể tìm thấy `gtk-query-immodules`cho gtk 2**
**Không thể tìm thấy module fcitx5 cho gtk 2.**
2. gtk 3:
Tìm thấy `gtk-query-immodules` cho gtk `3.24.52` tại `/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:
**Không tìm thấy bộ nhớ đệm immodules cho gtk 2**
**Không thể tìm thấy module fcitx5 cho gtk 2trong bộ nhớ cache.**
2. gtk 3:
Tìm thấy bộ nhớ đệm immodules cho GTK `3.24.52` tại `/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:
Tất cả các tệp immodule Gtk 2 được tìm thấy đều tồn tại.
2. gtk 3:
Tất cả các tệp immodule Gtk 3 được tìm thấy đều tồn tại.
3. gtk 4:
Tất cả các tệp immodule Gtk 4 được tìm thấy đều tồn tại.
# Cấu hình:
## Fcitx Addon:
1. Thư mục cấu hình addon:
Tìm thấyfcitx5 thư mục cấu hình addon: `/usr/share/fcitx5/addon`.
2. Danh sách tiện ích bổ sung:
1. Tìm thấy 22 addons đã bật:
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
Input method selector 5.1.19
Keyboard 5.1.19
KDE Input Method Panel 5.1.19
Lotus Wrapper For Fcitx 2.0.1
Status Notifier 5.1.19
Notification 5.1.19
Quick Phrase 5.1.19
Spell 5.1.19
Unicode 5.1.19
Unikey Wrapper For Fcitx 5.1.10
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. Tìm thấy 0 addons đã tắt:
3. Thư viện Addon:
Tất cả các thư viện cho tất cả các addon được tìm thấy.
4. Giao Diện Người Dùng:
Đã tìm thấy tiện ích bổ sung giao diện người dùng được kích hoạt 3:
Classic User Interface
KDE Input Method Panel
DBus Virtual Keyboard
## Phương Thức Nhập:
1. `/home/ann9cht/.config/fcitx5/profile`:
[Groups/0]
# Group Name
Name="Mặc định"
# Layout
Default Layout=us
# Default Input Method
DefaultIM=unikey
[Groups/0/Items/0]
# Name
Name=keyboard-us
# Layout
Layout=
[Groups/0/Items/1]
# Name
Name=unikey
# Layout
Layout=
[Groups/0/Items/2]
# Name
Name=lotus
# Layout
Layout=
[GroupOrder]
0="Mặc định"
# Nhật ký:
1. `date`:
Thứ hai, 06 Tháng 4 năm 2026 15:49:37 +07
2. `/home/ann9cht/.config/fcitx5/crash.log`:
`/home/ann9cht/.config/fcitx5/crash.log`không tìm thấy.
**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-04-06 15:40:01.094 [INFO] Target user: ann9cht
2026-04-06 15:40:07.367 [INFO] Device added: Power Button
2026-04-06 15:40:07.367 [INFO] Device added: Video Bus
2026-04-06 15:40:07.367 [INFO] Device added: Power Button
2026-04-06 15:40:07.367 [INFO] Device added: Sleep Button
2026-04-06 15:40:07.367 [INFO] Device added: USB USB Keyboard
2026-04-06 15:40:07.367 [INFO] Device added: USB USB Keyboard Consumer Control
2026-04-06 15:40:07.367 [INFO] Device added: USB USB Keyboard System Control
2026-04-06 15:40:07.367 [INFO] Device added: USB OPTICAL MOUSE
2026-04-06 15:40:07.367 [INFO] Device added: Lotus-Uinput-Server
2026-04-06 15:40:34.938 [INFO] New mouse flag client connected
2026-04-06 15:40:36.343 [INFO] Fcitx5 connected to keyboard socket (PID: 887)
2026-04-06 15:51:22.524 [INFO] Terminating server...
Log của fcitx5
[ann9cht@archlinux ~]$ fcitx5 --verbose lotus=4
I2026-04-06 15:52:40.119510 instance.cpp:1420] Override Enabled Addons: {}
I2026-04-06 15:52:40.122556 instance.cpp:1421] Override Disabled Addons: {}
I2026-04-06 15:52:40.125149 addonmanager.cpp:204] Loaded addon wayland
I2026-04-06 15:52:40.126819 xcbconnection.cpp:198] Connecting to X11 display, display name::0.
I2026-04-06 15:52:40.126851 xcbconnection.cpp:203] X11 display: :0 is xwayland.
I2026-04-06 15:52:40.126901 addonmanager.cpp:204] Loaded addon xcb
I2026-04-06 15:52:40.127929 addonmanager.cpp:204] Loaded addon quickphrase
I2026-04-06 15:52:40.128065 addonmanager.cpp:204] Loaded addon imselector
I2026-04-06 15:52:40.128690 keyboard.cpp:229] Attempting to load keyboard from: ["/usr/share/xkeyboard-config-2"] Rule: evdev
I2026-04-06 15:52:40.132140 addonmanager.cpp:204] Loaded addon keyboard
I2026-04-06 15:52:40.132541 addonmanager.cpp:204] Loaded addon clipboard
I2026-04-06 15:52:40.132737 addonmanager.cpp:204] Loaded addon waylandim
I2026-04-06 15:52:40.132896 addonmanager.cpp:204] Loaded addon unicode
E2026-04-06 15:52:40.133462 addonloader.cpp:96] Failed to create addon: dbus Unable to request dbus name. Is there another fcitx already running?
I2026-04-06 15:52:40.133481 addonmanager.cpp:200] Could not load addon dbus
I2026-04-06 15:52:40.133517 addonmanager.cpp:306] Unloading addon unicode
I2026-04-06 15:52:40.133539 addonmanager.cpp:306] Unloading addon waylandim
I2026-04-06 15:52:40.133565 addonmanager.cpp:306] Unloading addon clipboard
I2026-04-06 15:52:40.133601 addonmanager.cpp:306] Unloading addon keyboard
I2026-04-06 15:52:40.133775 addonmanager.cpp:306] Unloading addon imselector
I2026-04-06 15:52:40.133797 addonmanager.cpp:306] Unloading addon quickphrase
I2026-04-06 15:52:40.133996 addonmanager.cpp:306] Unloading addon xcb
I2026-04-06 15:52:40.134116 addonmanager.cpp:306] Unloading addon wayland
Thông tin bổ sung
[ann9cht@archlinux ~]$ fcitx5-remote -n
lotus
Mô tả lỗi
Không gõ được tiếng việt trên Arch + Niri (Dankmaterialshell)
Các bước tái hiện
paru -S fcitx5-lotus-bin
sudo systemctl enable --now fcitx5-lotus-server@$(whoami).service || (sudo systemd-sysusers && sudo systemctl enable --now fcitx5-lotus-server@$(whoami).service)
killall ibus-daemon || ibus exit
cat <> ~/.bash_profile
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
export SDL_IM_MODULE=fcitx
export GLFW_IM_MODULE=ibus
EOF
Đã autostart
Đã cấu hình bộ gõ trong fcitx5-configtool
Khuyến nghị Xwayland: phần Chromium thì mình dùng zen nên không làm
Kết quả mong đợi
Khi gõ:
gox tieengs vieetj
Kết quả:
gox tieengs vieetj
Kết quả thực tế
Khi gõ:
gox tieengs vieetj
Kết quả:
gox tieengs vieetj
Phiên bản fcitx5-lotus
fcitx5-lotus-bin 2.0.1-1
Cách cài đặt
AUR (fcitx5-lotus-bin)
Hệ điều hành / Distro
Archlinux
Môi trường Desktop
Khác (ghi cụ thể ở dưới)
Diagnose
Log của Uinput server
2026-04-06 15:40:01.094 [INFO] Target user: ann9cht
2026-04-06 15:40:07.367 [INFO] Device added: Power Button
2026-04-06 15:40:07.367 [INFO] Device added: Video Bus
2026-04-06 15:40:07.367 [INFO] Device added: Power Button
2026-04-06 15:40:07.367 [INFO] Device added: Sleep Button
2026-04-06 15:40:07.367 [INFO] Device added: USB USB Keyboard
2026-04-06 15:40:07.367 [INFO] Device added: USB USB Keyboard Consumer Control
2026-04-06 15:40:07.367 [INFO] Device added: USB USB Keyboard System Control
2026-04-06 15:40:07.367 [INFO] Device added: USB OPTICAL MOUSE
2026-04-06 15:40:07.367 [INFO] Device added: Lotus-Uinput-Server
2026-04-06 15:40:34.938 [INFO] New mouse flag client connected
2026-04-06 15:40:36.343 [INFO] Fcitx5 connected to keyboard socket (PID: 887)
2026-04-06 15:51:22.524 [INFO] Terminating server...
Log của fcitx5
Thông tin bổ sung
[ann9cht@archlinux ~]$ fcitx5-remote -n
lotus