You are not logged in.
Very nice, it's work perfect with my mac air mid2012 - i work almost with console so xbacklight, xcalib doesn't help.
Offline
https://aur.archlinux.org/packages.php?ID=63879
It is now packaged! Get it while its hot!
Also it will replace lightscript
Offline
Hello Haikarainen,
Nice work there, but I am having some issues
1. The script needs root privileges now . ( is that what you intended ? if so i am ok with it )
2. When decreasing brightness, at some point when the script reaches to the lowest value , it again starts with the max brightness , this was not the case with the previous version of the script.
Apart from these little issues, your script works exactly the way it should.
Never argue with stupid people,They will drag you down to their level and then beat you with experience.--Mark Twain
@github
Offline
Hello Haikarainen,
Nice work there, but I am having some issues
1. The script needs root privileges now . ( is that what you intended ? if so i am ok with it )
2. When decreasing brightness, at some point when the script reaches to the lowest value , it again starts with the max brightness , this was not the case with the previous version of the script.Apart from these little issues, your script works exactly the way it should.
Thanks for your feedback..
1. I'm working on it, currently trying to figure out how to create udev rules for permissions as an alternative to the auto-sudo thingy(which is harder now since its an executable).
2. Ah crap, I thought I had this fixed. I noticed it in development. It's an unsigned integer in C89 that underflows. I will look this up and make sure it cannot happen. It is actually the only FIXME in the source atm xD
Also it isnt a script anymore
Offline
I have a small suggestion for your program. I have noticed some weird behavior. Whenever I do light --help. it returns the current brightness. The expected behavior for both --help and -h should be the output when light is ran without arguments. You can easely do this with getops.
I also have the same problems with root.
Offline
Also it isnt a script anymore
Oh..my bad . It is a program now. You should consider changing the thread title too.
And about udev you may try
MODE="666"
in udev rule, I am no expert but saw something like this a while back.
Last edited by illusionist (2012-10-25 03:10:28)
Never argue with stupid people,They will drag you down to their level and then beat you with experience.--Mark Twain
@github
Offline
I have a small suggestion for your program. I have noticed some weird behavior. Whenever I do light --help. it returns the current brightness. The expected behavior for both --help and -h should be the output when light is ran without arguments. You can easely do this with getops.
I also have the same problems with root.
That is REALLY weird. I have custom code to parse arguments, of course --help and -h should show usage.. Will put this in the next commit.
Regarding root: Still working on this.
EDIT: It's not really that weird, since I havent implemented --args yet it basically parses is as tags: "-", "h", "e", "l", "p". p is the tag for precise current brightness. Fixing this now
Last edited by Haikarainen (2012-10-25 15:28:40)
Offline
Shinryuu wrote:Oh, this looks pretty easy to use and it's nice you filled information in to Wiki as well. I'll test it with my laptop when I next time launch it up
I wonder if this thread can be moved to "Community Contributions" section, I believe administrators will do that if necessary.
Thanks, appreciate the feedback! I thought about that myself, but I found 3 different places to post this on the forum (1 was the contributions, 1 here, and 1 in the sticky for small programs). We'll see what the mods think, hopefully they have mercy upon my soul and doesn't delete the whole post.
*twiddles thumbs*
Better late than never.
Moving from Programming & Scripting to Community Contributions.
If you want to open a new thread for your C port, you know where to.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
Haikarainen wrote:Shinryuu wrote:Oh, this looks pretty easy to use and it's nice you filled information in to Wiki as well. I'll test it with my laptop when I next time launch it up
I wonder if this thread can be moved to "Community Contributions" section, I believe administrators will do that if necessary.
Thanks, appreciate the feedback! I thought about that myself, but I found 3 different places to post this on the forum (1 was the contributions, 1 here, and 1 in the sticky for small programs). We'll see what the mods think, hopefully they have mercy upon my soul and doesn't delete the whole post.
*twiddles thumbs*
Better late than never.
Moving from Programming & Scripting to Community Contributions.
If you want to open a new thread for your C port, you know where to.
Done and done You guys should probably abandon lightscript for light as I will no longer work on this!
Offline