Brightness Settings Reset After Reboot

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Brightness Settings Reset After Reboot

Postby Klaw117 on Thu Dec 08, 2011 6:50 pm

Everytime I start Linux Mint 12, the screen brightness setting is at the maximum value, so I decrease it to something like 60%. However, when I restart the system, the brightness goes back to the maximum value. I've tried going into System Settings -> Screen or just using my Fn keys. They both adjust the brightness, but when I reboot, the brightness goes back to the maximum value. I also got dconf Editor to try to see if there was a setting to fix the brightness, but I didn't see one. How can I get my brightness setting to save so that I don't have to keep decreasing the brightness?
Klaw117
Level 1
Level 1
 
Posts: 24
Joined: Fri Dec 02, 2011 2:48 am
Location: New York, United States

Linux Mint is funded by ads and donations.
 

Re: Brightness Settings Reset After Reboot

Postby Klaw117 on Sat Dec 10, 2011 2:42 pm

Bump.

Does anyone have a solution for this problem?
Klaw117
Level 1
Level 1
 
Posts: 24
Joined: Fri Dec 02, 2011 2:48 am
Location: New York, United States

Re: Brightness Settings Reset After Reboot

Postby esteban1uy on Sun Dec 11, 2011 5:05 am

There's a workaround.

Open your "Startup Applications Preferences" and click the "Add" button
At the promt, put "Brightness" as name, and the following code at "Command":

Code: Select all
gdbus call --session --dest org.gnome.SettingsDaemon --object-path /org/gnome/SettingsDaemon/Power --method org.gnome.SettingsDaemon.Power.Screen.SetPercentage 50

Click "Save" and restart session.
That will reduce to 50% your screen brightness.
You can change the last number to anything suitable for you.
Sorry, I only speak Spanish
User avatar
esteban1uy
Level 5
Level 5
 
Posts: 734
Joined: Sat Nov 12, 2011 6:20 am

Re: Brightness Settings Reset After Reboot

Postby tek_heretik on Sun Dec 11, 2011 5:15 am

