You are not logged in.

#1 2014-12-26 07:17:38

Degru
Member
Registered: 2013-10-03
Posts: 41

Where do I put the config file for i8kmon? [SOLVED]

I have configured i8kmon so that it loads on startup, but I can't seem to figure out where to put the config file with the temperature thresholds to make it automatically control my fanspeed. Right now it just turns the fan to full speed on boot.

Where does the config file go?

EDIT: Solved. File goes in /etc/i8kutils/i8kmon.conf (contrary to all documentation!)

Last edited by Degru (2014-12-26 19:40:41)

Offline

#2 2014-12-26 07:21:19

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Where do I put the config file for i8kmon? [SOLVED]

What does the man page say?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-12-26 07:39:49

Degru
Member
Registered: 2013-10-03
Posts: 41

Re: Where do I put the config file for i8kmon? [SOLVED]

jasonwryan wrote:

What does the man page say?

       The  program  has builtin defaults and temperature thresholds but users
       can   specify   their   own    settings    in    configuration    files
       /etc/default/i8kmon  and  ~/.i8kmon.   The daemon defines 4 states with
       different fan speeds ({0 0}, {1 0}, {1 1}, {2 2}) and  for  each  state
       are  defined  the temperature thresholds which cause the switching to a
       higher or lower  state.  Furthermore  each  state  can  have  different
       thresholds  for operation on ac power or battery.  For example the fol‐
       lowing configuration:

I've put the following file in /etc/default/i8kmon:

# Run as daemon, override with --daemon option
set config(daemon) 0

# Automatic fan control, override with --auto option
set config(auto) 1

# Report status on stdout, override with --verbose option
set config(verbose) 1

# Status check timeout (seconds), override with --timeout option
set config(timeout) 1

# Temperature thresholds: {fan_speeds low_ac high_ac low_batt high_batt}
set config(0) {{-1 0} -1 50 -1 50
set config(1) {{-1 1} 50 70 50 70}
set config(3) {{-1 2} 70 128 70 128}


But it doesn't seem to do anything. I'm running a Dell Inspiron 3521 with no dedicated GPU, so it only has one fan. I was somehow able to get i8kmon to work in Ubuntu by putting this config in /etc/i8kmon, but can't get it to work in Arch. Putting it in /etc/i8kmon and /etc/default/i8kmon doesn't do anything.

Offline

#4 2014-12-26 07:45:26

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Where do I put the config file for i8kmon? [SOLVED]


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2014-12-26 07:50:11

Degru
Member
Registered: 2013-10-03
Posts: 41

Re: Where do I put the config file for i8kmon? [SOLVED]

Thank you! I'll try putting it in /etc/i8kmon.conf when I get back to that computer. I put it in /etc/i8kmon previously as per the Ubuntu instructions I had, but didn't think of adding .conf on the end.

Offline

#6 2014-12-26 07:56:40

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Where do I put the config file for i8kmon? [SOLVED]

No problem. Just a thought, a project with a basic flaw like that in the man page for 3+ years strikes me as either neglected or dead; you might want to find something a little more up-to-date...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2014-12-26 18:31:44

Degru
Member
Registered: 2013-10-03
Posts: 41

Re: Where do I put the config file for i8kmon? [SOLVED]

Didn't work, but then I copied it into ~/.i8kmon and ran the daemon as myself, and it complained about a missing brace. Added the brace, and running it locally worked. But then when I copied the corrected file back into /etc/i8kmon.conf, it didn't work.

Turns out it reads the file /etc/i8kutils/i8kmon.conf, which I previously though was just the example file. I renamed the example file, and put my config in its place, and it worked.

Offline

#8 2014-12-26 18:57:31

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Where do I put the config file for i8kmon? [SOLVED]

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB