Questions tagged [input]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
12 views

Is there a way to 'tail -f' HID-Input of a buzz-controller?

I'm quite a linux-newb. I wanted to develop an application which communicates with Sony PS2-Buzzcontrollers via libusb but discovered that the linux-kernel already comes with out-of-the-box support ...
0
votes
1answer
37 views

why executing ls > empty.txt shows me empty.txt inside empty.txt in an empty folder?

why in an empty folder executing ls > empty.txt shows me empty.txt inside empty.txt ? it is not poetry, it is true and I do not know why. For me, they way to think ls > empty.txt is the ...
0
votes
0answers
50 views

Reset Touchpad driver

My Synaptics touchpad on my laptop running Ubuntu 18.04 recently stopped working. It's not a hardware problem; when running the same version of Ubuntu from a flash drive it works fine. That makes it ...
0
votes
0answers
10 views

Keyboard not getting a keyboard not getting input id, udev rule to do this?

Can I setup a udev rule to assign my keyboard a /dev/input/by-id/ identifier? I can get this from cat /proc/bus/input/devices so it is being recognized at least somewhat correctly. I: Bus=0003 ...
0
votes
0answers
92 views

evdev touching the wrong device

I am trying to configure evdev to pass a mouse through to a virt-manager VM. Why is ubuntu touching the /dev/input/event device instead of the defined one? ls on the device shows this: ls -l /dev/...
0
votes
0answers
12 views

Debian GNU/Linux 9 (stretch) keyboard inputting characters in the wrong order

I am currently using an HP EliteBook 1040 with Debian 9 installed on it. Recently, I noticed that there is a slight lag when typing at certain points, most noticeably in the search bar, and the ...
0
votes
0answers
25 views

How to find hid device and detect when inserted/removed?

I'm following this example on reading data from /dev/hidraw : https://elixir.bootlin.com/linux/latest/source/samples/hidraw/hid-example.c It's exactly what I'm looking as a proof of concept. ...
0
votes
0answers
25 views

Executing a Program with input

I would like to be able to run a program and then feed that program some information all in one line on startup. Suppose I am in the working directory of the executable (sage), I can run ./sage -c "...
0
votes
0answers
33 views

How can I translate keycodes from /dev/input/event* to ASCII in Embedded Linux?

I'm building an embedded linux image with yocto. I can see the keys coming in over /dev/input/event0. I can view them using showkey -k but not showkey -a. I've also tried with an ncurses program I ...
2
votes
1answer
95 views

Touchpad no longer recognized after updating BIOS and kernel

While trying to fix some of my function keys, I decided to update my BIOS. Although this didn't solve my original issue, my touchpad was no longer working! Initially, after the first reboot, it ...
4
votes
1answer
106 views

Input devices stop responding and high X.org and kglobalaccel5 CPU usage when connecting a USB device

I have been having this issue for a while now, but have no idea on how to debug it, so I'll report the details here: Whenever I connect a USB Webcam, a Wacom graphic tablet or my Bluetooth headphones,...
2
votes
0answers
157 views

What's up with input on Linux 5.3?

I recently upgraded to Linux 5.3, and had a problem which significantly impacted usability: during some disk I/O spikes, mouse movements, and sometimes keystrokes, wouldn't register, so I couldn't do ...
1
vote
2answers
151 views

Looking for command line package for showing inline text-based menu selector with arrow keys

I'm looking for a tool for displaying inline menus in the shell which can be navigated with arrow-keys and enter. By "inline", I mean that the menu is displayed within the normal flow of stdout text, ...
2
votes
0answers
34 views

Why does my touchpad stop working when I plug in my (normal, non-USB) headphones?

It's the darnedest thing. And only started happening within the last two days. Whenever I plug in my 3.5mm AKG headphones into the appropriate spot on my Acer Chromebook 15 CB3-532 running Ubuntu 18, ...
2
votes
0answers
118 views

User input in cronjob

I have created a script which calls another script.I'm implementing this via below cronjob 55 12 * * * cd /backup2 && ./script2.sh The another script ,I'm calling(restore1.sh) requires ...
2
votes
0answers
117 views

How to make udev not assign seat to bluetooth keyboard

I would like to use a bluetooth keyboard as a remote control (PIN entry pad for opening an electric strike) instead of as an actual keyboard for console input. I can get access to the bluetooth ...
0
votes
0answers
26 views

Key Malfunctioning - Both Ctrl keys produce more characters than pressed

I use a Lenovo Thinkpad T440p with Debian 9 (stretch), Linux kernel 4.9.0-8-amd64. A weird behavior of the system is that only both Control keys (left and right) malfunction sometimes and stop after ...
0
votes
0answers
136 views

mouse sensitivity not working and input lag in games (linux mint cinnamon)

I'm using a fresh install of Linux Mint Cinnamon on my Acer Aspire E15 Laptop. [E5-575G53T1] Everything works fine, except for mouse input, which is completely broken in multiple ways. 1. My mouse ...
0
votes
3answers
612 views

How to read input lines with newline characters from command line?

I found this to get user input from the command line. But it is failing into recognizing the new line characters I put into the input. Doing: #!/bin/bash read -e -p "Multiline input=" variable; ...
0
votes
1answer
358 views

read user input into array until user enter specific entry

i need to create a bash that get input from user and insert them into an array until user enter an specific thing. for example, if i run script: enter variables: 3 4 7 8 ok i get this array: ...
3
votes
2answers
207 views

Add leading zeroes to a user's input but is being transformed with printf

I am currently looking for an alternative to the following code that works a little less 'wonky'. printf "Please enter the ticket number:\t"; read vTICKET; vTICKET=$(printf %04d "$vTICKET"); printf "$...
3
votes
0answers
187 views

Rotate display or touch-screen without X

My Samsung Galaxy Book 10.6" has an issue on Linux based OSes (Ubuntu 17,18,19, Debian and ChromiumOS) where the digitizer (touch screen input) does not match the display - tapping the top right ...
3
votes
1answer
144 views

Getting type of evdev device

From the Linux userspace, how can I get the type (ie, mouse or keyboard) of an evdev/input_event device? I know that I can enumerate them by reading /proc/bus/input/handlers or listing /sys/class/...
3
votes
1answer
329 views

How to check if If i2c-hid and hid-rmi are not used for touchpad?

I'm seeing the following warning in dmesg: [ 2.631179] psmouse serio2: synaptics: Your touchpad (PNP: SYN1218 PNP0f13) says it can support a different bus. If i2c-hid and hid-rmi are not used, you ...
1
vote
1answer
79 views

read -s gives error via script

I am trying to read a password from user, i used -s silent flag but read -s is not working from the script but it works if i do it manually from terminal. error details project.sh: 3: read: Illegal ...
1
vote
1answer
71 views

Why does a single Yubico show as multiple devices, what's the difference between hid-generic and input?

When I plug in my Yubikey it shows as, usb 1-1: new full-speed USB device number 46 using xhci_hcd usb 1-1: New USB device found, idVendor=1050, idProduct=0407, bcdDevice= 5.12 usb 1-1: New USB ...
0
votes
0answers
28 views

Natural Scrolling - Overview

What are the (software-side) solutions to get natural scrolling, explicitly inverting the scroll direction of the mouse wheel, to work. I know this has been asked several times, and there are several ...
5
votes
1answer
133 views

Why does gawk treat `0123` as a decimal number when coming from the input data?

According to $ man gawk, the strtonum() function can convert a string into a number: strtonum(str) Examine str, and return its numeric value. If str begins ...
-2
votes
1answer
342 views

CTRL+D vs CTRL+C

Is it true to say that CTRL+D stops input execution while CTRL+C stops output displaying (as plain data, without execution)?
0
votes
1answer
26 views

Adding an input to a pipelined command

I use a pipelined command in an alias to start a docker server (e.g alias ent="echo -e '\n';docker-compose up|grep --color ERROR"). The server sometimes asks me a question, to which I should input y ...
2
votes
1answer
215 views

Access grab state of evdev device

I need to retrieved the grab state of an evdev device in a program. More specifically, I need to retrieve the state of the grab pointer in the evdev struct seen here: https://elixir.bootlin.com/linux/...
3
votes
0answers
176 views

How to get position of fingers on touchpad

I want to develop a program which would be able to make use of absolute position of fingers on a touchpad to define custom in-app gestures. I've read that using raw data from evdev is a really bad ...
0
votes
0answers
32 views

monitoring hardware

I have a laptop with a fingerprint reader that is currently doesn't seem to be supported by linux (integrated in lenovo yoga 920). But I am quite curious if it is at all possible for me to listen to ...
0
votes
1answer
51 views

