The tag has no wiki summary.

learn more… | top users | synonyms

-1
votes
1answer
27 views

Is there a Linux keylogger which records the timestamp at which every input was given? If not how would one go about doing this?

In the end I want it so that I have a list of time steps which record, at each time step, what key was pressed (or what was the last key pressed in the given interval). I'm not sure such software ...
3
votes
1answer
607 views

USB keypad (HID) not responding in linux but in grub

An external USB keypad I'd like to use gets recognised as a USB HID device, but it is not functional when Linux is booted. It does work when plugged into a Windows desktop and it does work while in ...
2
votes
3answers
28 views

How do I remap newline and carriage return regardless of the terminal used to connect?

All my configuration is stored in my github account (https://github.com/mnebuerquo/dotfiles) so I can just clone my repo and run my install script and my home is configured to use all my tools. I ...
0
votes
1answer
662 views

psmouse sync issues!

I have Compaq CQ61-420US (64-bit AMD) laptop with Synaptics touchpad checked using $ egrep -i 'synap' /proc/bus/input/devices N: Name="SynPS/2 Synaptics TouchPad" But recently after Arch Linux ...
3
votes
1answer
823 views

how to merge two audio input source using avconv

I try to make screencast using avconv and I facing a problem. I finally succeed to record both pc output and microphone input , the problem is that they're not merged in the output file. (I saw ...
-2
votes
2answers
45 views

Enter a variable into a command in bash

My question should be simple for you guys. I am writing a simple script that runs a command but the file it would need is always different. Is there a way for it to ask: "Where is the file?" And ...
1
vote
0answers
16 views

Ubuntu 14.04 - Multiple Griffin Technology Powermate Knobs

I am running Ubuntu 14.04, and I want to run multiple griffin powermate knobs: https://store.griffintechnology.com/powermate. I want to map them to different keys other than audio control. I want to ...
3
votes
0answers
34 views

Cannot use keyboard within Qt app without sudo

I have an embedded Qt application crosscompiled that runs on BeagleBone Black. It works Ok, but one thing- It doesnt accept keyboard input if i wont run in directly on BeagleBone Black preceeding with ...
1
vote
0answers
10 views

Application started in /etc/X11/xdm/Xsetup can't receive key presses

I'm using xdm (and I'd like to keep it that way) for a project and I need a terminal to run a script before the login prompt. The script requires some user input, however, it doesn't seem to work. ...
1
vote
0answers
22 views

Make X11 react on “dev/input/eventx”?

I have a debian 7 on kernel 3.8 running with a touchscreen. With evtest, I see that I get the screen's coordinates for device "dev/input/event2". How do I have to configurate my X server, that the ...
0
votes
1answer
60 views

How to clear log files periodically

Hi I am new to Shell script. i want to clear log files in a directory basing on the dates. I have managed to gather this code: DIR1='/home/u01/app/oracle/servers/DIR1/logs' ...
1
vote
2answers
21 views

How to input Chinese (JCK) in console without X running

Is it possible at all to input JCK languages (Traditional Chinese in my case) in the console without having X-windows running? All the help I have found online for Chinese input assume that X and ...
1
vote
1answer
44 views

Running a program and providing input

I have a program that runs from the command line. As soon as it runs, it asks for a text value and expects the return key to be pressed after that. Is that possible to create a bash script that runs ...
0
votes
1answer
113 views

predetermine script input text

I have a script that automatically sets up an emailing server based off what I enter for the following echo "Please enter your main domain: (Ex.: website.com)" read DOMINIO if [ $DOMINIO = "" ]; then ...
2
votes
0answers
24 views

manipulate multiple windows simultaneously

this is probably a long shot but I've been pondering it for a while. I realize that the actual use-cases of this sort of interaction are quite sparse. The main uses I can think of would be moving ...
1
vote
0answers
23 views

Is it Possible to use Mouse Movement in a Shortcut?

I'm interested in creating shortcut keys that use mouse movement as part of their trigger to send a keycode, for example so that I could have a shortcut like: ctrl + alt + [mouse movement down] ...
11
votes
1answer
4k views

SSH causes while loop to stop

I have finally managed to boil down a problem I have been struggling with for a few weeks. I use SSH with "authorized keys" to run commands remotely. All is fine except when I do it in a while loop. ...
1
vote
0answers
63 views

How to get the mouse/keyboard raw events?

I want to intercept the raw events from the keyboard (or the mouse, eventually). I tried to use the /dev/input/[...] files, they are very practical and I can read the events of any key even caps lock ...
3
votes
2answers
67 views

When does cat finish reading from a pipe?

Given the following code, why does cat only print the contents of the pipe after I've typed \n or CTRL+D? What are the conditions for cat to actually print what it read? #include <stdio.h> ...
1
vote
0answers
134 views

USB bar code scanner not working on Raspbian

My USB bar code scanner (SYMBOL LS2208) is recognized as a HID. hid-generic 0003:05E0:0600.000F: hiddev0,hidraw0: USB HID v1.10 Device [\xffffffef\xffffffbe\xffffffa9\xffffffbe\xffffffa9Symbol ...
1
vote
1answer
205 views

How to read characters from a serial keyboard on /dev/inputs/eventX (Speed?)

I'm trying to read from a second keyboard whose inputs can be read from /dev/inputs/eventX, but I get rubbish and not the character expected. I'm accessing my target by using Putty. I can connect to ...
6
votes
0answers
1k views

Mouse scroll wheel speed far too sensitive

In my crunchbang installation with X11, openbox, my wireless usb mouse is listed at both /dev/psaux and /dev/input/mouse0. It's working fine apart from the scroll wheel, which although active, is far ...
-1
votes
1answer
71 views

Accessing array elements within process substitution bash

I've got a text file which looks like this: b4238ca2-cb8d-11e4-8731-1681e6b88ec1,https,username,password,ipaddress b4238f0e-cb8d-11e4-8731-1681e6b88ec1,https,username,password,ipaddress ...
1
vote
0answers
59 views

How many bytes can a keypress return? And should a metafied key return more?

I've been tooling around w/ this input reader lately. Currently it only prints a report to stdout for each key pressed while it runs, but I would like to graduate it to a higher purpose sooner than ...
2
votes
4answers
90 views

input file stream to command

How is it possible to send a file stream to this command instead of a file? /usr/local/bin/wkhtmltopdf --title "$SUBJECT" -q $SOURCEFILE $OUTPUTFILE The file stream is from a string in PHP.
5
votes
2answers
2k views

Capturing key input from events device and mapping it (toggle TouchPad key is unmapped)

I have a Lenovo IdeaPad Yoga 13 with Ubuntu 13.10 Installed. The device has a "Toggle TouchPad" button on the keyboard (F5). The keyboard's F* buttons are reversed (so to get F5, I need to press Fn + ...
1
vote
0answers
80 views

Mapping two joysticks with Xorg

I already managed to map the input of a joystick to keyboard inputs by writing a file in my xorg.conf.d/ directory (the file is named 51-joystick.conf). Now I would like to map the inputs of a second ...
1
vote
1answer
118 views

Remap input keys in /dev/input level

I want to remap input keys from keyboard and mouse, but I need it to be in low level, so that reading /dev/input* shows remapped functions. Example: I have regular keyboard and I want ENTER key to ...
-2
votes
1answer
39 views

Using 'grep' to search for a specific pattern [duplicate]

I'm playing with the Linux terminal and I have to do a exercise which states that I have to find inside a file for any line that contains at least an a, b and c, it doesn't matter it the lane has 2 a, ...
0
votes
0answers
23 views

printf>stdin unusable with read [duplicate]

With read, sending "a" to stdin is not equivalent to pressing "a" (or use your favorite letter/key). Tested this: ~$ read -n1 & fg [1] 11620 read Then "typed" "a" into the read process stdin ...
0
votes
0answers
32 views

Input event for trackpad co-ordinates

I am making an app that requires the co-ordinates of the touch / swipe of the user. This is currently available only if you are running a VM ( Alt + F2/3/4/5...) using evtest. What do you think is ...
9
votes
5answers
7k views

Why does “cat ttyUSB0” not produce output?

I connected an infrared receiver to a USB port ... (the last line of dmesg tells device file) $ dmesg [10496.596063] usb 7-2: new full-speed USB device number 2 using uhci_hcd [10496.751112] usb 7-2: ...
2
votes
0answers
42 views

How to capture a keyboard shortcut

I need a script, that will run in terminal (under X11), and wait for a keyboard shortcut (happening anywhere in the desktop environment), once that shortcut (or key press sequence) happens, it will ...
0
votes
1answer
280 views

How to make a Wacom tablet stylus slower (less sensitive)

The pointer moves too fast (demonstration video) when I use the tablet in relative mode after I run xsetwacom set "Wacom Bamboo stylus" Mode Relative However, xsetwacom --list parameters does not ...
0
votes
0answers
19 views

Compose plus apostrophe doesn't work with Cyrillic

I used to have a custom .XCompose, I removed it to possibly eliminate the cause. Unfortunately, the problem persists - I can't create an accented Cyrillic character, such as the ones here [1]. Simply ...
1
vote
1answer
29 views

Why is 2 of every 10 keystrokes in X11 missing? [closed]

When I enter 1234567890 two numbers in sequence are missing. E.g. 12567890 (missing 34). What causes this?
1
vote
3answers
320 views

How to send input in a new terminal using Shell Script

I found out how to automatically send input to a C program using Shell Script. For example, if I compile this C program: //test.c int main() } int x; printf("Please enter an integer:"); ...
1
vote
1answer
51 views

How to write short alpha using the compose key

I'd like to enter a short alpha using the compose key: ᾰ. I tried using compose+U+α but this doesn't work. Neither does using b instead of U. How can I enter the short alpha using the compose key?
3
votes
1answer
129 views

Problem with getting interactive input in while read loop

I was doing something like the following minimal example: #! /bin/sh # $1 = file containing list of files to sync # $2 = source dir ; $3 = target dir cat "$1" | while read f do cp -i "$2"/"$f" ...
0
votes
0answers
27 views

Programatically capturing application inputs and outputs

I've been given a mess of applications that all touch various common files and data sources. (Retail IT environment so lots of generic sources of data that gets sliced and diced into various ways and ...
2
votes
2answers
163 views

Grabbing keyboard control in shell script

I have a certain shell (zsh) script which reads one character at a time and performs an action afterwards. In the shell, this is realized by "read -k" in a loop. I want to execute the script as a ...
1
vote
1answer
80 views

Opensuse 13.1 Gnome Desktop Region&Language won"t open after installing ibus

i want to be able to write Kanji on my Opensuse system, so i followed this tutorial: http://www.localizingjapan.com/blog/2013/11/20/japanese-input-on-opensuse-linux-13-1-kde/ It does not work, ...
1
vote
0answers
130 views

Synaptics touchpad LED support

How to enabled support the LED in Synaptics touchpads? I'm use Debian Jessie and xserver-xorg-input-synaptics ver. 1.8.1-1. I'm find patches by Takashi Iwai from SUSE for supporting the LED in ...
2
votes
2answers
135 views

Is there a way to execute commands while getting user input?

I’m fairly new to scripting and I have a high-level question of how to do something. I want to design a simple game similar to space invaders, with these two main features for now: Bullets drop ...
2
votes
1answer
2k views

Why the behavior of while loop and for loop is different?

I am trying to read user and server details from file tempo.txt and then check the disk space usage of the file system on that unix account using another script server_disk_space.sh.But I am not able ...
0
votes
1answer
121 views

Using ARGV to get user input in Awk script [closed]

I know ARGV[i] can be used for storing user input. However, I want to use it in awk script and get the ARGV[i] to compare the field from another text file. If the ARGV[i] matches the field or the ...
0
votes
2answers
211 views

Bash Script using read needs to stop executing on Ctrl+D

I need to write a script that will add a line to a text file if Enter is pressed. But, if Ctrl+D is pressed, I need to exit that loop in the bash. touch texttest.txt LINE="0" while true; do read ...
3
votes
0answers
111 views

Ignore brief mouse click/releases

The switch contacts in my mouse are going, and rather than open it up yet again and clean them or try to hunt down a replacement switch (or buy a new mouse) I would like to solve this problem via ...
19
votes
8answers
8k views

Disable Keyboard & Mouse input on unix (under X)

How can one programmatically "freeze" the Keyboard & Mouse temporarily, so that no one could mess with the system? There are several possibilities where this is useful. For instance, I have a ...
1
vote
1answer
86 views

Prevent the mouse to wake up display

I set my displays to sleep with xset dpms force off after locking the screen with kscreenlock. This is great, the displays wake up when the mouse is moved (by me, air, the cat). I'd like to set it in ...