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.

79 questions
33
votes
2 answers

How do I find the last logged system boot and shutdown times?

I'm a Rails developer working on a web application on Ubuntu Server 10.04. Due to internal requirements, I was asked to find the last 10 system boot and shutdown times... I have no clue where to find these details. Could someone help me out?
31
votes
2 answers

What does perf interrupt 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.perf_event_max_sample_rate to 50000 what does this event mean? Cause?…
j0h
  • 15,365
29
votes
5 answers

Set HDMI sound output automatically on connect/disconnect

I have a dual screen setup on my laptop (using 12.04 LTS) using a HDMI connected display. Everything works fine, but everytime I connect/disconnect the cable I have to go to Sound preferences and change the sound output device manually. Is there any…
Salem
  • 19,864
  • 6
  • 65
  • 90
25
votes
1 answer

How do Fn keys work?

I like to know how Fn keys work in my laptop. I think a kernel module exist that catch Fn key and call some scripts to do something. In my laptop, Fn+F2 switch power of wireless and blue-tooth. this is output of acpi_listen, when i press…
soroosh
  • 427
19
votes
2 answers

What events are available for Upstart?

Is there a list of available events that can be used for Upstart? For example start on local-filesystems so local-filesystems is an event but when is it triggered and what other events are there?
user11536
15
votes
2 answers

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/rules.d called vga-monitor-connect.rules. The…
Rumesh
  • 1,449
15
votes
2 answers

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 sought window and thereafter run a bash script or a…
10
votes
1 answer

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/acpi/local/lid.sh.post The file…
rubo77
  • 34,024
  • 52
  • 172
  • 299
8
votes
3 answers

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 figure out the script for that but not without…
Esamo
  • 1,542
8
votes
1 answer

Browser automatically refreshes and Home folder window opens

I am facing a very strange problem. Out of the blue, my browser starts refreshing itself infinitely. My first guess was firefox is messing up. I installed chrome. But, it happens in chrome as well. Other than that, sometimes my home folder…
Vikash
  • 133
7
votes
4 answers

Alt+Printscreen stopped working, how to find processes listening to events

Very odd issue today. I was going to post a thread about another issue and wanted to take a screenshot of a terminal window. I got it all prepped, hit Alt+Printscreen and nothing happened. I went into Keyboard Shortcuts to see if redefining the…
Oli
  • 299,380
6
votes
1 answer

Is there a way to have event sounds?

Basically, I want to have Ubuntu 11.10 play sounds when events occur, like adding and removing a USB or FireWire device, when it finds hardware, pops up a notification, or mounts a new volume. Like how KDE and Windows does that. Is there a program…
6
votes
1 answer

Is there a public calendar for key Ubuntu events?

I've been looking at the schedule for Ubuntu Developer Week (11th to 15th of July), and started entering the schedule into my Google calendar (XML, iCal, HTML). At this point, I thought to myself... maybe there's a public calendar that is updated…
Alex Stevens
  • 1,310
5
votes
2 answers

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/if-up.d/, changing it's permissions so it can be…
5
votes
1 answer

How to show day/month number of events in datetime indicator?

I configured the datetime indicator to show upcoming Evolution events. I'm using Ubuntu 11.04 but it is the same with 11.10. There is a way to show number of day and month in events list, and not only the day name? Without this the list is very…
Stefano
  • 2,394
1
2 3 4 5 6