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

Couldn't read configfile - 2022 Linux LTS Kernel Linux Mint 20.3 #249

Open
tmanok opened this issue Mar 4, 2022 · 0 comments
Open

Couldn't read configfile - 2022 Linux LTS Kernel Linux Mint 20.3 #249

tmanok opened this issue Mar 4, 2022 · 0 comments

Comments

@tmanok
Copy link

tmanok commented Mar 4, 2022

Hi Everyone,

I'm experiencing something similar to this issue with Linux Mint 20.3 on a 2010 27" iMac (i5-750).

The program operates at its defaults, however it does not read the configuration file (currently in /etc/mbpfan.conf as it should be with readable permissions, it's also running as root from systemd (default for apt install mbpfan).

After stopping the service, I can execute the application with "sudo mbpfan -f -v" temporarily to see:

Writing a new .pid file with value 3107153 at: /var/run/mbpfan.pid
mbpfan[3107153]: Writing a new .pid file with value 3107153 at: /var/run/mbpfan.pid
Successfully written a new .pid file with value 3107153 at: /var/run/mbpfan.pid
mbpfan[3107153]: Successfully written a new .pid file with value 3107153 at: /var/run/mbpfan.pid
Using new sensor path for kernel >= 3.15.0 or some CentOS versions with kernel 3.10.0
Found hwmon path at /sys/devices/platform/coretemp.0/hwmon/hwmon0/temp
Found 4 sensors
Found 3 fans
Couldn't read configfile
Sleeping for 2 seconds to get first temp delta
Old Temp 64: New Temp: 63, Fan Speed: 2000
Old Temp 64: New Temp: 63, Fan Speed: 2000
Old Temp 64: New Temp: 63, Fan Speed: 940
Sleeping for 1 seconds
...

apt package version: 2.1.1-2
Kernel: Linux 2010-iMac 5.4.0-99-generic #112-Ubuntu SMP Thu Feb 3 13:50:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
"lsmod | grep -e applesmc -e coretemp" displays both modules.
Systemd file location: /etc/systemd/system/sysinit.target.wants/mbpfan.service
Systemd file contents:

[Unit]
Description=A fan manager daemon for MacBook Pro
After=sysinit.target

[Service]
Type=simple
ExecStart=/usr/sbin/mbpfan -f -v > 
ExecReload=/usr/bin/kill -HUP $MAINPID
PIDFile=/var/run/mbpfan.pid
Restart=always
StandardOutput=/var/log/mbpfan.log
StandardError=/var/log/mbpfan-error.log

[Install]
WantedBy=sysinit.target

I added the standard output and stderr logging to the systemd unit/service file. Did not work as expected, that would be a nice feature to have moving forward by default.

Thanks MBPFan Team!

Tmanok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant