Interested in learning OS-level programming
#4
(08-15-2020, 11:43 AM)wibble Wrote: The flashlight, along with many other things, is controlled by reading and writing 'files' under the /sys pseudo-filesystem. You can do that using normal shell tools like echo, tee, pipes etc. or by using a programming language's file read/write methods. In this case you're looking to write either 0 or 1 to /sys/devices/platform/led-controller/leds/white:flash/brightness - note the permissions on that file which may mean you'll need to use sudo or similar to access it.
Just noticed this very informed response. I don't suppose this kind of stuff is documented anywhere? And is it OS specific? I can RTFM if I can find them.
  Reply


Messages In This Thread
RE: Interested in learning OS-level programming - by rleasle - 04-21-2021, 07:51 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Bug Wrong Battery Charge Level Displayed - How to Fix acid andy 7 5,445 06-12-2023, 01:04 PM
Last Post: jakfish

Forum Jump:


Users browsing this thread: 1 Guest(s)