Quantcast
Channel: MX Linux Forum
Viewing all articles
Browse latest Browse all 4142

Software / Configuration • Intended keyboard remapping only works intermittently

$
0
0
My typing depends on Ctrl being immediately to the left of A, and once a month or so want to lock capitals. So every computer I've owned has had CapsLock swapped with left Ctrl. Unfortunately (i) I'm a permanent NooB so I don't understand what I'm doing, and (ii) when I set up my current computer a couple of days ago this was five long years after I'd set up its predecessor, so I had no memory of what I'd done back then.

Eventually I found ~/.config/autostart/Adjust keyboard.desktop , which reads

Code:

[Desktop Entry]Encoding=UTF-8Version=0.9.4Type=ApplicationName=Adjust keyboardComment=swap CapsLock and CtrlExec=/bin/sh -c "sleep 3; setxkbmap -option '' -option 'ctrl:swapcaps,terminate:ctrl_alt_bksp' ; "'notify-send --icon=preferences-desktop-keyboard "Remapped CapsLock" "$(setxkbmap -query)"'OnlyShowIn=XFCE;RunHook=0StartupNotify=falseTerminal=falseHidden=false
This -- possibly in conjunction with some modification elsewhere that I now don't remember -- works perfectly and consistently on my old (MX 19) system. But it's rather a different story on my new (MX 23) system.

