Debian Installation :: Suspend / Resume / Restore Services Under Systemd On Jessie

May 11, 2015

Fixing my chronic suspend/resume problems turned out to be easier under systemd, but like everything else lacks documentation.

To suspend rather than power off when pressing the power button, I edited /etc/systemd/login.conf

uncommenting this line and changing it to suspend:
HandlePowerKey=suspend

and uncommenting the line
HandleLidSwitch=suspend

Some services were lost on resume. This problem seems common. To run a command on resume, I believe you have to make your own script, and create a systemd file to run it.

My script is /home/james/.bin/james-resume.service, which contains:

#! /bin/sh
/sbin/hdparm -B 255 /dev/sda

This must be executable. Ownership doesn't seem to matter.

To run it, I made a file in /etc/systemd/systen/suspend.target.wants
The file name must match the script name:
/etc/systemd/system/suspend.target.wants/james-resume.service

This contains:

[Unit]
Description=Run James jobs at resume
After=suspend.target
After=hibernate.target
After=hybrid-sleep.target

[Service]
ExecStart=/bin/bash /home/james/.bin/james-resume.service
[Install]
WantedBy=suspend.target
WantedBy=hibernate.target
WantedBy=hybrid-sleep.target

Ownership must be root.root. Apparently it doesn't need to be executable.

Then enable with:
sudo systemctl enable james-resume.service

and check with:
sudo systemctl status james-resume.service

If it says the service is loaded, it's OK -- inactive only means it's done running.

View 7 Replies


ADVERTISEMENT

Debian :: 8.0 Jessie Xfce Can't Resume From Suspend

Oct 9, 2015

I have a quite simple installation of Debian 8 Jessie XFCE and the resume from suspend is not working 9 out of 10 times. The system is single booted if that matters. I have found a few solutions to this problem but they were not suitable to my case as I don't have an Nvidia GPU but only Intel Onboard:

Code: Select all# lspci -v
00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02)
   Subsystem: Hewlett-Packard Company Device 2818
   Flags: bus master, fast devsel, latency 0
   Capabilities: [e0] Vendor Specific Information: Len=0b <?>
   Kernel driver in use: agpgart-intel

00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02) (prog-if 00 [VGA controller])
   Subsystem: Hewlett-Packard Company Device 2818
 
[CODE]..

When I try to resume, I can hear the system booting but I can't see anything on the screen and the keyboard is not working either (no light on Num Lock and Caps Lock). The only option is to press the power button for a few seconds to stop the machine and then push again to start booting again.

View 13 Replies View Related

Debian Installation :: Dist-upgrade From Wheezy (using Systemd) To Jessie Hangs

Nov 19, 2014

I have done on previous releases, but this time it hangs on me. It's "only" a Virtualbox, so I can reproduce it.

The wheezy already runs systemd, and is fully updated to to latest packages. Does not run any graphical.

Edits the source.list and does
$ apt-get update
$ apt-get upgrade # Did on one upgrade
$ apt-get dist-upgrade

It starts to upgrade (complains about missing version in libpgp-error), libc is installed, but at some point the systemd is running at high CPU and a dpkg seems to be stalled.

Should I disable systemd on wheezy before? This might not have been tested so much.

View 10 Replies View Related

Debian Installation :: Systemd - Automount Windows Partition / USB Devices In Jessie

May 11, 2015

There seems to be no documentation on how to automount partitions and USB devices under systemd in Jessie. (Overall, systemd entirely lacks any useful documentation or GUI configuration tools -- all very cryptic and hidden.)

I created custom files to enable automounting. I put them in /etc/systemd/system -- this may not be the right place, but it works.

Kernel note:
This does not work under the old Wheezy kernel linux-image-3.2.0-4.

To automount my Windows partition so I can access its files, I created:
/etc/systemd/system/media-windows.mount

The name of the file must match the mount point -- in this case, /media/windows

My file notes the device and file type, plus an fmask option so all the Windows files don't seem to be executable:

