Author Topic: How to lighten display - using LXDE  (Read 1729 times)

Offline silverbirch

  • Sr. Member
  • ****
  • Posts: 370
How to lighten display - using LXDE
« on: September 21, 2010, 04:04:38 AM »
I'm not sure where to put this question.  It may even be a problem specific to the laptop.

NEC Versa E2000 which a colleague gave me to try sort a Windows issue which was irretrievable, so it now has LXDE on it.  I've noticed with every distro I've tried that it is quite dark.  I'm a Pclos user so came back to LXDE even although I use KDE myself.  The laptop only has 256 memory so KDE not an option.

I've looked around in the menus but no luck so far .. it is readable though, and usable.

Thanks
Pclinuxos 2010.1 KDE on AMD Athlon XP (runs as1.8 Ghz), 1 G memory, on board VIA graphics and sound

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11587
  • ----IOFLU----
Re: How to lighten display - using LXDE
« Reply #1 on: September 21, 2010, 04:59:14 AM »
I'm not sure where to put this question.  It may even be a problem specific to the laptop.

NEC Versa E2000 which a colleague gave me to try sort a Windows issue which was irretrievable, so it now has LXDE on it.  I've noticed with every distro I've tried that it is quite dark.  I'm a Pclos user so came back to LXDE even although I use KDE myself.  The laptop only has 256 memory so KDE not an option.

I've looked around in the menus but no luck so far .. it is readable though, and usable.

Thanks

In synaptic, in the Search box, enter           gamma             then click the Search button. Take note of the packages xgamma and gammapage. Gammapage is a GUI app, while xgamma is CLI. Gammapage shows the commands as one adjusts the settings, and they are all xgamma commands, so it's safe to say it is a GUI front end for xgamma. I don't know if gammapage pulls in xgamma automatically, but it should. I already had xgamma installed when I installed gammapage to test it just now. It looks to be exactly what you are looking for, as it's DE agnostic.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: How to lighten display - using LXDE
« Reply #2 on: September 21, 2010, 05:11:06 AM »
Hi,
 
You can also try this for an immediate effect : press Fn key along with a FX key where 'X' is is one of the F1-F12 keys. Look at the little drawing on theses keys.... with a light on it.

I have a Nec Versa M160, and a T30, both uses this, and I'm going to try Old Polack's suggest packages right away because it would be nice if the setting could hold from one session to the other !

Thanks !

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11587
  • ----IOFLU----
Re: How to lighten display - using LXDE
« Reply #3 on: September 21, 2010, 05:33:37 AM »
Hi,
 
You can also try this for an immediate effect : press Fn key along with a FX key where 'X' is is one of the F1-F12 keys. Look at the little drawing on theses keys.... with a light on it.

I have a Nec Versa M160, and a T30, both uses this, and I'm going to try Old Polack's suggest packages right away because it would be nice if the setting could hold from one session to the other !

Thanks !



A gamma-adjusting utility for your monitor. Written in Python using GTK and pyGTK.
Able to adjust gamma on the fly and save settings to be used at each login (on a per-user basis.
GAMMApage will only write to the user's home directory.
)
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: How to lighten display - using LXDE
« Reply #4 on: September 21, 2010, 06:22:19 AM »
A gamma-adjusting utility for your monitor. Written in Python using GTK and pyGTK.
Able to adjust gamma on the fly and save settings to be used at each login (on a per-user basis.
GAmMMApage will only write to the user's home directory.
)

Humm... I just gave it a try, and the program stated it failed to save to .bash_profile. The perms for this file is 644. Do you have any thoughts on it ?

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11587
  • ----IOFLU----
Re: How to lighten display - using LXDE
« Reply #5 on: September 21, 2010, 07:05:19 AM »
A gamma-adjusting utility for your monitor. Written in Python using GTK and pyGTK.
Able to adjust gamma on the fly and save settings to be used at each login (on a per-user basis.
GAmMMApage will only write to the user's home directory.
)

Humm... I just gave it a try, and the program stated it failed to save to .bash_profile. The perms for this file is 644. Do you have any thoughts on it ?

Mine saves fine.

# .bash_profile
if [ -x $HOME/.gammapagerc ]; then
    $HOME/.gammapagerc   #monitor calibration
fi # end gammapage


# Get the aliases and functions
if [ -f ~/.bashrc ]; then
   . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: How to lighten display - using LXDE
« Reply #6 on: September 21, 2010, 07:30:24 AM »

Mine saves fine.

# .bash_profile
if [ -x $HOME/.gammapagerc ]; then
    $HOME/.gammapagerc   #monitor calibration
fi # end gammapage


# Get the aliases and functions
if [ -f ~/.bashrc ]; then
   . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME


I don't understand very well the shell scripts... what will happen if I coppy the specific part from your's, knowing that my ~/.gammapagerc contains at the moment, this ?

Code: [Select]
$ cat .gammapagerc
xgamma -rgamma 1.54 -ggamma 1.54 -bgamma 1.54 2> /dev/null # called from /home/melodie/.bash_profile[

?

Thanks.

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11587
  • ----IOFLU----
Re: How to lighten display - using LXDE
« Reply #7 on: September 21, 2010, 07:40:33 AM »

Mine saves fine.

# .bash_profile
if [ -x $HOME/.gammapagerc ]; then
    $HOME/.gammapagerc   #monitor calibration
fi # end gammapage


# Get the aliases and functions
if [ -f ~/.bashrc ]; then
   . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME


I don't understand very well the shell scripts... what will happen if I coppy the specific part from your's, knowing that my ~/.gammapagerc contains at the moment, this ?

Code: [Select]
$ cat .gammapagerc
xgamma -rgamma 1.54 -ggamma 1.54 -bgamma 1.54 2> /dev/null # called from /home/melodie/.bash_profile[

?

Thanks.

When your .bash_profile is sourced, it will in turn source your .gammapagerc, and will implement the instructions written there.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: How to lighten display - using LXDE
« Reply #8 on: September 21, 2010, 08:12:19 AM »
Ahem !

 :o

Quote
$ source .bash_profile

$ cat .bash_profile
# .bash_profile generated by gammapage

$ cd /etc/skel/
$ cat .bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME

# [added_by_addlocale]
export LC_TELEPHONE=fr_FR.UTF-8
export LC_CTYPE=fr_FR.UTF-8
export LANGUAGE=fr_FR.UTF-8:fr:en_US:en
export LC_MONETARY=fr_FR.UTF-8
export LC_ADDRESS=fr_FR.UTF-8
export LC_COLLATE=fr_FR.UTF-8
export LC_PAPER=fr_FR.UTF-8
export LC_NAME=fr_FR.UTF-8
export LC_NUMERIC=fr_FR.UTF-8
export SYSFONT=lat0-16
export GP_LANGUAGE=fr
export LC_MEASUREMENT=fr_FR.UTF-8
export LC_TIME=fr_FR.UTF-8
export LANG=fr_FR.UTF-8
export LC_IDENTIFICATION=fr_FR.UTF-8
export LC_MESSAGES=fr_FR.UTF-8
export LC_ALL=
export GDM_LANG=fr_FR.UTF-8

$

One more export line to restore it and I'll be done. I'll stop playing with that...

Any other program you know that could fix the level of light once setup with the keyboard ? :)

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11587
  • ----IOFLU----
Re: How to lighten display - using LXDE
« Reply #9 on: September 21, 2010, 08:26:03 AM »
Ahem !

 :o

Quote
$ source .bash_profile

$ cat .bash_profile
# .bash_profile generated by gammapage

$ cd /etc/skel/
$ cat .bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME

# [added_by_addlocale]
export LC_TELEPHONE=fr_FR.UTF-8
export LC_CTYPE=fr_FR.UTF-8
export LANGUAGE=fr_FR.UTF-8:fr:en_US:en
export LC_MONETARY=fr_FR.UTF-8
export LC_ADDRESS=fr_FR.UTF-8
export LC_COLLATE=fr_FR.UTF-8
export LC_PAPER=fr_FR.UTF-8
export LC_NAME=fr_FR.UTF-8
export LC_NUMERIC=fr_FR.UTF-8
export SYSFONT=lat0-16
export GP_LANGUAGE=fr
export LC_MEASUREMENT=fr_FR.UTF-8
export LC_TIME=fr_FR.UTF-8
export LANG=fr_FR.UTF-8
export LC_IDENTIFICATION=fr_FR.UTF-8
export LC_MESSAGES=fr_FR.UTF-8
export LC_ALL=
export GDM_LANG=fr_FR.UTF-8

$

One more export line to restore it and I'll be done. I'll stop playing with that...

Any other program you know that could fix the level of light once setup with the keyboard ? :)



I don't even know what you are trying to show me.  ???
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: How to lighten display - using LXDE
« Reply #10 on: September 21, 2010, 08:36:57 AM »

I don't even know what you are trying to show me.  ???

You said:
"When your .bash_profile is sourced, it will in turn source your .gammapagerc, and will implement the instructions written there."

So I tried to source it. And the result was not what I expected.

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11587
  • ----IOFLU----
Re: How to lighten display - using LXDE
« Reply #11 on: September 21, 2010, 09:48:04 AM »

I don't even know what you are trying to show me.  ???

You said:
"When your .bash_profile is sourced, it will in turn source your .gammapagerc, and will implement the instructions written there."

So I tried to source it. And the result was not what I expected.


You don't source it, the system does. If you try, you should get a TMOUT: error. Duplicating your commands:

[polack@littleboy ~]$ source .bash_profile
bash: TMOUT: readonly variable
[polack@littleboy ~]$ cat .bash_profile
# .bash_profile
if [ -x $HOME/.gammapagerc ]; then
    $HOME/.gammapagerc   #monitor calibration
fi # end gammapage

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME

If I try to source the old backup without the gammapager stuff;

[polack@littleboy ~]$ source .bash_profile.bak
bash: TMOUT: readonly variable
[polack@littleboy ~]$ cat .bash_profile.bak
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME

The results are the same, and have nothing to do with how, or even if, gammapager wrote to it.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: How to lighten display - using LXDE
« Reply #12 on: September 21, 2010, 10:21:38 AM »
Hi,

What rights are on this file in your system ? 400 ? (r-------- ?) or 440 ?

Thank you.
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11587
  • ----IOFLU----
Re: How to lighten display - using LXDE
« Reply #13 on: September 21, 2010, 12:20:11 PM »
Hi,

What rights are on this file in your system ? 400 ? (r-------- ?) or 440 ?

Thank you.


[polack@littleboy ~]$ ls -la |grep .bash
-rw-------   1 polack polack    24602 2010-09-21 09:40 .bash_history
-rw-r--r--   1 polack polack       24 2010-01-17 23:49 .bash_logout
-rw-rw-r--   1 polack polack      291 2010-09-21 08:01 .bash_profile
-rw-rw-r--   1 polack polack      191 2010-09-21 08:01 .bash_profile.bak
-rw-rw-r--   1 polack polack      759 2010-08-14 17:47 .bashrc
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: How to lighten display - using LXDE
« Reply #14 on: September 21, 2010, 01:18:50 PM »
Thank you very much.

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode