This shows you the differences between two versions of the page.
systemd-resume [2016/01/13 19:26] ian created |
systemd-resume [2020/02/13 22:55] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== systemd Suspend Resume Hook ====== | ||
- | |||
- | On my laptop, the connected external monitor does not come out of sleep unless I run '' | ||
- | |||
- | I found that I was able to create the file ''/ | ||
- | |||
- | < | ||
- | [Unit] | ||
- | Description=User resume actions | ||
- | After=suspend.target | ||
- | |||
- | [Service] | ||
- | User=%I | ||
- | Type=simple | ||
- | ExecStartPre=/ | ||
- | ExecStart=/ | ||
- | |||
- | [Install] | ||
- | WantedBy=suspend.target | ||
- | </ | ||
- | |||
- | Followed by enabling the service. | ||
- | |||
- | < | ||
- | # systemctl enable resume@ian | ||
- | Created symlink from / | ||
- | </ | ||
- | |||
- | Now when the laptop resumes from sleep, the xset commands are run for me. | ||