Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [input]

The tag has no usage guidance.

0
votes
1answer
13 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 ...
0
votes
0answers
18 views

Passing Input parameters to the Daemon Process

I have a shell script which reads input from Terminal. I would like to run this script as a daemon process. I have read and understood about making a script to a daemon process where we would create a ...
0
votes
0answers
14 views

Media Ct Unable to Open Subdev Device Node

I am trying to use media-ctl to show my current routing and I am receiving the following error. I am using the -v flag. pad0: Sink v4l2_subdev_open: Failed to open subdev device node v4l2_subdev_open:...
-1
votes
1answer
68 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
32 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 ...
0
votes
0answers
45 views

Bluetooth mouse not showing up in /dev/input

I have a odd problem with my new install of ArchLinux on a Intel NUC box. The Bluetooth mouse (Logitech MX Anywhere 2S) connect without problems using bluetoothctl, but it does not show up in /dev/...
0
votes
1answer
84 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
17 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 ...
2
votes
2answers
165 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
28 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
319 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. ...
3
votes
4answers
184 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
26 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
319 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 ...
0
votes
0answers
779 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
28 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
123 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 ...
0
votes
0answers
18 views

How to add/update/delete a record in a file based on a input value

I need to insert/update/delete a record in a file based on a input received from other file. File to be modified looks as below. Id Data 1 Mango 2 Banana 3 Grape Id Operation Data 1 R Kiwi 2 D 7 ...
2
votes
1answer
550 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
42 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
54 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-...
0
votes
1answer
34 views

Send quit keystroke (Q + Enter) to program after running for a certain period of time

Some terminal programs have a quit keystroke to safely stop their execution, for example: Q+Enter From this question I learned that the timeout command allows to send signals to a program after a ...
1
vote
3answers
669 views

How can I run a shell script on input device event

I have a USB remote presenter that appears as a keyboard. Using evtest I can see the input events from the device. How can I capture those events in a shell script? I had see some solutions using C ...
0
votes
0answers
757 views

Keyboard and mouse not working in Ubuntu

I installed Ubuntu 16.04 ,17.10 and I have the problem that the keyboard and mouse work only through the login process. After entering my password, the mouse and keyboard stop working, and the system ...
3
votes
3answers
963 views

How send multiple command as input in a program?

I know how send a command as a input in a program like this: echo toto | ./my_prog And with process substitution + redirection: r < <(echo toto) But how to do this if I want to input a ...
0
votes
0answers
73 views

ASUS UX360CA Input problems

I installed Ubuntu Gnome 16.04 on my ASUS UX360CAK tablet and it works fine. However, I've come across some problems with input. The touchpad settings are VERY minimal and I can only get it to ...
1
vote
0answers
213 views

How to control how udev tags the input devices?

I create virtual devices using uinput that are then properly detected by udev which seems to be assigning a tag like "mouse" or "tablet". I guess udev does this by judging the capabilities set for ...
2
votes
0answers
140 views

How to use Mouse Wheel Emulation?

I have a pointing device without a scroll wheel, but I'd like to be able to scroll with it, perhaps by holding down a key and dragging. I've seen a few threads about similar topics, but none of the ...
0
votes
2answers
436 views

How to read extra keys from keyboard (Steelseries APEX 300)

I try to get the extra keys of the Steelseries APEX 300 working. The main keys and the standard special keys working correctly. At the end I want to write a small app (C/C++ Qt) to assign some ...
1
vote
2answers
81 views

read value validation

Is there a way to validate or confirm that the user wrote what it meant to write in read? For example, the user meant to write "Hello world!" but mistakenly wrote "Hello world@". This is very similar ...
0
votes
0answers
19 views

Difference between KEY_RESERVED and KEY_LEFTCTRL in

In Linux/input-event-codes.h source file , have noticed following definitions , define KEY_RESERVED 0 define KEY_LEFTCTRL 29 Anybody helps to understand what is the usage of above 2 ...
0
votes
1answer
129 views

Debugging USB events - Lenovo wacom active pen

I am using an active pen (one that has a battery) on my Touchpad and it has stopped working. I am trying to find out whether the problem is in the hardware or software. The touchscreen is working fine,...
2
votes
1answer
155 views

I can't use the letter “d” on commandline

