11
Startup script inconsistently executes, but I don't know why
(programming.dev)
A community for news and discussion about linux mint
I have almost no idea of what half of what you're saying is; I've heard of systemd, initd, and cron, but I don't know what exactly they are and I don't know what "shell configs" are.
I thought it was obvious that I'm running Linux Mint since I posted this in !linuxmint@programming.dev. I'm using Zena, 22.3 on kernel 7.0.0-14, which seems to be the latest one that Update Manager is showing me.
/home/user/another_folder/remap_caps_to_enter.shcontaining the code abovebashthe above path as a commandI see. Thank you for the details shared!
I've never experienced Linux Mint, but a quick Google shows an option "Caps Lock acts as Return" in the desktop environment (DE) settings. Is that the main idea?
Regarding the custom script case. Is it possible a system-wide service executes after your boot/startup script, slightly later, remapping it again?
We may try investigating. For instance, in a new terminal on the very system start, via
xev, to try capture the moment it changes:Or manually:
I would also try checking out logs:
Edit 2026-06-13
Thank you, @Flagstaff@programming.dev (source)
I forgot to check these before already applying it... It's okay... I'll just tolerate it for now. I may try the other code later but am wiped out... Thanks for all the ideas, though.
Sincere apologies! Apparently, the
mappingwas in my dated local custom build of the tool...Have you tried recording the general
xev(with no , without any explicit filtering?Your
xevbuild/Man/Info message should list the supported. For example, in v1.2.3, these are supported:Yet, today we found the actual possible culprit, and monitoring the events is probably not required. We know that it will just change, and the issue source should be a separate whole system-wide service that changes your initial change to its own configured, eventually.
There are many custom key remapping tools, including keyd, but I would try realizing/experiment with the standards first, and I appreciate you for still trying! It may help you in the future.
That's a figment. It doesn't exist. I had checked the list of possible reassignments and was furious that Enter is, like, literally the only reassignment that isn't in the list. I mean, unless something recently got added, it wasn't there a month ago. That'd be sweet if it is now...
I'm not at a PC right now but will check later, thanks.
If I am not mistaken, Linux Mint settings service uses
xkeyboard-config.---
---
Source
The actual commit: 6b30f36201b40fddcf28918eb4c96b13a23b42ae
Yet, I've checked in a virtual machine online, and there's no such, apparently, indeed (sorry).
However, I believe it's possible to modify it manually in file
/usr/share/X11/xkb/rules/evdev.xml, and I've tried quickly the following (after changes to the file, restart thecsd-keyboard; e.g., by killing it). Would it work in your case (I would also try rebooting after)?:Screenshot
Oh, sweet, huh, nice. Thanks a ton for the research; I totally didn't think to go this route. I'll try it when I next can!