Date: Sat, 28 Jan 2017 17:49:27 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-amd64@FreeBSD.org Subject: [Bug 216552] [patch] acpi_asus_als: driver for the ambient light sensor on ASUS laptops Message-ID: <bug-216552-6@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216552 Bug ID: 216552 Summary: [patch] acpi_asus_als: driver for the ambient light sensor on ASUS laptops Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Keywords: patch Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: henry.hu.sh@gmail.com CC: freebsd-amd64@FreeBSD.org CC: freebsd-amd64@FreeBSD.org Keywords: patch Created attachment 179378 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D179378&action= =3Dedit patch for the driver This driver calls the ACPI methods to obtain the ambient light sensor value= on recent ASUS laptops. It is inspired by the similar driver for Linux at https://github.com/victorenator/als. Only the specifications in the README = file is referenced to. It provides sysctl node hw.acpi.asus_als.light which contains the current l= ight sensor value. The unit seems to be 0.01 lux (compared to a mobile phone). This patch creates a new module under /sys/modules/acpi called acpi_asus_al= s. After loading the module, it attaches to ACPI device with hardware ID ACPI0= 008 and provides the sysctl node mentioned above. This driver is tested under 12-CURRENT on an ASUS UX51VZ laptop. --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216552-6>