Modifier Keys doing crazy stuff 19 March 2025, 16:25:16 Hello hopefully soeone here has an idea what's going on I'm on a Thinkpad X13 Yoga Gen2, running Artix-runit with the linux-lts kernel.Since doing an update today, my keyboard has been doing some really bizarre stuff, some things I found thus far include:Shift+Control actiates the Capslock-key, but it doesn't also deactivate it, I have to press Capslock twice for thatShift+Control+> (a shortcut in a program I use frequently) does a paste (Control+v) and then prints 'z' continuosly, until I hit zsome keys, especially 'v', 'y', 't' and ',' don't work about 50% of the timeI investigated further and in xev, when pressing Shift+Control it triggers the following sequence:Shift_LControl_LXF86AudioLowerVolumeSuper_LBackSpacebraceleftbracerightYTCaps_Lockall of those are only KeyPress events, then theres also a KeyPress and a KeyLower event for XF86Display.Pressing Shift+Control+> triggers an even longer, even wilder string of KeyPress events.Does anyone have an idea where I could look next? I already tried restarting aswell... Seeing as this just started happening after an update, I don't think it's a hardware fault. Btw, the update didn't include a kernel update. Thanks a ton!
Re: Modifier Keys doing crazy stuff Reply #1 – 19 March 2025, 17:32:48 UPDATE: Switching kernel from linux-lts to linux didn't do anything.
Re: Modifier Keys doing crazy stuff Reply #2 – 19 March 2025, 18:08:35 I am a noob and have no clue what I am talking about, but just some ideas to assist someone who maybe does:Try showkey on a TTY instead of xev, to avoid having a GUI program potentially mess with itTry a different keyboardSome info on the X environment and system in general, the usual(Assuming you mean Shift+Control+< not +>)
Re: Modifier Keys doing crazy stuff Reply #3 – 19 March 2025, 18:58:53 Great ideas!Trying another keyboard actually worked! I kindof wish it hadn't though, as it points towards my laptops keyboard having a hardware-problem, does it? Or is there some software-difference between handling the internal keyboard and an external one?As for my environment, I'm running standard i3 in an X Server and, apart from configuring multiple keyboard-layouts, I never messed with the keyboard.And just to show that the problem persists in the tty on the laptop keyboard:keycode 29 presskeycode 42 presskeycode 114 presskeycode 125 presskeycode 14 presskeycode 26 presskeycode 27 presskeycode 21 presskeycode 20 presskeycode 115 presskeycode 58 presskeycode 15 presskeycode 227 presskeycode 227 releasekeycode 15 presskeycode 15 presskeycode 15 presskeycode 15 presskeycode 15 presskeycode 15 presskeycode 15 presskeycode 15 presskeycode 15 presskeycode 15 presskeycode 29 releasekeycode 42 releasekeycode 114 releasekeycode 125 releasekeycode 14 releasekeycode 26 releasekeycode 27 releaseWith 29 being Control and 42 being Shift. (I didn't double-check the other keycodes but they shouldn't be there regardless)
Re: Modifier Keys doing crazy stuff Reply #4 – 19 March 2025, 19:59:33 Quote from: claudiusgoennus – on 19 March 2025, 18:58:53as it points towards my laptops keyboard having a hardware-problem, does it? Or is there some software-difference between handling the internal keyboard and an external one?It's possible the keyboard developed a hardware fault and the update was coincidental. It's also possible the update you did included a kernel update which has caused this. The fact that you use a LTS kernel would make the latter less likely but not impossible.If you post (as an attachment) the content of /var/pacman.log after the update and up until the next one it may be possible to suggest some downgrades to test. You could post sudo dmesg as well in case there's any errors in there.
Re: Modifier Keys doing crazy stuff Reply #5 – 20 March 2025, 17:55:06 It seems, that I also did a yay -Syu yesterday, about an hour later than the normal upgrade. There's a bunch on libraries mentioned that I don't really know, so I can't say if they could have had anything to do with this problem. An additional detail: I noticed that the Lenovo Pen for my toughscreen stopped working, although normal touch operation is still functional.Thanks a ton, I wouldn't know where to start looking in the dmesg output!
Re: Modifier Keys doing crazy stuff Reply #6 – 20 March 2025, 18:17:41 Sorry, I had the wrong file extensions for my files so they weren't attached.
Re: Modifier Keys doing crazy stuff Reply #7 – 20 March 2025, 22:51:05 Nothing is jumping out at me I'm afraid. Is it possible the keyboard took some liquid damage ? Might not have been you. I know back in the day my kids would probably have wiped it up and hoped to get away with it!.
Re: Modifier Keys doing crazy stuff Reply #8 – 21 March 2025, 02:50:49 My suggestion would be firstly downgrade to a point before where it stopped working, either using the contents of /var/cache/pacman/pkg or use the archive, either manually or as described by nous in this thread:https://forum.artixlinux.org/index.php/topic,7614.msg47483/#msg47483Although there's no real chance packages like gimp have anything to do with this it's not going to cost anything to downgrade everything and be 100% certain whether it was an upgrade or not.Also, boot from a live USB iso or two, to eliminate any dodgy personal config issues.If it still doesn't work then it sounds like a keyboard fault. The keys are connected in a matrix so several are often affected by internal electronics failures, they have more circuitry than just straight buttons inside them, which is why there aren't more wires coming out. The keyboard is usually quite easy to remove, you should find instructions from the manufacturer and probably videos online for your model of laptop. Typically you unclip some bezel(s) and undo a couple of little crosshead screws with a jewellers screwdriver set, and there's some kind of electrical connector, either on an edge or via a ribbon cable. Take it out, blow (ideally with an airline) and brush it out to make sure nothing is causing a stuck key, then put it back again and see if it works. If not, look on eBay / AliExpress or wherever to find a cheap replacement, usually you can find something around 10 - 20 £/$/Euros. You can even check if non-English alternatives are cheaper and acceptable, some might be the same layout with 2 sets of characters printed on them for example. I've had to replace several keyboards on various laptops over the years, they can just go wrong for no reason, some laptop models can be prone to regular failures while others endure. I've never worried if it's a non-genuine or used one either, but make absolutely sure it's the right one for your exact model of laptop. You can usually find a part number on the back of the old one, then you might find the same part is used in other models and can find one cheaper even though the ad may not mention your model, just the part number. There might also be keyboards with different part numbers which are the same and are used in your model which would be fine to fit, hence the need to research a little.If you were really unlucky it could be a mobo issue on the interface circuits, but that's very unlikely.
Re: Modifier Keys doing crazy stuff Reply #9 – 21 March 2025, 04:20:13 Quote from: claudiusgoennus – on 20 March 2025, 17:55:06It seems, that I also did a yay -Syu yesterday, about an hour later than the normal upgrade. There's a bunch on libraries mentioned that I don't really know, so I can't say if they could have had anything to do with this problem. yay -Syu = Pandora's box
Re: Modifier Keys doing crazy stuff Reply #10 – 21 March 2025, 09:45:23 Replugging the keyboard would be my bet too but I'd follow #######'s steps.More out of curiosity, what does this mean exactly:Quote from: claudiusgoennus – on 19 March 2025, 18:58:53configuring multiple keyboard-layoutsQuote from: gripped – on 20 March 2025, 22:51:05my kids would probably have wiped it up and hoped to get away with it!.> hoped
Re: Modifier Keys doing crazy stuff Reply #11 – 21 March 2025, 13:08:38 @#######I tried booting from Mint 22 bootstick and I saw the exact same behaviour. This would suggest a hardware-fault, so I probably won't try rolling back packages and look for a replacement. Thank you so much for your suggestions! I have replaced laptop keyboards before, but I wanted to avoid it if possible.One last question: Could a keyboard hardware-fault cause my touchscreen pen to not work? For that maybe I'll try rerolling updates tonight.@mikapyonI can change between german and english layouts by pressing Alt+Space, because I prefer the english layout but live in a german speaking country, so sometimes I need special characters. Although this configuration happened so long ago that I couldn't find where I had made it, even after looking for a while... Oops!
Re: Modifier Keys doing crazy stuff Reply #12 – 21 March 2025, 14:26:03 It looks like your keyboard includes a trackpoint and buttons, so a fault there might interfere with other pointing devices. The BIOS does hw detection at boot which might compensate for small voltage discrepancies or disable parts of the system if it thinks they are not working properly. Faulty touchpads or trackpoints can drag the pointer to the edge of the screen and pin it there, possibly out of view. You could even remove the built in keyboard and boot with only an external one to test this, usually it is safe to do this, so long as you are very careful with the live exposed circuits, which could be shorted by any careless move.There were some errors relating to bluetooth in your dmesg, which might also be relevant if it connects using this. Last Edit: 21 March 2025, 16:05:20 by #######