* samsung-laptop: light sensor? @ 2012-09-09 19:31 Alexander Holler 2012-09-10 9:27 ` Corentin Chary 0 siblings, 1 reply; 4+ messages in thread From: Alexander Holler @ 2012-09-09 19:31 UTC (permalink / raw) To: platform-driver-x86; +Cc: Corentin Chary Hello, I'm searching some information about how to read the values from the light sensor found on some Samsung laptops. Does anyone have any information about how to access the light sensor? If I would find such information, I would (try) to write a driver (or enhance samsung-laptop), at least to read the values and maybe something to adjust the keyboard- and/or the lcd-backlight (on startup and maybe dynamically at runtime). Regards, Alexander ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: samsung-laptop: light sensor? 2012-09-09 19:31 samsung-laptop: light sensor? Alexander Holler @ 2012-09-10 9:27 ` Corentin Chary 2012-09-10 11:09 ` Alexander Holler 0 siblings, 1 reply; 4+ messages in thread From: Corentin Chary @ 2012-09-10 9:27 UTC (permalink / raw) To: Alexander Holler; +Cc: platform-driver-x86 On Sun, Sep 9, 2012 at 8:31 PM, Alexander Holler <holler@ahsoftware.de> wrote: > Hello, > > I'm searching some information about how to read the values from the > light sensor found on some Samsung laptops. > > Does anyone have any information about how to access the light sensor? > If I would find such information, I would (try) to write a driver (or > enhance samsung-laptop), at least to read the values and maybe something > to adjust the keyboard- and/or the lcd-backlight (on startup and maybe > dynamically at runtime). > > Regards, > > Alexander Hello Alexander, The light sensor can be used (on mine at least), but nobody had the time to write (rebase) the driver for it. Check these discussions: http://search.gmane.org/?query=ACPI+light+sensor&group=gmane.linux.acpi.devel Basically, it's a standard ACPI light sensor, there was a driver for it, but it should use another subsystem, and nobody did the work so far :). I'll happy to review if you have the time to do that. -- Corentin Chary http://xf.iksaif.net ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: samsung-laptop: light sensor? 2012-09-10 9:27 ` Corentin Chary @ 2012-09-10 11:09 ` Alexander Holler 2012-09-10 12:49 ` Corentin Chary 0 siblings, 1 reply; 4+ messages in thread From: Alexander Holler @ 2012-09-10 11:09 UTC (permalink / raw) To: Corentin Chary; +Cc: platform-driver-x86, Zhang Rui Am 10.09.2012 11:27, schrieb Corentin Chary: > On Sun, Sep 9, 2012 at 8:31 PM, Alexander Holler <holler@ahsoftware.de> wrote: >> Hello, >> >> I'm searching some information about how to read the values from the >> light sensor found on some Samsung laptops. >> >> Does anyone have any information about how to access the light sensor? >> If I would find such information, I would (try) to write a driver (or >> enhance samsung-laptop), at least to read the values and maybe something >> to adjust the keyboard- and/or the lcd-backlight (on startup and maybe >> dynamically at runtime). >> >> Regards, >> >> Alexander > > Hello Alexander, > The light sensor can be used (on mine at least), but nobody had the > time to write (rebase) the driver for it. > Check these discussions: > http://search.gmane.org/?query=ACPI+light+sensor&group=gmane.linux.acpi.devel > > Basically, it's a standard ACPI light sensor, there was a driver for > it, but it should use another subsystem, and nobody did the work so Thanks a lot for that hint. I've just booted an 3.5.3: ---- laptopah ~ # cat /sys/class/als/acpi_als0/illuminance 3230 ---- Only a few modifications on the 2 patches from Zhang Rui were necessary to build the driver for the als-acpi-device. > far :). I'll happy to review if you have the time to do that. I will have a look at the threads for those 2 patches and will check if I can modify those patches for a next try for inclusion into the mainline kernel (in the next weeks, as I will find time, I'm new to the acpi-stuff in the kernel). Regards, Alexander ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: samsung-laptop: light sensor? 2012-09-10 11:09 ` Alexander Holler @ 2012-09-10 12:49 ` Corentin Chary 0 siblings, 0 replies; 4+ messages in thread From: Corentin Chary @ 2012-09-10 12:49 UTC (permalink / raw) To: Alexander Holler; +Cc: platform-driver-x86, Zhang Rui On Mon, Sep 10, 2012 at 12:09 PM, Alexander Holler <holler@ahsoftware.de> wrote: > Am 10.09.2012 11:27, schrieb Corentin Chary: >> On Sun, Sep 9, 2012 at 8:31 PM, Alexander Holler <holler@ahsoftware.de> wrote: >>> Hello, >>> >>> I'm searching some information about how to read the values from the >>> light sensor found on some Samsung laptops. >>> >>> Does anyone have any information about how to access the light sensor? >>> If I would find such information, I would (try) to write a driver (or >>> enhance samsung-laptop), at least to read the values and maybe something >>> to adjust the keyboard- and/or the lcd-backlight (on startup and maybe >>> dynamically at runtime). >>> >>> Regards, >>> >>> Alexander >> >> Hello Alexander, >> The light sensor can be used (on mine at least), but nobody had the >> time to write (rebase) the driver for it. >> Check these discussions: >> http://search.gmane.org/?query=ACPI+light+sensor&group=gmane.linux.acpi.devel >> >> Basically, it's a standard ACPI light sensor, there was a driver for >> it, but it should use another subsystem, and nobody did the work so > > Thanks a lot for that hint. I've just booted an 3.5.3: > ---- > laptopah ~ # cat /sys/class/als/acpi_als0/illuminance > 3230 > ---- Even better, in the last versions of the patches (v6 or something) there was something (don't remember the name of the file) that could be directly wirtten to backlight brightness file. > Only a few modifications on the 2 patches from Zhang Rui were necessary > to build the driver for the als-acpi-device. > >> far :). I'll happy to review if you have the time to do that. > > I will have a look at the threads for those 2 patches and will check if > I can modify those patches for a next try for inclusion into the > mainline kernel (in the next weeks, as I will find time, I'm new to the > acpi-stuff in the kernel). Take a look at "acpi als iio" on the mailing list to know what have to be done ! -- Corentin Chary http://xf.iksaif.net ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-09-10 12:49 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-09-09 19:31 samsung-laptop: light sensor? Alexander Holler 2012-09-10 9:27 ` Corentin Chary 2012-09-10 11:09 ` Alexander Holler 2012-09-10 12:49 ` Corentin Chary
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.