Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 507630

Summary: app-laptop/laptop-mode-tools - /usr/sbin/laptop_mode: line 205: HDPARM~_DEBUG: syntax error in expression (error token is ~_DEBUG)
Product: Gentoo Linux Reporter: jimmij <jimmij>
Component: Current packagesAssignee: Alon Bar-Lev (RETIRED) <alonbl>
Status: RESOLVED INVALID    
Severity: normal CC: alonbl
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description jimmij 2014-04-14 12:32:23 UTC
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.
---------
Comment 1 Alon Bar-Lev (RETIRED) gentoo-dev 2014-04-14 13:39:29 UTC
Do you have leftovers of backup file in /etc/laptop-mode/modules/, /usr/share/laptop-mode-tools/modules/ ? look for hdparm with ~ somewhere
Comment 2 jimmij 2014-04-14 14:22:26 UTC
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.