Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tlp-sleep.service fails to run #88958

Open
uzytkownik opened this issue May 26, 2020 · 2 comments
Open

tlp-sleep.service fails to run #88958

uzytkownik opened this issue May 26, 2020 · 2 comments
Labels
0.kind: bug 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: nixos

Comments

@uzytkownik
Copy link

Describe the bug
tlp-sleep.service fails to run which prevents the TLP policy to be applied after suspend/resume

To Reproduce

  1. Enable TLP
  2. Suspend & resume

Expected behavior
New TLP policy is applied

Additional context

$ systemctl status tlp-sleep.service
● tlp-sleep.service - TLP suspend/resume
   Loaded: loaded (/nix/store/22c20bdsk1ffb493qpmksgc7l4iwpx70-unit-tlp-sleep.service/tlp-sleep.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2020-05-26 10:34:58 PDT; 23min ago
  Process: 9966 ExecStart=/nix/store/cygjxl81404dih4ngpxqpxsy8n4f3nab-tlp-1.2.2/bin/tlp suspend (code=exited, status=1/FAILURE)
 Main PID: 9966 (code=exited, status=1/FAILURE)
       IP: 0B in, 0B out
      CPU: 39ms

May 26 10:34:58 babylon5 systemd[1]: Starting TLP suspend/resume...
May 26 10:34:58 babylon5 systemd[1]: tlp-sleep.service: Main process exited, code=exited, status=1/FAILURE
May 26 10:34:58 babylon5 systemd[1]: tlp-sleep.service: Failed with result 'exit-code'.
May 26 10:34:58 babylon5 systemd[1]: Failed to start TLP suspend/resume.

TLP_DEBUG doesn't work unfortunately:

logger: unknown facility name: debug
logger: unknown facility name: debug
logger: unknown facility name: debug
logger: unknown facility name: debug
logger: unknown facility name: debug
logger: unknown facility name: debug
logger: unknown facility name: debug
logger: unknown facility name: debug

Notify maintainers
@abbradar

Metadata

hese paths will be fetched (0.06 MiB download, 0.31 MiB unpacked):
  /nix/store/b4kbdvdyb80r57jhx7665117k75v4jrl-stdenv-linux
  /nix/store/hzrq5ccamfkwdkl9gqqsh3ryprzvs044-bash-interactive-4.4-p23-dev
copying path '/nix/store/hzrq5ccamfkwdkl9gqqsh3ryprzvs044-bash-interactive-4.4-p23-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/b4kbdvdyb80r57jhx7665117k75v4jrl-stdenv-linux' from 'https://cache.nixos.org'...
 - system: `"x86_64-linux"`
 - host os: `Linux 5.4.42, NixOS, 20.03.1950.48723f48ab9 (Markhor)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.4`
 - channels(root): `"nixos-20.03.1950.48723f48ab9"`
 - channels(mpiechotka): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

@uzytkownik
Copy link
Author

It seems to work when run under bash instead of sh.

@stale
Copy link

stale bot commented Dec 25, 2020

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Dec 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: nixos
Projects
None yet
Development

No branches or pull requests

2 participants