If using ibus:
1. Kill the original ibus process first
killall ibus-daemon
2. Start a new ibus process
demon -d
Then you can see the keyboard icon reappears in the upper right corner
If you are using fcitx's little penguin input method:
1. killall fcitx
2. fcitx -d
You will see the input method icon in the upper right corner.