You are not logged in.

#1 2024-04-27 16:25:45

adr77
Member
From: Haifa, Israel
Registered: 2023-10-28
Posts: 38

Setting up Japanese Romaji keyboard, now on KDE Wayland. [SOLVED]

Good day to all of you, I am back with the same issue I had 3 months ago, now just on my laptop.

I have a KDE Plasma 6 session on Wayland running instead of X11 because Intel graphics.

So far, what I've done:

  • re-installed Arch since I couldn't use it w/o a WiFi USB module anyway, now I got that fixed up.

  • installed the fcitx5-im group for Qt environments

  • tried setting fcitx5 up but it won't show in Plasma's system settings.

Am I doing something wrong? the only layout I currently have is English, but I didn't bother to add my 3 other languages because I knew I would be installing fcitx5 anyway.

Tried following an older article of mine but it was all X11-oriented for my main computer.

Cheers!

Last edited by adr77 (2024-04-29 15:15:41)


"A good attitude will always take you further than a bad habit." -Isabelle, Animal Crossing: New Leaf
meet the rigs:
monolith: AMD Ryzen 7 5800X | ASUS TUF RTX 4070 | 32GB DDR4 (custom-built)
starrybook: Intel Core i7-1355U | Intel Iris Xe Graphics | 16GB DDR4 (Asus Vivobook 16)

Offline

#2 2024-04-27 21:20:30

seth
Member
Registered: 2012-09-03
Posts: 52,205

Re: Setting up Japanese Romaji keyboard, now on KDE Wayland. [SOLVED]

nb. that while plasma 6 defaults to wayland, you can still start it on X11 and I actually suggest to try whether that setup still works (to establish as baseline)

it won't show in Plasma's system settings

Won't show *where*?
https://wiki.archlinux.org/title/Fcitx5#Wayland

Offline

#3 2024-04-27 21:27:39

adr77
Member
From: Haifa, Israel
Registered: 2023-10-28
Posts: 38

Re: Setting up Japanese Romaji keyboard, now on KDE Wayland. [SOLVED]

seth wrote:

nb. that while plasma 6 defaults to wayland, you can still start it on X11 and I actually suggest to try whether that setup still works (to establish as baseline)

it won't show in Plasma's system settings

Won't show *where*?
https://wiki.archlinux.org/title/Fcitx5#Wayland

Won't show *where*?

System Settings > Keyboard

that's where fcitx5's settings used to be on my main computer (had to un-install Arch because it just straight up boot-looped my computer not even letting me into Windows).

I also get this warning from fcitx whenever I log in:

Fcitx should be launched by KWin under KDE Wayland in order to use Wayland input method frontend. This can improve the experience when using Fcitx on Wayland. To configure this, you need to go to "System Settings" -> "Virtual keyboard" and select "Fcitx 5" from it. You may also need to disable tools that launches input method, such as imsettings on Fedora, or im-config on Debian/Ubuntu. For more details see https://fcitx-im.org/wiki/Using_Fcitx_5 … KDE_Plasma

Should I switch back to X11 or is there a method to use fcitx under Wayland?


"A good attitude will always take you further than a bad habit." -Isabelle, Animal Crossing: New Leaf
meet the rigs:
monolith: AMD Ryzen 7 5800X | ASUS TUF RTX 4070 | 32GB DDR4 (custom-built)
starrybook: Intel Core i7-1355U | Intel Iris Xe Graphics | 16GB DDR4 (Asus Vivobook 16)

Offline

#4 2024-04-27 21:29:03

adr77
Member
From: Haifa, Israel
Registered: 2023-10-28
Posts: 38

Re: Setting up Japanese Romaji keyboard, now on KDE Wayland. [SOLVED]

seth wrote:

nb. that while plasma 6 defaults to wayland, you can still start it on X11 and I actually suggest to try whether that setup still works (to establish as baseline)

it won't show in Plasma's system settings

Won't show *where*?
https://wiki.archlinux.org/title/Fcitx5#Wayland

Won't show *where*?

System Settings > Keyboard

that's where fcitx5's settings used to be on my main computer (had to un-install Arch because it just straight up boot-looped my computer not even letting me into Windows).

I also get this warning from fcitx whenever I log in:

Fcitx should be launched by KWin under KDE Wayland in order to use Wayland input method frontend. This can improve the experience when using Fcitx on Wayland. To configure this, you need to go to "System Settings" -> "Virtual keyboard" and select "Fcitx 5" from it. You may also need to disable tools that launches input method, such as imsettings on Fedora, or im-config on Debian/Ubuntu. For more details see https://fcitx-im.org/wiki/Using_Fcitx_5 … KDE_Plasma

Should I switch back to X11 or is there a method to use fcitx under Wayland?


"A good attitude will always take you further than a bad habit." -Isabelle, Animal Crossing: New Leaf
meet the rigs:
monolith: AMD Ryzen 7 5800X | ASUS TUF RTX 4070 | 32GB DDR4 (custom-built)
starrybook: Intel Core i7-1355U | Intel Iris Xe Graphics | 16GB DDR4 (Asus Vivobook 16)

Offline

#5 2024-04-27 21:30:19

seth
Member
Registered: 2012-09-03
Posts: 52,205

Re: Setting up Japanese Romaji keyboard, now on KDE Wayland. [SOLVED]

The wiki wrote:

KDE Wayland requires the input method process to be invoked by KWin. [2] To achieve that, quit any running Fcitx 5 process, head to System Settings > Input Devices > Virtual Keyboard, then select Fcitx 5.

and fcitx tells you the same, is the module not there?

Offline

#6 2024-04-27 21:36:43

adr77
Member
From: Haifa, Israel
Registered: 2023-10-28
Posts: 38

Re: Setting up Japanese Romaji keyboard, now on KDE Wayland. [SOLVED]

seth wrote:
The wiki wrote:

KDE Wayland requires the input method process to be invoked by KWin. [2] To achieve that, quit any running Fcitx 5 process, head to System Settings > Input Devices > Virtual Keyboard, then select Fcitx 5.

and fcitx tells you the same, is the module not there?

I kinda forgot how to check that. I haven't used Linux in a while in general sue to lack of interest and gaming being easier on Windows.

But most likely that it could just be the issue. what's the name of the module that needs to be loaded in?


"A good attitude will always take you further than a bad habit." -Isabelle, Animal Crossing: New Leaf
meet the rigs:
monolith: AMD Ryzen 7 5800X | ASUS TUF RTX 4070 | 32GB DDR4 (custom-built)
starrybook: Intel Core i7-1355U | Intel Iris Xe Graphics | 16GB DDR4 (Asus Vivobook 16)

Offline

#7 2024-04-27 21:59:10

seth
Member
Registered: 2012-09-03
Posts: 52,205

Re: Setting up Japanese Romaji keyboard, now on KDE Wayland. [SOLVED]

Name of what module?
Open the highlighted systemsettings page and see whether you can select fcitx5 as virtual keyboard and whether that
a) prevents the error message
b) allows you to use fcitx5

Offline

#8 2024-04-27 22:28:05

adr77
Member
From: Haifa, Israel
Registered: 2023-10-28
Posts: 38

Re: Setting up Japanese Romaji keyboard, now on KDE Wayland. [SOLVED]

seth wrote:

Name of what module?
Open the highlighted systemsettings page and see whether you can select fcitx5 as virtual keyboard and whether that
a) prevents the error message
b) allows you to use fcitx5

fcitx5 is already the virtual keyboard, and trying to enter the fcitx5 settings says that fcitx5's KCModule couldn't be found then brings me to

/home/andaro/.config/fcitx5/

in Dolphin.

Is there an additional KCModule that is just missing?

name of what module?

I thought you talked about a kernel module, my bad.


"A good attitude will always take you further than a bad habit." -Isabelle, Animal Crossing: New Leaf
meet the rigs:
monolith: AMD Ryzen 7 5800X | ASUS TUF RTX 4070 | 32GB DDR4 (custom-built)
starrybook: Intel Core i7-1355U | Intel Iris Xe Graphics | 16GB DDR4 (Asus Vivobook 16)

Offline

#9 2024-04-27 22:39:36

seth
Member
Registered: 2012-09-03
Posts: 52,205

Re: Setting up Japanese Romaji keyboard, now on KDE Wayland. [SOLVED]

https://archlinux.org/packages/extra/x8 … onfigtool/
Have you established that fcitx5 works on X11?

Offline

#10 2024-04-27 22:48:34

adr77
Member
From: Haifa, Israel
Registered: 2023-10-28
Posts: 38

Re: Setting up Japanese Romaji keyboard, now on KDE Wayland. [SOLVED]

seth wrote:

https://archlinux.org/packages/extra/x8 … onfigtool/
Have you established that fcitx5 works on X11?

I have not. I thought that it wasn't WM-dependent. Sorry about that.

I'll try installing the package you sent, and update with results.

UPDATE: fcitx5 now does appear in System Settings, under Language and Time as its own category, and it sort of seems to work, primary issue is that I can't switch language groups (e.g. from English to Russian), and the Japanese Romaji input doesn't work, instead defaulting to English.

Last edited by adr77 (2024-04-28 06:30:46)


"A good attitude will always take you further than a bad habit." -Isabelle, Animal Crossing: New Leaf
meet the rigs:
monolith: AMD Ryzen 7 5800X | ASUS TUF RTX 4070 | 32GB DDR4 (custom-built)
starrybook: Intel Core i7-1355U | Intel Iris Xe Graphics | 16GB DDR4 (Asus Vivobook 16)

Offline

#11 2024-04-28 23:41:13

adr77
Member
From: Haifa, Israel
Registered: 2023-10-28
Posts: 38

Re: Setting up Japanese Romaji keyboard, now on KDE Wayland. [SOLVED]

Sorry for bumping, but I do need my computer working. There's a heatwave going on where I live, and I can't use my main computer without overheating it and myself.


"A good attitude will always take you further than a bad habit." -Isabelle, Animal Crossing: New Leaf
meet the rigs:
monolith: AMD Ryzen 7 5800X | ASUS TUF RTX 4070 | 32GB DDR4 (custom-built)
starrybook: Intel Core i7-1355U | Intel Iris Xe Graphics | 16GB DDR4 (Asus Vivobook 16)

Offline

#12 2024-04-29 06:07:23

seth
Member
Registered: 2012-09-03
Posts: 52,205

Re: Setting up Japanese Romaji keyboard, now on KDE Wayland. [SOLVED]

Bumping is better than editing after what is effectively just an afk post - or just don't post the afk and only respond w/ the update.

1. Does it work on X11 (kwin_wayland isn't just a WM, it effectively replaces X11 and just because things work on maybe X11 and/or one wayland compositor doesn't mean it's working on another wayland compositor
2. https://wiki.archlinux.org/title/Fcitx#Japanese - do you have https://archlinux.org/packages/?name=fcitx-mozc installed?
3. https://wiki.archlinux.org/title/Fcitx#fcitx_and_KDE ?

Offline

#13 2024-04-29 06:18:32

adr77
Member
From: Haifa, Israel
Registered: 2023-10-28
Posts: 38

Re: Setting up Japanese Romaji keyboard, now on KDE Wayland. [SOLVED]

seth wrote:

Bumping is better than editing after what is effectively just an afk post - or just don't post the afk and only respond w/ the update.

1. Does it work on X11 (kwin_wayland isn't just a WM, it effectively replaces X11 and just because things work on maybe X11 and/or one wayland compositor doesn't mean it's working on another wayland compositor
2. https://wiki.archlinux.org/title/Fcitx#Japanese - do you have https://archlinux.org/packages/?name=fcitx-mozc installed?
3. https://wiki.archlinux.org/title/Fcitx#fcitx_and_KDE ?

I don't have Mozc installed, I have KKC (IIRC that's what I used last time), do you suggest Mozc over KKC?

Followed all steps in the link for Fcitx and KDE, and started Fcitx via the terminal, and it spewed out this:

I2024-04-29 09:15:21.137405 instance.cpp:1373] Override Enabled Addons: {}
I2024-04-29 09:15:21.137490 instance.cpp:1374] Override Disabled Addons: {}
E2024-04-29 09:15:21.143501 waylandmodule.cpp:239] Failed to open wayland connection
I2024-04-29 09:15:21.143548 addonmanager.cpp:193] Loaded addon wayland
I2024-04-29 09:15:21.148484 xcbconnection.cpp:189] Connecting to X11 display, display name::0.
I2024-04-29 09:15:21.148882 addonmanager.cpp:193] Loaded addon xcb
I2024-04-29 09:15:21.151639 addonmanager.cpp:193] Loaded addon quickphrase
I2024-04-29 09:15:21.151928 addonmanager.cpp:193] Loaded addon imselector
I2024-04-29 09:15:21.162121 addonmanager.cpp:193] Loaded addon keyboard
I2024-04-29 09:15:21.163310 addonmanager.cpp:193] Loaded addon clipboard
I2024-04-29 09:15:21.163813 addonmanager.cpp:193] Loaded addon waylandim
I2024-04-29 09:15:21.164162 addonmanager.cpp:193] Loaded addon unicode
E2024-04-29 09:15:21.165380 addonloader.cpp:61] Failed to create addon: dbus Unable to request dbus name. Is there another fcitx already running?
I2024-04-29 09:15:21.165410 addonmanager.cpp:189] Could not load addon dbus
I2024-04-29 09:15:21.165517 addonmanager.cpp:296] Unloading addon unicode
I2024-04-29 09:15:21.165554 addonmanager.cpp:296] Unloading addon waylandim
I2024-04-29 09:15:21.165594 addonmanager.cpp:296] Unloading addon clipboard
I2024-04-29 09:15:21.165654 addonmanager.cpp:296] Unloading addon keyboard
I2024-04-29 09:15:21.165866 addonmanager.cpp:296] Unloading addon imselector
I2024-04-29 09:15:21.165899 addonmanager.cpp:296] Unloading addon quickphrase
I2024-04-29 09:15:21.166183 addonmanager.cpp:296] Unloading addon xcb
I2024-04-29 09:15:21.166380 addonmanager.cpp:296] Unloading addon wayland

Is there an issue or was that step calling to start Fcitx a bit useless?

And nothing still works, btw.

Last edited by adr77 (2024-04-29 06:18:58)


"A good attitude will always take you further than a bad habit." -Isabelle, Animal Crossing: New Leaf
meet the rigs:
monolith: AMD Ryzen 7 5800X | ASUS TUF RTX 4070 | 32GB DDR4 (custom-built)
starrybook: Intel Core i7-1355U | Intel Iris Xe Graphics | 16GB DDR4 (Asus Vivobook 16)

Offline

#14 2024-04-29 06:24:29

seth
Member
Registered: 2012-09-03
Posts: 52,205

Re: Setting up Japanese Romaji keyboard, now on KDE Wayland. [SOLVED]

And nothing still works, btw.

seth, multiple times wrote:

Does it work on X11?

Though

E2024-04-29 09:15:21.143501 waylandmodule.cpp:239] Failed to open wayland connection

loginctl session-status

I don't have Mozc installed, I have KKC (IIRC that's what I used last time), do you suggest Mozc over KKC?

https://bbs.archlinux.org/viewtopic.php … 9#p2143119

Offline

#15 2024-04-29 06:31:54

adr77
Member
From: Haifa, Israel
Registered: 2023-10-28
Posts: 38

Re: Setting up Japanese Romaji keyboard, now on KDE Wayland. [SOLVED]

seth wrote:

And nothing still works, btw.

seth, multiple times wrote:

Does it work on X11?

Though

E2024-04-29 09:15:21.143501 waylandmodule.cpp:239] Failed to open wayland connection

loginctl session-status

I don't have Mozc installed, I have KKC (IIRC that's what I used last time), do you suggest Mozc over KKC?

https://bbs.archlinux.org/viewtopic.php … 9#p2143119

Right... I forgot. Mozc was installed. I'll uninstall KKC and get Mozc.

Currently in a X11 session, why is it asking about a Wayland problem?

loginctl output:

 5 - andaro (1000)
  Since: Mon 2024-04-29 09:10:22 IDT; 19min ago
  State: active
 Leader: 1939 (sddm-helper)
   Seat: seat0; vc2
    TTY: tty2
 Remote: no
Service: sddm
   Type: x11
  Class: user
Desktop: KDE
   Idle: no
   Unit: session-5.scope
         ├─1939 /usr/lib/sddm/sddm-helper --socket /tmp/sddm-auth-43c60723-50c5-4546-adcf-5fd5f45f
e0b4 --id 3 --start /usr/bin/startplasma-x11 --user andaro
         ├─1946 /usr/bin/kwalletd6 --pam-login 12 14
         └─1947 /usr/bin/startplasma-x11

Apr 29 09:10:22 starrybook systemd[1]: Started Session 5 of User andaro.
Apr 29 09:10:23 starrybook sddm-helper[1945]: pam_kwallet5: final socket path:
 /run/user/1000/kwallet5.socket

UPDATE: Mozc was installed and added, problem is: I still can't switch layouts via keyboard, only via the virtual keyboard menu.

Last edited by adr77 (2024-04-29 06:34:39)


"A good attitude will always take you further than a bad habit." -Isabelle, Animal Crossing: New Leaf
meet the rigs:
monolith: AMD Ryzen 7 5800X | ASUS TUF RTX 4070 | 32GB DDR4 (custom-built)
starrybook: Intel Core i7-1355U | Intel Iris Xe Graphics | 16GB DDR4 (Asus Vivobook 16)

Offline

#16 2024-04-29 07:17:00

seth
Member
Registered: 2012-09-03
Posts: 52,205

Re: Setting up Japanese Romaji keyboard, now on KDE Wayland. [SOLVED]

https://wiki.archlinux.org/title/Fcitx5#Integration

printenv
xev -event keyboard # what does that produce for ctrl+space

Offline

#17 2024-04-29 07:31:57

adr77
Member
From: Haifa, Israel
Registered: 2023-10-28
Posts: 38

Re: Setting up Japanese Romaji keyboard, now on KDE Wayland. [SOLVED]

seth wrote:

https://wiki.archlinux.org/title/Fcitx5#Integration

printenv
xev -event keyboard # what does that produce for ctrl+space

printenv output (steps were still not completed):

 SHELL=/usr/bin/bash
