If I type too fast the last key I pressed stays pressed

Today I installed manjaro XFCE, everything went well until the installation finished, I proceeded to restart the pc and disconnect the USB, after logging in I witnessed an error at the time of writing. If I type “quick” (type the next character within 2 seconds) the last key I pressed is held down and any other keys I’m pressing are skipped (I am on a laptop using the laptop keyboard).

Example.

The text: “En realidad Ulises creía que ya existía una editorial que se llamaba así,
pero estaba equivocado y cuando se dio cuenta de su error decidió ponerle a su
revista ese nombre —dijo Barrios.”

What I wrote: “Ennnnn eralidDDDDDDDDCreía queyxistía una editorial que ssssssse llamabbbbbbbbbbbbbbbb śi, pero estabbbbbbbbbbbbbbbb equivocado y cuando se dio cuenta de su errpr decidió ponerl avisttttae snombre -dijo BARrrrrrrrrrrrios.”

I come from Ubuntu and I feel the need to comment that when I restarted the pc (in ubuntu) then I couldn’t connect to any Wi-Fi network (because none appeared) and I had to restart again. In the hours that I’ve been with manjaro this error happened to me, I suppose it must be something related to the drivers but I doubt that it is related to this. I also don’t want to fix the wifi error now, my priority is to be able to write normal again.

System:
  Kernel: 5.15.21-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=180d24b6-3255-48f4-9c54-ce973ae16425 rw quiet
    cryptdevice=UUID=05fbb590-a5c7-4cf6-bbf7-426a2c326cbe:luks-05fbb590-a5c7-4cf6-bbf7-426a2c326cbe
    root=/dev/mapper/luks-05fbb590-a5c7-4cf6-bbf7-426a2c326cbe apparmor=1
    security=apparmor udev.log_priority=3
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.29 info: xfce4-panel wm: xfwm 4.16.1
    vt: 7 dm: LightDM 1.30.0 Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: HP product: HP Laptop 15-da0xxx v: Type1ProductConfigId
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: HP model: 84AA v: 82.45 serial: <superuser required> UEFI: Insyde
    v: F.24 date: 01/10/2020
Battery:
  ID-1: BAT1 charge: 38.9 Wh (100.0%) condition: 38.9/40.9 Wh (95.0%)
    volts: 13.0 min: 11.3 model: COMPAL PABAS0241231 type: Li-ion
    serial: <filter> status: Full
