/srv/irclogs.ubuntu.com/2024/05/06/#ubuntu-mate.txt

m4tnot 100% sure what's happening - has anyone seen oddness in 24.04 with mate-terminal and extra newlines being sent?17:11
m4tcould be my keyboard, i also updated firmware on that at the same time17:12
m4ti think once running 'reset' fixed it. haven't noticed happening in an older ubuntu vm.17:12
superkuhPerhaps you have braketed paste on?19:57
superkuhhttps://www.linuxquestions.org/questions/slackware-14/pasting-stuff-in-a-terminal-is-now-highlighted-but-by-what-4175686705/ Create a ~/.inputrc with the line, "set enable-bracketed-paste Off"19:58
superkuhI do this in all new deb/ubuntu based distros now. Started being required about 4 years ago.19:59
m4tit just happened in a vm as well actually20:05
m4tgoing to downgrade kb firmware20:05
m4tBathroom Epiphanies:Frosty Flake:1: BUILD:  (Feb 16 2024)20:12
m4tkept trying to rebuild when i just wanted to flash, wound up figuring out the command 'make' was calling and flashing the old .hex20:12
m4tsuperkuh: i don't think it's that, if i do ctrl-shift-t to open a new terminal then do 'sudo -i<enter>', it'll send 2 newlines and try to auth with a blank pass immediately20:14
m4thappens in other console apps as well. but it just happened in a VM running older mate (20.04) so i think it's the kb. could be x11 as well i guess.20:14
m4tit does it about 5-10% of the time20:14
m4tif this fixes it i may try to bisect and/or compile the latest git with the avr-libc toolchain from 23.10 (used for libc on the keyboard microcontroller)20:29
superkuhYour keyboard runs on an avr and you can change the firmware? That's rad.20:33
m4tyeah, it's a coolermaster quickfire rapid. it actually has a socketed controller board, so i found a third party (now discontinued) plug in replacement based on avr20:38
m4tthe newer versions have a soldered on controller so can't be swapped20:38
superkuhI am using a 21 year old Microsoft Internet Keyboard 3.0a (PS/2).20:39
m4tlol20:39
m4tbeen using it for 21 years?! or it's just old20:39
superkuhI've used it constantly since I bought it new when I built my "going to university" computer in 2023.20:40
superkuhI've had to re-solder on a new PS/2 connector twice. Otherwise it's held up perfectly. And I type *a lot*.20:40
superkuhKeycaps are just as bright as new.20:40
superkuhER, in 2003.20:40
m4ti think i understand what that bracketed paste thing you're talking about does now20:41
superkuhNot 2023. :|20:41
m4tpaste multiple lines to bash, and it doesn't execute it20:41
superkuhYes.20:41
m4thave to hit enter again20:41
superkuhI guess that's kind of the opposite of your problem.20:41
m4theh20:41
m4tit might be something with the debounce handling in the fw (or some timing change introduced with newer toolchain). i don't see it on other keys though.20:42
m4tmaybe there is some cheeto dust in the switch20:42
superkuhDoes xev say anything special?20:42
m4ti didn't test with that, if it keeps happening i will try to repro there20:43
m4tanother possibility is that my fingers are just suddenly fatter20:43
m4tyeah i don't think it's the keyboard; i can kinda repro it now21:27
m4tif i hit the key firmly and press it all the way down, it's registering 2 presses21:27
m4tmaybe the repeat keys setting21:28
m4ttrying to find the keyboard settings in 'dconf dump /'. i see the accessibility ones, but not repeat keys / cursor blinking from the first page21:31
m4tmay mess with this: https://github.com/qmk/qmk_firmware/blob/master/docs/feature_debounce_type.md21:34
m4twhen it happens, the 2 presses are in very rapid succession; like, milliseconds apart, so i think it's too quick to be done by the OS actually21:34
m4tworse comes to worse i could replace the switch. already did it for one years ago, i think it was misbehaving as well21:36
m4ttime 674546179, time 674546180 from xev when it happens21:41
m4tperl -Mstrict -Mwarnings -e 'use Time::HiRes qw(tv_interval gettimeofday); my $last = [gettimeofday]; while(<>) { my $now = [gettimeofday]; print(tv_interval($last, $now), "\n"); $last = $now; }'21:49
m4tshows when it repeats they're ~20ms apart21:49
m4tholding the key, repeat is 32ms apart21:51
m4ti ordered some replacement switches, gonna be annoyed if that's not it heh22:48
superkuhWhat was the result of testing with a different keyboard?23:08

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!