Ronald P Guilmet on 7 Nov 2016 16:59:20 -0800
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
[PLUG] LINUX LOW LEVEL PROGRAMMING QUESTION
- From: Ronald P Guilmet <email@example.com>
- To: "Philadelphia Linux User's Group Discussion List" <firstname.lastname@example.org>
- Subject: [PLUG] LINUX LOW LEVEL PROGRAMMING QUESTION
- Date: Mon, 7 Nov 2016 19:59:15 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=Xh+5+HuRgCfN62NT6ePOTDGXKiUVYYRGDnwxLn/l908=; b=na7JQuDAFiAWylPcKxL5uvn2g2M9B/HD12aqwf+JyBWW+85pOmm+u3csBCGtNL6yPn 0Ubr/DZCDHRNBsdORwaw+8y0OI/KLPi7cZ0RHp9WHWrAwAVTCUDJmQm2Ufmdc6c6sbXb Dl6QWYGkUdeIT/NtGyuO0mHP5f07QUqhawNxCigyTb5JVWvGEquEuWPyXu0qDTD9B9WR nTNuKeIOLtfsplaTKfrtd+fCbVwNDVnbh0KuSNK/ie/NaVItJj7OABqJRNE9WIbd/ZjZ H/0GTxdW/uQcLSv/lJFnmd/ht+iSKZJqyUf/9PXD4Dlj2elDaNuzMXr4Zo7A3nxXE2YV +lcA==
- Reply-to: Philadelphia Linux User's Group Discussion List <email@example.com>
- Sender: "plug" <firstname.lastname@example.org>
I have a Dell laptop that I cannot adjust the screen brightness via the settings shown to me. I can however change them by echoing a value to the /sys/class/.... file. This is not distro specific, it doesn't work in Ubuntu or Fedora. I am currently using Fedora 24.
suid is disabled in Bash for security reasons. I can execute an echo <value> > /file/path and it works. If I put that in a bash script and run it from the root command line, it will not execute. No errors, it just won't change the values.
My programming experience has not been low level, and this seems to be low level programming. I have a familiarity with C, and I'm thinking I will try that.
I've looked up solutions in the past, but they don't seem to work anymore.
To fix this, and to satisfy my love of playing with Linux, I was thinking of writing a C program that either reads a config file, or a C program that will accept a parameter (screen value) giving at runtime.
Anyone have any suggestions or comments?
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug