You are not logged in.

#1 2024-02-03 10:29:08

qwertynoob
Member
Registered: 2024-02-03
Posts: 11

[SOLVED] Can't get ibus to work

Hello, everyone!

I've just installed ibus, in order to set up the keyboard toggle shortcuts.
I've added "ibus-daemon &" to autostart, and the tray applet shows up, but the shortcut doesn't work. It works briefly after I restart ibus, but then everything freezes, and I have to reboot. I doesn't seem to matter which keys I choose for the toggle.

Any ideas on how to fix it, or perhaps use an alternative to set up the shortcut?

Last edited by qwertynoob (2024-02-10 15:05:33)

Offline

#2 2024-02-03 15:54:37

Pinhead
Member
Registered: 2022-12-05
Posts: 98

Re: [SOLVED] Can't get ibus to work


Complete the pattern, solve the puzzle, turn the key.

Offline

#3 2024-02-03 21:52:58

Robi
Member
Registered: 2024-01-30
Posts: 43

Re: [SOLVED] Can't get ibus to work

@qwertynoob

sudo apt install gxkb

insert into
~/.config/bunsen/autostart

gxkb &

After the first run of gxkb in ~.config/gxkb a gxkb.conf will be
created.

[xkb config]
group_policy=2
default_group=0
never_modify_config=false
model=pc105
layouts=hu,pl
variants=,qwertz
toggle_option=grp:alt_shift_toggle
compose_key_position=

modify it as you like
https://www.thegeekdiary.com/setxkbmap- … -in-linux/
/etc/locale.gen code pages you need should be uncommented
#locale-gen  makes it usable
What languages do you need? Maybe East-Asian ones need ibus.

Last edited by Robi (2024-02-04 08:07:12)


...Welcome to the family...

Offline

#4 2024-02-04 02:18:19

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,550
Website

Re: [SOLVED] Can't get ibus to work

You've installed im-config (it's a recommend of ibus)?
'im-config -l' might have some hints?


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Online

#5 2024-02-04 07:48:28

qwertynoob
Member
Registered: 2024-02-03
Posts: 11

Re: [SOLVED] Can't get ibus to work

Robi wrote:

@qwertynoob
insert into
~/.config/bunsen/autostart
a line like this

setxkbmap -layout "hu,pl" -variant ,qwertz -option "grp:alt_shift_toggle" & 

Thank you, Robi. This works - for Polish and Hungarian. Where can I find a list of keyboard layouts names, so I can correctly codify my chosen languages? I get errors when I try to guess (I can't find Kurmanji/Northern Kurdish - ku and kmr give me errors).



johnraff wrote:

You've installed im-config (it's a recommend of ibus)?
'im-config -l' might have some hints?

im-config -l
 ibus fcitx xim

I installed fcitx in order to replace ibus (it doesn't work at all).

Last edited by qwertynoob (2024-02-04 08:14:50)

Offline

#6 2024-02-04 08:03:52

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,550
Website

Re: [SOLVED] Can't get ibus to work

I've been using fcitx (with mocz for Japanese) for several years now with no problems.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Online

#7 2024-02-04 12:06:05

qwertynoob
Member
Registered: 2024-02-03
Posts: 11

Re: [SOLVED] Can't get ibus to work

johnraff wrote:

I've been using fcitx (with mocz for Japanese) for several years now with no problems.

I've just installed fcitx5.
When I run it, everything hangs up, like when restarting ibus.

Offline

#8 2024-02-04 13:27:21

Robi
Member
Registered: 2024-01-30
Posts: 43

Re: [SOLVED] Can't get ibus to work

@qwertynoob
Forget fcitx. Remove/purge it. It's for other languages.

sudo apt install xfce4-settings

Main Menu/Keyboard/Layout switch off 'Use system defaults' and
add / choose Kurdish from under either Arabic (Syria) or Turkish.
There are cca 6 options. Sorry for my ignorance about Kurmanji.
In gxkb.cfg write only one of these:
layouts=en,ar
layouts=en,tr
or layouts=en,tr,ar if both were added
You can test by starting gxkb in a terminal first to see errors.
The flag is missing from /usr/share/gxkb/flags. It is not critical. You may create a png file instead of the ? mark.

Last edited by Robi (2024-02-04 13:33:04)


...Welcome to the family...

Offline

#9 2024-02-04 14:13:40

qwertynoob
Member
Registered: 2024-02-03
Posts: 11

Re: [SOLVED] Can't get ibus to work

@Robi

I found those keyboards in xfce4-settings, the toggle shortcut still doesn't work.

I edited the gxkb.cfg to the following:

[xkb config]
group_policy=2
default_group=0
never_modify_config=false
model=pc105
layouts=pl,tr,ua
variants=qwerty
toggle_option=grp:alt_shift_toggle
compose_key_position=

Once I ran gxkb and there was only PL flag, no way to toggle.
Now when I run gxkb everything hangs i.e. I'm confined to the terminal window, can't switch windows, workspaces, nothing else works - this is the same kind of crash I mentioned above, same thing keeps happening with different apps. We're not seeing something here... :-/

EDIT: NOW, it's working, both the tray widget and the keyboard shortcut (but I only have Turkish, not Kurdish, I'll try to get that fixed now)!

Last edited by qwertynoob (2024-02-04 14:17:27)

Offline

#10 2024-02-04 14:23:57

qwertynoob
Member
Registered: 2024-02-03
Posts: 11

Re: [SOLVED] Can't get ibus to work

Trying to set up Kurdish/Kurmanji...
Example:

xkb config]
group_policy=2
default_group=0
never_modify_config=false
model=pc105
layouts=pl,ua,ku ir
variants=qwerty
toggle_option=grp:alt_shift_toggle
compose_key_position=

I get:

qwerty@debian:~$ gxkb
Error:            Can't find file "kuir" for symbols include
                  Exiting
                  Abandoning symbols file "(null)"
[1707056498,000,xklavier_config_xkb.c:xkl_config_get_keyboard/] 	Could not load /usr/bin/xkbcomp output as XKM file, got 127 (asked 127)
Segmentation fault

EDIT: Found a list of Kurdish layouts here: https://forums.debian.net/viewtopic.php?t=106496
Nothing works, it's like they're missing from my system(?)

Last edited by qwertynoob (2024-02-04 14:36:31)

Offline

#11 2024-02-04 17:55:24

Robi
Member
Registered: 2024-01-30
Posts: 43

Re: [SOLVED] Can't get ibus to work

qwertynoob
So, as root to show what maps exist:

localectl list-x11-keymap-layouts 
localectl list-x11-keymap-layouts | grep ua 

ua

localectl list-x11-keymap-variants ua

...
let's see variants for ku

localectl list-x11-keymap-variants tr | grep ku

ku
ku_alt
ku_f

localectl list-x11-keymap-variants iq

ku
ku_alt
ku_ara
ku_f
So the maps you want to use have to be unblocked in
/etc/locale.gen
by deleting the hashmarks in the line. Then

sudo locale-gen

Generating locales (this might take a while)...
  ar_IQ.UTF-8... done
  en_US.UTF-8... done
  ku_TR.UTF-8... done
  pl_PL.UTF-8... done
  uk_UA.UTF-8... done
And in gxkb.cfg
number of layouts/commas
must be equal to the number of variants/commas
layouts=hu,pl,ua
variants=,qwertz,rstu

Last edited by Robi (2024-02-04 17:58:40)


...Welcome to the family...

Offline

#12 2024-02-04 18:40:27

qwertynoob
Member
Registered: 2024-02-03
Posts: 11

Re: [SOLVED] Can't get ibus to work

Thank you for your patience, Robi.

sudo locale-gen

Generating locales (this might take a while)...
  en_US.UTF-8... done
  ku_TR.ISO-8859-9... done
  ku_TR.UTF-8... done

What should my gxkb.cfg look like?

[xkb config]
group_policy=2
default_group=0
never_modify_config=false
model=pc105
layouts=pl,ua,ku_tr
variants=qwerty,legacy,qwerty
toggle_option=grp:ctrl_shift_toggle
compose_key_position=

gxkb gives:

Error:            No Symbols named "qwerty" in the include file "pl"
                  Exiting
                  Abandoning symbols file "(null)"
[1707071591,000,xklavier_config_xkb.c:xkl_config_get_keyboard/] 	Could not load /usr/bin/xkbcomp output as XKM file, got 127 (asked 127)

But polish works, KU_TR shows up as an option, but can't be activated.

Offline

#13 2024-02-04 19:03:22

Robi
Member
Registered: 2024-01-30
Posts: 43

Re: [SOLVED] Can't get ibus to work

@qwertynoob
layouts=pl,ua,tr
variants=qwertz,legacy,ku

seems to be legal

sudo localectl list-x11-keymap-variants pl

shows possible variants for pl
but polish is not enabled in /etc/locale.gen as I see.

Last edited by Robi (2024-02-04 19:10:53)


...Welcome to the family...

Offline

#14 2024-02-04 19:23:25

qwertynoob
Member
Registered: 2024-02-03
Posts: 11

Re: [SOLVED] Can't get ibus to work

Generated the pl locales, checked the variants, and this seems to work:

layouts=pl,ua,tr
variants=legacy,legacy,ku

No error message this time - but the system hangs up (the way described above). Replicated several times. Any ideas?

Offline

#15 2024-02-04 19:50:59

Robi
Member
Registered: 2024-01-30
Posts: 43

Re: [SOLVED] Can't get ibus to work

@qwertynoop
may I see whether pl_PL is present
sudo locale-gen
the code page is either UTF or other but not both
I'd drop (comment out with hashtag) this next line in /etc/locale.gen
ku_TR.ISO-8859-9... done
sudo locale-gen
it works for me (with hu at the 1st place)
ps -ef | grep gxkb
ps -ef | grep ibus
ps -ef | grep fcitx
the last 2 should be empty

Last edited by Robi (2024-02-04 20:00:11)


...Welcome to the family...

Offline

#16 2024-02-04 19:58:02

qwertynoob
Member
Registered: 2024-02-03
Posts: 11

Re: [SOLVED] Can't get ibus to work

Locales generated:
pl_PL.ISO-8859-2
pl_PL.UTF-8

qwerty@debian:~$ ps -ef | grep gxkb
qwerty      3601    3531  0 20:56 pts/2    00:00:00 grep gxkb
qwerty@debian:~$ ps -ef | grep ibus
qwerty      3603    3531  0 20:56 pts/2    00:00:00 grep ibus
qwerty@debian:~$ ps -ef | grep fcitx
qwerty      3605    3531  0 20:56 pts/2    00:00:00 grep fcitx

Offline

#17 2024-02-04 20:07:48

Robi
Member
Registered: 2024-01-30
Posts: 43

Re: [SOLVED] Can't get ibus to work

#pl_PL.ISO-8859-2
pl_PL.UTF-8

either or conflicting code pages

in ~/.config/bunsen/autostart
show me / check
gxkb &
ampersand means start as a background process
logout login

Last edited by Robi (2024-02-04 20:45:39)


...Welcome to the family...

Offline

#18 2024-02-05 01:58:02

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,550
Website

Re: [SOLVED] Can't get ibus to work

qwertynoob wrote:
johnraff wrote:

I've been using fcitx (with mocz for Japanese) for several years now with no problems.

I've just installed fcitx5.
When I run it, everything hangs up, like when restarting ibus.

fcitx5 and fcitx (ie fcitx 4) are different. I use fcitx because I need to input Japanese sometimes. With mozc it works very well for that. I think fcitx5 might still have some issues.

But Robi seems to have the situation well in hand so I'll say no more.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Online

#19 2024-02-05 09:14:48

qwertynoob
Member
Registered: 2024-02-03
Posts: 11

Re: [SOLVED] Can't get ibus to work

Robi wrote:

#pl_PL.ISO-8859-2
pl_PL.UTF-8

either or conflicting code pages

in ~/.config/bunsen/autostart
show me / check
gxkb &
ampersand means start as a background process
logout login

Now it works! Although it's a weird layout (separate keys for êçşî).

In other news, I managed to get ibus running. Oddly, in both cases (or all three, counting fctix5) only running the service at session startup seems to be key (to avoid crash)...
What I did was remove the "super+space" shortcut from xbindkeysrc, and now the default shortcut works.

Gelek spas, Robi!

Offline

#20 2024-02-05 10:05:17

Robi
Member
Registered: 2024-01-30
Posts: 43

Re: [SOLVED] Can't get ibus to work

@qwertynoob
re strange layout:
Instead of ku you may try ku_alt or ku_f variants
Bila


...Welcome to the family...

Offline

Board footer

Powered by FluxBB