WINDOWID=56623138
COLORTERM=truecolor
XDG_CONFIG_DIRS=/home/andaro/.config/kdedefaults:/etc/xdg
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session2
XDG_MENU_PREFIX=plasma-
LANGUAGE=
SHELL_SESSION_ID=880bcb0a0baa40238d60e5df845a29d5
MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=
DESKTOP_SESSION=plasmax11
GTK_MODULES=canberra-gtk-module
XDG_SEAT=seat0
PWD=/home/andaro
XDG_SESSION_DESKTOP=KDE
LOGNAME=andaro
XDG_SESSION_TYPE=x11
SYSTEMD_EXEC_PID=783
XAUTHORITY=/tmp/xauth_UdMmnK
MOTD_SHOWN=pam
HOME=/home/andaro
LANG=en_IL.UTF-8
XDG_CURRENT_DESKTOP=KDE
KONSOLE_DBUS_SERVICE=:1.49
MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/background.slice/plasma-kglobalaccel.service/memory.pressure
KONSOLE_DBUS_SESSION=/Sessions/1
PROFILEHOME=
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
INVOCATION_ID=b0f8541f89684dcaa0a0e5e45c8b9065
KONSOLE_VERSION=240202
MANAGERPID=726
KDE_SESSION_UID=1000
XDG_SESSION_CLASS=user
TERM=xterm-256color
USER=andaro
COLORFGBG=15;0
KDE_SESSION_VERSION=6
PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
DISPLAY=:0
SHLVL=1
XDG_VTNR=2
XDG_SESSION_ID=2
XDG_RUNTIME_DIR=/run/user/1000
DEBUGINFOD_URLS=https://debuginfod.archlinux.org 
QT_AUTO_SCREEN_SCALE_FACTOR=0
JOURNAL_STREAM=8:9973
XDG_DATA_DIRS=/home/andaro/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
KDE_FULL_SESSION=true
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
KDE_APPLICATIONS_AS_SCOPE=1
MAIL=/var/spool/mail/andaro
KONSOLE_DBUS_WINDOW=/Windows/1
_=/usr/bin/printenv

Can't seen to grip what needs to be done... Sorry about that, I've also been sleep-deprived because of some personal issues, so I can be a bit mistaken on some parts.


"A good attitude will always take you further than a bad habit." -Isabelle, Animal Crossing: New Leaf
meet the rigs:
monolith: AMD Ryzen 7 5800X | ASUS TUF RTX 4070 | 32GB DDR4 (custom-built)
starrybook: Intel Core i7-1355U | Intel Iris Xe Graphics | 16GB DDR4 (Asus Vivobook 16)

Offline

#18 2024-04-29 07:37:27

seth
Member
Registered: 2012-09-03
Posts: 52,205

Re: Setting up Japanese Romaji keyboard, now on KDE Wayland. [SOLVED]

None of the relevant IM variables are set.

https://wiki.archlinux.org/title/Fcitx5 … e_problems

I've also been sleep-deprived because … reasons

Undeprive yourself before you seriously break stuff. Or yourself.

Offline

#19 2024-04-29 08:20:01

adr77
Member
From: Haifa, Israel
Registered: 2023-10-28
Posts: 38

Re: Setting up Japanese Romaji keyboard, now on KDE Wayland. [SOLVED]

seth wrote:

None of the relevant IM variables are set.

https://wiki.archlinux.org/title/Fcitx5 … e_problems

I've also been sleep-deprived because … reasons

Undeprive yourself before you seriously break stuff. Or yourself.

I come in with news:

  • Switched back to Wayland, and it seems to work, as the virtual keyboard icon now switched to "en" and changes accordingly to each language and a penguin to display Japanese plus the standard system tray notification telling me which language I switched to.

  • I will get my sleep schedule fixed, gotten somewhat OK night's sleep last night.

Was it all that needed fixing? it seems that Japanese typing is very good, as I was able to have a fully correct Japanese lesson on Duolingo using Mozc, so is that just all?


"A good attitude will always take you further than a bad habit." -Isabelle, Animal Crossing: New Leaf
meet the rigs:
monolith: AMD Ryzen 7 5800X | ASUS TUF RTX 4070 | 32GB DDR4 (custom-built)
starrybook: Intel Core i7-1355U | Intel Iris Xe Graphics | 16GB DDR4 (Asus Vivobook 16)

Offline

#20 2024-04-29 15:14:34

seth
Member
Registered: 2012-09-03
Posts: 52,205

Re: Setting up Japanese Romaji keyboard, now on KDE Wayland. [SOLVED]

What was needed was to install the required software and configure it correctly.
Good to hear that it also works on plasma/wayland.

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB