From owner-acpi-jp@jp.FreeBSD.org Mon Mar  8 10:17:02 2004
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id i281H2j84458;
	Mon, 8 Mar 2004 10:17:02 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from mailbox.univie.ac.at (mailbox.univie.ac.at [131.130.1.27])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id i281Gx784439
	for <acpi-jp@jp.FreeBSD.org>; Mon, 8 Mar 2004 10:17:00 +0900 (JST)
	(envelope-from l.ertl@univie.ac.at)
Received: from wireless (adslle.cc.univie.ac.at [131.130.102.11])
	by mailbox.univie.ac.at (8.12.10/8.12.10) with ESMTP id i281Gn7c1163136
	for <acpi-jp@jp.FreeBSD.org>; Mon, 8 Mar 2004 02:16:54 +0100
From: Lukas Ertl <l.ertl@univie.ac.at>
To: acpi-jp@jp.FreeBSD.org
Message-ID: <20040308021112.P688@korben.in.tern>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-DCC-ZID-Univie-Metrics: imap 4245; Body=0 Fuz1=0 Fuz2=0
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Mon, 8 Mar 2004 02:16:50 +0100
X-Sequence: acpi-jp 3101
Subject: [acpi-jp 3101] acpi_video driver not working
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: l.ertl@univie.ac.at
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+040307

Hi,

I tried the new acpi_video driver on my ThinkPad, but unfortunately the
provided sysctls don't work:

# sysctl hw.acpi.video
hw.acpi.video.lcd0.active: 1
hw.acpi.video.crt0.active: 0
hw.acpi.video.tv0.active: 0
hw.acpi.video.out0.active: 0

# sysctl hw.acpi.video.lcd0.active=0
hw.acpi.video.lcd0.active: 1 -> 1

I think I have found out why: DSS_COMMIT is defined as (UINT32)1 << 31,
which overflows the (signed int) 'number' param of acpi_SetInteger(), and
subsequently the ACPI_OBJECT Integer.Value member.

Any ideas on how to get around this?

regards,
le

-- 
Lukas Ertl                             eMail: l.ertl@univie.ac.at
UNIX Systemadministrator               Tel.:  (+43 1) 4277-14073
Vienna University Computer Center      Fax.:  (+43 1) 4277-9140
University of Vienna                   http://mailbox.univie.ac.at/~le/
