Topic: [SOLVED]Default Screen Brightness

Hello,

I am starting to appreciate the efficiency of #!.

However there is a little hurdle because I am not that experienced in Linux.
xfce power manager does not have adjustment for default screen brightness at boot-up.
When my laptop boots to #! the screen brightness is at 100%.

The Fn key brightness up/brightness down works, but i migrated from Ubuntu/Mint.
I can set the default brightness to lowest using gnome-power-manager at ubuntu.

How do I go about doing this in #!? I installed gnome-power-manager but the screen brightness is still at 100%

Last edited by HeplocK (2011-09-02 08:48:03)

Re: [SOLVED]Default Screen Brightness

Hello,

sudo apt-get install xbacklight

and then you can use xbacklight -dec 10 and xbacklight -inc 10 to de-/increase the LCD brightness. Route them to a key in openbox's rc.xml ("keybindings" section). If you need help, let us know. First try if the command works in e terminal.

Nothing right in the left brain. Nothing left in the right brain.

Re: [SOLVED]Default Screen Brightness

Thanks a lot machinebacon.

I followed the method you stated and it works perfectly.

I just want to know how to run it automatically so I don't have to press the hotkey everytime I boot.

Last edited by HeplocK (2011-09-02 08:07:51)

Re: [SOLVED]Default Screen Brightness

put the line in your autostart.sh file which you find in the right click menu -> Settings -> Openbox Config -> edit autostart.sh

important: append a & behind it (ampersand) - just like with all other commands in the autostart file. Ex.:

xbacklight -dec 10 &
Nothing right in the left brain. Nothing left in the right brain.

Re: [SOLVED]Default Screen Brightness

You are a big help man.

That is what I am looking for.
So I guess the autostart.sh edit negates the need for the rc.xml edit.

Hurdle conquered. Thanks.

Re: [SOLVED]Default Screen Brightness

^ If your hotkeys work, you don't need to bother yourself with the rc.xml, right.

Glad it works, have fun with #!

Nothing right in the left brain. Nothing left in the right brain.

Re: [SOLVED]Default Screen Brightness

Hello machinebacon, when i try this, I get:

$ xbacklight -get
No outputs have backlight property

How can I fix this?

EDIT: i found "setpci -s $DEVICE F4.B=<your brightness level>" on the arch forums, how can i find my device, and what is the value for the brightness level?

Last edited by El_Belgicano (2011-09-02 12:58:30)

Re: [SOLVED]Default Screen Brightness

^ Hello, El_Belgicano, setpci -s 00:02.0 F4.B=0 disables, setpci -s 00:02.0 F4.B=255 is the brightest (highest level)

As for why the outputs are not recognized: this might be because of the DDC value (if I remember right, that's a kind of value which the monitor sends back to the system, so that the X-server can detect the right display). I would have to dig into this before I can tell you details, it is just a (hot) guess

Last edited by machinebacon (2011-09-02 14:35:55)

Nothing right in the left brain. Nothing left in the right brain.

Re: [SOLVED]Default Screen Brightness

Hi again, i tried the setpci method, the range of values is actually 0-99, setpci reports 100 and higher as "out of range". But that's not the real problem, I didn't even see a change when trying... Any idea about what could be conflicting?

Re: [SOLVED]Default Screen Brightness

lspci -nn | grep VGA please, and check the numbers (before the VGA compatible controller...)

Edit: what’s your computer model?

Last edited by machinebacon (2011-09-02 19:44:31)

Nothing right in the left brain. Nothing left in the right brain.

Re: [SOLVED]Default Screen Brightness

Already checked these value, 01:00.0 is the one, but still...

01:00.0 VGA compatible controller [0300]: ATI Technologies Inc Manhattan [Mobility Radeon HD 5000 Series] [1002:68e0]

Re: [SOLVED]Default Screen Brightness

http://www.x.org/wiki/radeonhd says XORG's radeonhd should be compatible with xbacklight v.1.1.1 (apt-cache policy xbacklight)

Nothing right in the left brain. Nothing left in the right brain.