Re: [lm-sensors] [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-04-11 Thread Nicolas Boichat
Hi, Thanks for your comments. Jean Delvare wrote: > Hi Nicolas, > > Sorry for the delay. > > On Wed, 14 Mar 2007 17:29:39 +0800, Nicolas Boichat wrote: >> I developed, a while ago, a driver the Apple System Management >> Controller, which provides an accelerometer (Apple Sudden Motion >> Sensor

Re: [lm-sensors] [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-04-11 Thread Jean Delvare
Hi Nicolas, Sorry for the delay. On Wed, 14 Mar 2007 17:29:39 +0800, Nicolas Boichat wrote: > I developed, a while ago, a driver the Apple System Management > Controller, which provides an accelerometer (Apple Sudden Motion > Sensor), light sensors, temperature sensors, keyboard backlight control

Re: [lm-sensors] [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-22 Thread Nicolas Boichat
Jean Delvare wrote: > On Mon, 19 Mar 2007 17:43:38 -0400, Bob Copeland wrote: > >> I tried out an earlier version of this patch several months ago just to play >> around with the joystick part of the accelerometer driver on my MacBook, and >> found that it was backwards in the y-direction compar

Re: [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-20 Thread Bob Copeland
On Tue, Mar 20, 2007 at 03:02:14PM +0800, Nicolas Boichat wrote: > I tried neverball on my Macbook Pro 1st generation (Core Duo, not Core 2 > Duo), and the x axis in inverted, not the y axis. > > Could you confirm which axis is inverted on your Macbook? > > Also, have you tried the modified hdaps

Re: [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-20 Thread Gerb Stralko
+/* data port used by apple SMC */ +#define APPLESMC_DATA_PORT 0x300 +/* command/status port used by apple SMC */ +#define APPLESMC_CMD_PORT 0x304 + +#define APPLESMC_NR_PORTS 5 /* 0x300-0x304 */ + +#define APPLESMC_STATUS_MASK 0x0f +#define APPLESMC_READ_CMD 0x10 +#define APP

Re: [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-20 Thread Bob Copeland
I tried neverball on my Macbook Pro 1st generation (Core Duo, not Core 2 Duo), and the x axis in inverted, not the y axis. Could you confirm which axis is inverted on your Macbook? Indeed, my memory is hazy and it may well have been the x-axis. I can't find my modified copy. I'll check it out

Re: [lm-sensors] [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-20 Thread Jean Delvare
On Mon, 19 Mar 2007 17:43:38 -0400, Bob Copeland wrote: > I tried out an earlier version of this patch several months ago just to play > around with the joystick part of the accelerometer driver on my MacBook, and > found that it was backwards in the y-direction compared to what Neverball > seemed

Re: [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-19 Thread Nicolas Boichat
Hello, Bob Copeland wrote: > On 3/14/07, Nicolas Boichat <[EMAIL PROTECTED]> wrote: >> Hello, >> >> I developed, a while ago, a driver the Apple System Management >> Controller, which provides an accelerometer (Apple Sudden Motion >> Sensor), light sensors, temperature sensors, keyboard backlight

Re: [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-19 Thread Bob Copeland
On 3/14/07, Nicolas Boichat <[EMAIL PROTECTED]> wrote: Hello, I developed, a while ago, a driver the Apple System Management Controller, which provides an accelerometer (Apple Sudden Motion Sensor), light sensors, temperature sensors, keyboard backlight control and fan control on Intel-based App

Re: [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-15 Thread Nicolas Boichat
Hello, Cong WANG wrote: > 2007/3/14, Cong WANG wrote: >> I am sorry. I forgot to CC to the list. >> >> 2007/3/14, Nicolas Boichat wrote: >> > Hello, >> > >> >> >> >> > +static ssize_t applesmc_show_fan_manual(struct device *dev, char *buf, >> > +

Re: [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-14 Thread Cong WANG
2007/3/14, Cong WANG wrote: I am sorry. I forgot to CC to the list. 2007/3/14, Nicolas Boichat wrote: > Hello, > > +static ssize_t applesmc_show_fan_manual(struct device *dev, char *buf, > + int offset) > +{ > + int ret; > +

Re: [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-14 Thread Cong WANG
I am sorry. I forgot to CC to the list. 2007/3/14, Nicolas Boichat wrote: Hello, +static ssize_t applesmc_show_fan_manual(struct device *dev, char *buf, + int offset) +{ + int ret; + u16 manual = 0; + u8 buffer

[RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-14 Thread Nicolas Boichat
Hello, I developed, a while ago, a driver the Apple System Management Controller, which provides an accelerometer (Apple Sudden Motion Sensor), light sensors, temperature sensors, keyboard backlight control and fan control on Intel-based Apple's computers (MacBook Pro, MacBook, MacMini). This pat