Skip to main content

Questions tagged [events]

The tag has no usage guidance.

2 votes
0 answers
59 views

Can I simulate power supply getting offline using udev or in other ways under Linux?

I have created the rule /etc/udev/rules.d/80.power.rules: SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="0", RUN+="/root/test.sh" Then I execute the command ...
JenyaKh's user avatar
  • 346
0 votes
0 answers
41 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 ...
Vipul Gupta's user avatar
2 votes
1 answer
856 views

What could cause a missing mouse scroll event just after reversing scroll direction?

I'm using Ubuntu 22.04.2 on an x86_64 system, with Xorg and libinput. I have a Logitech MX Master mouse (the first model), and I've noticed some unusual behaviour with scrolling. The mouse has a free-...
davidA's user avatar
  • 171
2 votes
1 answer
100 views

Verifiy if a mouse is defective

I have only Linux machines (Ubuntu 22.04) and I've just received a 3D Connexion CadMouse Pro that officially does not support Linux. But I guess it's about the control software, as an HID mouse it ...
Mark's user avatar
  • 733
2 votes
0 answers
549 views

/dev/input/event doesn't report keys being pressed

I have an usb keyboard connected to a linux box. I need to capture all keys that have been pressed and released. My keyboard n-key rollover meaning that it doesn't have limits on number of ...
Misha Mikhail's user avatar
1 vote
1 answer
276 views

Not understanding the use of EVIOCGRAB for touchscreen devices

I am looking at a userspace library which handles touchscreen events from the Linux kernel. The following line of code, I can't understand what it does. What is the purpose of EVIOCGRAB when passed to ...
Engineer999's user avatar
  • 1,171
1 vote
0 answers
1k views

How to access gpio-keys from a shell script

In my embedded linux system, I defined some GPIOs as keys in the device tree so I can use them as keys in my application. This works fine so far. Now I want to add an early startup script to respond ...
Philippos's user avatar
  • 13.5k
0 votes
0 answers
438 views

Interpreting variations in LOCal timer interrupts number

Running a given workload in different CPU isolation (IRQs & processes) configurations, I do not observe significant differences among values (grand total) reported in /proc/interrupts & /proc/...
MC68020's user avatar
  • 8,249
2 votes
1 answer
914 views

get event when user has selected a text in any window in X11

I want to write an app that shows a popup-menu after a user has selected a text in any window in Linux (debian based). Mac users may know "PopClip" (https://pilotmoon.com/popclip/) and as I ...
dirkc's user avatar
  • 31
0 votes
1 answer
1k views

Is it possible to dynamically update systemd-timer's onCalendar?

sytemd-timer has a feature "onCalendar" using which we can execute a script on points of time (on calendar). Is it possible to dynamically (programmatically) update or mutate that field? For ...
Zeta.Investigator's user avatar
0 votes
0 answers
272 views

Side mouse buttons doesn't work

I switched to Pop! OS, but side mouse buttons doesn't work. On windows they were button 4 & 5, but here I used xev and it turns out button 4 & 5 were assigned to the scroll wheel. When I ...
Ali's user avatar
  • 1
2 votes
1 answer
1k views

script with `read` in bash while loop causing high CPU usage when run as a systemd service

I wrote a script to run specific actions conditional on input events informed by an event monitor, which looks something like $ cat script.sh -----------------------------------------------------------...
seamux's user avatar
  • 148
0 votes
1 answer
404 views

Linux on-exit (Ctrl-C) action

This is an interesting scenario and I'm relatively new in writing shell scripts. I have a case where I want the user to enter a password at a prompt. That works fine. The PROBLEM is if the user ...
Oliver Williams's user avatar
1 vote
0 answers
24 views

How would a GUI widget differentiate between the semantic- and absolute direction of a touchpad event?

I've recently been trying out Ubuntu 20.10 with Gnome desktop on Wayland, using a touchpad that supports precision scrolling, i.e. which does not emulate a mousewheel. After enabling natural scrolling ...
Andreas's user avatar
  • 521
1 vote
0 answers
266 views

How to proxy a keyboard though a Raspberry PI?

I have a keyboard that is plugged into a Raspberry Pi and the Raspberry Pi is plugged into my Mac. The Raspberry Pi is configured to act as a USB Keyboard and this is how my Mac sees the Raspberry Pi, ...
cobexa's user avatar
  • 111

15 30 50 per page