Re: Mackbook pro nvidia based video backlight

2009-01-31 Thread Rui Paulo
On 30 Jan 2009, at 07:52, Alexander Leidinger wrote: Quoting Ed Schouten (from Thu, 29 Jan 2009 15:36:06 +0100): * Alexander Leidinger wrote: So you want that either - a daemon running as root is written which listens to user requests to set the backlight via sysctl or - a SUID root pr

Re: Mackbook pro nvidia based video backlight

2009-01-31 Thread Rui Paulo
On 30 Jan 2009, at 07:52, Alexander Leidinger wrote: Quoting Ed Schouten (from Thu, 29 Jan 2009 15:36:06 +0100): * Alexander Leidinger wrote: So you want that either - a daemon running as root is written which listens to user requests to set the backlight via sysctl or - a SUID root pro

Re: Mackbook pro nvidia based video backlight

2009-01-30 Thread Alexander Leidinger
Quoting Ed Schouten (from Thu, 29 Jan 2009 15:36:06 +0100): * Alexander Leidinger wrote: So you want that either - a daemon running as root is written which listens to user requests to set the backlight via sysctl or - a SUID root program is written that sets the backlight via sysctl

Re: Mackbook pro nvidia based video backlight

2009-01-30 Thread Julian Elischer
Ed Schouten wrote: * Alexander Leidinger wrote: The ideal solution would be to integrate it into vidcontrol, calling some kind of ioctl on the TTY/consolectl, but syscons is too brainless to know anything about hardware specific features. Here we are back to what was proposed instead of sysctl.

Re: Mackbook pro nvidia based video backlight

2009-01-30 Thread Ed Schouten
* Alexander Leidinger wrote: >> The ideal solution would be to integrate it into vidcontrol, calling >> some kind of ioctl on the TTY/consolectl, but syscons is too brainless >> to know anything about hardware specific features. > > Here we are back to what was proposed instead of sysctl. I have t

Re: Mackbook pro nvidia based video backlight

2009-01-29 Thread Alexander Leidinger
Quoting Ed Schouten (from Wed, 28 Jan 2009 14:43:09 +0100): * Daniel Lannstrom wrote: > I'm asking which method will be the best to interface the driver with > userland applications? You might want to make it a character device driver. And write a small userland control program. Sysctl isn't

Re: Mackbook pro nvidia based video backlight

2009-01-29 Thread Ed Schouten
* Alexander Leidinger wrote: > So you want that either > - a daemon running as root is written which listens to user >requests to set the backlight via sysctl > or > - a SUID root program is written that sets the backlight >via sysctl > instead of > - a character device with appropriate

Re: Mackbook pro nvidia based video backlight

2009-01-28 Thread Patrick Lamaizière
Le Wed, 28 Jan 2009 17:33:28 +0100, Ed Schouten : > > Not really. The xorg intel driver is already able to deal with this. > > I don't know about NVIDIA. > > Yes, but that's what I mean. It will be a cold day in hell when "nv" > supports this. As far as I can tell, it's just a pile of obfuscated

Re: Mackbook pro nvidia based video backlight

2009-01-28 Thread Ed Schouten
* Rui Paulo wrote: > Not really. The xorg intel driver is already able to deal with this. > I don't know about NVIDIA. Yes, but that's what I mean. It will be a cold day in hell when "nv" supports this. As far as I can tell, it's just a pile of obfuscated C code. -- Ed Schouten WWW: http://8

Re: Mackbook pro nvidia based video backlight

2009-01-28 Thread Robert Noland
On Wed, 2009-01-28 at 14:29 +, Rui Paulo wrote: > On 28 Jan 2009, at 13:43, Ed Schouten wrote: > > > * Daniel Lannstrom wrote: > >>> I'm asking which method will be the best to interface the driver > >>> with > >>> userland applications? > >> > >> You might want to make it a character devic

Re: Mackbook pro nvidia based video backlight

2009-01-28 Thread Rui Paulo
On 28 Jan 2009, at 13:43, Ed Schouten wrote: * Daniel Lannstrom wrote: I'm asking which method will be the best to interface the driver with userland applications? You might want to make it a character device driver. And write a small userland control program. Sysctl isn't really made

Re: Mackbook pro nvidia based video backlight

2009-01-28 Thread Rui Paulo
On 28 Jan 2009, at 13:43, Ed Schouten wrote: * Daniel Lannstrom wrote: I'm asking which method will be the best to interface the driver with userland applications? You might want to make it a character device driver. And write a small userland control program. Sysctl isn't really made

Re: Mackbook pro nvidia based video backlight

2009-01-28 Thread Ed Schouten
* Daniel Lannstrom wrote: > > I'm asking which method will be the best to interface the driver with > > userland applications? > > You might want to make it a character device driver. And write a small > userland control program. Sysctl isn't really made for this kind of > functionality. No. sys

Re: Mackbook pro nvidia based video backlight

2009-01-27 Thread Rui Paulo
On 27 Jan 2009, at 15:00, Daniel Lannstrom wrote: I'm asking which method will be the best to interface the driver with userland applications? You might want to make it a character device driver. And write a small userland control program. Sysctl isn't really made for this kind of functionalit

Re: Mackbook pro nvidia based video backlight

2009-01-27 Thread Daniel Lannstrom
> I'm asking which method will be the best to interface the driver with > userland applications? You might want to make it a character device driver. And write a small userland control program. Sysctl isn't really made for this kind of functionality. ___

Mackbook pro nvidia based video backlight

2009-01-27 Thread Patrick Lamaizière
Hello, I've made a small driver to set the backlight level on Apple MacBook Pro, for the models based on the Nvida video card (model 3,1 and 3,2). (if it works on other models please tell me) At the moment this is a quick and dirty hack, but you don't need to wear a pair of sunglasses anymore! M