Questions tagged [events]

Events ar all changes to the computer's state, such as changes in connected hardware, changes in the current configuration or simply exist of user input. Events can e.g. be used to trigger scripts, commands or notifications.

Filter by
Sorted by
Tagged with
0
votes
0answers
25 views

xdotool - If I press F2 do these events

I have stations where I would like to auto login. Is it possible with xdotool that when I press the F2 key, it performs these operations? xdotool type "username" xdotool key Tab sleep 2 xdotool type '...
0
votes
0answers
71 views

docker run command ends up in : nginx: [emerg] unknown directive “events” in /etc/nginx/nginx.conf:1

I have installed nginx-extras from Ubuntu bash shell in my desktop Windows 10 O.S. The is required to spin up a docker container for an ASP.NET Core 3.1 Blazor web assembly application for serving the ...
0
votes
0answers
32 views

Automatation of specific tasks

Our company just moved to another office and had the entire network at the office redesigned. Our WiFi is setup in a way that we only may connect and get access to the internal business resources if ...
0
votes
0answers
47 views

Linux Event capturing using C program

I want to capture the linux kernel events for usb device connection/disconnection (both mass storage and serial device). In case of mass storage device with connection status, program should get ...
1
vote
1answer
58 views

Execute a script on window's change

Is there an easy way to execute a script when the active window changes ? Is there a universal solution for both Xorg and Wayland ? My goal is to execute a script that will determine either or not to ...
0
votes
0answers
66 views

mouse hover acts as click in qt application in ubuntu 18.04

