This question already has an answer here:
My laptop screen's brightness shifts to maximum value (100%) when I try to re-login after logging out or locking the session. However, no such problem is seen after restart or shutdown (OS remembers the previous brightness value). So, its only after logout or lock that my screen brightness will be set to 100% automatically. Please help me to fix this.
I use elementary OS freya (fresh installation).