Ubuntu :: Run A Script After Resuming From Suspend?
Sep 11, 2010
I'm running Ubuntu 10.04. What I want to do is have the xboxdrv (xbox userspace driver) run after I resume from suspend. I created a script for it to run at boot and that worked out fine but I can't figure out how to enable it after I resume. I found something that described how to resume a module from suspend and it was to be placed in /etc/pm/sleep.d. That script looked like this:
#!/bin/bash
case $1 in
resume)
[code]...
That was for a wireless module to load after a suspend. What I did was replaced /sbin/modprobe ath_pci with the location of the xboxdrv at /usr/bin xboxdrv; unfortunately, that didn't work. I actually tried pointing it to my script that runs at boot but that also didn't work. Is there anyway I can just write a simple script that will run after I resume?
edit: Okay I also tried putting a script in another place at /etc/acpi/resume.d/xbox.sh; I had to create the folder resume.d. There I put the same script that I use at startup (which works fine) and it still won't work.
View 2 Replies
ADVERTISEMENT
May 30, 2010
Before upgrading to 10.04 from 9.10, I had sound issues after resuming from suspend (I had no audio at all). I found a script that solved the sound issue. My problem now is, with 10.04, the script keeps my laptop from going into suspend. I haven't been able to find anything to resolve this issue in 10.04. Any help as to why/how to resolve?
View 4 Replies
View Related
Sep 9, 2011
The machine completely locks up (Caps lock LED doesn't even light up). I've followed the wiki, but the following command did not yield any information. dmesg | grep "hash matches" after echo 1 > /sys/power/pm_trace
View 2 Replies
View Related
May 29, 2011
I've been away from Kubuntu for a while but came back when Kubuntu 11.04 was released because it's awesome. I have a newer laptop since then, a Latitude E6410 with Intel graphics and 8GB of RAM. Everything works great, except......Sometimes when I resume from suspend to RAM, the screen flickers with thin white lines across the screen. I can switch to a tty and reboot it from there, but I'm unable to use KDE until I reboot. A lot of times resuming from suspend works without issue, but sometimes this problem occurs. I haven't figured out exactly what triggers it. In fact, the most recent time it happened, I didn't even have an application open.
I would like to figure this out because I use suspend a lot. I rarely turn off my laptop unless an update requires me to. I prefer to be able to close my lid and resume whatever I was working on later, but with this glitch I cannot trust it to do that.
View 5 Replies
View Related
Feb 13, 2010
Touchpad on my laptop does not works after I resume it from hibernation/suspend. I have FC9 (sulphur) installed on my system.
View 3 Replies
View Related
Sep 4, 2015
When I suspend my computer, everything resumes fine... but the sound. The sound actually still works for the internal speakers, but not anymore for any jack-plugged headset or speakers. If I reboot, it works again. I also see nothing in the logs (dmesg, /var/log/messages).
These two commands return the same thing before and after resuming:
Code: Select allwoowoo:~$ cat /proc/asound/cards
0 [HDMI ]: HDA-Intel - HDA Intel HDMI
HDA Intel HDMI at 0xf7a14000 irq 34
1 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xf7a10000 irq 33
[Code].....
I also tried
Code: Select allsudo alsa force-reload
As it was recommended a lot when I googled it, but it seems that the alsa bin/script is not available on debian. It tells me repeatedly to install alsa-base, which was already installed. The following commands have been run one after the other, in that order:
Code: Select allroot:~# alsa force-reload
The program 'alsa' is currently not installed. You can install it by typing:
apt-get install alsa-base
alsa: command not found
Code: Select allroot:~# sudo apt-get install alsa-base
Reading package lists... Done
Building dependency tree
Reading state information... Done
alsa-base is already the newest version.
[Code] ....
How to prevent me from rebooting each time I need sound after suspending my computer?
View 4 Replies
View Related
Dec 11, 2010
since ever, i face the problem, that i cannot continue using my computer properly after i suspended it to ram and wake it up again.Fedora 14, 64-bit, most recent and stable kernel
mainly KDEMotherboard: Gigabyte P55A-UD4Hard DrivesSAMSUNG HD501LJSAMSUNG SP1213NI can figure out, that everything works fine, but with a severe delay.Having a look at my led, signifying hard drive activity, it flases once a second for approx 10ms. frequency is very constant.so i performed several checks:firstly, hdparm -i, there is no difference before and after sleeping mode:
Code:
[root@bobbl-pc bobbl]# hdparm -i /dev/sda
/dev/sda:
[code]...
View 1 Replies
View Related
Jan 26, 2010
I have installed Xubuntu 9.10 on an Acer Aspire One 160HDD, 1RAM, 11.6''If I switch to suspend mode, on resuming it shows a black screen (but it still works forcould ctrl-alt-del and then restart)I read somewhere it could be a problem with the swap particion, but I have partitioned/ 10GBSwap 2.5 GB/home the rest
View 5 Replies
View Related
Oct 25, 2010
If I suspend this toshiba satellite, and the battery is or gets low it will wake from suspend to tell me that it will need to suspend due to a critical low battery. Which is pretty dumb. I've experimented with this by plugging and unplugging the ac adapter.
View 1 Replies
View Related
May 23, 2011
3 questions i have about "pm-suspend-hybrid"
1. is it possible to schedule this command in the same manner as shutdown ? eg sudo shutdown -h 60
2. is it possible to schedule the laptop to come out of suspend ?
3. i have a usb sound card (xfi go). when waking from suspend, the internal sound card is selected. i have to manually select the external sound card & for whatever reason, also unmute it too
View 1 Replies
View Related
Feb 8, 2011
So i am having trouble resuming an array. When i try it tells me that it's unable to do so because only one drive is available. Here is the weird bit, if i examine each of the drives one thinks that both drives are available and the other drive shows the first drive as being removed. (see below). This is a raid 5 and one of the drive has failed and been removed. I know that this was a terrible idea but the array has been functioning for a few weeks with just the two drives. And now i can't resume. Here is the output of the examine functions for each drive: notice that sda1 sees both drive 0 and 1 as active, but sdb2 sees drive 0 as removed.
[Code]...
I need to resume without losing the data, i'm afraid that adding drive 0 to array will reinitialize the array losing all of the data. Someone please help me out in finding the right command to get the array up long enough for me to get the important data off.(and please refrain from telling me how stupid i am for not getting it all off as soon as drive 2 went faulty. I know it was dumb but this is where i am now and can't change the past).
View 1 Replies
View Related
Feb 18, 2010
When the computer is in standby i press the power button and it whirrs into life but the screen stays blank and the power light stays orange.
Only way to sort it is to turn it off then on again.
View 1 Replies
View Related
Apr 15, 2011
I bought a laptop from ZaReason (zareason.com) with Ubuntu already installed. I am currently running 10.10. The machine has worked great but recently has had problems coming back from hibernation. This is a new problem and did not seem to coincide with an update or new software. When I try to "wake up" my laptop, it shows a bunch of text (I am not that computer-literate, so I don't understand the text) and becomes unresponsive. I will insert an image of my screen when it is frozen: DSCF7055.jpg
View 2 Replies
View Related
May 25, 2011
I recently did a fresh install of 11.04 (previously had 9.10) Everything works fine and dandy (I didn't have to do much tweaking at all to this version!!!) Except: When my computer resumes from the screensaver (GL text, set to display time) it takes nearly a minute for my DE to show up. When it finally does show up it takes another minute or more for the computer to run at normal "speed". A lot of lag and unresponsive mouse etc. After a few minutes the computer runs fine...I am not so linux savvy, what I know I have gleaned from forums such as this one. Is there something that 11.04 runs as default that I need to shut off to stop my slow resume problem?
View 2 Replies
View Related
Jun 29, 2015
Although it's worked very consistently in the past, since moving to the newer kernels (3.16 or 4.0) on strech/sid, resuming from hibernation seems to randomly work -- sometimes it loads the image from swap, but other times it simply does a fresh boot. To troubleshoot, I've increase the size of swap and then updated 'fstab', the initramdisk, and grub -- but still no reliable behavior...
View 10 Replies
View Related
Oct 13, 2010
These forums have been my bible ever since I switched from windows to ubuntu... especially because I was so scared that my laptop was always hot (if you know how to change the temperatures at which HP dv7 laptop fans start kicking the hell in- let me know!). 10.10 has improved this so I'm really really happy with this. Seriously love Ubuntu. Okay, enough for intros.
[Code]....
I want to run this after resuming from suspending. I've been successful in running the script on startup but couldn't do anything about resuming from suspending with these methods [URL] and every other in the forums. By the way, these commands enable Two-Finger Scrolling (doesn't work if you put both your fingers in an horizontal line or vertical).
View 8 Replies
View Related
Mar 5, 2010
first time user of Fedora 12 ( and lovin it ) and theres only one thing thats not working... When I resume from hibernation my graphics in my session become screwy ( sorry I can be more technical ) They become all white-ish and staticy, quite un-usable. It varies from time to time if the graphics are usable at all on resume. After a reboot things are fine. Or even better a log out then log in, things are back to normal. There is no difference when turning Compiz on or off. There are no errors in X log, and there is no X conf file on my system..
SPECS:
Dell Inspiron 1501
3GB RAM
ATI 200M Xpress
AMD Turrion 64-x2
P.S. > Someone said I need to enable an option in " ACPI-CONFIG " called write_graphics_to_memory. I cant find any reference to it anywhere, aswell as that I cant find anyway to see/edit ACPI settings..Dont really wana go back to Mandriva as I'm lovin FC12 sooo much. But Ive been trying to solve this for days and Im pulling my hair out.
View 8 Replies
View Related
Apr 14, 2011
I have a big file 1,3 GB that I need to transfer over a slow link, I started doing it for 3 weeks ago over sftp, the problem is that when the download reached 95% completion the link broke! Unrecoverable.I don't intend to restart the whole download process, is there a way or a linux software that could do the job in a bittorrent like matter ? For example:just downloading the missing part of the file ? (I have control over the server in order to install or configure what it needs to be done).
View 4 Replies
View Related
Apr 1, 2016
I use Debian Jessie with Linux 4.4.6 from backports and obviously systemd. My graphics card is Intel HD 5500, my processor is Broadwell i5-5200U. I use Toshiba Satellite Pro laptop.Suspending to RAM works fine, but I have problem with hibernation. Resuming from hibernation also works, but only when time between hibernating and resuming is a few hours. When this time is for example 10 hours (I hibernate before going to sleep and resume next day morning), I can't resume from hibernation. I see only black screen and keyboard doesn't work. In that case when I type in terminal
Code: Select alljournalctl
I can see:
Code: Select allPM: Starting manual resume from disk
PM: Checking hibernation image partition UUID=8640b415-7de4-48c2-b6ab-2629a5894316
PM: Hibernation image partition 8:4 present
PM: Looking for hibernation image.
PM: Image not found (code -22)
PM: Hibernation image not present or could not be loaded.
This is weird, because when I hibernate and resume after 2 hours, everything is OK. My SWAP is large enough (I have 16 GiB of memory and 16 GiB of SWAP).
I have Code: Select allGRUB_CMDLINE_LINUX_DEFAULT="quiet resume=UUID=8640b415-7de4-48c2-b6ab-2629a5894316 acpi_osi=linux i915.enable_rc6=1 i915.lvds_downclock=1 i915.enable_fbc=1 pcie_aspm=force" in /etc/default/grub and Code: Select allRESUME=UUID=8640b415-7de4-48c2-b6ab-2629a5894316 in /etc/initramfs-tools/conf.d/resume
I hibernate my computer using hibernate button in Kickoff in KDE Plasma.
View 14 Replies
View Related
Apr 12, 2016
I have installed VirtualBox and since then resuming from hibernation doesn't work again (my previous thread: [URL] ....). My question is: Can VirtualBox kernel modules (vboxpci, vboxnetadp, vboxnetflt, vboxdrv) break hibernation? If yes, what to do? Maybe unload them before hibernation, blacklist when resuming and load after resume? And how to do that with systemd? URL....
View 4 Replies
View Related
Sep 1, 2011
The problem is black screen after resuming hibernation.After I switch my computer on (after hibernation), I can see some progress bar and (after loading to 100%) black screen appears.I have Debian + GNOME and I DON't have xscreensaver.
View 2 Replies
View Related
Sep 22, 2009
I'm having problems resuming a suspended session on my HP DV6-1240ea laptop. On attempting to resume a suspended session the screen remains blank. I've tried pressing the Caps Lock key to see if the LED lights but it does not which would suggest the system has not started.
View 2 Replies
View Related
Jan 22, 2010
resuming the any running process like yes a,vim a,copying data etc) via any terminalkill fg,bg at some instances kill -STOP pid,kill -CONT pid .
View 2 Replies
View Related
Mar 13, 2011
I'm trying to resume copying from a mounted CIFS device to my local hdd with cURL. I tried
Code:
$ curl -C - -O file://myfile
and also
Code:
$ curl -C <manual offset> -O file://myfile
(looked up the manual offset using "$ wc -c")
This resumes copying if I cancel it eg with ^C.
But it does not work if I unmount and remount the CIFS device. cURL then ignores my given offset and continues again from start as if nothing were there without saying a word. With "-C -" the same effect.
View 2 Replies
View Related
Mar 16, 2010
Just got Ubuntu 9.10 and I'm liking it a lot, but my computer refuses to go into hibernate or suspend. I have a Dell M1530 but I don't really think it's a dell hardware issue because it's not just when I close the screen, it's also when I click suspend or hibernate from the menu.
View 2 Replies
View Related
Jun 30, 2010
I am currently in a project to set up an LTSP server with 10 thin clients. I am using Ubuntu 9.10 (Karmic).
Installing server and booting clients are working fine. Now, according to the need, I have to restrict user session numbers and allow resuming previous user session.
I have achieved to do the first one, but still could not able to setup the second one. As per requirement, if some thin can have power failure, the same session should be restored back. I am confused here, if I need to focus on saving xsessions or saving gnome sessions. I am looking for a concrete solution as I am running out of time.
View 1 Replies
View Related
Feb 4, 2010
when I put my lappy to sleep, it looks as if it sleeps well.the light blinks, just like when it did on windows when it slept but when I try to wake it up, it powers up the fan and hdd and i see nothing on my screen, it doesn't even light up.I am always forced to do a hard reset.do I need to blacklist a driver or something?
View 5 Replies
View Related
Apr 4, 2010
Is it possible to suspend ubuntu, but without turning it off?
pm-suspend - suspends the system, and powering RAM, but devices connected to the laptop stopped charging in suspend state.
View 2 Replies
View Related
Apr 6, 2010
My laptop won't resume after it suspends. It works fine under win 7 so it's not the hardware. The light says it's on and it's pretty much a blank screen. I'm not sure whether it's operational but the screen is off. It has exactly the same resault a waiting for the blank screen except it won't go back on.
View 9 Replies
View Related
Apr 9, 2010
new to Ubuntu and enjoying using it, trying out Ubuntu as an alternative to vista, the only thing i have been able to do is suspend and then wake my pc, it fails to wake, is there a workaround for this
have changed settings so pc sleeps after 1 hour, it was on never, i,m running ubuntu9.10 my pc will wake but i have a black screen with mouse icon showing but i,m unable to get any response, all well again after a reset
put pc in suspend and went out, on returning home started pc via on/off switch instead of pressing space bar (any key) hey presto Ubuntu woke up no problem
View 1 Replies
View Related