[BUG] Mouse sometimes stop working
Linux distro name: manjaro
Distro variant: notfound
Distro version: arch_btw
X11/Xorg or Wayland: wayland
Desktop environment: kde
DE major version: 6
Window manager: kwin_wayland
Keyboard type (Apple, Chromebook, IBM, Windows): Apple
Keyboard device name (try 'toshy-devices'): Magic Keyboard
Bare metal or virtual machine: bare
(If in VM, which VM software): None
Problem observed: It happens that mouse clicks no longer working. It seems as if there is transparent window covering whole screen, which intercepts all mouse clicks. Sometimes there is foreground window, which continue receiving clicks. Keyboard is working. When I switch window with Cmd-Tab another become foreground, but mouse still not clicking to it. Restarting toshy services cures! I prefer killing process toshy/.venv/bin/xwaykeyz Through days problem occurs more and more often! May be this correlates with number of system updates. When it becomes too annoying (for example two times for an hour) I do reinstall toshy (with downloading fresh packets) and situation reverts to start. I have a long time before been disturbed again.
@Serg-VL
It seems as if there is transparent window covering whole screen, which intercepts all mouse clicks. Sometimes there is foreground window, which continue receiving clicks.
This feels like something that is external to the Toshy keymapper, but there will need to be more details to figure out what's happening.
Restarting toshy services cures! I prefer killing process toshy/.venv/bin/xwaykeyz
That's literally what the toshy-services-stop or toshy-services-restart commands do. If you don't want to use the tray icon menu. There's no need to manually figure out which process to kill.
I need to see the output of toshy-services-log, and then the initial output from toshy-debug (to see what might be getting grabbed as the keymapper starts, and what the environment looks like).
After that, you can keep running toshy-debug in a terminal tab for as long as you want. It can normally be killed by Ctrl+C or by closing the terminal tab if the process becomes unresponsive. If the window context isn't working for some reason, then Cmd+C will also kill the process, or if the window context is working then Cmd+Dot (period key) will also send the SIGINT that Ctrl+C sends.
Do not try to save large amounts of the verbose logging to a file and then post a bunch of it here, since it will contain a log of all keystrokes you type, which would include passwords and other possibly confidential information. But we do want to try to catch and copy some snippets of the log while the strange mouse issue is happening, to see if it really has anything to do with Toshy's keymapper.
Obviously it is somehow interacting with the keymapper, so we need to figure out what's happening. What kind of mouse device are you using?
Remember to put triple-Grave quotes around any "code" or terminal output to make it more readable, and try to look up how to do an HTML "spoiler" with the details/summary tags. There must be a blank line between HTML tags and the triple-quotes in order for things to render correctly on GitHub.
If you can't figure out the HTML spoiler, I can edit your comments after you post to show you how it works.
I had the same issue after boot today, click did not work and it was not sufficient to press the restart services button in the gui (via keyboard tabbing), nor running scripts/bin/toshy-services-restart.sh. Once I ran scripts/bin/toshy-services-stop.sh then scripts/bin/toshy-services-start.sh mouse click started working again.
(EV) Toshy env_context module sees this environment:
DISTRO_ID = 'ubuntu'
DISTRO_VER = '24.10'
VARIANT_ID = 'notfound'
SESSION_TYPE = 'wayland'
DESKTOP_ENV = 'gnome'
DE_MAJ_VER = '47'
WINDOW_MGR = 'gnome-shell'
toshy-services-log
Showing systemd journal messages for Toshy services (since last boot):
Jun 10 09:00:25 a-thinkpad systemd[7353]: Starting toshy-cosmic-dbus.service - Toshy COSMIC D-Bus Service...
Jun 10 09:00:25 a-thinkpad systemd[7353]: Starting toshy-kwin-dbus.service - Toshy KWin D-Bus Service...
Jun 10 09:00:25 a-thinkpad systemd[7353]: Starting toshy-wlroots-dbus.service - Toshy Wlroots D-Bus Service...
Jun 10 09:00:27 a-thinkpad systemd[7353]: Started app-gnome-Toshy_Tray-8224.scope - Application launched by gnome-session-binary.
Jun 10 09:00:28 a-thinkpad Toshy_Tray.desktop[8657]: Environment variable $KDE_SESSION_VERSION not set, ignoring.
Jun 10 09:00:28 a-thinkpad systemd[7353]: toshy-cosmic-dbus.service: Control process exited, code=exited, status=1/FAILURE
Jun 10 09:00:28 a-thinkpad systemd[7353]: toshy-cosmic-dbus.service: Failed with result 'exit-code'.
Jun 10 09:00:28 a-thinkpad systemd[7353]: Failed to start toshy-cosmic-dbus.service - Toshy COSMIC D-Bus Service.
Jun 10 09:00:28 a-thinkpad systemd[7353]: toshy-kwin-dbus.service: Control process exited, code=exited, status=1/FAILURE
Jun 10 09:00:28 a-thinkpad systemd[7353]: toshy-kwin-dbus.service: Failed with result 'exit-code'.
Jun 10 09:00:28 a-thinkpad systemd[7353]: Failed to start toshy-kwin-dbus.service - Toshy KWin D-Bus Service.
Jun 10 09:00:28 a-thinkpad systemd[7353]: toshy-wlroots-dbus.service: Control process exited, code=exited, status=1/FAILURE
Jun 10 09:00:28 a-thinkpad systemd[7353]: toshy-wlroots-dbus.service: Failed with result 'exit-code'.
Jun 10 09:00:28 a-thinkpad systemd[7353]: Failed to start toshy-wlroots-dbus.service - Toshy Wlroots D-Bus Service.
Jun 10 09:00:28 a-thinkpad systemd[7353]: Starting toshy-config.service - Toshy Config Service...
Jun 10 09:00:28 a-thinkpad systemd[7353]: Started toshy-session-monitor.service - Toshy Session Monitor.
Jun 10 09:00:28 a-thinkpad systemd[7353]: Started toshy-config.service - Toshy Config Service.
Jun 10 09:00:33 a-thinkpad systemd[7353]: toshy-cosmic-dbus.service: Scheduled restart job, restart counter is at 1.
Jun 10 09:00:33 a-thinkpad systemd[7353]: toshy-wlroots-dbus.service: Scheduled restart job, restart counter is at 1.
Jun 10 09:00:33 a-thinkpad systemd[7353]: toshy-kwin-dbus.service: Scheduled restart job, restart counter is at 1.
Jun 10 09:00:33 a-thinkpad systemd[7353]: Starting toshy-cosmic-dbus.service - Toshy COSMIC D-Bus Service...
Jun 10 09:00:33 a-thinkpad systemd[7353]: Starting toshy-kwin-dbus.service - Toshy KWin D-Bus Service...
Jun 10 09:00:33 a-thinkpad systemd[7353]: Starting toshy-wlroots-dbus.service - Toshy Wlroots D-Bus Service...
Jun 10 09:00:33 a-thinkpad systemd[7353]: Started toshy-kwin-dbus.service - Toshy KWin D-Bus Service.
Jun 10 09:00:33 a-thinkpad systemd[7353]: Started toshy-cosmic-dbus.service - Toshy COSMIC D-Bus Service.
Jun 10 09:00:33 a-thinkpad systemd[7353]: Started toshy-wlroots-dbus.service - Toshy Wlroots D-Bus Service.
Jun 10 09:00:36 a-thinkpad toshy-wlroots-dbus[9849]: (--) Starting Toshy D-Bus service to monitor 'zwlr_foreign_toplevel_manager_v1'...
Jun 10 09:00:36 a-thinkpad toshy-wlroots-dbus[9849]: (DD) TOSHY_WLR_DBUS_SVC: The Wayland interface is not available. Exiting.
Jun 10 09:00:36 a-thinkpad toshy-kwin-dbus[9845]: (--) Starting Toshy D-Bus service to receive updates from KWin script...
Jun 10 09:00:36 a-thinkpad toshy-kwin-dbus[9845]: (DD) TOSHY_KWIN_DBUS_SVC: Not a kwin_wayland environment. Exiting.
Jun 10 09:00:36 a-thinkpad toshy-cosmic-dbus[9847]: (--) Starting Toshy D-Bus service to monitor 'zcosmic_toplevel_info_v1'...
Jun 10 09:00:36 a-thinkpad toshy-cosmic-dbus[9847]: (DD) TOSHY_COSMIC_DBUS_SVC: Probably not COSMIC desktop environment. Exiting.
Jun 10 09:04:04 a-thinkpad systemd[7353]: Starting toshy-cosmic-dbus.service - Toshy COSMIC D-Bus Service...
Jun 10 09:04:04 a-thinkpad systemd[7353]: Started toshy-cosmic-dbus.service - Toshy COSMIC D-Bus Service.
Jun 10 09:04:04 a-thinkpad systemd[7353]: Starting toshy-kwin-dbus.service - Toshy KWin D-Bus Service...
Jun 10 09:04:04 a-thinkpad systemd[7353]: Started toshy-kwin-dbus.service - Toshy KWin D-Bus Service.
Jun 10 09:04:04 a-thinkpad systemd[7353]: Starting toshy-wlroots-dbus.service - Toshy Wlroots D-Bus Service...
Jun 10 09:04:04 a-thinkpad systemd[7353]: Started toshy-wlroots-dbus.service - Toshy Wlroots D-Bus Service.
Jun 10 09:04:04 a-thinkpad systemd[7353]: Stopping toshy-session-monitor.service - Toshy Session Monitor...
Jun 10 09:04:04 a-thinkpad systemd[7353]: Stopped toshy-session-monitor.service - Toshy Session Monitor.
Jun 10 09:04:04 a-thinkpad systemd[7353]: toshy-session-monitor.service: Consumed 3.937s CPU time, 9.8M memory peak.
Jun 10 09:04:04 a-thinkpad systemd[7353]: Stopping toshy-config.service - Toshy Config Service...
Jun 10 09:04:04 a-thinkpad toshy-config[9535]: xwaykeyz v1.6.1
Jun 10 09:04:04 a-thinkpad toshy-config[9535]: (ID) Machine ID read from /var/lib/dbus/machine-id (obfuscated): '91e88 ... 326cc'
Jun 10 09:04:04 a-thinkpad toshy-config[9535]: (ID) Hashed value for this machine, for use in your config file: '5330b3f3'
Jun 10 09:04:04 a-thinkpad toshy-config[9535]: (--) WATCH: Watching for new devices to hot-plug.
Jun 10 09:04:04 a-thinkpad toshy-config[9535]: (--) Autodetecting all keyboards (no '--devices' option or 'devices_api' used)
Jun 10 09:04:04 a-thinkpad toshy-config[9535]: (+K) Grabbing 'AT Translated Set 2 keyboard' (/dev/input/event4)
Jun 10 09:04:04 a-thinkpad toshy-config[9535]: (+K) Successfully grabbed 'AT Translated Set 2 keyboard' (/dev/input/event4)
Jun 10 09:04:04 a-thinkpad toshy-config[9535]: (+K) Grabbing 'Logitech Wireless Mouse MX Master 2S' (/dev/input/event16)
Jun 10 09:04:04 a-thinkpad toshy-config[9535]: (+K) Successfully grabbed 'Logitech Wireless Mouse MX Master 2S' (/dev/input/event16)
Jun 10 09:04:04 a-thinkpad toshy-config[9535]: (+K) Grabbing 'Apple Inc. Magic Keyboard' (/dev/input/event15)
Jun 10 09:04:04 a-thinkpad toshy-config[9535]: (+K) Successfully grabbed 'Apple Inc. Magic Keyboard' (/dev/input/event15)
Jun 10 09:04:04 a-thinkpad toshy-config[9535]: (+K) Grabbing 'solaar-keyboard' (/dev/input/event17)
Jun 10 09:04:04 a-thinkpad toshy-config[9535]: (+K) Successfully grabbed 'solaar-keyboard' (/dev/input/event17)
Jun 10 09:04:04 a-thinkpad toshy-config[9535]: (--) Ready to process input.
Jun 10 09:04:04 a-thinkpad toshy-config[9535]: signal TERM received
Jun 10 09:04:04 a-thinkpad toshy-config[9535]: (-K) Ungrabbing: 'AT Translated Set 2 keyboard' (removed)
Jun 10 09:04:04 a-thinkpad toshy-config[9535]: (-K) Ungrabbing: 'Apple Inc. Magic Keyboard' (removed)
Jun 10 09:04:05 a-thinkpad systemd[7353]: Stopped toshy-config.service - Toshy Config Service.
Jun 10 09:04:05 a-thinkpad systemd[7353]: toshy-config.service: Consumed 2.222s CPU time, 41.5M memory peak.
Jun 10 09:04:05 a-thinkpad systemd[7353]: Starting toshy-config.service - Toshy Config Service...
Jun 10 09:04:05 a-thinkpad systemd[7353]: Started toshy-config.service - Toshy Config Service.
Jun 10 09:04:05 a-thinkpad systemd[7353]: Started toshy-session-monitor.service - Toshy Session Monitor.
Jun 10 09:04:06 a-thinkpad toshy-wlroots-dbus[11802]: (--) Starting Toshy D-Bus service to monitor 'zwlr_foreign_toplevel_manager_v1'...
Jun 10 09:04:06 a-thinkpad toshy-wlroots-dbus[11802]: (DD) TOSHY_WLR_DBUS_SVC: The Wayland interface is not available. Exiting.
Jun 10 09:04:06 a-thinkpad toshy-cosmic-dbus[11777]: (--) Starting Toshy D-Bus service to monitor 'zcosmic_toplevel_info_v1'...
Jun 10 09:04:06 a-thinkpad toshy-cosmic-dbus[11777]: (DD) TOSHY_COSMIC_DBUS_SVC: Probably not COSMIC desktop environment. Exiting.
Jun 10 09:04:07 a-thinkpad toshy-kwin-dbus[11792]: (--) Starting Toshy D-Bus service to receive updates from KWin script...
Jun 10 09:04:07 a-thinkpad toshy-kwin-dbus[11792]: (DD) TOSHY_KWIN_DBUS_SVC: Not a kwin_wayland environment. Exiting.
Jun 10 09:08:06 a-thinkpad systemd[7353]: Starting toshy-cosmic-dbus.service - Toshy COSMIC D-Bus Service...
Jun 10 09:08:06 a-thinkpad systemd[7353]: Started toshy-cosmic-dbus.service - Toshy COSMIC D-Bus Service.
Jun 10 09:08:06 a-thinkpad systemd[7353]: Starting toshy-kwin-dbus.service - Toshy KWin D-Bus Service...
Jun 10 09:08:06 a-thinkpad systemd[7353]: Started toshy-kwin-dbus.service - Toshy KWin D-Bus Service.
Jun 10 09:08:06 a-thinkpad systemd[7353]: Starting toshy-wlroots-dbus.service - Toshy Wlroots D-Bus Service...
Jun 10 09:08:06 a-thinkpad systemd[7353]: Started toshy-wlroots-dbus.service - Toshy Wlroots D-Bus Service.
Jun 10 09:08:06 a-thinkpad systemd[7353]: Stopping toshy-session-monitor.service - Toshy Session Monitor...
Jun 10 09:08:06 a-thinkpad systemd[7353]: Stopped toshy-session-monitor.service - Toshy Session Monitor.
Jun 10 09:08:06 a-thinkpad systemd[7353]: toshy-session-monitor.service: Consumed 4.260s CPU time, 4M memory peak.
Jun 10 09:08:06 a-thinkpad systemd[7353]: Stopping toshy-config.service - Toshy Config Service...
Jun 10 09:08:06 a-thinkpad toshy-config[11846]: xwaykeyz v1.6.1
Jun 10 09:08:06 a-thinkpad toshy-config[11846]: (ID) Machine ID read from /var/lib/dbus/machine-id (obfuscated): '91e88 ... 326cc'
Jun 10 09:08:06 a-thinkpad toshy-config[11846]: (ID) Hashed value for this machine, for use in your config file: '5330b3f3'
Jun 10 09:08:06 a-thinkpad toshy-config[11846]: (--) WATCH: Watching for new devices to hot-plug.
Jun 10 09:08:06 a-thinkpad toshy-config[11846]: (--) Autodetecting all keyboards (no '--devices' option or 'devices_api' used)
Jun 10 09:08:06 a-thinkpad toshy-config[11846]: (+K) Grabbing 'AT Translated Set 2 keyboard' (/dev/input/event4)
Jun 10 09:08:06 a-thinkpad toshy-config[11846]: (+K) Successfully grabbed 'AT Translated Set 2 keyboard' (/dev/input/event4)
Jun 10 09:08:06 a-thinkpad toshy-config[11846]: (+K) Grabbing 'Logitech Wireless Mouse MX Master 2S' (/dev/input/event16)
Jun 10 09:08:06 a-thinkpad toshy-config[11846]: (+K) Successfully grabbed 'Logitech Wireless Mouse MX Master 2S' (/dev/input/event16)
Jun 10 09:08:06 a-thinkpad toshy-config[11846]: (+K) Grabbing 'Apple Inc. Magic Keyboard' (/dev/input/event15)
Jun 10 09:08:06 a-thinkpad toshy-config[11846]: (+K) Successfully grabbed 'Apple Inc. Magic Keyboard' (/dev/input/event15)
Jun 10 09:08:06 a-thinkpad toshy-config[11846]: (+K) Grabbing 'solaar-keyboard' (/dev/input/event17)
Jun 10 09:08:06 a-thinkpad toshy-config[11846]: (+K) Successfully grabbed 'solaar-keyboard' (/dev/input/event17)
Jun 10 09:08:06 a-thinkpad toshy-config[11846]: (--) Ready to process input.
Jun 10 09:08:06 a-thinkpad toshy-config[11846]: signal TERM received
Jun 10 09:08:06 a-thinkpad toshy-config[11846]: (-K) Ungrabbing: 'AT Translated Set 2 keyboard' (removed)
Jun 10 09:08:06 a-thinkpad toshy-config[11846]: (-K) Ungrabbing: 'Apple Inc. Magic Keyboard' (removed)
Jun 10 09:08:07 a-thinkpad systemd[7353]: Stopped toshy-config.service - Toshy Config Service.
Jun 10 09:08:07 a-thinkpad systemd[7353]: toshy-config.service: Consumed 1.507s CPU time, 40M memory peak.
Jun 10 09:08:07 a-thinkpad systemd[7353]: Starting toshy-config.service - Toshy Config Service...
Jun 10 09:08:07 a-thinkpad systemd[7353]: Started toshy-config.service - Toshy Config Service.
Jun 10 09:08:07 a-thinkpad systemd[7353]: Started toshy-session-monitor.service - Toshy Session Monitor.
Jun 10 09:08:08 a-thinkpad toshy-wlroots-dbus[13459]: (--) Starting Toshy D-Bus service to monitor 'zwlr_foreign_toplevel_manager_v1'...
Jun 10 09:08:08 a-thinkpad toshy-wlroots-dbus[13459]: (DD) TOSHY_WLR_DBUS_SVC: The Wayland interface is not available. Exiting.
Jun 10 09:08:09 a-thinkpad toshy-cosmic-dbus[13444]: (--) Starting Toshy D-Bus service to monitor 'zcosmic_toplevel_info_v1'...
Jun 10 09:08:09 a-thinkpad toshy-cosmic-dbus[13444]: (DD) TOSHY_COSMIC_DBUS_SVC: Probably not COSMIC desktop environment. Exiting.
Jun 10 09:08:09 a-thinkpad toshy-kwin-dbus[13452]: (--) Starting Toshy D-Bus service to receive updates from KWin script...
Jun 10 09:08:09 a-thinkpad toshy-kwin-dbus[13452]: (DD) TOSHY_KWIN_DBUS_SVC: Not a kwin_wayland environment. Exiting.
Jun 10 09:08:26 a-thinkpad systemd[7353]: Starting toshy-cosmic-dbus.service - Toshy COSMIC D-Bus Service...
Jun 10 09:08:26 a-thinkpad systemd[7353]: Started toshy-cosmic-dbus.service - Toshy COSMIC D-Bus Service.
Jun 10 09:08:26 a-thinkpad systemd[7353]: Starting toshy-kwin-dbus.service - Toshy KWin D-Bus Service...
Jun 10 09:08:26 a-thinkpad systemd[7353]: Started toshy-kwin-dbus.service - Toshy KWin D-Bus Service.
Jun 10 09:08:26 a-thinkpad systemd[7353]: Starting toshy-wlroots-dbus.service - Toshy Wlroots D-Bus Service...
Jun 10 09:08:27 a-thinkpad systemd[7353]: Started toshy-wlroots-dbus.service - Toshy Wlroots D-Bus Service.
Jun 10 09:08:27 a-thinkpad systemd[7353]: Stopping toshy-session-monitor.service - Toshy Session Monitor...
Jun 10 09:08:27 a-thinkpad systemd[7353]: Stopped toshy-session-monitor.service - Toshy Session Monitor.
Jun 10 09:08:27 a-thinkpad systemd[7353]: Stopping toshy-config.service - Toshy Config Service...
Jun 10 09:08:27 a-thinkpad toshy-config[13500]: xwaykeyz v1.6.1
Jun 10 09:08:27 a-thinkpad toshy-config[13500]: (ID) Machine ID read from /var/lib/dbus/machine-id (obfuscated): '91e88 ... 326cc'
Jun 10 09:08:27 a-thinkpad toshy-config[13500]: (ID) Hashed value for this machine, for use in your config file: '5330b3f3'
Jun 10 09:08:27 a-thinkpad toshy-config[13500]: (--) WATCH: Watching for new devices to hot-plug.
Jun 10 09:08:27 a-thinkpad toshy-config[13500]: (--) Autodetecting all keyboards (no '--devices' option or 'devices_api' used)
Jun 10 09:08:27 a-thinkpad toshy-config[13500]: (+K) Grabbing 'AT Translated Set 2 keyboard' (/dev/input/event4)
Jun 10 09:08:27 a-thinkpad toshy-config[13500]: (+K) Successfully grabbed 'AT Translated Set 2 keyboard' (/dev/input/event4)
Jun 10 09:08:27 a-thinkpad toshy-config[13500]: (+K) Grabbing 'Logitech Wireless Mouse MX Master 2S' (/dev/input/event16)
Jun 10 09:08:27 a-thinkpad toshy-config[13500]: (+K) Successfully grabbed 'Logitech Wireless Mouse MX Master 2S' (/dev/input/event16)
Jun 10 09:08:27 a-thinkpad toshy-config[13500]: (+K) Grabbing 'Apple Inc. Magic Keyboard' (/dev/input/event15)
Jun 10 09:08:27 a-thinkpad toshy-config[13500]: (+K) Successfully grabbed 'Apple Inc. Magic Keyboard' (/dev/input/event15)
Jun 10 09:08:27 a-thinkpad toshy-config[13500]: (+K) Grabbing 'solaar-keyboard' (/dev/input/event17)
Jun 10 09:08:27 a-thinkpad toshy-config[13500]: (+K) Successfully grabbed 'solaar-keyboard' (/dev/input/event17)
Jun 10 09:08:27 a-thinkpad toshy-config[13500]: (--) Ready to process input.
Jun 10 09:08:27 a-thinkpad toshy-config[13500]: signal TERM received
Jun 10 09:08:27 a-thinkpad toshy-config[13500]: (-K) Ungrabbing: 'AT Translated Set 2 keyboard' (removed)
Jun 10 09:08:27 a-thinkpad toshy-config[13500]: (-K) Ungrabbing: 'Apple Inc. Magic Keyboard' (removed)
Jun 10 09:08:27 a-thinkpad systemd[7353]: Stopped toshy-config.service - Toshy Config Service.
Jun 10 09:08:27 a-thinkpad systemd[7353]: Starting toshy-config.service - Toshy Config Service...
Jun 10 09:08:27 a-thinkpad systemd[7353]: Started toshy-config.service - Toshy Config Service.
Jun 10 09:08:27 a-thinkpad systemd[7353]: Started toshy-session-monitor.service - Toshy Session Monitor.
Jun 10 09:08:28 a-thinkpad toshy-wlroots-dbus[13687]: (--) Starting Toshy D-Bus service to monitor 'zwlr_foreign_toplevel_manager_v1'...
Jun 10 09:08:28 a-thinkpad toshy-wlroots-dbus[13687]: (DD) TOSHY_WLR_DBUS_SVC: The Wayland interface is not available. Exiting.
Jun 10 09:08:29 a-thinkpad toshy-cosmic-dbus[13673]: (--) Starting Toshy D-Bus service to monitor 'zcosmic_toplevel_info_v1'...
Jun 10 09:08:29 a-thinkpad toshy-cosmic-dbus[13673]: (DD) TOSHY_COSMIC_DBUS_SVC: Probably not COSMIC desktop environment. Exiting.
Jun 10 09:08:29 a-thinkpad toshy-kwin-dbus[13681]: (--) Starting Toshy D-Bus service to receive updates from KWin script...
Jun 10 09:08:29 a-thinkpad toshy-kwin-dbus[13681]: (DD) TOSHY_KWIN_DBUS_SVC: Not a kwin_wayland environment. Exiting.
Jun 10 09:09:06 a-thinkpad systemd[7353]: Stopping toshy-session-monitor.service - Toshy Session Monitor...
Jun 10 09:09:06 a-thinkpad systemd[7353]: Stopped toshy-session-monitor.service - Toshy Session Monitor.
Jun 10 09:09:07 a-thinkpad systemd[7353]: Stopping toshy-config.service - Toshy Config Service...
Jun 10 09:09:07 a-thinkpad toshy-config[13732]: xwaykeyz v1.6.1
Jun 10 09:09:07 a-thinkpad toshy-config[13732]: (ID) Machine ID read from /var/lib/dbus/machine-id (obfuscated): '91e88 ... 326cc'
Jun 10 09:09:07 a-thinkpad toshy-config[13732]: (ID) Hashed value for this machine, for use in your config file: '5330b3f3'
Jun 10 09:09:07 a-thinkpad toshy-config[13732]: (--) WATCH: Watching for new devices to hot-plug.
Jun 10 09:09:07 a-thinkpad toshy-config[13732]: (--) Autodetecting all keyboards (no '--devices' option or 'devices_api' used)
Jun 10 09:09:07 a-thinkpad toshy-config[13732]: (+K) Grabbing 'AT Translated Set 2 keyboard' (/dev/input/event4)
Jun 10 09:09:07 a-thinkpad toshy-config[13732]: (+K) Successfully grabbed 'AT Translated Set 2 keyboard' (/dev/input/event4)
Jun 10 09:09:07 a-thinkpad toshy-config[13732]: (+K) Grabbing 'Logitech Wireless Mouse MX Master 2S' (/dev/input/event16)
Jun 10 09:09:07 a-thinkpad toshy-config[13732]: (+K) Successfully grabbed 'Logitech Wireless Mouse MX Master 2S' (/dev/input/event16)
Jun 10 09:09:07 a-thinkpad toshy-config[13732]: (+K) Grabbing 'Apple Inc. Magic Keyboard' (/dev/input/event15)
Jun 10 09:09:07 a-thinkpad toshy-config[13732]: (+K) Successfully grabbed 'Apple Inc. Magic Keyboard' (/dev/input/event15)
Jun 10 09:09:07 a-thinkpad toshy-config[13732]: (+K) Grabbing 'solaar-keyboard' (/dev/input/event17)
Jun 10 09:09:07 a-thinkpad toshy-config[13732]: (+K) Successfully grabbed 'solaar-keyboard' (/dev/input/event17)
Jun 10 09:09:07 a-thinkpad toshy-config[13732]: (--) Ready to process input.
Jun 10 09:09:07 a-thinkpad toshy-config[13732]: signal TERM received
Jun 10 09:09:07 a-thinkpad toshy-config[13732]: (-K) Ungrabbing: 'AT Translated Set 2 keyboard' (removed)
Jun 10 09:09:07 a-thinkpad toshy-config[13732]: (-K) Ungrabbing: 'Apple Inc. Magic Keyboard' (removed)
Jun 10 09:09:07 a-thinkpad systemd[7353]: Stopped toshy-config.service - Toshy Config Service.
Jun 10 09:09:19 a-thinkpad systemd[7353]: Starting toshy-cosmic-dbus.service - Toshy COSMIC D-Bus Service...
Jun 10 09:09:19 a-thinkpad systemd[7353]: Started toshy-cosmic-dbus.service - Toshy COSMIC D-Bus Service.
Jun 10 09:09:19 a-thinkpad systemd[7353]: Starting toshy-kwin-dbus.service - Toshy KWin D-Bus Service...
Jun 10 09:09:19 a-thinkpad systemd[7353]: Started toshy-kwin-dbus.service - Toshy KWin D-Bus Service.
Jun 10 09:09:19 a-thinkpad systemd[7353]: Starting toshy-wlroots-dbus.service - Toshy Wlroots D-Bus Service...
Jun 10 09:09:19 a-thinkpad systemd[7353]: Started toshy-wlroots-dbus.service - Toshy Wlroots D-Bus Service.
Jun 10 09:09:19 a-thinkpad systemd[7353]: Starting toshy-config.service - Toshy Config Service...
Jun 10 09:09:19 a-thinkpad systemd[7353]: Started toshy-config.service - Toshy Config Service.
Jun 10 09:09:20 a-thinkpad systemd[7353]: Started toshy-session-monitor.service - Toshy Session Monitor.
Jun 10 09:09:21 a-thinkpad toshy-wlroots-dbus[14239]: (--) Starting Toshy D-Bus service to monitor 'zwlr_foreign_toplevel_manager_v1'...
Jun 10 09:09:21 a-thinkpad toshy-wlroots-dbus[14239]: (DD) TOSHY_WLR_DBUS_SVC: The Wayland interface is not available. Exiting.
Jun 10 09:09:22 a-thinkpad toshy-cosmic-dbus[14225]: (--) Starting Toshy D-Bus service to monitor 'zcosmic_toplevel_info_v1'...
Jun 10 09:09:22 a-thinkpad toshy-cosmic-dbus[14225]: (DD) TOSHY_COSMIC_DBUS_SVC: Probably not COSMIC desktop environment. Exiting.
Jun 10 09:09:22 a-thinkpad toshy-kwin-dbus[14232]: (--) Starting Toshy D-Bus service to receive updates from KWin script...
Jun 10 09:09:22 a-thinkpad toshy-kwin-dbus[14232]: (DD) TOSHY_KWIN_DBUS_SVC: Not a kwin_wayland environment. Exiting.
@albertskog
scripts/bin/toshy-services-restart.sh
scripts/bin/toshy-services-stop.sh
scripts/bin/toshy-services-start.sh
You know those are all supposed to be available as aliases (Edit: I mean symlinks in ~/.local/bin/), right? There should be a bunch of toshy-* commands that will Tab-complete in the terminal.
Strange that the restart script would not do the job by itself. Maybe it should stop the config service and then start it, instead of using systemctl's restart command. This is what it's doing currently:
systemctl --user restart toshy-config.service
Probably a good idea to get the keymapper to avoid grabbing your mouse device ('Logitech Wireless Mouse MX Master 2S'). The "ignore device" feature is not available yet, but you could tell it to only grab legit your keyboard devices.
In your keymapper_api slice at the top of your config file, do this:
devices_api(
only_devices = [
'AT Translated Set 2 keyboard',
'Apple Inc. Magic Keyboard',
]
)
I'm assuming the 'solaar-keyboard' device is also related to the mouse, and perhaps plays a part in this issue of the mouse not working. I wouldn't let the keymapper grab that device unless it's an actual keyboard that needs remapping.
I hope this helps with your issue.
Thanks for the quick answer, I've added the lines to my config!
Regarding the scripts, I did not investigate why but I don't seem to have them on my path..
Edit: I'm using zsh and didn't have .local/bin on my path apparently. Added source ~/.profile to my .zprofile and now it works!