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.
28
questions with no upvoted or accepted answers
4
votes
0
answers
209
views
How to detect events like Sleep/Wake in linux
I am wondering if there is any way to detect system wide events under linux such as:
sleep
wakeup
I need this for a project where i programmatically react to such events, but i am uncertain how and ...
2
votes
0
answers
239
views
Observing network change event in linux application
I have an application where I wanted to get notified if there is any network change that has occured. I have found a bunch of solution like
using NetworkManager or systemd-network service (which I do ...
2
votes
1
answer
178
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
0
answers
91
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 ...
2
votes
1
answer
461
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 ...
2
votes
2
answers
237
views
Assign sounds to system events like Windows
Can sound files be assigned to system events in Ubuntu 12.04? In Win, I could play .wav files at startup, shutdown, new mail, exclamation, etc.
I read somewhere about Ubuntu-Tweak & installed, it,...
1
vote
0
answers
48
views
Weird undesired inputs when not doing anything
This is quite the open-ended question and I don't really have any idea on how to approach it, but here it goes:
It feels like my laptop (Dell P7510 on ubuntu 20.04) is somehow receiving undesired ...
1
vote
0
answers
237
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 ...
1
vote
0
answers
172
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 ...
1
vote
0
answers
546
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 ...
1
vote
0
answers
166
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
0
answers
64
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 ...
1
vote
0
answers
572
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 ...
1
vote
1
answer
193
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?
0
votes
0
answers
13
views
No DBus signal available for Wake event in linux
I wanted to perform some task in my application, as soon as the application wakes from sleep mode. To do that I wanted to detect the wake event in my application. In the 'org.freeDesktop.login1' ...
0
votes
0
answers
53
views
Touchpad stopped working - can't see any events
I have Ubuntu 22.04 running on an Acer Swift SF314-42
The touchpad has always worked perfectly but not today. Some days ago I got few small drops of light rain on the keyboard, I dried it immediately ...
0
votes
0
answers
57
views
Detecting system wake event using Dbus in linux
I wanted to perform some task in my application, as soon as the application wakes from sleep mode. To do that I wanted to detect the wake event in my application. I m detecting the sleep event in my ...
0
votes
0
answers
50
views
Network change detection using netlinks not working correctly
I have a netlink socket program to detect if the network connection goes down or when it is back. I m using the cpp program as on this link, however the results are not very correct.
When I turn the ...
0
votes
0
answers
28
views
Programatically detect system sleep and wakeup event in ubuntu
I wanted to detect and get notified on the events when the system is about to sleep and when the system has been just awake from sleep in my application. On platform like mac, the system receives ...
0
votes
0
answers
283
views
Mouse click event firing multiple times
I have had terrible problems copying text and generally anything that makes use of the "Mouse Move" Event for weeks.
This thread has helped identify the problem but it does not have any ...
0
votes
0
answers
34
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
0
answers
144
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. ...
0
votes
0
answers
46
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.
0
votes
0
answers
485
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 ...
0
votes
0
answers
369
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 ...
0
votes
0
answers
606
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 ...
0
votes
1
answer
493
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 ...
0
votes
1
answer
130
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 ...