[Unit]
Description = windows mount to /media/windows
[Mount]
What=/dev/sda1
Where=/media/windows
Type=ntfs-3g
Options=fmask=111
[Install]
WantedBy=multi-user.target

The file ownership must be root.root. Apparently it doesn't need to be executable.

After creating, enable with:

sudo systemctl enable media-windows.mount

and it will mount on the next boot.

I read elsewhere that the before running the enable command you should run a start command:

sudo systemctl start media-windows.mount

but that didn't work for me.

View 2 Replies View Related

Debian Configuration :: Corrupted (permanent) Systemd Logs In Jessie

Apr 22, 2016

I've enabled permanent systemd logs in Jessie, and after a while I'm seeing messages about corrupted logs when checking with journalctl --verify

Code: Select allInvalid tail monotonic timestamp 0%
File corruption detected at /var/log/journal/..........

as far as I can see, there is currently no option to delete this files from within systemd facilities, is that correct?

Should they be deleted manually, or just left alone?

Apparently I can still read all older logs regardless of such reported corruption, using the journalctl --boot -n option.

EDIT:Another thing coming to mind is that this has been happening for me not only in Jessie but in every systemd-based distro that I've tried, once permanent logging is enabled: is that some kind of systemd bug?

What would exactly mean

Code: Select allFile corruption detected at /var/log/journal/38d5e6b861134eadb37cbd64b98a66bd/user-65534@d1745ac610d2459f940a24f27abd6d47-0000000000000f14-00051b8d2dabdcac.journal:000000 (of 8388608 bytes, 0%)

in particular, the 0% of 8388608 bytes part ?

View 0 Replies View Related

Debian :: Suspend To Ram - Resume Bug In Squeeze?

Mar 10, 2010

I have an issue with my Sony vaio fw31e not resuming from suspend. Reported this as a bug: [URL] The usual ways of suspending, from the kde 4 menu, from the power/battery widget or by lid closing always result in no resume. However, running pm-suspend from a root terminal suspends and resumes just fine. My question is, how does one delve into the way that the usual methods initiate suspend? Maybe if I could find out what each of these methods actually does, I may be able to see what is going wrong? I had been running squeeze on this lappy since July 2009 with no suspend issues until an update broke it sometime in January. The install is being fully upgraded every day at the moment.

View 11 Replies View Related

Debian :: Blank Screen Upon Resume From Suspend?

Jan 28, 2010

Up until a couple days ago, my computer had no problems suspending to ram. However, now when I suspend, and later hit a key on the keyboard (usually space) to resume, all I see is an illuminated black screen. I can't even open a tty via Ctrl+Alt+F1. I can however ssh into the machine.he only possibility I can think of is that I am no longer running kdm. I just use "startx" to star an openbox-session.

View 8 Replies View Related

Debian Configuration :: Laptop Does Not Resume From Suspend?

Jan 27, 2011

I have installed squeeze on a HP notebook. I have one small problem though.It does not resume from suspend. If I shutdown -> suspend, or close the the lid, or shut downs (suspends) as expected, but whenower it backup up, the screen just stays black.Hibernate is working fine.

output of lspci (if needed)
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)

[code]...

View 14 Replies View Related

Debian Configuration :: No WiFi On Resume From Suspend Broadcom 43x?

Jan 10, 2011

I have just joined the Debian community, for the past 2 years I have been using Linux Mint (ubuntu), I am now using Linux Mint Debian 64. I have a Lenovo A700 ideacentre with a Broadcom 4313 WiFi card. I manage to get the card working, now I have a new problem. If I suspend the machine the WiFi will not connect on resume. Is there a simple command I can use to getting the connection restarted, or better yet a work around so it will restart on its own?

View 14 Replies View Related

Debian Configuration :: Resume After Suspend Fails With Kernel 2.6.36

Aug 27, 2011

I'm having problems with resume after suspend to RAM. The machine starts to wake up, but the screens (multi mon VGA and DVI setup) are black and the keyboard doesn't light up. After ~20 seconds there's some brief disk activity and then the computer reboots. 100% repeatable with affected kernel versions. My test method is simple, I boot the machine on the kernel's recovery option, log on as root and run "PM_DEBUG=1 pm-suspend". I haven't found anything in the logs after a failed resume.