Directly play input sound (Mint)

I recently set up a Linux Mint 18 machine, which has an electric piano plugged into it via a USB sound card. Now, the input works: we can record sounds from the piano; and the output works as we can ...
-1
votes
1answer
102 views

Bash: Is it better to echo or <<<? [closed]

When passing input, which method is better? > echo 'test' | base64 dGVzdAo= > base64 <<< 'test' dGVzdAo= With variables as well, which method should be use? > t='test' > ...
2
votes
2answers
195 views

Bash: how to properly accept user input?

I couldn't find an example online but I'm sure I've seen shell coders use ${1:--} to accept user input. Here's an example: #!/bin/bash var="${1:--}" echo "$var" Then, run it: $ ./test.sh "this is ...
1
vote
1answer
680 views

Libinput transformation matrix for rotating the input coordinates

Take a look at the official documentation for libinput's coordinate transformation matrix: https://wayland.freedesktop.org/libinput/doc/1.1.0/group__config.html#ga09a798f58cc601edd2797780096e9804 ...
3
votes
0answers
21 views

Unicode overwriting keyboard shortcuts

I needed to input some Russian characters so used setxkbmap ru. To switch back I used setxkbmap gb (from awkwardly compounding previous commands from history - be warned...) But now when I use ...
3
votes
2answers
1k views

How to completely inhibit lid switch events?

Context: Due to missing drivers for my 2-in-1 convertible, folding the screen back only triggers a lid switch event. This causes the laptop to suspend or, when "Suspend when laptop lid is closed" is ...
1
vote
1answer
85 views

Detecting keyup

If I type: $ xinput test 14 and press and hold return, I get: key release 36 key press 36 key release 36 key press 36 ... until I release. Questions Is it possible to detect when I ...
0
votes
2answers
1k views

Dell Latitude 5590 Trackpoint not listed in xinput list

I recently installed Debian 9 on my new Dell Latitude 5590 notebook when I realized the pointing stick as well as the three buttons above the touchpad do not work. They work in Ubuntu out of the box. ...
4
votes
4answers
856 views

Create files from a list of text files

I created a file using: $ ls > ls.txt Now I want to go to a different directory and use this file to create a bunch of empty files with the names from each line of ls.txt. What is the easiest ...
0
votes
1answer
60 views

What is the intention of KEY_NEXT compared to KEY_NEXTSONG?

I'm in the process of mapping IR remote buttons in LIRC. I looked through input-event-codes.h and came across KEY_NEXT and KEY_NEXTSONG, so I did some searching but I couldn't find descriptions for ...
1
vote
3answers
2k views

How to use command output (ls) into other command's input (sox)?

I have a folder with multiple .wav files that I am trying to concatenate in order but I think that I am too inexperienced with bash commands to do this as efficient as possible. You see, I don't know ...
1
vote
1answer
2k views

ls: reading directory '.': Input/output error

xubuntu, NTFS. When I trying to open directory with files: username@username-hp:/media/username/dir1/dir2/music$ la ls: reading directory '.': Input/output error Also if I open the directory with ...
0
votes
0answers
66 views

Android's touchscreen key events on Linux

I am working on a Halium port for an Android device that has a Synaptics touchscreen (synaptics_dsx driver). The port is on a mature stage, has a Wayland compositor running, and the apps are provided ...
0
votes
1answer
2k views

pass a variable value as an input to an oracle sql file that is being called from a shell script

Wanted to know if it is possible to "pass a variable value as an input to an oracle sql file that is being called from a shell script" I am trying like this, but its not working: SQL file: set head ...
2
votes
1answer
3k views

Why can't an input file be an output file?

Specifically in the case of cat x y > y and cat x >> x where x and y are files. What would happen if I didn't get a "input file is output file" error? Basically, why am I not allowed to run ...
1
vote
1answer
55 views

Type Y to Delete, if the script is being executed manually

This is a 2 part question. Scenario: This script is on a cronjob. If a folder does not exist, the system sends us an email that opens a ticket which notifies us that the folder is not available. We ...
0
votes
0answers
77 views

expect script to automate utility

we want to automate the utility - "Setup ambari-server" this utility ask 4 default questions , and all answers should be default (no) how to use expect script to automate this utility ? ambari-...