Brightness

13 Antworten [Letzter Beitrag]
Aniyan Rajan
Offline
Beigetreten: 05/15/2012

Hello,

I'm using Tisquel Slaine in my laptop computer. How can I disable the
screen dim when on battery ? I have tried many methods and not working.

I have commented the following line in the file
/usr/lib/pm-utils/power.d/laptop-mode. But it is not working.

true) laptop_mode_battery ;;
>

So it there any Trisquel specific way to do it ? I need a command-line
method (editing the settings file), as I need to store the settings
permanently in the squashfs.

Thanks,
Aniyan

lembas
Offline
Beigetreten: 05/13/2010

Does your hardware (BIOS + video card) allow controlling brightness by software? Try the brightness applet, does it work?

On my laptop this is not possible at all. The laptop remembers itself the brightness levels, one with and one without the battery, so in practice, it's likely that every time you remove the cord, brightness will change semi-randomly. There's no way to program any logic. And yes, it is very annoying.

Aniyan Rajan
Offline
Beigetreten: 05/15/2012

>
> Does your hardware (BIOS + video card) allow controlling brightness by
> software? Try the brightness applet, does it work?
>
>
I'm able to control the brightness. But that is not something that I want
to achieve. I want to disable the screen dimming (brightness reducing)
feature, when the laptop is on battery. So that the brightness value will
be the same all the time.

Some one please help.

Thanks,

lembas
Offline
Beigetreten: 05/13/2010

Then try

gsettings set org.gnome.settings-daemon.plugins.power idle-dim-battery "false"

and if it works you'll want to test whether that survives a restart.

Aniyan Rajan
Offline
Beigetreten: 05/15/2012

> Try
>
> gsettings set org.gnome.settings-daemon.**plugins.power idle-dim-battery
> "false"
>
> and if it works you'll want to test whether that survives a restart.
>

I tried this and got the following error

GLib-GIO-ERROR **: Settings schema
'org.gnome.settings-daemon.plugins.power' is not installed

aborting...
Aborted

Aniyan Rajan
Offline
Beigetreten: 05/15/2012

I have installed gnome-settings-daemon and tried again. Still showing the
same error.

Is there any other way to do this? Like editing a settings file ?

Thanks,

On Tue, May 15, 2012 at 9:43 PM, Aniyan Rajan <name at domain>wrote:

>
> Try
>>
>> gsettings set org.gnome.settings-daemon.**plugins.power idle-dim-battery
>> "false"
>>
>> and if it works you'll want to test whether that survives a restart.
>>
>
> I tried this and got the following error
>
> GLib-GIO-ERROR **: Settings schema
> 'org.gnome.settings-daemon.plugins.power' is not installed
>
> aborting...
> Aborted
>
>

lembas
Offline
Beigetreten: 05/13/2010

Ah, I forgot you said you're on Slaine, sorry. You need to run gconf-editor (from gconf-editor package) and search for for 'dim'. Then toggle the relevant key's value from true to false.

I think Slaine is end-of-lifed, and won't be getting any more security patches. I suggest you upgrade as soon as possible.

Aniyan Rajan
Offline
Beigetreten: 05/15/2012

> Ah, I forgot you said you're on Slaine, sorry. You need to run
> gconf-editor (from gconf-editor package) and search for for 'dim'. Then
> toggle the relevant key's value from true to false.
>

Can you tell me a command line way of doing it, as I'm in a chroot
environment ?

Thanks

lembas
Offline
Beigetreten: 05/13/2010

I believe it's

gconftool --set --type bool /apps/gnome-power-manager/backlight/idle_dim_battery false

Aniyan Rajan
Offline
Beigetreten: 05/15/2012

I ran the following command and made the gconftool working as per
https://bugs.launchpad.net/qbzr/+bug/694279

#unset DBUS_SESSION_BUS_ADDRESS

But still the brightness changes, immediately when the AC is turned off.

Also I found that the value of idle_dim_battery is not changed in the file
/usr/share/gconf/schemas/gnome-power-manager.schemas

So I changed it to false manually. I also changed some of the values of the
tags related to the battery. But still not able to achieve the desired
result.

Please help.

Thanks.

On Wed, May 16, 2012 at 8:37 PM, <name at domain>wrote:

> I believe it's
>
> gconftool --set --type bool /apps/gnome-power-manager/**backlight/idle_dim_battery
> false
>

lembas
Offline
Beigetreten: 05/13/2010

I believe it's

gconftool --set --type bool
/apps/gnome-power-manager/backlight/idle_dim_battery false

lembas
Offline
Beigetreten: 05/13/2010

Ah, I forgot you said you're on Slaine, sorry. You need to run gconf-editor
(from gconf-editor package) and search for for 'dim'. Then toggle the
relevant key's value from true to false.

lembas
Offline
Beigetreten: 05/13/2010

Try

gsettings set org.gnome.settings-daemon.plugins.power idle-dim-battery
"false"

and if it works you'll want to test whether that survives a restart.

lembas
Offline
Beigetreten: 05/13/2010

Does your hardware (BIOS + video card) allow controlling brightness by
software? Try the brightness applet, does it work?

On my laptop this is not possible at all. The laptop remembers itself the
brightness levels, either with or without battery, so in practice, it's
likely that every time you remove the cord, brightness will change
semi-randomly. There's no way to program any logic. And yes, it is very
annoying.