frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Auto-Adjust Keyboard and LCD Brightness via Ambient Light Sensor[Linux]

https://github.com/donjajo/als-led-backlight
7•donjajo•4d ago
I have always wanted cool features in Linux because I use it day to day as my OS. I have always wanted to implement this feature and do it properly: one that automatically adjusts keyboard and LCD backlights using data from the Ambient Light Sensor.

I enjoy low-level programming a lot. I delved into writing this program in C. It came out well and worked seamlessly on my device. Currently, it only works for keyboard lights. I designed it in a way that the support for LCD will come in seamlessly in the future.

But, in the real world, people have different kinds of devices. And I made sure to follow the iio implementation on the kernel through sysfs. I would like feedback. :)

Comments

seba_dos1•1h ago
FWIW, iio-sensor-proxy gives you a user-accessible dbus API for ambient light sensors. GNOME has had a feature to auto-adjust screen brightness based on it for ages (though their implementation leave much to be desired and hasn't changed despite of several attempts to rework it over the years).

  $ monitor-sensor
      Waiting for iio-sensor-proxy to appear
  +++ iio-sensor-proxy appeared
  === Has accelerometer (orientation: normal)
  === Has ambient light sensor (value: 56.200000, unit: lux)
  === Has proximity sensor (near: 0)
      Light changed: 56.200000 (lux)
      Light changed: 55.100000 (lux)
      Light changed: 58.500000 (lux)
      Light changed: 48.800000 (lux)

You should write an agent

https://fly.io/blog/everyone-write-an-agent/
328•tabletcorry•5h ago•166 comments

Scientists find ways to boost memory in aging brains

https://news.vt.edu/articles/2025/10/cals-jarome-improving-memory.html
40•stevenjgarner•2h ago•4 comments

Two billion email addresses were exposed

https://www.troyhunt.com/2-billion-email-addresses-were-exposed-and-we-indexed-them-all-in-have-i...
341•esnard•6h ago•236 comments

Kimi K2 Thinking, a SOTA open-source trillion-parameter reasoning model

https://moonshotai.github.io/Kimi-K2/thinking.html
590•nekofneko•11h ago•238 comments

Game design is simple

https://www.raphkoster.com/2025/11/03/game-design-is-simple-actually/
107•vrnvu•4h ago•47 comments

Show HN: I scraped 3B Goodreads reviews to train a better recommendation model

https://book.sv
251•costco•1d ago•94 comments

Universe's expansion 'is now slowing, not speeding up'

https://ras.ac.uk/news-and-press/research-highlights/universes-expansion-now-slowing-not-speeding
100•chrka•5h ago•109 comments

Swift on FreeBSD Preview

https://forums.swift.org/t/swift-on-freebsd-preview/83064
184•glhaynes•8h ago•107 comments

A Note on Fil-C

https://graydon2.dreamwidth.org/320265.html
12•signa11•1h ago•2 comments

Open Source Implementation of Apple's Private Compute Cloud

https://github.com/openpcc/openpcc
358•adam_gyroscope•1d ago•72 comments

IRS Ends Direct File

https://www.wsj.com/politics/policy/irs-direct-file-tax-program-ended-00172148
48•anigbrowl•1h ago•18 comments

LLMs encode how difficult problems are

https://arxiv.org/abs/2510.18147
104•stansApprentice•7h ago•20 comments

The Geometry of Schemes [pdf]

https://webhomes.maths.ed.ac.uk/~v1ranick/papers/eisenbudharris.pdf
14•measurablefunc•6d ago•2 comments

Gt: [experimental] multiplexing tensor framework

https://github.com/bwasti/gt
7•brrrrrm•4d ago•0 comments

Hightouch (YC S19) Is Hiring

https://job-boards.greenhouse.io/hightouch/jobs/5542602004
1•joshwget•5h ago

Eating stinging nettles

https://rachel.blog/2018/04/29/eating-stinging-nettles/
177•rzk•14h ago•167 comments

FBI tries to unmask owner of archive.is

https://www.heise.de/en/news/Archive-today-FBI-Demands-Data-from-Provider-Tucows-11066346.html
708•Projectiboga•10h ago•374 comments

The Parallel Search API

https://parallel.ai/blog/introducing-parallel-search
93•lukaslevert•9h ago•35 comments

I analyzed the lineups at the most popular nightclubs

https://dev.karltryggvason.com/how-i-analyzed-the-lineups-at-the-worlds-most-popular-nightclubs/
140•kalli•12h ago•69 comments

ICC ditches Microsoft 365 for openDesk

https://www.binnenlandsbestuur.nl/digitaal/internationaal-strafhof-neemt-afscheid-van-microsoft-365
531•vincvinc•9h ago•164 comments

Mathematical exploration and discovery at scale

https://terrytao.wordpress.com/2025/11/05/mathematical-exploration-and-discovery-at-scale/
225•nabla9•17h ago•112 comments

Auraphone: A simple app to collect people's info at events

https://andrewarrow.dev/2025/11/simple-app-collect-peoples-info-at-events/
36•fcpguru•11h ago•17 comments

The secret campaign to silence critics of a hospital real estate empire

https://www.motherjones.com/politics/2025/10/medical-properties-trust-mpt-steward-health-care-ed-...
26•hhs•2h ago•0 comments

Show HN: Auto-Adjust Keyboard and LCD Brightness via Ambient Light Sensor[Linux]

https://github.com/donjajo/als-led-backlight
7•donjajo•4d ago•1 comments

Show HN: TabPFN-2.5 – SOTA foundation model for tabular data

https://priorlabs.ai/technical-reports/tabpfn-2-5-model-report
63•onasta•8h ago•11 comments

I may have found a way to spot U.S. at-sea strikes before they're announced

https://old.reddit.com/r/OSINT/comments/1opjjyv/i_may_have_found_a_way_to_spot_us_atsea_strikes/
306•hentrep•21h ago•432 comments

Show HN: See chords as flags – Visual harmony of top composers on musescore

https://rawl.rocks/
106•vitaly-pavlenko•1d ago•27 comments

The APM paradox: Too much data, too few answers

https://www.honeybadger.io/blog/apm-paradox/
6•todsacerdoti•3d ago•0 comments

The Learning Loop and LLMs

https://martinfowler.com/articles/llm-learning-loop.html
96•johnwheeler•4h ago•61 comments

Show HN: qqqa – A fast, stateless LLM-powered assistant for your shell

https://github.com/matisojka/qqqa
127•iagooar•15h ago•80 comments