You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After turning off the keyboard and mouse event function is executed which runs a command on sudo, but after the screen is dark, its difficult to type the password.
Is it recommenced to add entire script to /etc/sudoers or just stdbuf? Any risks?
appending lamy lamyer =NOPASSWD: /usr/bin/stdbuf to /etc/sudoers is not enough as
$ whoami
lamy
$ hostname
lamyer
$ stdbuf -oL libinput debug-events |whileread -r line;do>case"$line"in
> *"KEYBOARD_KEY"*)
>echo"KEYBOARD_KEY";return 0;> ;;
> *"POINTER_BUTTON"*)
>echo"MOUSE_CLICK";return 0;> ;;
> *"POINTER_MOTION"*)
>echo"MOUSE_MOVED";return 0;> ;;
> esac
> done
Failed to open /dev/input/event13 (Permission denied)
Failed to open /dev/input/event0 (Permission denied)
Failed to open /dev/input/event1 (Permission denied)
Failed to open /dev/input/event3 (Permission denied)
Failed to open /dev/input/event4 (Permission denied)
Failed to open /dev/input/event5 (Permission denied)
Failed to open /dev/input/event7 (Permission denied)
Failed to open /dev/input/event9 (Permission denied)
Failed to open /dev/input/event10 (Permission denied)
Failed to open /dev/input/event8 (Permission denied)
Failed to open /dev/input/event11 (Permission denied)
Failed to open /dev/input/event12 (Permission denied)
Failed to open /dev/input/event15 (Permission denied)
Failed to open /dev/input/event16 (Permission denied)
Failed to open /dev/input/event17 (Permission denied)
Failed to open /dev/input/event18 (Permission denied)
Failed to open /dev/input/event19 (Permission denied)
Failed to open /dev/input/event20 (Permission denied)
Failed to open /dev/input/event2 (Permission denied)
Failed to open /dev/input/event6 (Permission denied)
Failed to open /dev/input/event14 (Permission denied)
Failed to open /dev/input/event21 (Permission denied)
Expected device added events on startup but got none. Maybe you don't have the right permissions?
The text was updated successfully, but these errors were encountered:
Laptop: Fedora 41, Gnome 47, Wayland
After turning off the keyboard and mouse event function is executed which runs a command on sudo, but after the screen is dark, its difficult to type the password.
Is it recommenced to add entire script to
/etc/sudoers
or juststdbuf
? Any risks?appending
lamy lamyer =NOPASSWD: /usr/bin/stdbuf
to/etc/sudoers
is not enough asThe text was updated successfully, but these errors were encountered: