hal scripts cannot do INT32

Matthew Garrett mjg59 at srcf.ucam.org
Wed Jun 10 12:05:23 PDT 2009


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.

-- 
Matthew Garrett | mjg59 at srcf.ucam.org


More information about the hal mailing list