You are not logged in.

#1 2015-08-18 21:02:16

snoopyddogg
Member
Registered: 2015-06-05
Posts: 7

Thinkpad x230 Suspend to Ram cannot enable with systemd

Hello,

This is my third time setting Arch up fresh on my x230. Previously I have had no issue getting suspend to ram and other features working by following the wiki and forums. Currently I am unable to enable the following script and service from the x230 wiki:

https://wiki.archlinux.org/index.php/Le … nkPad_X230

When I type:

systemctl enable rc-local-shutdown.service

I get the following error:

The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
   .wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
   a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
   D-Bus, udev, scripted systemctl call, ...).

What is the proper [Install] tag that I must add to the end of the service file? Is there some other reason this service cannot be enabled with systemctl? Another command that would enable it?

Example from suspend@.service:

[Install]
WantedBy=sleep.target

Thanks in advance!

Offline

#2 2015-08-19 00:12:09

snoopyddogg
Member
Registered: 2015-06-05
Posts: 7

Re: Thinkpad x230 Suspend to Ram cannot enable with systemd

So I managed to get the rc-local-shutdown.service working by following this thread:

https://bbs.archlinux.org/viewtopic.php?id=148170

Now I still cannot get sleep/suspend working on the x230. I've enabled rc-local-shutdown.service and the four suspend/resume services in the power management section of the wiki:

https://wiki.archlinux.org/index.php/Power_management

Any ideas? I've always had sleep/suspend work out of the box until this most recent refresh.

Offline

#3 2015-09-08 20:14:03

twisted-space
Member
Registered: 2014-06-03
Posts: 7

Re: Thinkpad x230 Suspend to Ram cannot enable with systemd

The wiki entry for the x230 is quite out of date, most things work ootb here. What happens if you run systemctl suspend?

Offline

Board footer

Powered by FluxBB