After a restart, Adjust keyboard.desktop works reliably to swap CapsLock and left Ctrl. (It doesn't affect right Ctrl.) I'm happy with this. After the system has been woken from suspension/sleep, however, the key swapping may either
  1. work perfectly (swapping the two keys as I want), or
  2. only half work, so that both the "CapsLock" key and the left "Ctrl" key work as CapsLock.
Interestingly, it never completely fails to work (by leaving both "CapsLock" and left "Ctrl" to work as Lenovo intended).

I imagine that the choice between an (A) and a (B) result depends on the state the computer was in when I hit the "Suspend" option, but I haven't been able to deduce any pattern to it.

Here's the new system:

Code:

System:  Kernel: 6.5.0-1mx-ahs-amd64 [6.5.3-1~mx23ahs] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0    parameters: BOOT_IMAGE=/boot/vmlinuz-6.5.0-1mx-ahs-amd64 root=UUID=<filter> ro quiet splash  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel wm: xfwm v: 4.18.0 vt: 7    dm: LightDM v: 1.26.0 Distro: MX-23.2_ahs_x64 Libretto October 15  2023 base: Debian GNU/Linux    12 (bookworm)Machine:  Type: Laptop System: LENOVO product: 21JRCTO1WW v: ThinkPad E14 Gen 5    serial: <superuser required> Chassis: type: 10 serial: <superuser required>  Mobo: LENOVO model: 21JRCTO1WW v: ThinkPad serial: <superuser required> UEFI: LENOVO    v: R2CET32W (1.14) date: 11/27/2023Battery:  ID-1: BAT0 charge: 49.1 Wh (100.0%) condition: 49.1/47.0 Wh (104.6%) volts: 13.1 min: 11.3    model: COSMX LNV-5B11K63024 type: Li-poly serial: <filter> status: full cycles: 2CPU:  Info: model: AMD Ryzen 3 7330U with Radeon Graphics bits: 64 type: MT MCP arch: Zen 3 gen: 4    level: v3 note: check built: 2021-22 process: TSMC n7 (7nm) family: 0x19 (25) model-id: 0x50 (80)    stepping: 0 microcode: 0xA50000D  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache: L1: 256 KiB    desc: d-4x32 KiB; i-4x32 KiB L2: 2 MiB desc: 4x512 KiB L3: 8 MiB desc: 1x8 MiB  Speed (MHz): avg: 1259 high: 2537 min/max: 400/4388 scaling: driver: amd-pstate-epp    governor: powersave cores: 1: 1513 2: 2019 3: 400 4: 400 5: 2537 6: 400 7: 400 8: 2403    bogomips: 36730  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm  Vulnerabilities:  Type: gather_data_sampling status: Not affected  Type: itlb_multihit status: Not affected  Type: l1tf status: Not affected  Type: mds status: Not affected  Type: meltdown status: Not affected  Type: mmio_stale_data status: Not affected  Type: retbleed status: Not affected  Type: spec_rstack_overflow mitigation: safe RET, no microcode  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW, STIBP: always-on, RSB    filling, PBRSB-eIBRS: Not affected  Type: srbds status: Not affected  Type: tsx_async_abort status: Not affectedGraphics:  Device-1: AMD Barcelo vendor: Lenovo driver: amdgpu v: kernel arch: GCN-5 code: Vega    process: GF 14nm built: 2017-20 pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4    speed: 16 GT/s ports: active: eDP-1 empty: DP-1,DP-2,HDMI-A-1 bus-ID: 04:00.0    chip-ID: 1002:15e7 class-ID: 0300 temp: 40.0 C  Device-2: Chicony Integrated Camera type: USB driver: uvcvideo bus-ID: 1-3:3 chip-ID: 04f2:b7b9    class-ID: fe01 serial: <filter>  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.18.0 driver: X: loaded: amdgpu    unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu display-ID: :0.0 screens: 1  Screen-1: 0 s-res: 1920x1200 s-dpi: 96 s-size: 508x317mm (20.00x12.48") s-diag: 599mm (23.57")  Monitor-1: eDP-1 mapped: eDP model: BOE Display 0x0a35 built: 2021 res: 1920x1200 hz: 60    dpi: 161 gamma: 1.2 size: 302x189mm (11.89x7.44") diag: 356mm (14") ratio: 16:10 modes:    max: 1920x1200 min: 640x480  API: OpenGL v: 4.6 Mesa 23.1.2-1~mx23ahs renderer: AMD Radeon Graphics (renoir LLVM 15.0.6 DRM    3.54 6.5.0-1mx-ahs-amd64) direct-render: YesAudio:  Device-1: AMD Renoir Radeon High Definition Audio vendor: Lenovo driver: snd_hda_intel v: kernel    pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 04:00.1    chip-ID: 1002:1637 class-ID: 0403  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Lenovo driver: snd_rn_pci_acp3x    v: kernel alternate: snd_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x pcie: gen: 3 speed: 8 GT/s    lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 04:00.5 chip-ID: 1022:15e2 class-ID: 0480  Device-3: AMD Family 17h/19h HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel pcie:    gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 04:00.6 chip-ID: 1022:15e3    class-ID: 0403  API: ALSA v: k6.5.0-1mx-ahs-amd64 status: kernel-api tools: alsamixer,amixer  Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin    tools: pactl,pw-cat,pw-cli,wpctlNetwork:  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo driver: r8169    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 02:00.0 chip-ID: 10ec:8168    class-ID: 0200  IF: eth0 state: down mac: <filter>  Device-2: Realtek vendor: Lenovo driver: rtw89_8852be v: kernel modules: wl pcie: gen: 1    speed: 2.5 GT/s lanes: 1 port: 2000 bus-ID: 03:00.0 chip-ID: 10ec:b852 class-ID: 0280  IF: wlan0 state: up mac: <filter>Bluetooth:  Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8 bus-ID: 3-4:2 chip-ID: 0bda:4853    class-ID: e001 serial: <filter>  Report: hciconfig ID: hci0 rfk-id: 2 state: up address: <filter>  Info: acl-mtu: 1021:6 sco-mtu: 255:12 link-policy: rswitch hold sniff park    link-mode: peripheral accept service-classes: rendering, capturing, object transfer, audio,    telephonyDrives:  Local Storage: total: 476.94 GiB used: 14.5 GiB (3.0%)  SMART Message: Unable to run smartctl. Root privileges required.  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital model: WD PC SN740 SDDQMQD-512G-1201    size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD    serial: <filter> rev: 73116101 temp: 25.9 C scheme: GPTPartition:  ID-1: / raw-size: 52.44 GiB size: 51.31 GiB (97.86%) used: 11.72 GiB (22.8%) fs: ext4    dev: /dev/nvme0n1p2 maj-min: 259:2  ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 274 KiB (0.1%) fs: vfat    dev: /dev/nvme0n1p1 maj-min: 259:1  ID-3: /home raw-size: 424.25 GiB size: 416.51 GiB (98.17%) used: 2.78 GiB (0.7%) fs: ext4    dev: /dev/nvme0n1p3 maj-min: 259:3Swap:  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)  ID-1: swap-1 type: file size: 4 GiB used: 0 KiB (0.0%) priority: -2 file: /swap/swapSensors:  System Temperatures: cpu: 47.0 C mobo: N/A gpu: amdgpu temp: 40.0 C  Fan Speeds (RPM): fan-1: 0 fan-2: 0Repos:  Packages: pm: dpkg pkgs: 2213 libs: 1146 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm    pkgs: 0 pm: flatpak pkgs: 0  No active apt repos in: /etc/apt/sources.list  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list    1: deb http://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware  Active apt repos in: /etc/apt/sources.list.d/debian.list    1: deb http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware    2: deb http://security.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware  Active apt repos in: /etc/apt/sources.list.d/mx.list    1: deb https://ftp.yz.yamagata-u.ac.jp/pub/Linux/MX-Linux-Packages/mx/repo/ bookworm main non-free    2: deb https://ftp.yz.yamagata-u.ac.jp/pub/Linux/MX-Linux-Packages/mx/repo/ bookworm ahsInfo:  Processes: 283 Uptime: 1h 14m wakeups: 4276 Memory: 14.46 GiB used: 2.17 GiB (15.0%)  Init: SysVinit v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0  alt: 12 Client: shell wrapper v: 5.2.15-release inxi: 3.3.26Boot Mode: UEFI
Suggestions?

Statistics: Posted by microcord — Sun Jan 28, 2024 11:26 pm



Viewing all articles
Browse latest Browse all 4142

Trending Articles