Linked Questions

57 votes
4 answers
66k views

Run Script on Wakeup? [duplicate]

Is there a way to run a script when a computer "wakes up" (from sleeping)? I know it can be done on startup, obviously, but the issue in this case is that the backlight of my laptop seems to reset ...
Eva's user avatar
  • 883
2 votes
0 answers
38 views

Bash - How can I make a script that starts when I wake my computer from suspension? [duplicate]

After running into some difficulties with WiFi drivers, I need the basic condition that triggers when my laptop wakes from suspension, which will then run any code beneath it. How can I achieve this?
Lucas O'connor's user avatar
165 votes
12 answers
140k views

Wifi doesn't work after suspend after 16.04 upgrade

This particular version of the "doesn't work after suspend" came after upgrading to 16.04. It seems that the upgrade includes a Wicd applet (added to Metacity Classic Gnome task bar alongside regular ...
147pm's user avatar
  • 2,165
96 votes
11 answers
80k views

Permanent xmodmap in Ubuntu 13.04

I cannot make xmodmap run on login in Ubuntu 13.04. I have searched around, including in askubuntu and all answers I found do not work. I have a file named .Xmodmap in my home folder which contains ...
Alexander Karatarakis's user avatar
30 votes
10 answers
55k views

Touchpad not working after suspending laptop

This seems like a common problem, but after trying all of the fixes I've found on forums, I'm still at a loss. Specs: computer: Asus k501LX-EB71 OS: Ubuntu 14.04.3 kernel: 3.19.0-26-generic touchpad:...
Ross Allen's user avatar
  • 1,569
25 votes
7 answers
28k views

Periodic clicking sound from PC speaker

After an update some months ago, my laptop has begun making a low, repeated clicking sound every few seconds. It is not being generated through the regular sound system, as altering the volume and ...
John J. Camilleri's user avatar
12 votes
2 answers
13k views

Correct way to execute a script on resume from suspend

Ubuntu 20.04 I have done a number of searches for ways to execute a script or command on resume from suspend, and come up with several different methods for doing this, such as what is described here -...
Tracy's user avatar
  • 417
7 votes
2 answers
13k views

Make a script start after suspend in Ubuntu 15.04 (systemd)

I have a script that starts my broadband connection at start-up and I want to make it start at resume from suspend. My script's is /usr/local/bin/start_my_connection it contains: #!/bin/sh sleep ...
user avatar
8 votes
5 answers
6k views

How do I disable laptop optical drive eject button and assign eject to a keyboard shortcut?

Note: Answer now updated to function under 19.04 I'm on 14.04 and accidentally open my cd/dvd/bluray drive about 20 times a day. I've looked at a few questions here which provided no working solution....
Insperatus's user avatar
  • 4,693
10 votes
2 answers
8k views

How to get external monitor to reconnect after sleep or power off

Problem: On an Ubuntu based laptop, when I sleep or disconnect power to my external monitor then power up the system or reconnect the monitor again, the display doesn't come on. Poor man's solution: ...
David Parks's user avatar
  • 2,516
3 votes
4 answers
9k views

How to Make an xinput Command Persistent After Standby

I want to use two finger scrolling on my touchpad. I'm using Ubuntu 13.04, and the Mouse and Touchpad GUI configuration doesn't let me enable it (the checkbox is greyed out). As a workaround, I ...
Sam King's user avatar
  • 719
3 votes
2 answers
4k views

How to run script after resuming from sleep?

I have a custom script (uses $DISPLAY) for setting up the extra buttons on my mouse. I want to run this script every time I log into the system. I have added the script as a Startup Application via ...
Naximus's user avatar
  • 131
9 votes
2 answers
2k views

Unable to get xmodmap working after suspend

I am using Ubuntu 14.04. I have a custom Xmodmap keyboard layout. However, when I resume after suspend, the layout is gone. I have tried all things which were mentioned in the answers to this ...
gexicide's user avatar
  • 163
3 votes
3 answers
2k views

Set keyboard layout to de, variant us

I want to set my keyboard layout to 'de' variant 'us'. On my ubuntu 15.10 with unity this works fine using the command setxkbmap de us. The problem is, I have to run this command after every boot/...
dassmann's user avatar
  • 503
3 votes
2 answers
2k views

How to automatically restart Gnome Shell every time the PC comes out from suspend

Since I did not receive any answer to this question and I have to manually restart gnome-shell each time the PC comes back from suspend to correct the distorted colors, I would like to know how to ...
eera5607's user avatar
  • 367

15 30 50 per page