You didn't specify what make of video chip/adapter/card you are using, if it's nVidia, there is the settings utility (granted the proprietary driver is in use). What I do, if the video driver is 'sending' the normal brightness value to the monitor, I turn the brightness down on the monitor itself (extreme bright monitor's menu setting will reduce the life of your monitor anyway)...that being said, I prefer the video adapter/driver's default values and adjust the monitor's settings to suit it. Hope that helped. :)
Core 2 Quad Q9550(2.83GHz), 4 drive Raid 0 (320GBx4/1.28TB), 500GB storage drive, 8GB Kingston Hyper X, 23" LG LED, etc, running ONLY 64-bit Linux Mint. I don't like Microsoft AND Apple because of overpricing and their 'big brother' attitudes.
User avatar
tek_heretik
Level 3
Level 3
 
Posts: 116
Joined: Sun Jul 25, 2010 4:39 pm

Re: Brightness Settings Reset After Reboot

Postby Klaw117 on Mon Dec 12, 2011 1:03 am

esteban1uy wrote:There's a workaround.

Open your "Startup Applications Preferences" and click the "Add" button
At the promt, put "Brightness" as name, and the following code at "Command":

Code: Select all
gdbus call --session --dest org.gnome.SettingsDaemon --object-path /org/gnome/SettingsDaemon/Power --method org.gnome.SettingsDaemon.Power.Screen.SetPercentage 50

Click "Save" and restart session.
That will reduce to 50% your screen brightness.
You can change the last number to anything suitable for you.

Thanks, I'll try that out later.

tek_heretik wrote:You didn't specify what make of video chip/adapter/card you are using, if it's nVidia, there is the settings utility (granted the proprietary driver is in use). What I do, if the video driver is 'sending' the normal brightness value to the monitor, I turn the brightness down on the monitor itself (extreme bright monitor's menu setting will reduce the life of your monitor anyway)...that being said, I prefer the video adapter/driver's default values and adjust the monitor's settings to suit it. Hope that helped. :)

I use a laptop with an integrated Intel graphics card and an AMD Radeon HD 6470M graphics card. The AMD card doesn't have a working driver for Linux Mint, and since I'm using a laptop, I can't really adjust the brightness of the monitor itself. I have to use the Fn keys or go into the brightness settings in the Control Panel (Windows) or the System Settings (Linux Mint).
Klaw117
Level 1
Level 1
 
Posts: 24
Joined: Fri Dec 02, 2011 2:48 am
Location: New York, United States

Re: Brightness Settings Reset After Reboot

Postby tek_heretik on Mon Dec 12, 2011 9:04 am

Klaw117 wrote:I can't really adjust the brightness of the monitor itself. I have to use the Fn keys or go into the brightness settings in the Control Panel (Windows) or the System Settings (Linux Mint).


That's really strange, never heard of that, post the model of the laptop? This may sound old school but the last time I set a laptop's screen brightness, it was in the BIOS.

Edit: So it was too bright in Windows too?
Core 2 Quad Q9550(2.83GHz), 4 drive Raid 0 (320GBx4/1.28TB), 500GB storage drive, 8GB Kingston Hyper X, 23" LG LED, etc, running ONLY 64-bit Linux Mint. I don't like Microsoft AND Apple because of overpricing and their 'big brother' attitudes.
User avatar
tek_heretik
Level 3
Level 3
 
Posts: 116
Joined: Sun Jul 25, 2010 4:39 pm

Re: Brightness Settings Reset After Reboot

Postby esteban1uy on Mon Dec 12, 2011 10:03 pm

Well... the problem can be easily solved if you can adjust brightness via your graphics card proprietary driver.

But many of us don't have the need to use a proprietary driver, or there is no proprietary driver we can use.

Even so there's a workaround we can apply that works inmediately after startup, resuming from hibernation or suspension:

If your system has a folder named /sys/class/backlight open it. Look for a file named max_brightness (it can be located inside some sub-folder).
Open that file and take note of the only value contained, that number represents your 100% of brightness (p.e. mine says 976).

Now let's say you want to lower your brightness to 50%.
Open a terminal, type gedit ~/.lowerbrightness.sh and paste the following code:

Code: Select all
#!/bin/sh

#change brightness setting to 50 percent on startup or resume

pkexec /usr/lib/gnome-settings-daemon/gsd-backlight-helper --set-brightness 488



Save it and make it executable (chmod +x ~/.lowerbrightness.sh).

Now at terminal paste this code (replace esteban with your own name):

Code: Select all
gsettings set org.gnome.settings-daemon.peripherals.input-devices hotplug-command "/home/esteban/.lowerbrightness.sh"


Log off, log in and voilà... no more burning screens.
Sorry, I only speak Spanish
User avatar
esteban1uy
Level 5
Level 5
 
Posts: 734
Joined: Sat Nov 12, 2011 6:20 am

Re: Brightness Settings Reset After Reboot

Postby Klaw117 on Mon Dec 12, 2011 10:56 pm

@tek_heretik: My laptop is a Dell Inspiron 14R (N4110). And no, the brightness is fine in Windows. My Fn keys actually work there (well, they work in Linux Mint also, but the settings don't save, unlike in Windows).

@esteban1uy: Thank you, your solution worked. However, I just have one last question. In the event that AMD finally makes a working driver for my graphics card, how do I reverse this command?

Code: Select all
gsettings set org.gnome.settings-daemon.peripherals.input-devices hotplug-command "/home/klaw117/.lowerbrightness.sh"


I know that I could just delete the file that you told me to create, but I feel like it would be a good idea to also know the method to reverse the above command in the terminal.
Klaw117
Level 1
Level 1
 
Posts: 24
Joined: Fri Dec 02, 2011 2:48 am
Location: New York, United States

Re: Brightness Settings Reset After Reboot

Postby esteban1uy on Tue Dec 13, 2011 1:59 am

Klaw117 wrote:@esteban1uy: Thank you, your solution worked. However, I just have one last question. In the event that AMD finally makes a working driver for my graphics card, how do I reverse this command?

Code: Select all
gsettings set org.gnome.settings-daemon.peripherals.input-devices hotplug-command "/home/klaw117/.lowerbrightness.sh"


I know that I could just delete the file that you told me to create, but I feel like it would be a good idea to also know the method to reverse the above command in the terminal.


That's really easy. Just type this at your terminal:
Code: Select all
gsettings set org.gnome.settings-daemon.peripherals.input-devices hotplug-command ""

Then you can safely delete that script file (/home/klaw117/.lowerbrightness.sh).

Other way: if you have "Configuration Editor" (aka dconf Editor, from package dconf-tools, kinda regedit but for Gnome) already installed in your system, just open it and navigate to this key: org->gnome->settings-daemon->peripherals->input-devices, select the key named "hotplug-command" and click the "Set to Default" button located at the bottom of the window.
Then go to your personal folder and delete the script file.
Sorry, I only speak Spanish
User avatar
esteban1uy
Level 5
Level 5
 
Posts: 734
Joined: Sat Nov 12, 2011 6:20 am

Re: Brightness Settings Reset After Reboot

Postby tek_heretik on Tue Dec 13, 2011 9:17 am

Klaw117 wrote:@tek_heretik: My laptop is a Dell Inspiron 14R (N4110). And no, the brightness is fine in Windows. My Fn keys actually work there (well, they work in Linux Mint also, but the settings don't save, unlike in Windows).


Yep, just had a look at your manual, the other posters are right, you will have to do the code thing for a reoccurring driver brightness adjustment once you reach the desktop. Arrrrrrg, no offense, but I hate proprietary computers, blech. Just briefly reading that manual tied my stomach in knots, lol. :roll: :wink:
Core 2 Quad Q9550(2.83GHz), 4 drive Raid 0 (320GBx4/1.28TB), 500GB storage drive, 8GB Kingston Hyper X, 23" LG LED, etc, running ONLY 64-bit Linux Mint. I don't like Microsoft AND Apple because of overpricing and their 'big brother' attitudes.
User avatar
tek_heretik
Level 3
Level 3
 
Posts: 116
Joined: Sun Jul 25, 2010 4:39 pm

Re: Brightness Settings Reset After Reboot

Postby Klaw117 on Tue Dec 13, 2011 4:59 pm

@esteban1uy: Awesome, thank you! :D

@tek_heretik: Haha, I didn't originally intend to install Linux (this is why I don't have a Linux-friendly laptop), but when I noticed that all of my friends majoring in computer engineering and/or computer science had Linux on, I figured that it would be a good idea for me to install it since I'm majoring in those as well.
Klaw117
Level 1
Level 1
 
Posts: 24
Joined: Fri Dec 02, 2011 2:48 am
Location: New York, United States

Re: Brightness Settings Reset After Reboot

Postby chiefjim on Wed Dec 14, 2011 7:22 am

Will any of the above adjust the brightness during the boot issue itself? A friend of mine with macular issues had tremendous discomfort beginning with the first screens.
Desktop:
Mint 14.1 64 bit with Mate
Gigabyte GA-MA785GM-US2H
AMD Athlon II X3 425
CORSAIR 4GB DDR2 800
640GB HDD WD Black 7200rpm

Laptop:
Acer Aspire AS5552-5898
Mint 14.1 64 bit with Mate
AMD Phenom II Triple-Core N830
4GB Memory DDR3
500GB HDD 5400rpm
chiefjim
Level 4
Level 4
 
Posts: 316
Joined: Sun Jun 07, 2009 7:26 am

Re: Brightness Settings Reset After Reboot

Postby esteban1uy on Wed Dec 14, 2011 8:20 am

chiefjim wrote:Will any of the above adjust the brightness during the boot issue itself? A friend of mine with macular issues had tremendous discomfort beginning with the first screens.


Nope.
I'm sorry, but this workaround adjusts brightness AFTER the first login after booting.
But he can always use hibernate (disabling autentication) instead of simply powering its laptop off, so everytime he resumes it the brightness will keep the appropriate value, even at the login screen.
Other way could be setting the session autologin, so he can pass those first screens and at the regular session the screen will automatically dim.
Give it a try.
Sorry, I only speak Spanish
User avatar
esteban1uy
Level 5
Level 5
 
Posts: 734
Joined: Sat Nov 12, 2011 6:20 am

Re: Brightness Settings Reset After Reboot

Postby vxltbe on Fri May 04, 2012 10:53 pm

@esteban1uy

Thank you very much for the help!
vxltbe
Level 1
Level 1
 
Posts: 1
Joined: Fri May 04, 2012 10:50 pm

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot], npagan, passerby and 32 guests