Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Nov 2003 12:58:36 -0500
From:      Eric Pogroski <pogrose@twcny.rr.com>
To:        jesse@wingnet.net
Cc:        freebsd-mobile@freebsd.org
Subject:   Re: fan speed, temp, etc... on a thinkpad?
Message-ID:  <20031103125836.0b142217.pogrose@twcny.rr.com>
In-Reply-To: <bo5t0j$kbs$1@sea.gmane.org>
References:  <bn8p1n$3n0$1@sea.gmane.org> <20031023115017.1bd9683e.pogrose@twcny.rr.com> <bo5t0j$kbs$1@sea.gmane.org>

index | next in thread | previous in thread | raw e-mail

On Mon, 03 Nov 2003 10:42:05 -0500
Jesse Guardiani <jesse@wingnet.net> wrote:

> Eric Pogroski wrote:
> 
> > On Thu, 23 Oct 2003 10:36:39 -0400
> > Jesse Guardiani <jesse@wingnet.net> wrote:
> 
> [...]
> 
> > Hi. Try xmbmon from ports/x11, seems to work (somewhat) on thinkpads
> > (I use it on 2, a 390x and a 600x). It give's at least a good
> > approximation of the temperature, does voltage correctly, but I
> > can't get it to read the fans.
> 
> Hmmm, here is what I get from `mbmon -dA`, executed as root:
> 
> -----------------------------------------
> SMBus[Intel8XX(ICH/ICH2/ICH3/ICH4/ICH5)] found, but No HWM available
> on it!! Summary of Detection:
>  * No monitors found.
> InitMBInfo: Unknown error: 0
> This program needs "setuid root"!!
> Exit 1
> -----------------------------------------
> 
> And here is what the README for mbmon says:
> 
> -----------------------------------------
> If the following message,
> 
>    InitMBInfo: Operation not permitted
>    This program needs "setuid root"!!
> 
> comes on FreeBSD, the system security level is too strict and IO port
> access is not allowed (see kern_securelevel_enable, kern_securelevel
> in /etc/rc.conf).  Make your security level lower, or just give up
> to use the programs.
> ------------------------------------------
> 
> I'm pretty sure I don't have a secure level enabled.
> I'm running FreeBSD 5.1-RELEASE. Anyone have any ideas
> how to get this working?
> 
> -- 
> Jesse Guardiani, Systems Administrator
> WingNET Internet Services,
> P.O. Box 2605 // Cleveland, TN 37320-2605
> 423-559-LINK (v)  423-559-5145 (f)
> http://www.wingnet.net

try this:
su root
<password>
chmod +s /usr/local/bin/mbmon
chmod +s /usr/local/bin/xmbmon
exit

if setuid isn't set to root, I don't believe that x/mbmon will not be
able to read the SMBus correctly, if at all.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031103125836.0b142217.pogrose>