Re: Heating issues with FreeBSD on laptop

From: Ian Smith <smithi_at_nimnet.asn.au>
Date: Tue, 27 Sep 2022 12:17:12 UTC
On 27 September 2022 5:29:53 pm AEST, Saniya Maheshwari <saniya.mah@gmail.com> wrote:
 > 
 > On Tue, Sep 27 2022 at 03:08:30 PM +1000 +1000, Ian Smith 
 > <smithi@nimnet.asn.au> wrote:
 > 
 > > What make and model laptop?
 > 
 > Dell Inspiron 15 7510.
 > 
 > > What version of FreeBSD?
 > 
 > 13.1-RELEASE.

Helps to know, though not me :)

 > > Please show results of
 > > 
 > > $ sysctl hw.acpi
 > > 
 > > If none, acpi.ko isn't loaded.
 > > 
 > > Otherwise select Verbose Booting from the startup menu, and scan 
 > > results in /var/run/dmesg.boot to look for errors while booting.
 > > 
 > > You may need to put that file up on some site, and post a link to
 > > it here.
 > 
 > I get results for
 > 
 > $ sysctl hw.acpi
 > 
 > hw.acpi.battery.info_expire: 5
 > hw.acpi.battery.units: 1
 > hw.acpi.battery.state: 1
 > ...
 > hw.acpi.sleep_button_state: S3
 > hw.acpi.power_button_state: S5
 > hw.acpi.supported_sleep_state: S3 S4 S5

Is that really all?  What about '...' ?

 > I tried a verbose boot as you said and went through 
 > /var/run/dmesg.boot. I didn't see anything that seemed particularly
 > of 
 > interest, for instance
 > 
 > $ grep 'error' /var/run/dmesg.boot
 > 
 > gave only some WiFi related errors. I'll upload the full file soon;
 > I'm 
 > new to BSD so it's taking me some time to set up the system and get 
 > that file to a site.

Before you do, it might be worth adding these to /etc/sysctl.conf:

hw.acpi.verbose=1
hw.acpi.cpu.cx_lowest=Cmax

The former may provide deeper boot logging of problems (not necessarily called 'error') and the latter, if applicable to your CPU, might actually run cooler at idle.  Then

$ sysctl dev.cpu.0 | grep -v '\.%'

might provide clues.

 > > How about:
 > > 
 > > $ sysctl -a | grep fan
 > 
 > That gives no results either.

Ah ok, on mine that's from loaded module acpi_ibm.  On my 12.3 system I see no acpi_dell.ko in /boot/kernel, so maybe no extra support?

cheers, Ian