1_4M_N008

joined 2 years ago
7
Trouble with keyboard (gist.github.com)
submitted 1 year ago* (last edited 11 months ago) by 1_4M_N008@programming.dev to c/archlinux@lemmy.ml
 

cross-posted from: https://programming.dev/post/22695206

Hey people! I hope you are having good time I recently installed arch, but I have trouble with my keyboard during installation and post installation which is null character (^@) printed to stdout, if I pressed function or Esc key null character stop appearing until some command wait for input (e.g. passwd) or pacman updating repo which will mess up progress bar or install conformation

I managed to install arch by enabling ssh with shell redirection, since I can't use vim or nano. I thought post installation everything should go fine since I installed base, linux, linux-firmware and amd-ucode packages, but now I can't log in as a result of null character

I should also mention that my problem across many distros like mint and mint xfce4, parrot, fedora, arch and EndeavourOS

note:

  • hot keys (sound, brightness control keys etc.) work fine on fedora, but not on EndeavourOS version (25/06/2024)
  • Keyboard response time feel slow, and I can't repeat key press by holding the key (e.g. hold backspace to delete several characters)
  • vim not working, it will switch from insert to normal mode
  • nano will go to end of file by moving line by line
  • Sometime in live arch iso systemctl log will interrupt and appear

additional note: I think Fn key is what causing the problem

the gist is output from fedora workstation 40.1 livecd I think it may help

edit: notes list format

edit: Sorry for being a bit late, but it is solved, please check

7
Trouble with keyboard (gist.github.com)
submitted 1 year ago* (last edited 11 months ago) by 1_4M_N008@programming.dev to c/linux@lemmy.ml
 

Hey people! I hope you are having good time I recently installed arch, but I have trouble with my keyboard during installation and post installation which is null character (^@) printed to stdout, if I pressed function or Esc key null character stop appearing until some command wait for input (e.g. passwd) or pacman updating repo which will mess up progress bar or install conformation

I managed to install arch by enabling ssh with shell redirection, since I can't use vim or nano. I thought post installation everything should go fine since I installed base, linux, linux-firmware and amd-ucode packages, but now I can't log in as a result of null character

I should also mention that my problem across many distros like mint and mint xfce4, parrot, fedora, arch and EndeavourOS

note:

  • hot keys (sound, brightness control keys etc.) work fine on fedora, but not on EndeavourOS version (25/06/2024)
  • Keyboard response time feel slow, and I can't repeat key press by holding the key (e.g. hold backspace to delete several characters)
  • vim not working, it will switch from insert to normal mode
  • nano will go to end of file by moving line by line
  • Sometime in live arch iso systemctl log will interrupt and appear

additional note: I think Fn key is what causing the problem

the gist is output from fedora workstation 40.1 livecd I think it may help

edit: notes list format

edit: Sorry for being a bit late, but it is solved, please check

 

I've tried to stow dot files by following online blog/form, and it worked now, I tried to manage my $HOME/bin directory with stow, but it didn't

$HOME/.dotfiles directory structure

/home/USER/.dotfiles/
|-- bash
|   |-- .bash_aliases
|   |-- .bash_logout
|   `-- .bashrc
|-- .git
|   |-- branches
|   |-- COMMIT_EDITMSG
|   |-- config
|   |-- description
|   |-- HEAD
|   |-- hooks
|   |-- index
|   |-- info
|   |-- logs
|   |-- objects
|   `-- refs
|-- git
|   `-- .gitconfig
|-- .gitignore
|-- install.sh
|-- Makefile
|-- .stow-local-ignore
|-- vim
|   `-- .vimrc
`-- zsh

$HOME/bin/src directory structure

/home/USER/bin/
|-- src
|   |-- backup
|   |   |-- backup
|   |-- clone
|   |   `-- clone
|   |-- epub2html
|   |   `-- epub2html
|   |-- gnome-nightlight
|   |   `-- nightlight.sh
|   |-- list
|   |   `-- list
|   |-- new
|   |-- pomorodo
|   |   |-- notification.wav
|   |   |-- old_pomo
|   |   |-- pomorodo
|   |   `-- test
|   |-- revoke_exec
|   |   `-- revoke_exec
|   |-- rm_exec
|   |   |-- rm_exec
|   |   `-- tmp
|   |-- install

Where is my mistake and thanks in advance.

 

hello guys. i am trying to match one or more digit from end of string

import re

print(re.match(r'\d+$', "hello001"))
print(re.match(r'[0-9]+$', "hello001"))

output None from both print statement. I've tried my regex on regex101.com and it seems working probably.