LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   Macbook loud fans after installing Slackware (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/macbook-loud-fans-after-installing-slackware-4175468103/)

lensilvan 07-02-2013 01:15 AM

Macbook loud fans after installing Slackware
 
Hi,
I finally decided to install Slackware on my Macbook 5.2 ( http://www.everymac.com/systems/appl...dia-specs.html ), in dual boot with Mac OS X, using rEFIT and LILO.

However, I find out that when I am running Slackware, the macbook's fans are more and more loud, as I run slapt-get for example. Although I switched to the generic kernel and do not use X, this issue persists. It's like if the memory or the CPU is overused, although the system is not particulary slow.
In Mac OS X, I did not have this problem.

What should I do? It should be better that I solve this issue before running X.

ronlau9 07-02-2013 02:05 PM

To my knowledge the fan speed is controlled by OS X depending on the CPU loud .
Can Slackware do the same ?
If not it might be that the fans are running nearly full speed

TobiSGD 07-02-2013 03:43 PM

Check if the power-saving methods for your CPU are working correctly. Please provide the output of
Code:

cpufreq-info

lensilvan 07-02-2013 11:36 PM

Here is the output (half in French, sorry):
Code:

cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Veuillez rapportez les erreurs et les bogues à cpufreq@vger.kernel.org, s'il vous plait.
analyse du CPU 0 :
  driver : acpi-cpufreq
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 10.0 us.
  limitation matérielle : 1.60 GHz - 2.13 GHz
  plage de fréquence : 2.13 GHz, 1.86 GHz, 1.60 GHz
  régulateurs disponibles : ondemand, userspace
  current policy: frequency should be within 1.60 GHz and 2.13 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency CPU is 1.86 GHz.

Some additional details: I'm using the x86_64 version.
While running Slackware, the macbook heat is increasing and then the fans start running. I never experienced this on my Mac OS X installed in the other partition.

TobiSGD 07-03-2013 10:00 AM

OK, so power-management for the CPU is working correctly, as it seems. Next thing to check would be the video device. The free nouveau driver has issues with setting the correct clockspeed and lacks power management features, so I would recommend to install the latest Nvidia driver next and see if temperatures decrease.

lensilvan 07-03-2013 10:20 PM

I know it's annoying but I can't install xf86-video-nouveau-blacklist, necessary for running the nvidia driver. According to slapt-get, xf86-video-nouveau-blacklist is nowhere to be found. Here are the mirrors I use:
Code:

# This can point to any release, ie: 9.0, 10.0, current, etc.
SOURCE=ftp://ftp.slackware.com/pub/slackware/slackware64-14.0/:OFFICIAL
SOURCE=http://slack.isper.sk/pub/slackware64-14.0/
SOURCE=http://repository.slacky.eu/slackware64-14.0/
SOURCE=http://slackware.org.uk/msb/
SOURCE=http://slackware.org.uk/salix/x86_64/14.0/
SOURCE=http://salix.hostingxtreme.com/x86_64/14.0/

The xf86-video-nouveau-blacklist is required according to: http://docs.slackware.com/howtos:har..._configuration

TobiSGD 07-04-2013 05:18 AM

Just do this
Code:

echo "blacklist nouveau" > /etc/modprobe.d/nouveau.blacklist
as root, it has the same effect as installing xf86-video-nouveau-blacklist.

lensilvan 07-04-2013 07:51 AM

I followed the instructions on the wiki, then run as root echo "blacklist nouveau" > /etc/modprobe.d/nouveau.blacklist as indicated.
At rebooting very disappointingly, the error no nvidia graphics adapter probed and coud not insert nvidia: No such device, appeared. I've installed all the drivers and blacklisted the driver nouveau, so where is the logic in this situation???

lensilvan 07-04-2013 11:18 PM

I don't understand at all. I just checked if /etc/modprobe.d/nouveau.blacklist was created and it is the case.

Code:

blacklist nouveau
I then deleted it and rebooted but this absurdity still occurs. Then I removed the nvidia drivers and X was loaded as before. After I blacklisted again nouveau, X was loaded correctly but my mouse stopped working and I had to remove again nouveau.blacklist.

Knightron 07-05-2013 09:28 AM

Have you made a xorg.conf/xorg.conf.d file?

lensilvan 07-05-2013 04:12 PM

I tried to generate it once but it failed.
It seems that blacklisting nouveau don't have any effects at all on the nouveau driver which keeps running as if nothing happened. I removed nvidia and blacklisted nouveau and I booted normally.

Knightron 07-05-2013 07:42 PM

You need an xorg.conf file or an xorg.conf.d file if you want to use the nvidia drivers. This is why it's not working. You're attempting to blacklist nouveau with nothing to replace it.
You said you'd installed the nvidia drivers. (assuming you have done it correctly) As root, do the following.
Code:

mkdir /etc/X11/xorg.conf.d
echo -e 'Section "Device"\n\tIdentifier "My GPU"\n\tDriver "nvidia"\nEndSection' > /etc/X11/xorg.conf.d/20-nvidia.conf

This will create a file called /etc/X11/xorg.conf.d/20-nvidia.conf, containing the following.

Code:

Section "Device"
        Identifier "My GPU"
        Driver "nvidia"
EndSection

The part that says 'Driver "nvidia"', is telling xorg to use the nvidia driver instead of nouveau. Restart your computer to see if you have success.

lensilvan 07-06-2013 08:44 AM

I applied all this.
Issues keep going and going. After reboot, I get the same and the same error "No nvidia graphics adapter probed." "Error: could not insert 'nvidia': No such device'".
Fatal server error: no screen found.

Knightron 07-06-2013 08:38 PM

You sure you've compiled and installed it?

lensilvan 07-06-2013 10:51 PM

Yes, sure!!!
I guess it's an issue caused by xorg.conf (Once, I tried to generate one using X -configure but it failed since it detected 2 screens.). Maybe I should try to 'correct' xorg.conf but I can't find it.

Well, I don't know the origin of that issue and what to do.

lensilvan 07-07-2013 01:29 AM

Quote:

Originally Posted by lensilvan (Post 4985490)
Yes, sure!!!
I guess it's an issue caused by xorg.conf (Once, I tried to generate one using X -configure but it failed since it detected 2 screens.). Maybe I should try to 'correct' xorg.conf but I can't find it.

Ok, here is the /var/log/Xorg.0.log nvidia section:
Code:

Loadmodule: NVIDIA
Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
Module nvidia: vendor="Nvidia corporation"
compiled for 4.0.2, module version = 1.0.0
Module class: X.Org Video Driver
NVIDIA: Failed to load the NVIDIA kernel module. Please check your system's kernel log for additional error messages.
UnloadModule: "nvidia"
Unloading "nvidia"
Failed to load module "nvidia" (module-specific error, 0)
No driver avaiable.
Fatal server error: no screen found

It seems that I'm in a nightmare. I reinstalled nvidia-kernel and nvidia-driver just to be sure, checked 20-nvidia.conf. But I can't even find where is that kernel log where there will be further explanations. Working in this console mode is nightmarish since at random times, the screen erase what I tried to type or read by displaying suddenly the contents of the xorg log scrolling. But I won't give up!!

lensilvan 07-07-2013 02:15 AM

However, I booted and NVIDIA was well loaded. However when I rebooted in order to be sure that everything is in order, the error reappeared.
I then try to load nvidia-kernel and nvidia-driver using modprobe but it reply coldly, "FATAL: Module not found."

Knightron 07-07-2013 02:46 AM

When i've created an xorg.conf file in the past, it says error, no screen detected; but when used, it still worked. Did it fail or just have errors?

lensilvan 07-07-2013 03:18 AM

It failed and had errors, of course.

lensilvan 07-08-2013 05:15 AM

Reinstalled Slackware using installslackpkg. Then, tried but failed again with the same error.

lensilvan 07-10-2013 01:19 AM

Guess what? Still unsolved.
Again I tried and tried . This time after blacklisting nouveau, creating 20-nvidia-conf, I run nvidia-switch --install and then nvidia-xconfig, creating the following Xorg.conf file:

Code:

# nvidia-config: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 319.17

Section "ServerLayout"
        Identifier        "Default layout"
        Screen                "Default screen" 0 0
        ImputDevice        "Keyboard0"        "CoreKeyboard"
        ImputDevice        "Mouse0"        "CorePointer"
EndSection

Section "InputDevice"

        # generated from default
        Identifier        "Keyboard0"
        Driver                "keyboard"
EndSection

Section "InputDevice"

        # generated from default
        Identifier        "Mouse0"
        Driver                "mouse"
        Option                "Protocol" "auto"
        Option                "Device" "/dev/psaux"
        Option                "Emulate3Buttons" "no"
        Option                "ZAxisMappinmg" "4 5"
EndSection

Section "InputDevice"
        Identifier        "Synaptics Touchpad"
        Driver                "synaptics"
        Option                "SendCoreEvents"        "true"
        Option                "Device"                "/dev/psaux"
        Option                "Protocol"                "auto-dev"
        Option                "HorizEdgeScroll"        "0"
EndSection


Section "Monitor"
        Identifier        "Monitor0"
        Vendorname        "unknown"
        ModelName        "unknown"
        HorizSync        "28.0 - 33.0"
        VertRefresh        "43.0 - 72.0"
        Option          "DPMS"
EndSection

Section "Device"
        Identifier "My GPU"
        Driver "nvidia"
        Vendorname        "GeForce 9400M G"
EndSection

Section "Screen"
        Identifier        "Default Screen"
        Monitor                "Configured Monitor"
        Device                "Configured Video Device"
EndSection

Section "ServerLayout"
        Identifier        "Default Screen" 0 0
        Device                "My GPU"
        Monitor        "Monitor0"
        Subsection        "Display"
            Modes        "nvidia-auto-select"
        EndSubSection               
EndSection

Despite all my efforts, I did not progress at all. It is always exactly the same and the same errors:
Code:

Loadmodule: NVIDIA
Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
Module nvidia: vendor="Nvidia corporation"
compiled for 4.0.2, module version = 1.0.0
Module class: X.Org Video Driver
NVIDIA: Failed to load the NVIDIA kernel module. Please check your system's kernel log for additional error messages.
UnloadModule: "nvidia"
Unloading "nvidia"
Failed to load module "nvidia" (module-specific error, 0)
No driver avaiable.
Fatal server error: no screen found

I then try to use X -configure but it refused:
Quote:

The number of created screens does not match number of detected devices
Maybe the kernel log contains more informations but again, I really don't know where is it.

When Linux is loading, if found the following message:
Code:

nvidia 0000:00:03.5 failed with error -1
NVRM: The NVIDIA prob routine was not called for 1 device(s).
NVRM: This can occur when a driver such as nouveau, rivafb, nvidiafb was loaded and obtained owership of the NVIDIA device.
NVRM:Try unloading the conflicting kernel module and/or reconfigure your kernel without the conflicting driver(s). Then try loading the NVIDIA kernel module again.
NVRM: no NVIDIA graphics adapter probed.


lensilvan 07-14-2013 08:06 AM

Ok. I've installed nvidia and it is working but it didn't change anything, still after some minutes of using, the temperature of the macbook increases and the fans starts. Therefore, this issue is independent from the graphic driver used, nouveau or nvidia.

I dual-boot Slackware64 3.2.29 with Mac OS X on a white Macbook 5.2 from 2009 (http://www.everymac.com/systems/appl...dia-specs.html), using the generic kernel.
Even when I am not running X and doing anything, only after some minutes my macbook overheats and the fans start. This issue occurs only with Linux, I never have this on my Mac OS X session.
Code:

$ sensors
applesmc-isa-0300
Adapter: ISA adapter
Exhaust  :  4749 RPM  (min = 2000 RPM, max = 6200 RPM)
TB0T:        +129.0°C 
TC0D:        +61.0°C 
TC0P:        +54.2°C 
TCFP:        +54.0°C 
TN0D:        +58.8°C 
TN0P:        +53.2°C 
TNFP:        +53.0°C 
TTF0:        +54.0°C 
Th0H:          +0.0°C 
Th1H:          +0.0°C


lensilvan 07-15-2013 08:04 PM

Anybody knows?

TobiSGD 07-15-2013 08:26 PM

Sorry, out of ideas in this case.


All times are GMT -5. The time now is 02:15 AM.