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


The problem:
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?

Thanks Ron
___________________________________________________________________________
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