Here's the situation:
I have a SSD disk. To get TRIM support I have to use kernel 2.6.33 or later, which means that the standard kernel in Squeeze is too old.I have Nvidia graphics, and there was a change in 2.6.34 that breaks older versions of xserver-xorg-video-nouveau (version 0.0.15, used in Squeeze), I can't use Debian Squeeze with a kernel newer than 2.6.33.x.My machine (XFX GeForce 9300 motherboard) won't resume from suspend to RAM if I use a kernel newer than 2.6.36. There are no BIOS updates available.

My options:
Install newer kernel from Squeeze backports (2.6.38.2 last time I tried). <--- Not doable b/c of resume problems. Upgrade to Wheezy, which uses kernel 3.0.x. <--- Not doable b/c of resume problems.Compile a vanilla kernel. So basically I'm forced to compile my own vanilla kernel, 2.6.33.x on Squeeze or 2.6.35.x on Wheezy. I won't be stuck with an unsupported kernel version in the near future, but so far I've failed miserably.

I know that the latest kernel version where everything works is 2.6.36.x (no longer maintained), 2.6.37.0 and later cause resume problems (I've tried 2.6.37, 38, 39 and 3.0.0, .0.1). I've tried doing a git bisect on the kernel, but didn't succeed, ended up on 2.6.36-rc5 which is weird considering that 2.6.36.4 works. There may be several suspend/resume bugs in different kernel versions that messed up the bisecting results.

View 2 Replies View Related

Debian Configuration :: 8.1 - Keyboard Doesn't Work On Resume From Suspend

Jun 19, 2015

I'm running Debian 8.1 KDE on a 2007 dv6 laptop. Model number is worn off. lol but the specs:

Intel i3 first gen m 330
4GB RAM
Intel (ironlake) graphics

First off, closing the lid to my laptop doesn't trigger suspend, or anything no matter what I set it to in power options.

I can suspend using "systemctl" or suspend from the "Leave" menu, but upon turning my computer back on, my touchpad and keyboard don't work.

Sometimes, my touchpad will start working after about 15 seconds, but the keyboard doesn't come back. I have to hard reset.

I have a feeling it's something to do with systemd, but I'm not super proficient in linux. Just an end user who is friendly with a terminal.

View 6 Replies View Related

Debian Configuration :: System Upgrade => No Network After Suspend And Resume?

Aug 7, 2011

Lately I upraded my Debian using aptitude update/aptitude upgrade - including installing a new kernel (3.0). Since this upgrade I have strange problem with networking. When I suspend my computer and resume it, I do not have connectivity with network:

$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.1 icmp_seq=1 Destination Host Unreachable

[code]....

View 2 Replies View Related

Debian Hardware :: Slow Resume From Suspend On Acer Laptop?

Jan 5, 2011

My Acer Aspire 7552 laptop is running Debian Testing (just the main repos, no contrib or non-free). For some reason, it takes over five minutes to resume from suspend, and an absurd period to come back from hibernate (well over half an hour). Has anyone encountered this problem before, or have any tips on how to fix it? For the time being, I'm completely powering off every time I close my laptop because it's faster that way.

Output of lspci in case it helps:
00:00.0 Host bridge: Advanced Micro Devices [AMD] RS880 Host Bridge
00:02.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (ext gfx port 0)

[code]...

View 1 Replies View Related

Debian Multimedia :: Laptop Screen Stays Black On Resume From Suspend?

Jun 22, 2011

I'm running Debian Squeeze on a Dell Studio 1558 laptop, and I have my laptop set to suspend when my lid is closed. Resuming from suspend seems to work but the screen remains blank, forcing me to hard reboot every time. Upon reading this thread:

Tue Jun 21 23:07:12 AKDT 2011: performing suspend
Tue Jun 21 23:07:28 AKDT 2011: Awake.
Tue Jun 21 23:07:28 AKDT 2011: Running hooks for resume

[code]...

View 8 Replies View Related

Debian Configuration :: Server Services Delay After Wakeup From Suspend

Oct 4, 2015

I'm trying to lower consumption of my server/HTPC. After wakeup from pm-suspend server/HTPC is ready to use in 1 or 2 seconds .For example if I suspend it while watching movie in KODI, after resume movie starts playing instantly. But some services (SSH and SAMBA) are not running. I thought it was network problem so I change configuration to static (not DHCP). SAMBA and SSH starts like 15 seconds after wakeup.

View 0 Replies View Related

Debian :: Can't Suspend Asus N550JV - Jessie

May 19, 2015

I've tried everything I was able to do alone but I can't figure why my laptop won't suspend. It just goes dark and wakes up again.

Here my /var/log/syslog from my last suspend attempt : [URL] ....

Code: Select all$ uname -a
Linux N550JV 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24) x86_64 GNU/Linux

