i8kmon not started after resume from suspend
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
i8kutils (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
On a Dell laptop Inspiron 3521, i8kmon is not started after resume from suspend, making the fan run at high speed without reason.
Starting manually i8kmon with "sudo i8kmon" works fine and the fan stops running at the maximum speed.
ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: i8kutils 1.41
ProcVersionSign
Uname: Linux 4.10.0-26-generic x86_64
ApportVersion: 2.20.4-0ubuntu4.4
Architecture: amd64
CurrentDesktop: KDE
Date: Sat Jul 15 12:30:41 2017
InstallationDate: Installed on 2017-06-19 (25 days ago)
InstallationMedia: Kubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
SourcePackage: i8kutils
UpgradeStatus: No upgrade log present (probably fresh install)
I found this solution:
1) create a script inside /lib/systemd/ system- sleep with your favourite editor:
vim /lib/systemd/ system- sleep/i8kmon
2) copy the following lines in the file (i used /lib/systemd/ system- sleep/wpasuppli cant as a starting point):
#!/bin/sh
set -e
if [ "$2" = "suspend" ] || [ "$2" = "hybrid-sleep" ]; then
case "$1" in
post) systemctl restart i8kmon.service ;;
esac
fi
3) make the file executable for everyone:
sudo chmod a+x /lib/systemd/ system- sleep/i8kmon
4) try to suspend, the fan speed problem should be gone now.