You are not logged in.

#1 2010-09-19 00:02:57

BaconPie
Member
Registered: 2010-08-11
Posts: 209

Changing brightness

I have an NVidia GTX260 with a Samsung monitor and I'm trying to lower the brightness of it. When the room is dark it really stings my eyes.

I'd like to do this from within my computer and not on the screen.

$ xbacklight
No outputs have backlight property

$ lspci | grep -i vga
01:00.0 VGA compatible controller: nVidia Corporation GT200 [GeForce GTX 260] (rev a1)

]$ ls -l /proc/acpi/
total 0
dr-xr-xr-x 3 root root 0 Sep 19 01:02 button
-r-------- 1 root root 0 Sep 19 01:02 dsdt
dr-xr-xr-x 2 root root 0 Sep 19 01:02 embedded_controller
-r-------- 1 root root 0 Sep 19 01:02 event
-r-------- 1 root root 0 Sep 19 01:02 fadt
dr-xr-xr-x 3 root root 0 Sep 19 01:02 fan
-r--r--r-- 1 root root 0 Sep 19 01:02 info
dr-xr-xr-x 2 root root 0 Sep 19 01:02 power_resource
dr-xr-xr-x 6 root root 0 Sep 19 01:02 processor
-rw-r--r-- 1 root root 0 Sep 19 01:02 sleep
dr-xr-xr-x 3 root root 0 Sep 19 01:02 thermal_zone
-rw-r--r-- 1 root root 0 Sep 19 01:02 wakeup

Any help would be appreciated. Thanks.

Offline

#2 2010-09-19 00:14:33

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Changing brightness

There are a couple of packages in AUR that you might find helpful:

xflux http://aur.archlinux.org/packages.php?ID=25689
smartdimmer http://aur.archlinux.org/packages.php?ID=13632


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2010-09-19 00:46:52

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: Changing brightness

It takes some tinkering but you could try nvidia-settings with multiple config files.

Offline

#4 2010-09-19 11:58:10

BaconPie
Member
Registered: 2010-08-11
Posts: 209

Re: Changing brightness

xflux will not install and smartdimmer simply doesn't work.

$ smartdimmer
nVIDIA SmartDimmer adjustment tool version 0.1.

Usage: smartdimmer [OPTION]...

Options:
        -g  --get               Query brightness level.
        -s  --set <level>       Set brightness level (1-21)
        -i  --increase          Increase brightness with one level.
        -d  --decrease          Decrease brightness with one level.
        -h  --help              Prints this help text.

$ smartdimmer -g
SmartDimmer level: 0

$ smartdimmer -i
$ smartdimmer -g
SmartDimmer level: 0

$ smartdimmer -s 15
$ smartdimmer -g
SmartDimmer level: 0
Procyon wrote:

It takes some tinkering but you could try nvidia-settings with multiple config files.

Could you explain some more on how I would use nvidia-settings.

Offline

#5 2010-09-19 13:06:02

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: Changing brightness

man nvidia-settings

Actually you don't need to bother with multiple configs. You can set everything directly from the command line with --assign. The names of the settings are in your .nvidia-settings-rc.

Example

#! /bin/bash
nvidia-settings --assign 0/RedGamma=$(bc <<< "$1+${2:-0}") --assign 0/GreenGamma=$1 --assign 0/BlueGamma=$(bc <<< "$1-${2:-0}") &>/dev/null

Arg 1: base (0 - 1 or more)
Arg 2: optional warmness

Offline

#6 2010-09-19 13:25:39

BaconPie
Member
Registered: 2010-08-11
Posts: 209

Re: Changing brightness

Your code works but its the same as in the nvidia-settings GUI and that's more of a color correction thing.

I'm after what you can get on most laptops. I think its a back light thing...

Anything else?

Last edited by BaconPie (2010-09-19 13:30:47)

Offline

#7 2010-09-19 13:41:55

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: Changing brightness

echo 1 | sudo tee /sys/class/backlight/*/brightness

Max is at: /sys/class/backlight/*/max_brightness

Offline

#8 2010-09-19 15:38:49

Proofrific
Member
Registered: 2008-01-05
Posts: 215

Re: Changing brightness

You can also check /proc/acpi/video/VID/LCD0 (may be a little different on your system, like DVI0 or something).

For example,

cat /proc/acpi/video/VID/LCD0/brightness

or

sudo echo "20" > cat /proc/acpi/video/VID/LCD0/brightness

Offline

#9 2010-09-19 16:53:07

BaconPie
Member
Registered: 2010-08-11
Posts: 209

Re: Changing brightness

There is nothing in /sys/class/backlight and there is no video directory in /proc/acpi.

$ ls /sys/class/backlight/
$

$ ls -l /proc/acpi/
total 0
dr-xr-xr-x 3 root root 0 Sep 19 17:52 button
-r-------- 1 root root 0 Sep 19 17:52 dsdt
dr-xr-xr-x 2 root root 0 Sep 19 17:52 embedded_controller
-r-------- 1 root root 0 Sep 19 17:52 event
-r-------- 1 root root 0 Sep 19 17:52 fadt
dr-xr-xr-x 3 root root 0 Sep 19 17:52 fan
-r--r--r-- 1 root root 0 Sep 19 17:52 info
dr-xr-xr-x 2 root root 0 Sep 19 17:52 power_resource
dr-xr-xr-x 6 root root 0 Sep 19 17:52 processor
-rw-r--r-- 1 root root 0 Sep 19 17:52 sleep
dr-xr-xr-x 3 root root 0 Sep 19 17:52 thermal_zone
-rw-r--r-- 1 root root 0 Sep 19 17:52 wakeup

Offline

Board footer

Powered by FluxBB