+#define MOTION_SENSOR_Y_KEY "MO_Y" //r-o length 2 +#define MOTION_SENSOR_X_KEY "MO_X" //r-o length 2 +#define CLAMSHELL_KEY "MSLD" //r-o length 1 (unused) +#define LIGHT_SENSOR_RIGHT_KEY "ALV1" //r-o length 6 +#define LIGHT_SENSOR_LEFT_KEY "ALV0" //r-o length 6 +/* command/status port used by apple SMC */ + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + * this program if not, write to the Free Software Foundation, Inc., + * You should have received a copy of the GNU General Public License along with + * ANY WARRANTY without even the implied warranty of MERCHANTABILITY or + * This program is distributed in the hope that it will be useful, but WITHOUT + * under the terms of the GNU General Public License v2 as published by the + * This program is free software you can redistribute it and/or modify it + * sensors, fan control, keyboard backlight control) used in Intel-based Apple +++ -0,0 +1,964 * drivers/hwmon/applesmc.c - driver for Apple's SMC (accelerometer, temperature +obj-$(CONFIG_SENSORS_APPLESMC) += applesmc.oĭiff -git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c + Say Y here if you have an applicable laptop and want to experienceīool "Hardware Monitoring Chip debugging messages"ĭiff -git a/drivers/hwmon/Makefile b/drivers/hwmon/Makefile + the laptop to act as a pinball machine-esque joystick. + This driver also provides an absolute input class device, allowing + Data from the different sensors, keyboard backlight control and fan + Only Intel-based Apple's computers are supported (MacBook Pro, + Sensor), light sensors, temperature sensors, keyboard backlight + Controller, which provides an accelerometer (Apple Sudden Motion + This driver provides support for the Apple System Management + tristate "Apple SMC (Motion sensor, light sensor, keyboard backlight)" Say Y here if you have an applicable laptop and want to experience This is my main concerns, however, I would be happy to have comments Is it acceptable programming practice? Is there a way to create theseĪlso, I never call any sysfs_remove_* function, as the files areĭeleted when the module is unloaded. temperature_* is created by one macro, fan*_actual_speed by The files created with these macros in /sys/devices/platform/applesmc are I use a lot of preprocessor macros to avoid repetition of code. However, I'm not really satisfied with the way sysfs files are created: Months ago) by various users on different systems on the mactel-linux lists. This patch has been tested successfully since kernel 2.6.18 (i.e. Sensor), light sensors, temperature sensors, keyboard backlight controlĪnd fan control on Intel-based Apple's computers (MacBook Pro, MacBook, I developed, a while ago, a driver the Apple System ManagementĬontroller, which provides an accelerometer (Apple Sudden Motion To: Apple SMC driver (hardware monitoring and control)ĭate: Wed, 17:29:39 +0800 Apple SMC driver (hardware monitoring and control) - Nicolas Boichat LKML Archive on help / color / mirror / Atom feed From: Nicolas Boichat
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |