Solved 10.2-RELEASE upgrade causes the fan to spin all the time

Hi there,

I recently upgrade my system from 10.1-RELEASE to 10.2-RELEASE, and after the upgrade my fan spins almost all the time, especially when I fire up Firefox or Chromium, eventually causing my battery to drain much faster. I did not have this issue beforehand, I mean while using 10.1-RELEASE. I installed different desktop environments (WindowMaker) to replicate the problem and verified that the issue happens whenever I run Chromium or Firefox.

I tried installing Opera and, surprisingly, it does not cause such an issue,. Although, being a nice browser, it has its own problems, such as not opening forums.FreeBSD.org (complaining about some security policies etc...) or being a bit sluggish in opening the web pages compared to Chromium

I am using Mate desktop and all software, including the third party ones installed with pkg(8), are up to date. My laptop is an Toshiba Portege R830, I got acpi_toshiba(4) installed and powerd(8) running.

Any recommendations or suggestions are more than welcome.

Thanks
 
Last edited by a moderator:
Some additional information..... In the console, I am getting these messages constantly

Code:
error: [drm:pid946:gen6_sanitize_pm] *ERROR* Power management discrepancy: GEN6_RP_INTERRUPT_LIMITS expected 1a0d0000, was 1a00000

and PID 946 is

Code:
~ % ps -p 946                                                                                                                                                         
PID TT  STAT    TIME COMMAND                                                                                                                                           
946  -  S    0:38.06 /usr/local/bin/X -nolisten tcp vt09 -auth /var/run/slim.auth (Xorg)

I think it has something to do with the updated drm code in 10.2-RELEASE as mentioned here
 
cpm, thank you! I will check the bug report mentioned in the email list and the progress, and file a new bug report or update the existing one if need be. But as far as I can see from the email trial, it seems the messages were thought to be minor, and eventually, the code has been merged with the -STABLE branch (in 10.2-RELEASE).

kpa, I will check those sysctl tunables and consider your suggestions, thanks!

Right now, my laptop battery lasts around 1.5 hours and fan is running almost 60-70% of the time, whereas it was around ~4 hours before the 10.2-RELEASE upgrade, this is a drastic change and I do not think I will be able to tweak it with minor changes!
 
The tip to add drm.i915.enable_rc6=7 to /boot/loader.conf on the page cpm kpa linked to fixed a similar problem I had after upgrading to a newer revision of 10-STABLE on my laptop.
 
Right now, my laptop battery lasts around 1.5 hours and fan is running almost 60-70% of the time, whereas it was around ~4 hours before the 10.2-RELEASE upgrade, this is a drastic change and I do not think I will be able to tweak it with minor changes!
My laptop is an Toshiba Z830-10F with 10.2-RELEASE. Currently my battery takes ~2 hours without recharging.
Code:
% acpiconf -i 0
Design capacity:    46472 mWh
Last full capacity:    28092 mWh
Technology:        secondary (rechargeable)
Design voltage:        14800 mV
Capacity (warn):    574 mWh
Capacity (low):        0 mWh
Low/warn granularity:    15 mWh
Warn/full granularity:    15 mWh
Model number:        G71C000CH310
Serial number:        0000000683
Type:            Li-ION
OEM info:  
State:            discharging
Remaining capacity:    100%
Remaining time:        2:32
Present rate:        11067 mW
Present voltage:    15120 mV

% sysctl -a | grep tempe
hw.acpi.thermal.tz0.temperature: 71.0C
dev.cpu.3.temperature: 60.0C
dev.cpu.2.temperature: 60.0C
dev.cpu.1.temperature: 61.0C
dev.cpu.0.temperature: 61.0C

% ./hdd-temp.sh
42 C    ahcich0:ada0    300.000MB/s    TOSHIBA THNSNF128GMCS FSTAN103 (119.24G)
 
Lenovo X220 with 10.2-STABLE (r286808):
Code:
jrm@phe ~ % acpiconf -i0
Design capacity:        62160 mWh
Last full capacity:     44760 mWh
Technology:             secondary (rechargeable)
Design voltage:         11100 mV
Capacity (warn):        2238 mWh
Capacity (low):         200 mWh
Low/warn granularity:   1 mWh
Warn/full granularity:  1 mWh
Model number:           42T4861
Serial number:          27186
Type:                   LION
OEM info:               SANYO
State:                  discharging
Remaining capacity:     96%
Remaining time:         4:24
Present rate:           9849 mW
Present voltage:        12531 mV
Code:
jrm@phe ~ % sysctl -a | grep tempe
hw.acpi.thermal.tz0.temperature: 47.0C
 
Lenovo X220 with 10.2-STABLE (r286808):
Code:
jrm@phe ~ % acpiconf -i0
Design capacity:        62160 mWh
Last full capacity:     44760 mWh
Technology:             secondary (rechargeable)
Design voltage:         11100 mV
Capacity (warn):        2238 mWh
Capacity (low):         200 mWh
Low/warn granularity:   1 mWh
Warn/full granularity:  1 mWh
Model number:           42T4861
Serial number:          27186
Type:                   LION
OEM info:               SANYO
State:                  discharging
Remaining capacity:     96%
Remaining time:         4:24
Present rate:           9849 mW
Present voltage:        12531 mV

Is pretty new your laptop? Looks great the "Last full capacity" line.
 
I bought it new in June 2012. It's the original battery, but I only run off the battery about once a week or so.
 
Lenovo X220 with 10.2-STABLE (r286808):
Code:
jrm@phe ~ % acpiconf -i0
Design capacity:        62160 mWh
Last full capacity:     44760 mWh
Technology:             secondary (rechargeable)
Design voltage:         11100 mV
Capacity (warn):        2238 mWh
Capacity (low):         200 mWh
Low/warn granularity:   1 mWh
Warn/full granularity:  1 mWh
Model number:           42T4861
Serial number:          27186
Type:                   LION
OEM info:               SANYO
State:                  discharging
Remaining capacity:     96%
Remaining time:         4:24
Present rate:           9849 mW
Present voltage:        12531 mV
Code:
jrm@phe ~ % sysctl -a | grep tempe
hw.acpi.thermal.tz0.temperature: 47.0C
I'm jealous. :p My Little ASUS toaster netbook lasts about an hour and a half to two hours on a full charge after tinkering with everything power related.
 
In my case, to remove the battery I have to open the entire laptop. So I've the power cord plugged, almost always. It's a mess o_O
 
Hi there,
An update...I have added drm.i915.enable_rc6=7 into /boot/loader.conf...
Some programs running, including but not limited to Firefox, XChat, Mate-Terminal, pluma, caja... To give you an idea about what is running on the system, below is the output of ps ax
Code:
 PID TT  STAT  TIME COMMAND
  0  -  DLs  0:00.06 [kernel]
  1  -  ILs  0:00.00 /sbin/init --
  2  -  DL  0:00.00 [cam]
  3  -  DL  0:00.00 [sctp_iterator]
  4  -  DL  0:00.00 [enc_daemon0]
  5  -  DL  0:00.11 [pagedaemon]
  6  -  DL  0:00.00 [vmdaemon]
  7  -  DL  0:00.00 [pagezero]
  8  -  DL  0:00.11 [bufdaemon]
  9  -  DL  0:00.00 [vnlru]
  10  -  DL  0:00.00 [audit]
  11  -  RL  52:23.42 [idle]
  12  -  WL  0:03.80 [intr]
  13  -  DL  0:00.03 [geom]
  14  -  DL  0:00.15 [rand_harvestq]
  15  -  DL  0:00.15 [usb]
  16  -  DL  0:00.02 [acpi_thermal]
  17  -  DL  0:00.08 [syncer]
