hal scripts cannot do INT32

Danny Kukawka danny.kukawka at web.de
Wed Jun 10 12:25:27 PDT 2009


On Mittwoch, 10. Juni 2009, Matthew Garrett wrote:
> On Wed, Jun 10, 2009 at 06:31:19PM +0200, Danny Kukawka wrote:
> > On Mittwoch, 10. Juni 2009, Matthew Garrett wrote:
> > > On Wed, Jun 10, 2009 at 12:51:42PM +0200, Kay Sievers wrote:
> > > > On Sun, Jun 7, 2009 at 13:35, <danny at mailmij.org> wrote:
> >
> > [...]
> >
> > > > > Only a 16 bit integer can be read like this, and thus my hal
> > > > > version is wrapping the 1000 possible brightness levels returned by
> > > > > sysfs.
> >
> > Which userspace application needs 1000 brightness levels? IMO it would be
> > better to map them to maybe max. 25-100 (e.g. as percentage).
>
> The ABI explicitly provides for a 32-bit value. There's no reason for
> kernel drivers to remap it.

I don't say that the kernel should map it, but maybe the script/addon in HAL 
can do it.

Danny


More information about the hal mailing list