You are not logged in.

#1 2012-05-14 04:56:18

archkid420
Member
Registered: 2012-05-13
Posts: 20

[SOLVED] Screen Brightness

This is not really a laptop issue but...
Every time i boot i have to set the brightness down (cuz it hurts my eyes)
So i was wondering, how can i have the brightness at a certain level every time i boot instead of having to set it my self?

I run arch with gnome btw...

Last edited by archkid420 (2012-05-14 13:30:04)


[Arch64 | awesome]

Offline

#2 2012-05-14 05:38:55

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Screen Brightness

Your monitor doesn't have a physical button to set the brightness?

Offline

#3 2012-05-14 06:19:59

FreeTheBee
Member
Registered: 2011-01-02
Posts: 125

Re: [SOLVED] Screen Brightness

You could load xbacklight during startup and have it lower the brightness a bit.

Offline

#4 2012-05-14 06:58:10

Dustbin
Member
From: The Netherlands
Registered: 2011-12-07
Posts: 124

Re: [SOLVED] Screen Brightness

What video card do you have?

I had a similar problem when I installed Arch and that was that the brightness was turned all the way down to 0 on boot. Very annoying, as I couldn't see anything anymore...

I solved it by adding

echo X > /sys/class/intel_backlight/brightness

to my /etc/rc.local, where X is the value I wanted.


If the Matrix was real, it would run on Arch...

Offline

#5 2012-05-14 09:12:10

Yurlungur
Member
From: USA
Registered: 2012-01-06
Posts: 116

Re: [SOLVED] Screen Brightness

Check out the power management page on the wiki. It tells you the command line commands for screen brightness. Then make a .desktop file that gnome will see on startup with the requisite commands. Or can you use .xinitrc? I'm not sure on this one.

EDIT: Oops! Sorry! Dustbin totally said the same thing first. Sorry!

Last edited by Yurlungur (2012-05-14 09:12:51)


Lenovo Thinkpad T420; Intel sandy bridge i7 2.7GHz; integrated graphics card; 4GB RAM; wifi; Arch; Xmonad WM

Offline

#6 2012-05-14 13:29:32

archkid420
Member
Registered: 2012-05-13
Posts: 20

Re: [SOLVED] Screen Brightness

Dustbin wrote:

I solved it by adding

echo X > /sys/class/intel_backlight/brightness

to my /etc/rc.local, where X is the value I wanted.

Thanks big_smile


[Arch64 | awesome]

Offline

#7 2012-05-24 16:36:06

gxchen01
Member
From: Hangzhou
Registered: 2012-05-23
Posts: 1

Re: [SOLVED] Screen Brightness

Dustbin wrote:

What video card do you have?

I had a similar problem when I installed Arch and that was that the brightness was turned all the way down to 0 on boot. Very annoying, as I couldn't see anything anymore...

I solved it by adding

echo X > /sys/class/intel_backlight/brightness

to my /etc/rc.local, where X is the value I wanted.

It does work!!
But if I want to remember my last setting(the brightness value when I shut down my laptop), just as in windows xp/7, how can I do ??

Last edited by gxchen01 (2012-05-24 16:36:39)

Offline

#8 2012-05-24 17:40:35

tydell
Member
From: actually: Hannover, DE
Registered: 2009-07-26
Posts: 109
Website

Re: [SOLVED] Screen Brightness

Dustbin wrote:

What video card do you have?

I had a similar problem when I installed Arch and that was that the brightness was turned all the way down to 0 on boot. Very annoying, as I couldn't see anything anymore...

I solved it by adding

echo X > /sys/class/intel_backlight/brightness

to my /etc/rc.local, where X is the value I wanted.

It works, but if I do it that way, then I can't change brightness via xbacklight or Fn keys on laptop keyboard

Offline

#9 2012-05-24 17:42:40

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: [SOLVED] Screen Brightness

put in /etc/rc.local.shutdown some lines to store your last brightness into a file (/home/yourusername/brightness) , then in /etc/rc.local you have to load that number again.

Offline

#10 2012-05-24 17:51:43

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: [SOLVED] Screen Brightness

something like:
rc.local.shutdown:

echo "$(cat /sys/class/backlight/intel_backlight/brightness)" > /home/USER/brightness

rc.local:

echo "$(cat /home/USER/brightness)" > /sys/class/backlight/intel_backlight/brightness

Tell me if it works!

Last edited by nierro (2012-05-24 18:08:30)

Offline

Board footer

Powered by FluxBB