Temperatures inside pc high?

68 Antworten [Letzter Beitrag]
GrevenGull
Offline
Beigetreten: 12/18/2017

Wierd thing:

I shut down the computer to clean it on the inside, remove dust etc.

When I turned it back on, these commands didn't work :/

I was able to edit the files, but the fans are still going automatic, so wierd.

EDIT

Never mind. I forgot to do the

cd /sys/devices/platform/applesmc.768

first.

Also... Now my fan2 (right side fan) is running 6200 rpms also! :) glory glory

Magic Banana

I am a member!

I am a translator!

Offline
Beigetreten: 07/24/2010

To do it with echo (and avoid the 'cd'):
$ echo 1 | sudo tee /sys/devices/platform/applesmc.768/fan1_manual

I suggest two little Shell scripts that can be put in /usr/local/bin. Let us call the first one max-fan (to set both fans to the max speed) and the second auto-fan (to go back to their automatic management). To create the first one using the Pluma text editor (since you are using Trisquel 8):
$ gksu pluma /usr/local/bin/max-fan
Then copy-paste that:
#!/bin/sh
echo 1 | tee /sys/devices/platform/applesmc.768/fan1_manual > /sys/devices/platform/applesmc.768/fan2_manual
echo 6200 | tee /sys/devices/platform/applesmc.768/fan1_output > /sys/devices/platform/applesmc.768/fan2_output

Save and quit. Now for the second script:
$ gksu pluma /usr/local/bin/auto-fan
Then copy-paste that:
#!/bin/sh
echo 0 | tee /sys/devices/platform/applesmc.768/fan1_manual > /sys/devices/platform/applesmc.768/fan2_manual

Save and quit. Turn both scripts executable:
$ sudo chmod +x /usr/local/bin/max-fan /usr/local/bin/auto-fan

I then suggest you add two related entries to the main menu. To do so, use "Main menu" (or is it called "MATE Menu"?), and add in the category you want (probably "System Tools") two entries, using the button "New Item". The names and the comments can be whatever you want (for instance "Max-speed fans"/"Set both fans to their maximal speed" and "Auto fans"/"Automatically manage fans") and the commands must be respectively 'gksu max-fan' and 'gksu auto-fan' (without the single quotes). 'gksu' asks for the password in a graphical way and executes the following command with administrative privileges. Like 'sudo' in the commands Time4Tea gave.

GrevenGull
Offline
Beigetreten: 12/18/2017

Okay. That. Is. AWESOME!

This is pure gold. Now I just wish my computer would operate normal so I don't have to run full speed at all times :p

But this is gold, really. Thank you very much, and also Time4Tea and everyone else in here. This is so cool.

GrevenGull
Offline
Beigetreten: 12/18/2017

In Trisquel 7, is it sufficient to just change the word "pluma" with "gedit" and then we are good to go?

I tried that and it didn't work. But I may have typed wrong.

chaosmonk

I am a member!

I am a translator!

Offline
Beigetreten: 07/07/2017

> In Trisquel 7, is it sufficient to just change the word "pluma" with
> "gedit" and then we are good to go?

Yes. Or 'sudo apt install pluma'.

> I tried that and it didn't work. But I may have typed wrong.

Didn't work how? Did you get an error message?

GrevenGull
Offline
Beigetreten: 12/18/2017

It did work. It was me not spelling things correctly as so many times before.

Time4Tea
Offline
Beigetreten: 07/16/2017

btw, the 'sensors' command should also print what the min and max fan rpm settings are.

GrevenGull
Offline
Beigetreten: 12/18/2017

Yes. Min=2000, max=6000

Magic Banana

I am a member!

I am a translator!

Offline
Beigetreten: 07/24/2010

You must do something wrong. Copy-paste the commands you executed in a terminal and their outputs.

GrevenGull
Offline
Beigetreten: 12/18/2017

Yes I was doing something wrong as jxself stated above here. I'll try again, pardon my hastiness.

calher

I am a member!

Offline
Beigetreten: 06/19/2015

There used to be libre Darwin distros. Those should run better on Apple
hardware.

GrevenGull
Offline
Beigetreten: 12/18/2017

I installed the newest kernel as suggested, and now my temperatures seems to be right back to around 78 celsius again :/

So I guess maybe I will have to live with a hot laptop.

But anyway I'd like to thank all of you awesome guys for answering and helping and in general just being awesome people. Thank you.

Time4Tea
Offline
Beigetreten: 07/16/2017

Any changes to those files are not going to persist when you reboot the machine. The /sys directory is populated/refreshed by the kernel during boot, to provide info about the underlying hardware to userspace processes.

I was going to suggest adding some commands to one of the init scripts, so that the fans are set to max automatically when the machine boots up. But, Magic Banana's suggestion above to create some scripts that you can easily run should work as well.

As I said before, a better solution than just maxing the fans would be to either fix the applesmc module or make a daemon process, but those are a lot more involved.

GrevenGull
Offline
Beigetreten: 12/18/2017

> I was going to suggest adding some commands to one of the init scripts, so that the fans are set to max automatically when the machine boots up. But, Magic Banana's suggestion above to create some scripts that you can easily run should work as well.

How do one do that?

> As I said before, a better solution than just maxing the fans would be to either fix the applesmc module or make a daemon process, but those are a lot more involved.

Are there any guides for this?

Magic Banana

I am a member!

I am a translator!

Offline
Beigetreten: 07/24/2010

On Trisquel 7, to call the script /usr/local/bin/max-fan at the init:

  1. Edit (here with GEdit but you can use any text editor) /etc/rc.local:
    $ gksu gedit /etc/rc.local
  2. Write that line before the 'exit' statement:
    /usr/local/bin/max-fan
  3. Save the file.

As for the "guide", I do not think you understood that Time4Tea's "a-lot-more-involved" suggestion is to write some C.

GrevenGull
Offline
Beigetreten: 12/18/2017

> /usr/local/bin/max-fan

Only that? not gksu or anything? And at the same line as the 'exit' statement or the line above?

> some C

?

Magic Banana

I am a member!

I am a translator!

Offline
Beigetreten: 07/24/2010

Just that: root executes /etc/rc.local. In fact, I believe that only writing "max-fan" is enough because /usr/local/bin is in root's PATH. Of course, I assume /usr/local/bin/max-fan exists!

Write a line before the 'exit' statement and after "#!/bin/sh -e".

GrevenGull
Offline
Beigetreten: 12/18/2017

That's awesome! Your guidance is appreciated.