142  -  Is  0:00.00 adjkerntz -i
332  -  Ss  0:00.01 /usr/sbin/wpa_supplicant -s -B -i wlan0 -c /etc/wpa_supp
344  -  Is  0:00.00 dhclient: wlan0 [priv] (dhclient)
389  -  Is  0:00.00 dhclient: wlan0 (dhclient)
629  -  Ss  0:00.02 /sbin/devd
780  -  Is  0:00.01 /usr/sbin/syslogd -s
841  -  Ss  0:01.64 /usr/sbin/moused -p /dev/psm0 -t auto
859  -  Ss  0:00.09 /usr/local/bin/dbus-daemon --system
916  -  Ss  0:00.18 /usr/sbin/powerd
931  -  Is  0:00.25 /usr/local/bin/slim -d
935  -  S  0:07.48 /usr/local/bin/X -nolisten tcp vt09 -auth /var/run/slim.
952  -  Is  0:00.00 /usr/sbin/cron -s
1019  -  Is  0:00.35 /usr/local/sbin/hald
1021  -  I  0:00.06 /usr/local/sbin/console-kit-daemon --no-daemon
1023  -  I  0:00.11 /usr/local/lib/polkit-1/polkitd --no-debug
1024  -  I  0:00.04 hald-runner
1030  -  I  0:00.03 hald-addon-mouse-sysmouse: /dev/psm0 (hald-addon-mouse-s
1079  -  Is  0:00.22 mate-session
1083  -  I  0:00.00 dbus-launch --exit-with-session mate-session
1084  -  Is  0:00.11 /usr/local/bin/dbus-daemon --fork --print-pid 6 --print-
1086  -  I  0:00.04 /usr/local/libexec/dconf-service
1088  -  I  0:00.02 gnome-keyring-daemon --start
1090  -  I  0:00.19 /usr/local/libexec/upowerd
1091  -  S  0:02.22 /usr/local/libexec/mate-settings-daemon
1092  -  I  0:01.45 marco
1093  -  S  0:01.76 mate-panel
1095  -  I  0:00.02 /usr/local/libexec/gvfsd
1098  -  S  0:01.91 caja
1101  -  I  0:00.06 /usr/local/libexec/polkit-mate-authentication-agent-1
1103  -  S  0:00.11 /usr/local/libexec/gvfs-hal-volume-monitor
1105  -  I  0:00.73 /usr/local/lib/mate-panel/wnck-applet
1106  -  S  0:00.15 mate-screensaver
1108  -  I  0:00.02 /usr/local/libexec/gvfs-gphoto2-volume-monitor
1110  -  I  0:00.64 mate-power-manager
1114  -  S  0:00.42 /usr/local/lib/mate-panel/clock-applet
1115  -  I  0:00.08 /usr/local/lib/mate-panel/notification-area-applet
1119  -  I  0:00.84 mate-volume-control-applet
1122  -  S  0:00.12 /usr/local/libexec/gvfsd-trash --spawner :1.8 /org/gtk/g
1125  -  I  0:01.43 mate-terminal
1177  -  S  1:08.35 firefox
1180  -  I  0:00.02 /usr/local/libexec/at-spi-bus-launcher
1184  -  I  0:01.07 xchat
1196  -  I  0:00.00 /usr/local/libexec/gvfsd-metadata
1198  -  I  0:00.72 pluma /home/fnoyanisi/script/netmgr/netmgr /home/fnoyani
1007 v0  Is+  0:00.00 /usr/libexec/getty Pc ttyv0
1008 v1  Is+  0:00.00 /usr/libexec/getty Pc ttyv1
1009 v2  Is+  0:00.00 /usr/libexec/getty Pc ttyv2
1010 v3  Is+  0:00.00 /usr/libexec/getty Pc ttyv3
1011 v4  Is+  0:00.00 /usr/libexec/getty Pc ttyv4
1012 v5  Is+  0:00.00 /usr/libexec/getty Pc ttyv5
1013 v6  Is+  0:00.00 /usr/libexec/getty Pc ttyv6
1014 v7  Is+  0:00.00 /usr/libexec/getty Pc ttyv7
1126  0  Ss  0:00.17 zsh
1217  0  R+  0:00.00 ps ax
And acpiconf -i 0 gives the output below
Code:
Design capacity:   65934 mWh
Last full capacity:   51220 mWh
Technology:     secondary (rechargeable)
Design voltage:     11100 mV
Capacity (warn):   1025 mWh
Capacity (low):     0 mWh
Low/warn granularity:   11 mWh
Warn/full granularity:   11 mWh
Model number:     G71C000C2210
Serial number:     0000000319
Type:       Li-ION
OEM info:
State:       discharging
Remaining capacity:   92%
Remaining time:     5:01
Present rate:     9465 mW
Present voltage:   11390 mV
I have never seen 5 hours on my laptop before..... If the battery lasts even 4:30 hours, it would be amazing!

I will post an update.
 
Another update....Seems like setting drm.i915.enable_rc6=7 really saved my day!
Truth to be told, battery lasts much longer than it was before... It is almost 5 hours now... (I do have Wifi powersave active though).
Code:
~ % uptime  
11:37PM  up  4:30, 0 users, load averages: 0.15, 0.28, 0.29
~ % acpiconf -i 0
Design capacity:   65934 mWh
Last full capacity:   51220 mWh
Technology:     secondary (rechargeable)
Design voltage:     11100 mV
Capacity (warn):   1025 mWh
Capacity (low):     0 mWh
Low/warn granularity:   11 mWh
Warn/full granularity:   11 mWh
Model number:     G71C000C2210
Serial number:     0000000319
Type:       Li-ION 
OEM info:    
State:       discharging
Remaining capacity:   12%
Remaining time:     0:38
Present rate:     9738 mW
Present voltage:   11390 mV
 
Problem solved, thanks everybody...

For googlers and any people who might have a similar issue, I made a bit of digging to understand what that drm.i915.enable_rc6 switch is....

/dev/drm2/i915/i915_drv.h line 1049 explains what rc6 is
Code:
/**
* RC6 is a special power stage which allows the GPU to enter an very
* low-voltage mode when idle, using down to 0V while at this stage.  This
* stage is entered automatically when the GPU is idle when RC6 support is
* enabled, and as soon as new workload arises GPU wakes up automatically as well.
*
* There are different RC6 modes available in Intel GPU, which differentiate
* among each other with the latency required to enter and leave RC6 and
* voltage consumed by the GPU in different states.
*
* The combination of the following flags define which states GPU is allowed
* to enter, while RC6 is the normal RC6 state, RC6p is the deep RC6, and
* RC6pp is deepest RC6. Their support by hardware varies according to the
* GPU, BIOS, chipset and platform. RC6 is usually the safest one and the one
* which brings the most power savings; deeper states save more power, but
* require higher latency to switch to and wake up.
*/
And by default, it is disabled. This is visible from lines 521 and 522 in /dev/drm2/i915/i915_drv.c
Code:
int i915_enable_rc6 = 0;
TUNABLE_INT("drm.i915.enable_rc6", &i915_enable_rc6);
It is also worth mentioning that I have noticed no performance degradations after making the change. However, I do not use GPU hungry applications ,such as any 3D programs, image editing or games.
 
tried installing Opera and, surprisingly, it does not cause such an issue,. Although, being a nice browser, it has its own problems, such as not opening forums.FreeBSD.org

Hello,

Sorry to be a bit off subject but I have noted that too. Sad because I use Opera on a "pure" Xorg system (Firefox needs GTK + a lot more dependencies).

What are the securities with forums.FreeBSD.org because I do not have same problem with other sites.

Thanks.
 
Last edited by a moderator:
Hi guys,

I'm experiencing the same error:
Code:
error: [drm:pid914:gen6_sanitize_pm] *ERROR* Power management discrepancy: GEN6_RP_INTERRUPT_LIMITS expected 1a0d0000, was 1a00000

I'm running FreeBSD 10.2-RELEASE with GENERIC kernel and I've already applied
Code:
drm.i915.enable_rc6=7
to /boot/loader.conf, but the error still keeps popping up regularly.
I have a Samsung U530C notebook from 2012 with a Intel Core i3 3217U, Intel HD Graphics 4000 and 4 GB RAM. I'm using Xfce4 with most of the corresponding panels and plugins including those for powermgmt.

Any clues what I can do to fix this and thus get rid of the error msg?
 
Last edited:
Changing the sysctl drm.i915.enable_rc6 tunable does not suppress error messages unfortunately. However, the performance degradation is fixed, at least worked for me.
 
Changing the sysctl drm.i915.enable_rc6 tunable does not suppress error messages unfortunately. However, the performance degradation is fixed, at least worked for me.
Thanks for the hint. So is this just a bug and I can safely ignore the error message or is it known what causes the issue and how to fix it? I'm a real n00b to FreeBSD so sorry for my, well, n00bish questions... ;-)
 
From cpm's previous post;
Code:
error: [drm:pid946:gen6_sanitize_pm] *ERROR* Power management discrepancy: GEN6_RP_INTERRUPT_LIMITS expected 1a0d0000, was 1a00000
This issue was discussed on the freebsd-current mailing list:

http://lists.freebsd.org/pipermail/freebsd-current/2015-February/054368.html
If you look at the discussion in the mailing list, it states that these messages are safe to ignore(?).

I haven't had any issues after changing the sysctl tunable. Suprisingly, my battery lasts around 4 hrs now, as opposed to 5 hrs when first I made the sysctl drm.i915.enable_rc6=7 change. Still good for a second hand laptop :)
 
Many thanks for the information! Now I know how to deal with this. As I said I'm running a slightly outdated notebook as well, so at least the battery isn't the best anymore, too. I'll observe how it's performing now with the change of drm.i915.
 
Back
Top