6 More Discussions You Might Find Interesting
1. Windows & DOS: Issues & Discussions
Hello everyone.
I bought a dell laptop (XPS M1330) online which came without a hard drive. There is a Windows Vista Ultimate OEMAct sticker with product key at the bottom case. I checked dell website (here) for this model and it says this model supports both 32 and 64-bit version of Windows... (4 Replies)
Discussion started by: milhan
4 Replies
2. What is on Your Mind?
;oD
I received this snippet on facebook the other day...
Enjoy:- (0 Replies)
Discussion started by: wisecracker
0 Replies
3. What is on Your Mind?
Over the years I have written light hearted poems about computers and computing...
Hopefully this will put a smile on your face...
If you like it I might post another one...
My XMAS prezzy.
---------------
'Twas 1982, after the Falklands campaign,
Christmas was about to come round once... (5 Replies)
Discussion started by: wisecracker
5 Replies
4. Shell Programming and Scripting
Hi,
Here is the issue. From the program snippet I have Base: 0x1800000000, Size: 0x3FFE7FFFFFFFF which are of 40 and 56 bits. SO I used use bignum to do the math but summing them up I always failed having correct result.
perl interpreter info,
perl, v5.8.8 built for... (0 Replies)
Discussion started by: rrd1986
0 Replies
5. Programming
Hello,
If i have 2 strings str1 and str2, i would like to copy/concatenate str2 to str1, from 1st bit leaving the 0th bit.
How do i do it? (2 Replies)
Discussion started by: jazz
2 Replies
6. What is on Your Mind?
It is so nice to find a site where you can actually get answers to Unix questions - I've found most of my answers just my searching - but was amazed at the fast response to the nightmare file questions. Thank you again! (1 Reply)
Discussion started by: Barb
1 Replies
ASMC(4) BSD Kernel Interfaces Manual ASMC(4)
NAME
asmc -- device driver for the Apple System Management Console (SMC)
SYNOPSIS
To compile this driver into the kernel, place the following line in your kernel configuration file:
device asmc
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):
asmc_load="YES"
DESCRIPTION
The asmc driver controls the Apple System Management Console (SMC for short) found on Intel Apple systems.
The SMC is known to be found on the following systems:
o MacBook
o MacBook Pro
o Intel MacMini
o Mac Pro
o MacBook Air
o Intel iMac
With this driver, you can configure your keyboard backlight brightness, check temperatures of several sensors, check the speed of the inter-
nal fans and check the status of the Sudden Motion Sensor.
Variables related to the SMC control and inspection are exported via sysctl(3) under the device tree dev.asmc.
KEYBOARD BACKLIGHT
On MacBook Pro systems, you can control the keyboard brightness by writing a value to the dev.asmc.%d.light.control sysctl MIB.
The following sysctl MIBs contains the raw value returned by the left and right light sensors: dev.asmc.%d.light.left or
dev.asmc.%d.light.right.
TEMPERATURES
The number of temperature sensors and their description varies among systems. You can inspect the temperature sensors on your system by
traversing the dev.asmc.temp sysctl MIB.
All values are in degrees celsius.
SYSTEM FANS
The dev.asmc.fan.%d sysctl tree contains the leaf nodes speed, safespeed, minspeed, maxspeed and targetspeed. Each of these leaf nodes rep-
resent the current fan speed, the safest minimum fan speed, the mininum speed and the maximum speed respectively.
All values are in RPM.
SUDDEN MOTION SENSOR
The Sudden Motion Sensor (SMS for short) is a device that detects laptop movement and notifies the operating system via an interrupt. The
sysctl MIBs present under dev.asmc.sms all relate to the SMS.
The most interesting usage of this device is to park the disk heads when the laptop is moved harshly. First, you need to install ataidle(8)
(ports/sysutils/ataidle) and then configure devd(8) the following way:
notify 0 {
match "system" "ACPI";
match "subsystem" "asmc";
action "/usr/local/sbin/ataidle -s X Y";
};
Do not forget to change the X and Y values in the command above.
Also, please note that parking the disk heads too many times can dramatically reduce your hard drive's life span. Do not rely solely on the
SMS to protect your hard drive: good care and common sense can increase your hard drive's life.
SEE ALSO
ataidle(8) (ports/sysutils/ataidle), devd(8), sysctl(8)
HISTORY
The asmc driver first appeared in FreeBSD 8.0.
AUTHORS
Rui Paulo <rpaulo@FreeBSD.org> (Google Summer of Code project).
BUGS
Support for the latest models was never tested and is most likely not fully working.
BSD
July 27, 2009 BSD