Seems to be after a lid opening when i unplugged the DELL dock WD15 and closing the lid in the mean while (leaving my desk by example) that mainly QT apps (not all apps such as Firefox/Terminal etc. ...
3
votes
2answers
165 views

How can I run a command when a usb device is (dis-) connected?

I am new to linux, and this is probably a noob question, so, sorry for that. I am using a linux PC in my workshop, and I would like to automate the workshop. That's why I have installed a power strip ...
1
vote
0answers
44 views

How to fix random 'End' key press events in Ubuntu 18.04?

I am using Ubuntu 18.04 on Dell Inspiron 15 3000 series laptop. I get random 'End' Key Press events. If I am browsing a web page, it randomly scrolls down to the end of the page(as if the 'End' key is ...
2
votes
1answer
152 views

X11 Recognize source device of event

I have a specific problem - I would like to recognize source device of input events in my program. Let's assume, that I have two identical touchscreens attached to usb ports. My program is grabbing ...
2
votes
0answers
59 views

Recent Used or Launched GUI Application (Similar to bash_history)

Is there something in Gnome or Ubuntu 18.04 that will show the recent used GUI applications. For the command line commands there is the Bash History log which I use all the time. If I can see a list,...
2
votes
2answers
413 views

Checking acpi key bindings and remapping keyboard keypress events to acpi events

I got two systems with Ubuntu 18.04.1 installed. The two have similar hardware and software configurations but one of them suspends to SBTN press event whereas the other does nothing. I checked ...
0
votes
0answers
26 views

Triggering Action

I would like to execute an action when an even occur. More exactly, I would like some file to be edited, every time the "auth.log" changes. For example : Somebody switch into root mode, that will be ...
0
votes
1answer
422 views

count keys typed and mouse clicks

I have ubuntu 16.04. Out of curiosity, is there a way to see how much have you clicked, and/or which keys have you pressed the most in a period? Like a system log or something similar, that could ...
3
votes
2answers
680 views

How to disable event sounds with gsettings in Ubuntu 18.04

I have an install script that I run after fresh installations to install apps, mount network drives and make changes to several configurations to my liking. One of them is disabling the event sounds. ...
0
votes
0answers
24 views

How to detect if the Unity login screen is present

I am trying to run a program when the Unity lock screen is present but I cannot figure what or how I can listen for this event.
2
votes
0answers
37 views

Listening for desktop events Ubuntu MATE

Is there user-level access to desktop or window manager events in MATE? I'm thinking specifically of the 'change workspace' event, but I have a general interest also, so if there is a listener ...
10
votes
1answer
2k views

Can I act on the event that a window opens without polling?

I am trying to find a way to detect the event of a window (any window) being opened in Ubuntu 16.04 I would like to be able to detect the "window open" event and check if the opened window was my ...
0
votes
0answers
259 views

Selective resume from dpms off - how can it be done?

After I've used xset dpms force off or xset dpms force standby to blank my screen, the monitor comes back on again if I touch the mouse. I would really like to ignore mouse movements, and only switch ...
1
vote
0answers
129 views

How to mute laptop when the lid closes?

I would like to mute my laptop everytime its lid closes by running the following command: amixer set Master mute I found a similar question here asked more than 2 years ago which didn't work for ...
2
votes
2answers
1k views

Run command when idle/active

I need to run custom comand when: Computer is idle for X minutes (no key pressed) Key pressed What I want o achieve actually is power saving feature for my keyboard. I want to use: g413-led -a ...
0
votes
0answers
272 views

dmesg constantly prints message “event field not found”?

I have recently followed a guide that recommended to check dmesg for some output with dmesg | grep something. I forgot to add the grep-command first and just entered dmesg in the terminal, which ...
3
votes
2answers
2k views

How do I disable the touchpad when the lid is twisted or closed?

I have Lenovo ThinkPad X230 Tablet with Ubuntu 16.04. It has a convertible screen and when it is in tablet mode the touchpad is still active and make a mess. I've created the following script and ...
0
votes
1answer
893 views

How to capture touchscreen events?

I would like to capture events generated by the touchscreen, and list them in a terminal window. I have tried xev, but it did not show touchscreen events. I am using Ubuntu 17.10 and Xorg. Is there ...
0
votes
0answers
526 views

Fn+Key combinations no longer working

My computer is a Gigabyte P57 laptop which runs Ubuntu 16.04, kernel 4.10.0-041000-generic. Recently all my hotkeys (Fn+key) stopped working. This includes mute, volume up, brightness, etc. They were ...
1
vote
0answers
363 views

How to properly handle Intel virtual button events

dmesg/xinput... I tried to set up shortcuts using the Windows button that windows convertibles have next to their displays and the volume buttons on the exterior. Mine is a Sony VAIO Duo 13. The ...
5
votes
2answers
3k views

Execute script on ethernet plug in/out

I'm trying to automatically execute a custom script every time i plug in or out the ethernet cable. I'm on Ubuntu 15.10 and nothing so far has worked. First i tried creating a script in /etc/network/...
0
votes
1answer
7k views

Decoding Key Values from /dev/input/eventx in C [closed]

I have created a keylogger in C that displays the raw key values from an input device. I am wondering how I would go about decoding hese values into ascii characters? Here is my code so far: #include ...
0
votes
0answers
23 views

How to trigger a script when the systme is idle for certain time? [duplicate]

As the title mentions, is there any way to trigger a script or start/stop an app when the system has been idle for certain time? Similar to how screen is turned off from power settings etc.
0
votes
1answer
328 views

Wacom bluetooth capture connect

I have a Wacom PTK-540WL (Intuos4) connected to blue-tooth and everything is working fine except the button configuration. As for now I'm running a script like: #!/bin/bash xsetwacom --set "Wacom ...
1
vote
2answers
770 views

how to hook to monitor sleep event?

Is there an event I can hook up to when the monitor is set to sleep? I mean just the monitor DPMS sleep, not the PC sleep/suspend. My intention is to run a script when the monitor is sent to sleep ...
1
vote
0answers
111 views

Event handler even more low-level than acpid?

Ubuntu 14.04 Netboot didn't support my laptop's display brightness controls out of the box. So first thing I did was fire up evtest to check if the correct keycodes (KEY_BRIGHTNESSUP and ...
1
vote
0answers
57 views

Where are the default hardware button (ie. volume increase, screen brightness, play/stop music) scripts

I have installed Ubuntu 15.04 on my Thinkpad x220t and was pleasantly surprised to find that the tablet button for rotating the screen works out of box. However, while it does rotate the screen it ...
13
votes
2answers
9k views

Run script when monitor is connected

I am trying to run a script located in usr/local/bin/ when I connect an external monitor to my laptop. I have tried to add a new udev rule but that did not work. I created a new file in /etc/udev/...
25
votes
2answers
73k views

What does perf interupt mean?

I am working on my computer, trying to write some device code. I checked into dmesg to get some info, and saw this: perf interrupt took too long (2507 > 2500), lowering kernel....
3
votes
3answers
2k views

Managing Events in Shotwell

Running Shotwell 0.20.2. Shotwell recognizes events based on the date of the photo. I have three cases where this leads to problem: Multiple events on the same day. A family outing in the morning, ...
1
vote
0answers
461 views

Running a bash script on “Switch User”?

I've had my first dabble with bash and got a working script going for each user on session start which checks if a NAS share is mounted and if it is unmounts it and mounts as the current user. This ...
2
votes
3answers
1k views

How to log access to a specific folder and changes in its contents?

I need to track folder access time, and want to know what changes are made to it. How do I trigger those events? Is there a way to run a specific .sh file when the folder is opened?
4
votes
2answers
1k views

Is there a way to run a command every time the mouse moves?

I'd like to run a script every time I move my mouse. This is the first step in making a workaround so that I can use 100% of my monitor edges to go between them. Is this possible?
0
votes
1answer
122 views

Is there any way to be notified about system events in Ubuntu?

I want to write an application indicator for Unity to show a single number and a tooltip. I want to update this number when the date changes i.e. on 24:00 and I need to update it if computer wakes up ...
6
votes
3answers
3k views

How to automatically mute on headphones disconnect? Or how to tap bash script to system event listener?

My life would be easier if Ubuntu was muting the sound each time I disconnect the headphones, since every time surrounding is different (example day / night), but the same output volume. I may ...
5
votes
3answers
4k views

How do I create a single-execution Upstart job guaranteed to complete before two other jobs begin?

How does one write an Upstart task that is guaranteed to run only once after each startup but is also guaranteed to run to completion before either one of at least two other jobs start running. I do ...
0
votes
1answer
176 views

Upstart doesn't recognize desktop-unlock event

I created an Upstart job under /etc/init and it is a simple job as: start on desktop-unlock exec <my script> My script is under /usr/bin and is executable. But it seems Upstart only ...
1
vote
2answers
825 views

Can i get notified of, and handle system events (especially curious about wifi being turned off)

Since ubuntu 14.04 LTS, i've been having this issue that my wireless connection gets "messed up" - more specifically I sometimes loose connection. I'm currently solving this issue by disconnecting ...
8
votes
1answer
10k views

Catch lid close and open events

I tried to write a script like this suggestion: How do I configure the screen to lock when I close the lid? I created a directory and a new script file: mkdir /etc/acpi/local gksudo gedit /etc/...
3
votes
1answer
67 views

Where can I find a list of Ubuntu global events in the world?

I'd like to go to an event of Ubuntu. I don't care about the country or month. Is there any wiki/web page where I could see all the (specific) Ubuntu events in the world? Just global events like the ...
2
votes
0answers
281 views

Extremely slow ACPI Event Propagation

A follow up to my previous question here: Run a Script when Power Button is Pushed So I am able to detect ACPI events and I intercept the power button press appropriately, however there is an ...
4
votes
2answers
2k views

How to detect events like lock/unlock screen, enter/return suspend and monitor power off

I am wondering if there is any way to detect system wide events under linux such as: user un/locked session user logs in/out machine sent to suspend screensaver goes on and the monitor switches off ...
1
vote
1answer
190 views

“Add Event…” button, why is there?

If you click on top right (by default) on time, you will see calendar. Below calendar there is button "Add Event...", but if you click it, it does nothing. Why is it there, how can I use it?
1
vote
3answers
2k views

Empty Trash sound event?

Is there any way to add a sound event every time I empty the trash on my Ubuntu system?
0
votes
1answer
2k views

how to add daily events via command-line?

Is there any way to add the our events from he terminal ? I know the GUI way but I want to do it from the terminal .