How can I adjust brightness settings when I am on battery?
I can't find brightness settings that work from battery mode in the Ubuntu 11.10 screen settings.
There are some settings from Ubuntu 11.04 in gconf, 90% for AC and 60% for battery, but it doesn't work.
How can I have my display brightness dim automatically when on battery power?
11.10 brightness
add a comment |
I can't find brightness settings that work from battery mode in the Ubuntu 11.10 screen settings.
There are some settings from Ubuntu 11.04 in gconf, 90% for AC and 60% for battery, but it doesn't work.
How can I have my display brightness dim automatically when on battery power?
11.10 brightness
possible duplicate of Always be 100% bright when I'm using battery
– jrg♦
Nov 16 '11 at 12:40
Possible duplicate - however, it could be merely "related".
– jrg♦
Nov 16 '11 at 12:42
add a comment |
I can't find brightness settings that work from battery mode in the Ubuntu 11.10 screen settings.
There are some settings from Ubuntu 11.04 in gconf, 90% for AC and 60% for battery, but it doesn't work.
How can I have my display brightness dim automatically when on battery power?
11.10 brightness
I can't find brightness settings that work from battery mode in the Ubuntu 11.10 screen settings.
There are some settings from Ubuntu 11.04 in gconf, 90% for AC and 60% for battery, but it doesn't work.
How can I have my display brightness dim automatically when on battery power?
11.10 brightness
11.10 brightness
edited Jul 11 '12 at 15:16
belacqua
15.9k1473103
15.9k1473103
asked Nov 16 '11 at 4:20
ZhEKaZhEKa
19115
19115
possible duplicate of Always be 100% bright when I'm using battery
– jrg♦
Nov 16 '11 at 12:40
Possible duplicate - however, it could be merely "related".
– jrg♦
Nov 16 '11 at 12:42
add a comment |
possible duplicate of Always be 100% bright when I'm using battery
– jrg♦
Nov 16 '11 at 12:40
Possible duplicate - however, it could be merely "related".
– jrg♦
Nov 16 '11 at 12:42
possible duplicate of Always be 100% bright when I'm using battery
– jrg♦
Nov 16 '11 at 12:40
possible duplicate of Always be 100% bright when I'm using battery
– jrg♦
Nov 16 '11 at 12:40
Possible duplicate - however, it could be merely "related".
– jrg♦
Nov 16 '11 at 12:42
Possible duplicate - however, it could be merely "related".
– jrg♦
Nov 16 '11 at 12:42
add a comment |
6 Answers
6
active
oldest
votes
I tried a lot of things to no avail to get gnome-control-center in 11.10 to handle this like gnome-power-manager used to.
I decideded to create a script and install it into pm-utils.
#!/bin/sh
ON_AC=##
ON_BATT=##
if ["$1" = "true"]; then
echo $ON_BATT > /sys/class/backlight/<device directory>/brightness
fi
if ["$1" = "false"]; then
echo $ON_AC > /sys/class/backlight/<device directory>/brightness
fi
exit 0
I kept it simple because (hopefully) it is a temporary solution. You must manually set your desired values in the two variables above. Use the slider in the "Screen" settings gui to set your desired brightness, then use cat /sys/class/backlight/<device directory>/brightness
to retrieve the corresponding numerical value. Substitue the name of your device's directory for <device directory>
. Do it once for AC brightness and once for battery brightness. Plug the name of your device directory and the brightness values into the script.
Save the script to a file in your home directory or wherever. I called it backlight. Make it executable with chmod a+x backlight
and install it to pm-utils with sudo install backlight /usr/lib/pm-utils/power.d/
I'm not sure how it works resuming from suspend/hibernate because I don't use it, but it works well when booting with or without ac, as well as when hotplugging the charger.
add a comment |
To set your brightness to dim automatically on battery power go to your System Settings (search in your dash or go to your power/settings cog), then select Screen. It will give you a slider to turn battery dimming on and off.
As for changing brightness manually, if you don't have function keys to do so you may map key combinations to do so by going to System Settings > Keyboard > Shortcuts tab, and assigning brightness a new value.
There seems to be no shortcut assignable for this in Ubuntu 12.04.
– postfuturist
Aug 8 '12 at 10:33
1
there is no setting for automatic brightness mate!
– BRKsays
Jan 13 '13 at 17:56
add a comment |
The answer above by @Joey did not worked for me, probably things have changed in 13.10 but it gave me a hint that such script might work, so i searched and found a solution in archlinux wiki Archlinux wiki
You can put following in that backlight script, make it executable and put it in /usr/lib/pm-utils/power.d/. and plus change the paths and brightness values according to your settings. i have dual graphics system, and acpi_video0 i think is my amd graphics card settings, if you have intel graphics, you can change acpi_video0 to intel_backlight, or first navigate to that directory and check what do you have, intel_backlight or acpi_video0 or something else. then you can check your brightness values in actual brightness file and maximum brightness file. and finally make sure that you have right permissions for that file.
#!/bin/bash
case $1 in
true)
echo 12 > /sys/class/backlight/acpi_video0/brightness
;;
false)
echo 100 > /sys/class/backlight/acpi_video0/brightness
;;
esac
add a comment |
Open your Terminal and type xgamma -gamma
followed by a value. Normal brightness is 1, so you can set 1.2 or 1.3 if you want to make it brighter, or .5 or 0.75 if you want to make it dimmer.
2
I want automatic brightness changes when switch AC/battery
– ZhEKa
Nov 16 '11 at 7:33
add a comment |
You don't say you've tried the obvious, so just in case ...
Does you machine have Fn keys to do that? On mine it's Fn-up and Fn-down to adjust brightness.
Try it, it might even work! ;)
1
-1, for two reasons: snarky answers are not appreciated, and secondly, there is a comment on the other answer that explains that isn't wha the question is about.
– jrg♦
Nov 16 '11 at 12:36
Ok, just seen the comment about wanting it automated. Ignore me, I need to read more before typing .... and yes, the settings have vanished with Gnome3 (or is it Unity?)
– ams
Nov 16 '11 at 12:38
They haven't been removed, gnome simply moved them. This question is a duplicate of this one: askubuntu.com/questions/33457/…
– jrg♦
Nov 16 '11 at 12:41
Yes, Fn keys are work, but why don't work old Gnome setting that works fine in 11.04? And How to set same options in curent 11.10 Unity?
– ZhEKa
Nov 16 '11 at 12:48
add a comment |
You can try this in Ubuntu 11.10:
Add this code
("echo 10 > /sys/class/backlight/acpi_video1/brightness" and "echo 5 > /sys/class/backlight/acpi_video1/brightness", without " ") in /usr/lib/pm-utils/power.d/laptop-mode
laptop_mode_ac() {
# disable laptop mode, set vm parameters back to sane defaults
if state_exists laptop_mode_default; then
write_values $(restorestate laptop_mode_default)
else
write_values 0 10 5 500
fi
echo "Laptop mode disabled."
echo 10 > /sys/class/backlight/acpi_video1/brightness
}
laptop_mode_battery() {
# enable laptop mode, set vm parameters to buffer as many writes as
# possible.
state_exists laptop_mode_default ||
read_values | savestate laptop_mode_default
write_values "$LAPTOP_MODE" "$LAPTOP_DIRTY_RATIO"
"$LAPTOP_DIRTY_BG_RATIO" "$LAPTOP_DIRTY_WRITEBACK"
echo "Laptop mode enabled."
echo 5 > /sys/class/backlight/acpi_video1/brightness
}
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f79730%2fhow-can-i-adjust-brightness-settings-when-i-am-on-battery%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
6 Answers
6
active
oldest
votes
6 Answers
6
active
oldest
votes
active
oldest
votes
active
oldest
votes
I tried a lot of things to no avail to get gnome-control-center in 11.10 to handle this like gnome-power-manager used to.
I decideded to create a script and install it into pm-utils.
#!/bin/sh
ON_AC=##
ON_BATT=##
if ["$1" = "true"]; then
echo $ON_BATT > /sys/class/backlight/<device directory>/brightness
fi
if ["$1" = "false"]; then
echo $ON_AC > /sys/class/backlight/<device directory>/brightness
fi
exit 0
I kept it simple because (hopefully) it is a temporary solution. You must manually set your desired values in the two variables above. Use the slider in the "Screen" settings gui to set your desired brightness, then use cat /sys/class/backlight/<device directory>/brightness
to retrieve the corresponding numerical value. Substitue the name of your device's directory for <device directory>
. Do it once for AC brightness and once for battery brightness. Plug the name of your device directory and the brightness values into the script.
Save the script to a file in your home directory or wherever. I called it backlight. Make it executable with chmod a+x backlight
and install it to pm-utils with sudo install backlight /usr/lib/pm-utils/power.d/
I'm not sure how it works resuming from suspend/hibernate because I don't use it, but it works well when booting with or without ac, as well as when hotplugging the charger.
add a comment |
I tried a lot of things to no avail to get gnome-control-center in 11.10 to handle this like gnome-power-manager used to.
I decideded to create a script and install it into pm-utils.
#!/bin/sh
ON_AC=##
ON_BATT=##
if ["$1" = "true"]; then
echo $ON_BATT > /sys/class/backlight/<device directory>/brightness
fi
if ["$1" = "false"]; then
echo $ON_AC > /sys/class/backlight/<device directory>/brightness
fi
exit 0
I kept it simple because (hopefully) it is a temporary solution. You must manually set your desired values in the two variables above. Use the slider in the "Screen" settings gui to set your desired brightness, then use cat /sys/class/backlight/<device directory>/brightness
to retrieve the corresponding numerical value. Substitue the name of your device's directory for <device directory>
. Do it once for AC brightness and once for battery brightness. Plug the name of your device directory and the brightness values into the script.
Save the script to a file in your home directory or wherever. I called it backlight. Make it executable with chmod a+x backlight
and install it to pm-utils with sudo install backlight /usr/lib/pm-utils/power.d/
I'm not sure how it works resuming from suspend/hibernate because I don't use it, but it works well when booting with or without ac, as well as when hotplugging the charger.
add a comment |
I tried a lot of things to no avail to get gnome-control-center in 11.10 to handle this like gnome-power-manager used to.
I decideded to create a script and install it into pm-utils.
#!/bin/sh
ON_AC=##
ON_BATT=##
if ["$1" = "true"]; then
echo $ON_BATT > /sys/class/backlight/<device directory>/brightness
fi
if ["$1" = "false"]; then
echo $ON_AC > /sys/class/backlight/<device directory>/brightness
fi
exit 0
I kept it simple because (hopefully) it is a temporary solution. You must manually set your desired values in the two variables above. Use the slider in the "Screen" settings gui to set your desired brightness, then use cat /sys/class/backlight/<device directory>/brightness
to retrieve the corresponding numerical value. Substitue the name of your device's directory for <device directory>
. Do it once for AC brightness and once for battery brightness. Plug the name of your device directory and the brightness values into the script.
Save the script to a file in your home directory or wherever. I called it backlight. Make it executable with chmod a+x backlight
and install it to pm-utils with sudo install backlight /usr/lib/pm-utils/power.d/
I'm not sure how it works resuming from suspend/hibernate because I don't use it, but it works well when booting with or without ac, as well as when hotplugging the charger.
I tried a lot of things to no avail to get gnome-control-center in 11.10 to handle this like gnome-power-manager used to.
I decideded to create a script and install it into pm-utils.
#!/bin/sh
ON_AC=##
ON_BATT=##
if ["$1" = "true"]; then
echo $ON_BATT > /sys/class/backlight/<device directory>/brightness
fi
if ["$1" = "false"]; then
echo $ON_AC > /sys/class/backlight/<device directory>/brightness
fi
exit 0
I kept it simple because (hopefully) it is a temporary solution. You must manually set your desired values in the two variables above. Use the slider in the "Screen" settings gui to set your desired brightness, then use cat /sys/class/backlight/<device directory>/brightness
to retrieve the corresponding numerical value. Substitue the name of your device's directory for <device directory>
. Do it once for AC brightness and once for battery brightness. Plug the name of your device directory and the brightness values into the script.
Save the script to a file in your home directory or wherever. I called it backlight. Make it executable with chmod a+x backlight
and install it to pm-utils with sudo install backlight /usr/lib/pm-utils/power.d/
I'm not sure how it works resuming from suspend/hibernate because I don't use it, but it works well when booting with or without ac, as well as when hotplugging the charger.
edited Mar 17 '12 at 21:33
answered Mar 17 '12 at 21:19
JoeyJoey
6112
6112
add a comment |
add a comment |
To set your brightness to dim automatically on battery power go to your System Settings (search in your dash or go to your power/settings cog), then select Screen. It will give you a slider to turn battery dimming on and off.
As for changing brightness manually, if you don't have function keys to do so you may map key combinations to do so by going to System Settings > Keyboard > Shortcuts tab, and assigning brightness a new value.
There seems to be no shortcut assignable for this in Ubuntu 12.04.
– postfuturist
Aug 8 '12 at 10:33
1
there is no setting for automatic brightness mate!
– BRKsays
Jan 13 '13 at 17:56
add a comment |
To set your brightness to dim automatically on battery power go to your System Settings (search in your dash or go to your power/settings cog), then select Screen. It will give you a slider to turn battery dimming on and off.
As for changing brightness manually, if you don't have function keys to do so you may map key combinations to do so by going to System Settings > Keyboard > Shortcuts tab, and assigning brightness a new value.
There seems to be no shortcut assignable for this in Ubuntu 12.04.
– postfuturist
Aug 8 '12 at 10:33
1
there is no setting for automatic brightness mate!
– BRKsays
Jan 13 '13 at 17:56
add a comment |
To set your brightness to dim automatically on battery power go to your System Settings (search in your dash or go to your power/settings cog), then select Screen. It will give you a slider to turn battery dimming on and off.
As for changing brightness manually, if you don't have function keys to do so you may map key combinations to do so by going to System Settings > Keyboard > Shortcuts tab, and assigning brightness a new value.
To set your brightness to dim automatically on battery power go to your System Settings (search in your dash or go to your power/settings cog), then select Screen. It will give you a slider to turn battery dimming on and off.
As for changing brightness manually, if you don't have function keys to do so you may map key combinations to do so by going to System Settings > Keyboard > Shortcuts tab, and assigning brightness a new value.
answered Nov 16 '11 at 14:01
Nathan DyerNathan Dyer
96921015
96921015
There seems to be no shortcut assignable for this in Ubuntu 12.04.
– postfuturist
Aug 8 '12 at 10:33
1
there is no setting for automatic brightness mate!
– BRKsays
Jan 13 '13 at 17:56
add a comment |
There seems to be no shortcut assignable for this in Ubuntu 12.04.
– postfuturist
Aug 8 '12 at 10:33
1
there is no setting for automatic brightness mate!
– BRKsays
Jan 13 '13 at 17:56
There seems to be no shortcut assignable for this in Ubuntu 12.04.
– postfuturist
Aug 8 '12 at 10:33
There seems to be no shortcut assignable for this in Ubuntu 12.04.
– postfuturist
Aug 8 '12 at 10:33
1
1
there is no setting for automatic brightness mate!
– BRKsays
Jan 13 '13 at 17:56
there is no setting for automatic brightness mate!
– BRKsays
Jan 13 '13 at 17:56
add a comment |
The answer above by @Joey did not worked for me, probably things have changed in 13.10 but it gave me a hint that such script might work, so i searched and found a solution in archlinux wiki Archlinux wiki
You can put following in that backlight script, make it executable and put it in /usr/lib/pm-utils/power.d/. and plus change the paths and brightness values according to your settings. i have dual graphics system, and acpi_video0 i think is my amd graphics card settings, if you have intel graphics, you can change acpi_video0 to intel_backlight, or first navigate to that directory and check what do you have, intel_backlight or acpi_video0 or something else. then you can check your brightness values in actual brightness file and maximum brightness file. and finally make sure that you have right permissions for that file.
#!/bin/bash
case $1 in
true)
echo 12 > /sys/class/backlight/acpi_video0/brightness
;;
false)
echo 100 > /sys/class/backlight/acpi_video0/brightness
;;
esac
add a comment |
The answer above by @Joey did not worked for me, probably things have changed in 13.10 but it gave me a hint that such script might work, so i searched and found a solution in archlinux wiki Archlinux wiki
You can put following in that backlight script, make it executable and put it in /usr/lib/pm-utils/power.d/. and plus change the paths and brightness values according to your settings. i have dual graphics system, and acpi_video0 i think is my amd graphics card settings, if you have intel graphics, you can change acpi_video0 to intel_backlight, or first navigate to that directory and check what do you have, intel_backlight or acpi_video0 or something else. then you can check your brightness values in actual brightness file and maximum brightness file. and finally make sure that you have right permissions for that file.
#!/bin/bash
case $1 in
true)
echo 12 > /sys/class/backlight/acpi_video0/brightness
;;
false)
echo 100 > /sys/class/backlight/acpi_video0/brightness
;;
esac
add a comment |
The answer above by @Joey did not worked for me, probably things have changed in 13.10 but it gave me a hint that such script might work, so i searched and found a solution in archlinux wiki Archlinux wiki
You can put following in that backlight script, make it executable and put it in /usr/lib/pm-utils/power.d/. and plus change the paths and brightness values according to your settings. i have dual graphics system, and acpi_video0 i think is my amd graphics card settings, if you have intel graphics, you can change acpi_video0 to intel_backlight, or first navigate to that directory and check what do you have, intel_backlight or acpi_video0 or something else. then you can check your brightness values in actual brightness file and maximum brightness file. and finally make sure that you have right permissions for that file.
#!/bin/bash
case $1 in
true)
echo 12 > /sys/class/backlight/acpi_video0/brightness
;;
false)
echo 100 > /sys/class/backlight/acpi_video0/brightness
;;
esac
The answer above by @Joey did not worked for me, probably things have changed in 13.10 but it gave me a hint that such script might work, so i searched and found a solution in archlinux wiki Archlinux wiki
You can put following in that backlight script, make it executable and put it in /usr/lib/pm-utils/power.d/. and plus change the paths and brightness values according to your settings. i have dual graphics system, and acpi_video0 i think is my amd graphics card settings, if you have intel graphics, you can change acpi_video0 to intel_backlight, or first navigate to that directory and check what do you have, intel_backlight or acpi_video0 or something else. then you can check your brightness values in actual brightness file and maximum brightness file. and finally make sure that you have right permissions for that file.
#!/bin/bash
case $1 in
true)
echo 12 > /sys/class/backlight/acpi_video0/brightness
;;
false)
echo 100 > /sys/class/backlight/acpi_video0/brightness
;;
esac
edited Oct 4 '14 at 19:49
answered Feb 22 '14 at 16:09
weduwedu
270520
270520
add a comment |
add a comment |
Open your Terminal and type xgamma -gamma
followed by a value. Normal brightness is 1, so you can set 1.2 or 1.3 if you want to make it brighter, or .5 or 0.75 if you want to make it dimmer.
2
I want automatic brightness changes when switch AC/battery
– ZhEKa
Nov 16 '11 at 7:33
add a comment |
Open your Terminal and type xgamma -gamma
followed by a value. Normal brightness is 1, so you can set 1.2 or 1.3 if you want to make it brighter, or .5 or 0.75 if you want to make it dimmer.
2
I want automatic brightness changes when switch AC/battery
– ZhEKa
Nov 16 '11 at 7:33
add a comment |
Open your Terminal and type xgamma -gamma
followed by a value. Normal brightness is 1, so you can set 1.2 or 1.3 if you want to make it brighter, or .5 or 0.75 if you want to make it dimmer.
Open your Terminal and type xgamma -gamma
followed by a value. Normal brightness is 1, so you can set 1.2 or 1.3 if you want to make it brighter, or .5 or 0.75 if you want to make it dimmer.
edited 11 hours ago
Eric Carvalho
42k17115147
42k17115147
answered Nov 16 '11 at 6:08
Satchit BhogleSatchit Bhogle
484620
484620
2
I want automatic brightness changes when switch AC/battery
– ZhEKa
Nov 16 '11 at 7:33
add a comment |
2
I want automatic brightness changes when switch AC/battery
– ZhEKa
Nov 16 '11 at 7:33
2
2
I want automatic brightness changes when switch AC/battery
– ZhEKa
Nov 16 '11 at 7:33
I want automatic brightness changes when switch AC/battery
– ZhEKa
Nov 16 '11 at 7:33
add a comment |
You don't say you've tried the obvious, so just in case ...
Does you machine have Fn keys to do that? On mine it's Fn-up and Fn-down to adjust brightness.
Try it, it might even work! ;)
1
-1, for two reasons: snarky answers are not appreciated, and secondly, there is a comment on the other answer that explains that isn't wha the question is about.
– jrg♦
Nov 16 '11 at 12:36
Ok, just seen the comment about wanting it automated. Ignore me, I need to read more before typing .... and yes, the settings have vanished with Gnome3 (or is it Unity?)
– ams
Nov 16 '11 at 12:38
They haven't been removed, gnome simply moved them. This question is a duplicate of this one: askubuntu.com/questions/33457/…
– jrg♦
Nov 16 '11 at 12:41
Yes, Fn keys are work, but why don't work old Gnome setting that works fine in 11.04? And How to set same options in curent 11.10 Unity?
– ZhEKa
Nov 16 '11 at 12:48
add a comment |
You don't say you've tried the obvious, so just in case ...
Does you machine have Fn keys to do that? On mine it's Fn-up and Fn-down to adjust brightness.
Try it, it might even work! ;)
1
-1, for two reasons: snarky answers are not appreciated, and secondly, there is a comment on the other answer that explains that isn't wha the question is about.
– jrg♦
Nov 16 '11 at 12:36
Ok, just seen the comment about wanting it automated. Ignore me, I need to read more before typing .... and yes, the settings have vanished with Gnome3 (or is it Unity?)
– ams
Nov 16 '11 at 12:38
They haven't been removed, gnome simply moved them. This question is a duplicate of this one: askubuntu.com/questions/33457/…
– jrg♦
Nov 16 '11 at 12:41
Yes, Fn keys are work, but why don't work old Gnome setting that works fine in 11.04? And How to set same options in curent 11.10 Unity?
– ZhEKa
Nov 16 '11 at 12:48
add a comment |
You don't say you've tried the obvious, so just in case ...
Does you machine have Fn keys to do that? On mine it's Fn-up and Fn-down to adjust brightness.
Try it, it might even work! ;)
You don't say you've tried the obvious, so just in case ...
Does you machine have Fn keys to do that? On mine it's Fn-up and Fn-down to adjust brightness.
Try it, it might even work! ;)
answered Nov 16 '11 at 12:33
amsams
2,4101226
2,4101226
1
-1, for two reasons: snarky answers are not appreciated, and secondly, there is a comment on the other answer that explains that isn't wha the question is about.
– jrg♦
Nov 16 '11 at 12:36
Ok, just seen the comment about wanting it automated. Ignore me, I need to read more before typing .... and yes, the settings have vanished with Gnome3 (or is it Unity?)
– ams
Nov 16 '11 at 12:38
They haven't been removed, gnome simply moved them. This question is a duplicate of this one: askubuntu.com/questions/33457/…
– jrg♦
Nov 16 '11 at 12:41
Yes, Fn keys are work, but why don't work old Gnome setting that works fine in 11.04? And How to set same options in curent 11.10 Unity?
– ZhEKa
Nov 16 '11 at 12:48
add a comment |
1
-1, for two reasons: snarky answers are not appreciated, and secondly, there is a comment on the other answer that explains that isn't wha the question is about.
– jrg♦
Nov 16 '11 at 12:36
Ok, just seen the comment about wanting it automated. Ignore me, I need to read more before typing .... and yes, the settings have vanished with Gnome3 (or is it Unity?)
– ams
Nov 16 '11 at 12:38
They haven't been removed, gnome simply moved them. This question is a duplicate of this one: askubuntu.com/questions/33457/…
– jrg♦
Nov 16 '11 at 12:41
Yes, Fn keys are work, but why don't work old Gnome setting that works fine in 11.04? And How to set same options in curent 11.10 Unity?
– ZhEKa
Nov 16 '11 at 12:48
1
1
-1, for two reasons: snarky answers are not appreciated, and secondly, there is a comment on the other answer that explains that isn't wha the question is about.
– jrg♦
Nov 16 '11 at 12:36
-1, for two reasons: snarky answers are not appreciated, and secondly, there is a comment on the other answer that explains that isn't wha the question is about.
– jrg♦
Nov 16 '11 at 12:36
Ok, just seen the comment about wanting it automated. Ignore me, I need to read more before typing .... and yes, the settings have vanished with Gnome3 (or is it Unity?)
– ams
Nov 16 '11 at 12:38
Ok, just seen the comment about wanting it automated. Ignore me, I need to read more before typing .... and yes, the settings have vanished with Gnome3 (or is it Unity?)
– ams
Nov 16 '11 at 12:38
They haven't been removed, gnome simply moved them. This question is a duplicate of this one: askubuntu.com/questions/33457/…
– jrg♦
Nov 16 '11 at 12:41
They haven't been removed, gnome simply moved them. This question is a duplicate of this one: askubuntu.com/questions/33457/…
– jrg♦
Nov 16 '11 at 12:41
Yes, Fn keys are work, but why don't work old Gnome setting that works fine in 11.04? And How to set same options in curent 11.10 Unity?
– ZhEKa
Nov 16 '11 at 12:48
Yes, Fn keys are work, but why don't work old Gnome setting that works fine in 11.04? And How to set same options in curent 11.10 Unity?
– ZhEKa
Nov 16 '11 at 12:48
add a comment |
You can try this in Ubuntu 11.10:
Add this code
("echo 10 > /sys/class/backlight/acpi_video1/brightness" and "echo 5 > /sys/class/backlight/acpi_video1/brightness", without " ") in /usr/lib/pm-utils/power.d/laptop-mode
laptop_mode_ac() {
# disable laptop mode, set vm parameters back to sane defaults
if state_exists laptop_mode_default; then
write_values $(restorestate laptop_mode_default)
else
write_values 0 10 5 500
fi
echo "Laptop mode disabled."
echo 10 > /sys/class/backlight/acpi_video1/brightness
}
laptop_mode_battery() {
# enable laptop mode, set vm parameters to buffer as many writes as
# possible.
state_exists laptop_mode_default ||
read_values | savestate laptop_mode_default
write_values "$LAPTOP_MODE" "$LAPTOP_DIRTY_RATIO"
"$LAPTOP_DIRTY_BG_RATIO" "$LAPTOP_DIRTY_WRITEBACK"
echo "Laptop mode enabled."
echo 5 > /sys/class/backlight/acpi_video1/brightness
}
add a comment |
You can try this in Ubuntu 11.10:
Add this code
("echo 10 > /sys/class/backlight/acpi_video1/brightness" and "echo 5 > /sys/class/backlight/acpi_video1/brightness", without " ") in /usr/lib/pm-utils/power.d/laptop-mode
laptop_mode_ac() {
# disable laptop mode, set vm parameters back to sane defaults
if state_exists laptop_mode_default; then
write_values $(restorestate laptop_mode_default)
else
write_values 0 10 5 500
fi
echo "Laptop mode disabled."
echo 10 > /sys/class/backlight/acpi_video1/brightness
}
laptop_mode_battery() {
# enable laptop mode, set vm parameters to buffer as many writes as
# possible.
state_exists laptop_mode_default ||
read_values | savestate laptop_mode_default
write_values "$LAPTOP_MODE" "$LAPTOP_DIRTY_RATIO"
"$LAPTOP_DIRTY_BG_RATIO" "$LAPTOP_DIRTY_WRITEBACK"
echo "Laptop mode enabled."
echo 5 > /sys/class/backlight/acpi_video1/brightness
}
add a comment |
You can try this in Ubuntu 11.10:
Add this code
("echo 10 > /sys/class/backlight/acpi_video1/brightness" and "echo 5 > /sys/class/backlight/acpi_video1/brightness", without " ") in /usr/lib/pm-utils/power.d/laptop-mode
laptop_mode_ac() {
# disable laptop mode, set vm parameters back to sane defaults
if state_exists laptop_mode_default; then
write_values $(restorestate laptop_mode_default)
else
write_values 0 10 5 500
fi
echo "Laptop mode disabled."
echo 10 > /sys/class/backlight/acpi_video1/brightness
}
laptop_mode_battery() {
# enable laptop mode, set vm parameters to buffer as many writes as
# possible.
state_exists laptop_mode_default ||
read_values | savestate laptop_mode_default
write_values "$LAPTOP_MODE" "$LAPTOP_DIRTY_RATIO"
"$LAPTOP_DIRTY_BG_RATIO" "$LAPTOP_DIRTY_WRITEBACK"
echo "Laptop mode enabled."
echo 5 > /sys/class/backlight/acpi_video1/brightness
}
You can try this in Ubuntu 11.10:
Add this code
("echo 10 > /sys/class/backlight/acpi_video1/brightness" and "echo 5 > /sys/class/backlight/acpi_video1/brightness", without " ") in /usr/lib/pm-utils/power.d/laptop-mode
laptop_mode_ac() {
# disable laptop mode, set vm parameters back to sane defaults
if state_exists laptop_mode_default; then
write_values $(restorestate laptop_mode_default)
else
write_values 0 10 5 500
fi
echo "Laptop mode disabled."
echo 10 > /sys/class/backlight/acpi_video1/brightness
}
laptop_mode_battery() {
# enable laptop mode, set vm parameters to buffer as many writes as
# possible.
state_exists laptop_mode_default ||
read_values | savestate laptop_mode_default
write_values "$LAPTOP_MODE" "$LAPTOP_DIRTY_RATIO"
"$LAPTOP_DIRTY_BG_RATIO" "$LAPTOP_DIRTY_WRITEBACK"
echo "Laptop mode enabled."
echo 5 > /sys/class/backlight/acpi_video1/brightness
}
edited Nov 9 '12 at 5:10
Peachy
5,03672843
5,03672843
answered Apr 9 '12 at 18:14
Dani BernacheaDani Bernachea
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f79730%2fhow-can-i-adjust-brightness-settings-when-i-am-on-battery%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
possible duplicate of Always be 100% bright when I'm using battery
– jrg♦
Nov 16 '11 at 12:40
Possible duplicate - however, it could be merely "related".
– jrg♦
Nov 16 '11 at 12:42