Systemd cannot start laptop-mode (1.63-r2, last stable) with the following error: --------- [ OK ] Started Login Service. /usr/sbin/laptop_mode: line 205: HDPARM~_DEBUG: syntax error in expression (error token is ~_DEBUG) [FAILED] Failed to start Laptop Mode Tools. See 'systemctl status laptop-mode.service' for details. ---------
Do you have leftovers of backup file in /etc/laptop-mode/modules/, /usr/share/laptop-mode-tools/modules/ ? look for hdparm with ~ somewhere
Uhhh, indeed I had /usr/share/laptop-mode-tools/modules/hdparm~. I was affected by https://bugs.gentoo.org/show_bug.cgi?id=477958 so as a workaround for 1.63-r2 I've edited /usr/share/laptop-mode-tools/modules/hdparm manually with emacs editor which by itself created hdparm~ as a backup file. Marked bug as solved. Thx.