(my PC runs on dual-boot with Windows )....

View 7 Replies View Related

Debian Configuration :: Squeeze: Suspend/hibernate Resume Fails With Radeon Graphics

Aug 6, 2010

I am running Squeeze on an older Compaq EVO laptop with radeon graphics.

A few months ago, after an upgrade, suspend and hibernate stopped working. The suspend or hibernate worked fine, but the resume just hung with a black screen. I finally got around to looking into it and found a workaround.

The workaround is to disable Kernel Mode Setting for the radeon. This can be done by adding the boot parameter "radeon.modeset=0" or by editing /etc/modprobe.d/radeon-kms.conf so that it includes the line "options radeon modeset=0".

If you are interested in the details, you can search for problem reports related to radeon kernel mode setting.

View 3 Replies View Related

Ubuntu Installation :: Manual Fglrx Install - System Will Not Resume After A Suspend

Aug 13, 2010

I recently upgraded to Lucid (x86_64) on an HP dv2 laptop, and after doing so, the system will not resume after a suspend (with fglrx installed from the "official" repositories). After reading a lot about the problem, I have seen that updating to the latest ATI driver had fixed this issue for some, so I would like to try that.

I am following the guide at at cchtml.

First, I tried installing the Ubuntu-X team's drivers. However, after (successfully) adding their repository, an update does not fetch their packages:

Code:

It looks like both the xorg-edgers and ubuntu-x-swat repositories are being ignored? (If I'm reading that correctly.) If I open the window System->Administration->Software Sources, I can see that the ubuntu-x-swat repository is checked, so I'm confused why it's being ignored.

If I try to demand the fglrx-installer package, I get an error that it cannot find this package.

Code:

I have the same issues for xorg-edgers and ubuntu-x-swat.

Finally, if I try to build the official ATI v10.7 drivers myself, I get an error that Linux is an unrecognized architecture!

Code:

I have installed all preliminary packages suggested in the guide:

Code:

I really can't understand why I'm unable to build the package from ATI myself.

View 3 Replies View Related

Ubuntu :: Can't Resume From Suspend?

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

Ubuntu :: 10.04 Log Out When Resume From Suspend?

May 6, 2010

I've just upgraded from 9.10 to 10.04 via the upgrade manager. Prior to the upgrade I was able to suspend and hibernate without any problems. Now that I have upgraded to 10.04, I can suspend however when I resume I am back at the gdm login prompt, logging in again with a new session.Having just done another test whilst writing this, it actually appears that if I select suspend from the top right I am suspended and can resume my session. If I close the lid on my laptop (which is supposed to suspend) I am logged out and suspended.Also, Hibernate doesn't work as well - sometimes it never actually hibernates (just sits on a black screen) and sometimes it doesn't resume (it's never hibernated and resumed correctly since the upgrade)

View 9 Replies View Related

Fedora :: Suspend / Resume With F14 Radeon Kms?

Nov 13, 2010

It all works if I boot my self compiled vanilla 2.6.35-rc3 though. The environment

Sony vaio VGN-SR21M 4GBRAM P8400, ATI HD3400 mobility. I use

kernel-2.6.35.6-45.fc14.x86_64
xorg-x11-drv-ati.x86_64-6.13.1-0.3.20100705git37b348059.fc14

If I suspend my notebook it starts the usual slow orange blinking indicating the suspend mode got reached. There is also evidence in the various log files that this works. If I try to resume it hangs a for 3 seconds and then I get the hdd-password screen from my bios and the notebook boots from zero. I couldn't find anything in /var/log/messages nor dmesg. If I first boot to windows (grub 2nd partition) and then restart and boot to linux, all the suspend works fine

View 1 Replies View Related

Fedora :: Resume From Suspend Without A Password?

Jun 22, 2011

how do i disable the screen lock after i wake my computer from suspend? i would prefer to be able to just wake the computer up and have it go right to the desktop, without having to enter a password. i used to use ubuntu until today, and i remember having to run "gconf-editor" and then switching off on "lock_on_suspend" under apps/gnome-power-management from the menu that popped up. i tried to run "gconf-editor" in fedora 15, but that doesn't appear to exist. i've searched around and haven't been able to find an answer, so i'm wondering if anybody knows what to do?

View 3 Replies View Related

OpenSUSE Hardware :: Suspend And Resume In 11.2 And KDE 4.3

Mar 3, 2010

I've upgraded 4 boxes (32- and 64-bit) from Suse 11.1 to 11.2 with no unresolvable issues. Now I'm stuck with my 5th box, a Dell Dimension 8400 desktop box (yes, an old brick, 32-bit). I can suspend to RAM ("suspend") and to disk ("hibernate") fine, but resume seems to fail. In Suse 11.1 I used kpowersave (GUI in the sys tray) to suspend to RAM. For some reason, it couldn't suspend to disk but that didn't bother me. kpowersave relies on the powersaved running.

Note I had upgraded my 11.1 installation to all shiny and new KDE 4.3 stuff, and while KDE 4.3 seems not to use powersaved (and thus kpowersave) all worked fine. Upgrading to 11.2 has removed kpowersave and powersaved. I don't mind switching to another way if only I could find documentation what's being used on KDE 4.3 (and/or Suse 11.2). All I find by googling is that the daemon used is powerdevil, and that I should use a GUI for suspending (this battery monitoring plasma app).

Well, if I do that on this box it simply does -- nothing. So I tried s2ram and a2disk directly:Running s2ram with the --force option works, but the box doesn't resume. Goes on, screen stays blank, mouse and keyboard don't work. s2disk complains about not being able to "stat the resume device file". I gave it the --resume_device /dev/sda6 option, and it hibernated fine. But it doesn't resume. Pressing the power on button just starts Suse anew (and recovers the file system journals, so I assume it thinks it has crashed before).

So I think I have 2 questions:
What the heck does Suse 11.2 use for suspend/hibernate and resume? Is there any how-to available to learn what I need to configure?
Why can't I resume from successful s2ram or s2disk operations? /var/log/pm-suspend-log or pm-powersave-log don't provide any clues.

View 9 Replies View Related

Ubuntu :: Laptop Will Not Resume After Suspend

Apr 22, 2010

Whatever way I suspend my laptop (menu, keyboard shortcut, close lid), it seems to suspend just find (no panic lights, suspend LED indicator flashing as expected). However, when i try to resume, the laptop seems to begin the proper wakeup process (for example, the DVD-drive is tested), there's a lot of HDD activity for about 5 seconds, screen does not power on, and then the laptop just shuts off.

System setup:
lucid beta 2, fully updated (just check now)
LG E-500 laptop /w nvidia gforce mobile 8400G
bios version 1.17 from June 2007 (not sure this is important)

Things I tried:
* Completely remove anything to do with gpu drivers and installed nvidia-current driver.
* Suspend stress test described here. this didn't work at all. The first test failed (with ac adapter attached) and the second test suspended but didn't automatically resume (see "the behavior" above). Also, when I booted up again, no apport bug report is created. I tried both with rtc set to utc=yes and utc=no. with utc=yes, the second test did automatically resume, but the same problem happened (laptop shutdown while resuming).
* The debugging steps described here, but I couldn't get the "no_console_suspend" option to work. I tried adding both "no_console_suspend" and "no_console_suspend=1" (without quotes) to the boot script in the grub menu, but when I did pm-suspend in tty1, the laptop really did suspend. I would like to try to do this again if someone could explain how to add this option.

Notes:
* Not sure this is relevant, but when I boot up after a failed resume attempt, wireless network is disabled (this only happens after a failed resume!!!).
* I found a package called nvram-wakeup in synaptic that seems to be related to this. This package is not installed. Should I install it?
In case this is relevant, forgot to mention I'm running ubuntu in dual-boot along side windows7.

View 6 Replies View Related

Ubuntu :: Desktop Will Not Resume From Suspend 9.10 Or 10.04

Apr 25, 2010

I don't have any problems with 9.04 at all with suspend & resume just shutdown (wont power off usb saitek keyboard & razer mouse) but i don't care for that I prefer suspend & resume. However trying 9.10 suspend works while resume gets a black screen & locks up. Now on 10.04 it will suspend very fast but will not power up from resume keyboard & usb power is turned off thats what I can't figure out I have checked bios & changes settings after settings & nothing happens. I know in windows everything works but i do not want windows at all I prefer linux (ubuntu). In my asus eee pc 1001p suspend & resume works with both 9.10 & 10.04.

View 7 Replies View Related

Ubuntu :: No Screen When Resume From Suspend?

May 21, 2010

When I close my laptop lid (it goes into suspend mode). When I open it again, I can't see anything but a black screen. I have to reset the computer manually to accessUbuntu again.On a related note probably.. for 'some' screensavers, when I click to re-access my desktop, the screensaver freezes, but I can't see the unlock dialogue. I can however still type my password and it will unlock, I just can't see what I'm doing

View 2 Replies View Related

Ubuntu :: Resume From Suspend Without Password?

May 29, 2010

in kubuntu how can i resume from suspend without password? it annoys the crap out of me i have been looking all over and cant find anything in settings to do this

View 3 Replies View Related

Ubuntu :: Resume From Suspend Not Working 9.10?

Jul 31, 2010

Karmic 2.6.31-22-generic, Asus M3N78-EM, MCE remote with USB/IR dongle, latest Bios, Bios PM enable and set for suspend S3. IT will suspend but I need to depress case power button for it to resume. I want to use my remote control, I also can not get it to resume from Keyboard/mouse (See Note Below). Only suspend and power button work.

$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

[code]....

View 1 Replies View Related

Slackware :: 13.1 - Suspend / Resume With 2 Different Laptops

May 29, 2010

Laptop 1 is an acer aspire 5570. closing and opening the lid works a few times, after editing acpi_handler.sh, and battery life reporting is ok during this time. then, for no apparent reason, the laptop no longer responds to the lid closing, and no longer seems to be able to read the battery charge state. once this has occurred, the computer will also no longer restart, it tries a few times, with lights flashing and the hd making ugly noises. the only way to extricate the computer from this state is to pull and reinsert the battery.

Laptop 2 is a gateway nv18. suspend/resume with the lid are ok, mostly. the issure here is no display at all in x. but the computer does respond to ctrl-alt-backspace to kill x, with the command prompt returning. still not good. I'm trying a fresh install on the gateway, to see if this was just an installation glitch.
Both laptops performed flawlessly in 13 otherwise.

View 9 Replies View Related

CentOS 5 :: Fail To Resume From Suspend?

Jul 12, 2011

I've been trying to find an answer to the following problem : whenever my PC is put in Suspend/Hibernate mode, it fails to recover when pushing the power button. This happens both with automatic suspend or manual suspend. I've been reading this problem, and mine is quite similar, but no solution is given.

uname -rmi
2.6.18-194.11.4.el5 x86_64 x86_64
PS: this computer is not connected to Internet, no update possible.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved