Linked Questions

46
votes
3answers
37k views

how to execute a command after resume from suspend?

I've got a script that is executed in order to have suspending/resuming working in my laptop. Then I have another series of xinput,xkbset and xmodmap commands that are executed when I initiate a ...
3
votes
0answers
1k views

Run script after wake up [duplicate]

I have a Toshiba notebook(Toshiba c50d a-133) and problems after waking up. When I close the lid Ubuntu go to sleep mode. After opening, it wakes up, but sometimes mouse and keyboard don't work. Then ...
74
votes
9answers
58k 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 ...
16
votes
8answers
26k views

Ubuntu 16.04 changes sound device after suspend, how to fix?

So my setup currently is using a monitor plugged into my laptop via HDMI and using the speakers in that for audio not the inbuilt laptop ones. When the machine boots it uses HDMI by default, but I ...
8
votes
5answers
4k 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....
0
votes
2answers
4k views

iMac Late 2013 Audio Cirrus Logic CS4206 Issues

I have just switched from OSX to Xubuntu 14.04 on my iMac Late 2013. I've got everything running smooth, except for my freakin' audio card. It works occasionally for a few minutes and then it just ...
5
votes
1answer
2k views

How do I switch the audio outputs of an audio device from CLI?

I'm trying to switch between the audio outputs of my video card from the command line. I'm able to do that via the GUI settings, as it's shown on the picture. How can I do this programmatically? On ...
4
votes
2answers
4k views

Network manager must be restarted after wakeup in Ubuntu 15.04

Upgraded from Ubuntu 14.04 to 15.04 on my lenovo T410 a couple of weeks ago and I have been having some problems with my network connection ever since. Everything worked fine with 14.04, but now I am ...
6
votes
1answer
2k views

Battery status is slow to update

I have a 2008 MacBook Air (model A1237) with Ubuntu 16.04 LTS installed on it. I managed to solve some other problems, but I can't figure out how to find a solution to this one... Basically the ...
2
votes
1answer
2k views

Ubuntu+wine, USB COM port issue. Simbolic link question

Good afternoon AskUbuntu community. I'm here to ask for a little help to better understand this great environment that i found out Ubuntu to be :) So let's start from the beginning. I have a old ...
6
votes
1answer
1k views

Execute script on every start, wakeup and activation!

I want to execute a script on every start up, wake up and activation. In the current setup the script is executed in: /etc/rc.local /lib/systemd/system-sleep It works so far, but if I reactivate my ...
0
votes
2answers
1k 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 ...
2
votes
0answers
2k views

Ubuntu 14.04 Intel Brightness After Resume

I recently installed Ubuntu 14.04 on my Dell Inspiron laptop. Seeing that my hotkeys didn't work, I followed the instructions here and everything was going smooth. Except for when I close the lid to ...
2
votes
1answer
699 views

Laptop: Internal LCD does not get reactivated

Hi i have a ThinkPad T430 with an external monitor plugged into docking-station via VGA. When i close the lid and reopen it, my internal display stays black and does not get reactivated. I'm using a ...
0
votes
1answer
762 views

Script not running on resume/wakeup in Ubuntu

I have a script named 999_thaw_flash.sh in my /etc/pm/sleep.d The script follows like this :- export DISPLAY=:0 #!/bin/bash case "{$1}" in resume|thaw) lynx --dump link1 >> file1 lynx --...

15 30 50 per page