Memory:
  RAM: total: 3.65 GiB used: 2.18 GiB (59.7%)
  RAM Report:
    permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Pentium Silver N5000 bits: 64 type: MCP
    arch: Goldmont Plus family: 6 model-id: 0x7A (122) stepping: 1
    microcode: 0x36
  Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 224 KiB
    desc: d-4x24 KiB; i-4x32 KiB L2: 4 MiB desc: 1x4 MiB
  Speed (MHz): avg: 2480 high: 2586 min/max: 800/2700 scaling:
    driver: intel_cpufreq governor: schedutil cores: 1: 2586 2: 2575 3: 2335
    4: 2426 bogomips: 8756
  Flags: 3dnowprefetch acpi aes aperfmperf apic arat arch_capabilities
    arch_perfmon art bts cat_l2 cdp_l2 clflush clflushopt cmov constant_tsc
    cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts ept ept_ad erms est
    flexpriority fpu fsgsbase fxsr ht ibpb ibrs ibrs_enhanced ida intel_pt
    lahf_lm lm mca mce md_clear mmx monitor movbe mpx msr mtrr nonstop_tsc
    nopl nx pae pat pbe pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse
    pse36 pti pts rdpid rdrand rdseed rdt_a rdtscp rep_good sdbg sep sha_ni
    smap smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2
    tpr_shadow tsc tsc_adjust tsc_deadline_timer tsc_known_freq umip vme vmx
    vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown mitigation: PTI
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl and seccomp
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel GeminiLake [UHD Graphics 605] vendor: Hewlett-Packard
    driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:3184 class-ID: 0300
  Device-2: Chicony HP Webcam type: USB driver: uvcvideo bus-ID: 1-5:3
    chip-ID: 04f2:b62a class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org 1.21.1.3 compositor: xfwm4 v: 4.16.1 driver:
    loaded: modesetting alternate: fbdev,vesa display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0")
    s-diag: 414mm (16.3")
  Monitor-1: eDP-1 res: 1366x768 hz: 60 dpi: 101 size: 344x194mm (13.5x7.6")
    diag: 395mm (15.5")
  Message: Unable to show advanced data. Required tool glxinfo missing.
Audio:
  Device-1: Intel Celeron/Pentium Silver Processor High Definition Audio
    vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
    alternate: snd_soc_skl,snd_sof_pci_intel_apl bus-ID: 00:0e.0
    chip-ID: 8086:3198 class-ID: 0403
  Sound Server-1: ALSA v: k5.15.21-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.20 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.45 running: no
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel port: 2000 bus-ID: 01:00.0
    chip-ID: 10ec:8168 class-ID: 0200
  IF: eno1 state: down mac: <filter>
  Device-2: Realtek RTL8723DE 802.11b/g/n PCIe Adapter
    vendor: Hewlett-Packard driver: rtw_8723de v: N/A modules: rtw88_8723de
    port: 1000 bus-ID: 02:00.0 chip-ID: 10ec:d723 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Realtek Realtek Bluetooth 4.2 Adapter type: USB driver: btusb
    v: 0.8 bus-ID: 1-4:2 chip-ID: 0bda:b009 class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Logical:
  Message: No logical block device data found.
  Device-1: luks-05fbb590-a5c7-4cf6-bbf7-426a2c326cbe maj-min: 254:0
    type: LUKS dm: dm-0 size: 465.46 GiB
  Components:
  p-1: sda2 maj-min: 8:2 size: 465.46 GiB
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 465.76 GiB used: 10.45 GiB (2.2%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital
    model: WD5000LPZX-60Z10T0 size: 465.76 GiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
    rev: 1A05 scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 465.46 GiB size: 457.09 GiB (98.20%)
    used: 10.44 GiB (2.3%) fs: ext4 dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-05fbb590-a5c7-4cf6-bbf7-426a2c326cbe label: N/A
    uuid: 180d24b6-3255-48f4-9c54-ce973ae16425
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 440 KiB (0.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1 label: NO_LABEL
    uuid: F00E-7282
Swap:
  Alert: No swap data was found.
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 9 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-4:2 info: Realtek Realtek Bluetooth 4.2 Adapter
    type: Bluetooth driver: btusb interfaces: 2 rev: 1.1 speed: 12 Mb/s
    power: 500mA chip-ID: 0bda:b009 class-ID: e001 serial: <filter>
  Device-2: 1-5:3 info: Chicony HP Webcam type: Video driver: uvcvideo
    interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 04f2:b62a
    class-ID: 0e02 serial: <filter>
  Hub-2: 2-0:1 info: Super-speed hub ports: 7 rev: 3.0 speed: 5 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 59.0 C mobo: 20.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 193 Uptime: 8h 27m wakeups: 3 Init: systemd v: 250
  tool: systemctl Compilers: gcc: 11.1.0 clang: 13.0.1 Packages: pacman: 1093
  lib: 320 flatpak: 0 Shell: Bash v: 5.1.16 running-in: xfce4-terminal
  inxi: 3.3.12

I used my phone to write most of this.
What should I do to be able to write normally again?.

First thing is:

4GB RAM is enough to run a bare minimum system, but without a Swap you will have problems. 5GB Swap should be enough.

Check Settings > Keyboard > Behaviour and turn off or increase settings for key repeat
xfce:xfce4-settings:keyboard [Xfce Docs]

1 Like

I’m following the steps in the official Manjaro site to create a swap file but when it ask me for my password it always give me an error!

[sudo] password for x: 
Sorry, try again.

I’m 100% sure that the password is correct. Why is this happening?

You may have the issue you opened this thread for? Copy/paste the password from a known good one you write in a text file.

I did that and it still show me an error :frowning:

I have been using the pc for 15 minutes and since I turned it on the key error has not occurred at any time, I don’t know why, yesterday I turned off the pc and went to sleep and now everything works normally, oh except for the error of sudo.

I just thought that the error was caused when the pc was charging so now I plug it in but the error has not returned.

As I said I didn’t do anything, yesterday I went to sleep and today the error seems to have disappeared.

I restart the pc and then charge it and the error returned :frowning: I Disconnect the charger and the error continues.

Type your user password when using sudo and not your root password :wink:

Hello,
have you tried to use an external keyboard to check that it isn’t hardware related ? laptop-keyboards in the low and mid-range price tag aren’t the best ones and the wear out is significant. had a similar problem with my company’s laptop. a dell that wasn’t worth a dime.

Is the same password I use to login right? I been trying with it and it doesn’t work :sob:

I’m not in my home and I don’t have an external keyboard available. I doubt it’s a keyboard problem because when I turned on the PC today I could type normally, the problem returned after restarting.

especially because you’re describing this random failures i doubt that it is software related. the keyboards at laptops tend to bend and this mechanical stress will force to hanging and swinging. this in connection with drinks like coke and juice and the fact of dust is a likely known issue. but at laptops it is very often that the keyboard-carrier is bend because it is a poor design at laptops and i mean almost every laptop nowadays has a terrible bad keyboard construction.

Makes sense to me, but shouldn’t this keyboard key error be witnessed gradually? Why didn’t this happen when I was in Ubuntu two days ago?. Sadly, it would be impossible for me to get a keyboard at this time.

I decided to reinstall Manjaro (the key error continues) and I chose “Swap to File” and by default it was created with 512M (according to htop). Where and how can I find the file and increase its size?. Thanks!

https://wiki.manjaro.org/index.php/Swap

Thank you. I remove the 512M swap and create one of 5G (following the instructions) but the new swap is not being used.

NAME      TYPE SIZE USED PRIO
/swapfile file   5G   0B   -2

Any idea why this happens?

The system didn’t need to swap.

or it needs to be activated with swapon

https://wiki.archlinux.org/title/Swap

Isn’t that the output of swapon command?