When I'm logged as user or root I cannot type the letter d on a terminal, and if I paste a word containing it the d is erased. I can type it in the graphical interface (i3wm) and in non-graphical ...
2
votes
1answer
53 views

Unable to type diaeresis using keyboard

Since migrating from Linux Mint 18.3 to the latest Manjaro stable, I have been unable to type diaereses. When I try, it immediately creates a quotation mark, instead of waiting for other input (...
0
votes
0answers
363 views

Microsoft Sculpt Comfort bluetooth mouse doesn't connect after pairing

So I bought this mouse thinking that it wouldn't need to have any additional windows-based software to run and it looks like I was wrong. I'm using bluez 5.47-3 and default main bluetooth config. ...
0
votes
1answer
905 views

Reading /dev/input/ of PS/2 keyboard

I may be a little off-topic, but I don't know which part of my project is causing the problems (if only one), so I have to check every one. I'm currently working on a project where I want to control ...
3
votes
1answer
994 views

it's possible to send input to a tmux session without connecting to it?

Is there any command that I can use to send input or commands to a given tmux session / pane without connecting to it? It's for unattended access, I've a console application running on a tmux ...
1
vote
1answer
90 views

What does an application read when the user press a backspace in the terminal in raw mode?

In raw mode, if you type a character in the terminal, the application on the other side will read the ASCII code for the typed character. But what about when you press the backspace key in the ...
1
vote
0answers
58 views

A special character is added to my input every second, messing up my commands and passwords [duplicate]

I've been looking for any case similar to mine and still haven't found one. The story: I'm using arch linux, updated just last week, and it was working fine. I never configured auto-login, so I have ...
1
vote
0answers
85 views

Identify device by its handler

I'm looking for a robust method for identifying a device's type (mouse, keyboard, joystick) by its input event handler. There are parameters which cannot be trusted, such as device name/vendor-id etc....
1
vote
0answers
58 views

false keystrokes in linux only [duplicate]

I have an annoying issue, it's as if linux thinks I'm pressing the Fn key every second. doesn't happen in windows though. Its preventing me from logging into arch. I can enter my LUKS password fine, ...
2
votes
2answers
632 views

ctrl+shift+e causes beeping

I recently got a new laptop and installed Arch on it. I noticed that in a few applications, including chrome and gedit, pressing ctrl+shift+e will cause the next few keys pressed to be underlined, ...
0
votes
0answers
1k views

Debugging an unresponsive touchpad on Lenovo Ideapad 320-15ABR

I have a Lenovo Ideapad 320-15ABR, (I found the exact model name with dmidecode). I'm having trouble getting the touchpad to work. It's not showing up in xinput --list or cat /proc/bus/input/devices. ...
0
votes
1answer
31 views

How can I make this menu in bash error me if the input option is incorrect

I have this menu but the option to give the user an error if the input text is wrong doesn´t work. if [ -n "$1" -a -n "$2" -a -f "$1" ] then dts=($(cat $1 | cut -d: -f$2)) for i in ${!dts[@...
0
votes
1answer
250 views

Disable mouse pointer but read the mouse events

There are similar questions on this site, but my scenario is bit different. I have an additional mouse; lets call it X. I use a python script to read X movement (read /dev/input/mouse1) which I use ...
4
votes
3answers
3k views

How to pipe commands to a process running in the background?

This is my loop program, running in the background and waiting for a command. #include <iostream> using namespace std; char buffer[256]; int main(int argc, char *argv[]) { while(true){ ...
1
vote
1answer
88 views

How to capture user input in dc?

I'd like to handle user input in dc. For ?, info dc indicates: '?' ...
1
vote
2answers
1k views

pipe to adop: stty: standard input: Inappropriate ioctl for device

bash-3.2$ echo "apps" | adop -status stty: standard input: Invalid argument Enter the APPS password: stty: standard input: Invalid argument I tried like this also stty -ixon;echo "apps" | adop -...
3
votes
2answers
186 views

Change text to asterisks in input

I already asked a question about this, and now I have another one. Here's my code: #! /bin/bash read -p 'Username:' name read -p 'Password:' pass echo echo Confirm Username: $name? echo "Confirm ...
0
votes
2answers
24 views

How do I respond to a prompt after using & to make a new process?

For example, if I want to create an ssh tunnel and not make it take up my terminal I could use ssh -L 20000:localhost:2000 user@example.com &. However, this creates a new process and doesn't let ...