nVidia Brightness controls.

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
chrispche

nVidia Brightness controls.

Post by chrispche »

I have searched and searched and searched. I have tried every suggestion found. My brightness keys on my Sony Vaio Laptop will still not work. This is frustrating. Nouveau works fine. However I would like to use the proper drivers. My specs:


Sony Vaio VGN-AR51M.
nVidia card GeForce 8400M GT GPU

Please please help. Anybody have any ideas?
viking777

Re: nVidia Brightness controls.

Post by viking777 »

I can't believe my own eyes, have I read this right?

You are saying that if you run with the nouveau graphics driver then your brightness controls work but if you run with the Nvidia drivers they don't :shock:

You can't go around trashing my stereotypes like that, it is like saying "I found an honest insurance salesman" or "I found an investment banker who understands what he is actually worth" You just can't do that :lol: (Roughly translated that means that most people, myself included, find nouveau to be dramatically inferior to nvidia in almost every respect)

But seriously, the only thing that I can suggest is to have a look in /etc/X11 and see if you have an xorg.conf. If you do, edit the section starting with

Code: Select all

Section "Device"
to add the line,

Code: Select all

Option "RegistryDwords" "EnableBrightnessControl=1"
Make sure you back up the file before editing it then afterwards restart the Xserver or reboot.

If you don't have that file then look for /etc/X11/xorg.conf.d/00-nvidia.conf (the numbers might not be 00, it doesn't really matter). Then edit that file with the same option, although in this case you may have to create the section "Device" before you can add the line (and you will also have to ignore the advice in the file that says #Do not edit).

The same warning applies - back it up before you edit.

In conclusion I should say that I have never done this myself, it is just something I read online, certainly a reliable source, but it could be out of date, or not relevant to MInt or have any number of problems that stop it from working - that is why those backups are essential.
chrispche

Re: nVidia Brightness controls.

Post by chrispche »

Thank you Sir! I appreciate the help. I shall try that tomorrow whilst nursing a hangover.
chrispche

Re: nVidia Brightness controls.

Post by chrispche »

viking777 wrote:
In conclusion I should say that I have never done this myself, it is just something I read online, certainly a reliable source, but it could be out of date, or not relevant to MInt or have any number of problems that stop it from working - that is why those backups are essential.
What driver do you use out of interest?
viking777

Re: nVidia Brightness controls.

Post by viking777 »

I have the proprietary nvidia driver version 290.10.
chrispche

Re: nVidia Brightness controls.

Post by chrispche »

viking777 wrote:I have the proprietary nvidia driver version 290.10.
But seriously, the only thing that I can suggest is to have a look in /etc/X11 and see if you have an xorg.conf. If you do, edit the section starting with

Code: Select all
Section "Device"



to add the line,

Code: Select all
Option "RegistryDwords" "EnableBrightnessControl=1"



Make sure you back up the file before editing it then afterwards restart the Xserver or reboot.

If you don't have that file then look for /etc/X11/xorg.conf.d/00-nvidia.conf (the numbers might not be 00, it doesn't really matter). Then edit that file with the same option, although in this case you may have to create the section "Device" before you can add the line (and you will also have to ignore the advice in the file that says #Do not edit).
I don't have either of those files. Any idea's?
viking777

Re: nVidia Brightness controls.

Post by viking777 »

Open a terminal and run the command

Code: Select all

sudo nvidia-xconfig
Then have a look for xorg.conf again.
chrispche

Re: nVidia Brightness controls.

Post by chrispche »

Code: Select all

chrispche@chrispche-VGN-AR51M ~ $ sudo nvidia-xconfig
[sudo] password for chrispche: 

Using X configuration file: "/etc/X11/xorg.conf".

VALIDATION ERROR: Data incomplete in file /etc/X11/xorg.conf.
                  Device section "Default Device" must have a Driver line.

Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.backup'
New X configuration file written to '/etc/X11/xorg.conf'

chrispche@chrispche-VGN-AR51M ~ $ 
I get that error. However the xorg.conf file looks fine.

Code: Select all

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 280.13  (buildmeister@swio-display-x86-rhel47-03.nvidia.com)  Wed Jul 27 17:15:58 PDT 2011

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
Does that all look right?
viking777

Re: nVidia Brightness controls.

Post by viking777 »

Looks fine to me. Does it make any difference to the brightness on its own? Probably not. In which case add the 'brightness' line I mentioned earlier under the "Device" section then restart and see what happens.
fallen.star

Re: nVidia Brightness controls.

Post by fallen.star »

viking777 wrote:
But seriously, the only thing that I can suggest is to have a look in /etc/X11 and see if you have an xorg.conf. If you do, edit the section starting with

Code: Select all

Section "Device"
to add the line,

Code: Select all

Option "RegistryDwords" "EnableBrightnessControl=1"
You are an angel. I have been trying for this solution for so long, instead using the nvidia x-server-settings to reduce the brightness, but it also does it on the tv which is hopeless. I've adjusted many conf files in other distros and lost the desktops.

I definitely had the nvidia drivers in and functioning to start with, hence the nvidia x server settings working to output to my tv and adjusting the colour/brightness. I went in through additional drivers, no problems at all. (makes a change...)

This is my xorg.conf incase it helps anyone at some point:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 295.33 (buildd@allspice) Fri Mar 30 13:37:33 UTC 2012


Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"

# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "Monitor"

# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "LGD"
HorizSync 30.0 - 75.0
VertRefresh 60.0
Option "DPMS"
EndSection

Section "Monitor"

# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor1"
VendorName "Unknown"
ModelName "Panasonic-TV"
HorizSync 15.0 - 68.0
VertRefresh 23.0 - 61.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 410M"
Option "RegistryDwords" "EnableBrightnessControl=1"
EndSection

Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 410M"
BusID "PCI:1:0:0"
Screen 1
EndSection

Section "Screen"

# Removed Option "TwinView" "0"
# Removed Option "metamodes" "DFP-0: nvidia-auto-select +0+0"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "1"
Option "TwinViewXineramaInfoOrder" "DFP-0"
Option "metamodes" "DFP-0: nvidia-auto-select +0+0, DFP-1: nvidia-auto-select +1366+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "DFP-1: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

Note: this is a conf file for 2 monitors on twinview. I put the additional line into device 0 (laptop).

the gui for nvidia x-server-settings is located in Start Menu/Applications/Administration (Mint 13 Mate).

Hope it's of help to someone floundering around in the dark like me :lol:
beck2929

Re: nVidia Brightness controls.

Post by beck2929 »

viking777 wrote:I can't believe my own eyes, have I read this right?

You are saying that if you run with the nouveau graphics driver then your brightness controls work but if you run with the Nvidia drivers they don't :shock:

You can't go around trashing my stereotypes like that, it is like saying "I found an honest insurance salesman" or "I found an investment banker who understands what he is actually worth" You just can't do that :lol: (Roughly translated that means that most people, myself included, find nouveau to be dramatically inferior to nvidia in almost every respect)

But seriously, the only thing that I can suggest is to have a look in /etc/X11 and see if you have an xorg.conf. If you do, edit the section starting with

Code: Select all

Section "Device"
to add the line,

Code: Select all

Option "RegistryDwords" "EnableBrightnessControl=1"
Make sure you back up the file before editing it then afterwards restart the Xserver or reboot.

If you don't have that file then look for /etc/X11/xorg.conf.d/00-nvidia.conf (the numbers might not be 00, it doesn't really matter). Then edit that file with the same option, although in this case you may have to create the section "Device" before you can add the line (and you will also have to ignore the advice in the file that says #Do not edit).

The same warning applies - back it up before you edit.

In conclusion I should say that I have never done this myself, it is just something I read online, certainly a reliable source, but it could be out of date, or not relevant to MInt or have any number of problems that stop it from working - that is why those backups are essential.

THANK YOU SO MUCH
This solution solved the problem for me too. I was on Sony Vaio VPCEH with Linux Mint 15 Cinnamon, unable to use FN+5/6 control keys to adjust the brightness. That simple line enabled the brightness adjustment.
nonymous

Re: nVidia Brightness controls.

Post by nonymous »

I have searched and searched and searched. I have tried every suggestion found.
I have exactly the same issue with my Samsung R610 XE2V 5800 Laptop with a 9200M GS.

I have searched and searched and searched too... although even the solution of modifying xorg.conf with Option "RegistryDwords" "EnableBrightnessControl=1" does not solve my problem.

In fact, if I do that, my laptop produces strident sounds when I try to set brightness up/down, then I get a black screen without any possibility to recover a correct display.

Is there anyone who knows what to do in this case ?
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: nVidia Brightness controls.

Post by roblm »

nonymous,

What edition and version of Mint are you using?
I assume you have installed the Nvidia proprietary driver?

Would you open the Terminal and type this command:
ls /sys/devices/platform/samsung/backlight/*/*
nonymous

Re: nVidia Brightness controls.

Post by nonymous »

Hi Robim and thanks for your answer.

I use Linux Mint 16 "Petra" edition Xfce 64-bit.

I haven't installed any driver, I use those which are provided in the Driver Manager. The most recent version is nvidia-319-updates 319.60-0ubuntu1.

Here is the result of ls /sys/devices/platform/samsung/backlight/*/* :

Code: Select all

/sys/devices/platform/samsung/backlight/samsung/actual_brightness
/sys/devices/platform/samsung/backlight/samsung/bl_power
/sys/devices/platform/samsung/backlight/samsung/brightness
/sys/devices/platform/samsung/backlight/samsung/max_brightness
/sys/devices/platform/samsung/backlight/samsung/type
/sys/devices/platform/samsung/backlight/samsung/uevent

/sys/devices/platform/samsung/backlight/samsung/device:
backlight  modalias  performance_level  power  rfkill  subsystem  uevent

/sys/devices/platform/samsung/backlight/samsung/power:
async                 runtime_active_kids  runtime_status
autosuspend_delay_ms  runtime_active_time  runtime_suspended_time
control               runtime_enabled      runtime_usage

/sys/devices/platform/samsung/backlight/samsung/subsystem:
nv_backlight  samsung
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: nVidia Brightness controls.

Post by roblm »

I assume the key combinations for brightness down is Fn+F2 and for brightness up are Fn+F3?

First you need to open the Synaptic Package Manager and install evtest. This utility is needed to get the scan codes generated
when pressing the Fn+key combinations. Then open the Terminal and type: sudo evtest

Get the event number of the AT keyboard and type it in the bottom line that says “Select the device event number” and press
Enter. Then press Fn+F2 and Fn+F3.

Use the cursor to select all the information on the screen from the end to the beginning and copy it, and then post the output by
selecting “code” in the Mint forum reply window menu and pasting the info between the two code words.

Then in the Terminal type each command below, pressing Enter after each one and post the output:
cat /sys/class/dmi/id/sys_vendor
cat /sys/class/dmi/id/product_name
nonymous

Re: nVidia Brightness controls.

Post by nonymous »

Robim,

Thanks again...

Here is the evtest output :

Code: Select all

Available devices:
/dev/input/event0:	Lid Switch
/dev/input/event1:	Power Button
/dev/input/event2:	Sleep Button
/dev/input/event3:	Power Button
/dev/input/event4:	AT Translated Set 2 keyboard
/dev/input/event5:	Video Bus
/dev/input/event6:	Logitech Unifying Device. Wireless PID:1025
/dev/input/event7:	Vega USB 2.0 Camera.
/dev/input/event8:	HDA Intel HDMI/DP,pcm=3 Phantom
/dev/input/event9:	HDA Intel Headphone
/dev/input/event10:	HDA Intel Mic
/dev/input/event11:	SynPS/2 Synaptics TouchPad
Select the device event number [0-11]: 4
Input driver version is 1.0.1
Input device ID: bus 0x11 vendor 0x1 product 0x1 version 0xab41
Input device name: "AT Translated Set 2 keyboard"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 1 (KEY_ESC)
    Event code 2 (KEY_1)
    Event code 3 (KEY_2)
    Event code 4 (KEY_3)
    Event code 5 (KEY_4)
    Event code 6 (KEY_5)
    Event code 7 (KEY_6)
    Event code 8 (KEY_7)
    Event code 9 (KEY_8)
    Event code 10 (KEY_9)
    Event code 11 (KEY_0)
    Event code 12 (KEY_MINUS)
    Event code 13 (KEY_EQUAL)
    Event code 14 (KEY_BACKSPACE)
    Event code 15 (KEY_TAB)
    Event code 16 (KEY_Q)
    Event code 17 (KEY_W)
    Event code 18 (KEY_E)
    Event code 19 (KEY_R)
    Event code 20 (KEY_T)
    Event code 21 (KEY_Y)
    Event code 22 (KEY_U)
    Event code 23 (KEY_I)
    Event code 24 (KEY_O)
    Event code 25 (KEY_P)
    Event code 26 (KEY_LEFTBRACE)
    Event code 27 (KEY_RIGHTBRACE)
    Event code 28 (KEY_ENTER)
    Event code 29 (KEY_LEFTCTRL)
    Event code 30 (KEY_A)
    Event code 31 (KEY_S)
    Event code 32 (KEY_D)
    Event code 33 (KEY_F)
    Event code 34 (KEY_G)
    Event code 35 (KEY_H)
    Event code 36 (KEY_J)
    Event code 37 (KEY_K)
    Event code 38 (KEY_L)
    Event code 39 (KEY_SEMICOLON)
    Event code 40 (KEY_APOSTROPHE)
    Event code 41 (KEY_GRAVE)
    Event code 42 (KEY_LEFTSHIFT)
    Event code 43 (KEY_BACKSLASH)
    Event code 44 (KEY_Z)
    Event code 45 (KEY_X)
    Event code 46 (KEY_C)
    Event code 47 (KEY_V)
    Event code 48 (KEY_B)
    Event code 49 (KEY_N)
    Event code 50 (KEY_M)
    Event code 51 (KEY_COMMA)
    Event code 52 (KEY_DOT)
    Event code 53 (KEY_SLASH)
    Event code 54 (KEY_RIGHTSHIFT)
    Event code 55 (KEY_KPASTERISK)
    Event code 56 (KEY_LEFTALT)
    Event code 57 (KEY_SPACE)
    Event code 58 (KEY_CAPSLOCK)
    Event code 59 (KEY_F1)
    Event code 60 (KEY_F2)
    Event code 61 (KEY_F3)
    Event code 62 (KEY_F4)
    Event code 63 (KEY_F5)
    Event code 64 (KEY_F6)
    Event code 65 (KEY_F7)
    Event code 66 (KEY_F8)
    Event code 67 (KEY_F9)
    Event code 68 (KEY_F10)
    Event code 69 (KEY_NUMLOCK)
    Event code 70 (KEY_SCROLLLOCK)
    Event code 71 (KEY_KP7)
    Event code 72 (KEY_KP8)
    Event code 73 (KEY_KP9)
    Event code 74 (KEY_KPMINUS)
    Event code 75 (KEY_KP4)
    Event code 76 (KEY_KP5)
    Event code 77 (KEY_KP6)
    Event code 78 (KEY_KPPLUS)
    Event code 79 (KEY_KP1)
    Event code 80 (KEY_KP2)
    Event code 81 (KEY_KP3)
    Event code 82 (KEY_KP0)
    Event code 83 (KEY_KPDOT)
    Event code 85 (KEY_ZENKAKUHANKAKU)
    Event code 86 (KEY_102ND)
    Event code 87 (KEY_F11)
    Event code 88 (KEY_F12)
    Event code 89 (KEY_RO)
    Event code 91 (KEY_HIRAGANA)
    Event code 92 (KEY_HENKAN)
    Event code 93 (KEY_KATAKANAHIRAGANA)
    Event code 94 (KEY_MUHENKAN)
    Event code 95 (KEY_KPJPCOMMA)
    Event code 96 (KEY_KPENTER)
    Event code 97 (KEY_RIGHTCTRL)
    Event code 98 (KEY_KPSLASH)
    Event code 99 (KEY_SYSRQ)
    Event code 100 (KEY_RIGHTALT)
    Event code 102 (KEY_HOME)
    Event code 103 (KEY_UP)
    Event code 104 (KEY_PAGEUP)
    Event code 105 (KEY_LEFT)
    Event code 106 (KEY_RIGHT)
    Event code 107 (KEY_END)
    Event code 108 (KEY_DOWN)
    Event code 109 (KEY_PAGEDOWN)
    Event code 110 (KEY_INSERT)
    Event code 111 (KEY_DELETE)
    Event code 112 (KEY_MACRO)
    Event code 113 (KEY_MUTE)
    Event code 114 (KEY_VOLUMEDOWN)
    Event code 115 (KEY_VOLUMEUP)
    Event code 116 (KEY_POWER)
    Event code 117 (KEY_KPEQUAL)
    Event code 118 (KEY_KPPLUSMINUS)
    Event code 119 (KEY_PAUSE)
    Event code 121 (KEY_KPCOMMA)
    Event code 122 (KEY_HANGUEL)
    Event code 123 (KEY_HANJA)
    Event code 124 (KEY_YEN)
    Event code 125 (KEY_LEFTMETA)
    Event code 126 (KEY_RIGHTMETA)
    Event code 127 (KEY_COMPOSE)
    Event code 128 (KEY_STOP)
    Event code 140 (KEY_CALC)
    Event code 142 (KEY_SLEEP)
    Event code 143 (KEY_WAKEUP)
    Event code 148 (KEY_PROG1)
    Event code 149 (KEY_PROG2)
    Event code 150 (KEY_WWW)
    Event code 155 (KEY_MAIL)
    Event code 156 (KEY_BOOKMARKS)
    Event code 157 (KEY_COMPUTER)
    Event code 158 (KEY_BACK)
    Event code 159 (KEY_FORWARD)
    Event code 163 (KEY_NEXTSONG)
    Event code 164 (KEY_PLAYPAUSE)
    Event code 165 (KEY_PREVIOUSSONG)
    Event code 166 (KEY_STOPCD)
    Event code 172 (KEY_HOMEPAGE)
    Event code 173 (KEY_REFRESH)
    Event code 183 (KEY_F13)
    Event code 184 (KEY_F14)
    Event code 185 (KEY_F15)
    Event code 192 (KEY_F22)
    Event code 193 (KEY_F23)
    Event code 202 (KEY_PROG3)
    Event code 217 (KEY_SEARCH)
    Event code 224 (KEY_BRIGHTNESSDOWN)
    Event code 225 (KEY_BRIGHTNESSUP)
    Event code 226 (KEY_MEDIA)
    Event code 227 (KEY_SWITCHVIDEOMODE)
    Event code 236 (KEY_BATTERY)
    Event code 238 (KEY_WLAN)
  Event type 4 (EV_MSC)
    Event code 4 (MSC_SCAN)
  Event type 17 (EV_LED)
    Event code 0 (LED_NUML)
    Event code 1 (LED_CAPSL)
    Event code 2 (LED_SCROLLL)
Properties:
  Property type 20 (EV_REP)
    Property code 0 (REP_DELAY)
      Value    250
    Property code 1 (REP_PERIOD)
      Value     33
Testing ... (interrupt to exit)
Event: time 1390419796.286797, type 17 (EV_LED), code 0 (LED_NUML), value 0
Event: time 1390419796.286797, -------------- SYN_REPORT ------------
Event: time 1390419796.354456, type 4 (EV_MSC), code 4 (MSC_SCAN), value 1c
Event: time 1390419796.354456, type 1 (EV_KEY), code 28 (KEY_ENTER), value 0
Event: time 1390419796.354456, -------------- SYN_REPORT ------------
Event: time 1390419799.564705, type 4 (EV_MSC), code 4 (MSC_SCAN), value 88
Event: time 1390419799.564705, type 1 (EV_KEY), code 225 (KEY_BRIGHTNESSUP), value 1
Event: time 1390419799.564705, -------------- SYN_REPORT ------------
Event: time 1390419799.564735, type 1 (EV_KEY), code 225 (KEY_BRIGHTNESSUP), value 0
Event: time 1390419799.564735, -------------- SYN_REPORT ------------
Event: time 1390419800.342840, type 4 (EV_MSC), code 4 (MSC_SCAN), value 88
Event: time 1390419800.342840, type 1 (EV_KEY), code 225 (KEY_BRIGHTNESSUP), value 1
Event: time 1390419800.342840, -------------- SYN_REPORT ------------
Event: time 1390419800.342864, type 1 (EV_KEY), code 225 (KEY_BRIGHTNESSUP), value 0
Event: time 1390419800.342864, -------------- SYN_REPORT ------------
Event: time 1390419801.438703, type 4 (EV_MSC), code 4 (MSC_SCAN), value 89
Event: time 1390419801.438703, type 1 (EV_KEY), code 224 (KEY_BRIGHTNESSDOWN), value 1
Event: time 1390419801.438703, -------------- SYN_REPORT ------------
Event: time 1390419801.438735, type 1 (EV_KEY), code 224 (KEY_BRIGHTNESSDOWN), value 0
Event: time 1390419801.438735, -------------- SYN_REPORT ------------
Event: time 1390419801.848169, type 4 (EV_MSC), code 4 (MSC_SCAN), value 89
Event: time 1390419801.848169, type 1 (EV_KEY), code 224 (KEY_BRIGHTNESSDOWN), value 1
Event: time 1390419801.848169, -------------- SYN_REPORT ------------
Event: time 1390419801.848192, type 1 (EV_KEY), code 224 (KEY_BRIGHTNESSDOWN), value 0
Event: time 1390419801.848192, -------------- SYN_REPORT ------------
The keys for brightness +/- are Fn+Up arrow and Fn+Down arrow.

Code: Select all

cat /sys/class/dmi/id/sys_vendor 
SAMSUNG ELECTRONICS CO., LTD.
cat /sys/class/dmi/id/product_name 
R610
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: nVidia Brightness controls.

Post by roblm »

Copy these four lines:

Code: Select all

# Samsung R610 
keyboard:dmi:bvn*:bvr*:bd*:svnSAMSUNG*:pn*R610*:pvr*
KEYBOARD_KEY_88=brightnessup      
KEYBOARD_KEY_89=brightnessdown

Open the file “60-keyboard.hwdb” by typing this command in the Terminal:
gksudo gedit /lib/udev/hwdb.d/60-keyboard.hwdb
Go down to the end of the Samsung section and paste the lines, so your section will look like this:

Code: Select all

keyboard:dmi:bvn*:bvr*:bd*:svn[sS][aA][mM][sS][uU][nN][gG]*:pn*700T*:pvr*
 KEYBOARD_KEY_ad=leftmeta

# Samsung R610 
keyboard:dmi:bvn*:bvr*:bd*:svnSAMSUNG*:pn*R610*:pvr*
KEYBOARD_KEY_88=brightnessup      
KEYBOARD_KEY_89=brightnessdown

###########################################################
# SONY
Save the file and then open the Terminal and type: sudo udevadm hwdb --update
Reboot and test the keyboard keys.

If that fails then change line 2 to this and repeat the other steps:
keyboard:dmi:bvn*:bvr*:bd*:svn[sS][aA][mM][sS][uU][nN][gG]*:pn*R610*:pvr*

If that fails then change line 2 to this:
keyboard:dmi:bvn*:bvr*:bd*:svnSAMSUNG*:pn*R610:pvr*

If that fails then change line 2 to this:
keyboard:dmi:bvn*:bvr*:bd*:svn[sS][aA][mM][sS][uU][nN][gG]*:pn*R610:pvr*
nonymous

Re: nVidia Brightness controls.

Post by nonymous »

Hi Robim,

I've tried all your suggestions, with and without "RegistryDwords" in xorg.conf... no way...

What is surprising is that although the brightness does not change, the little widget showing the brightness level appears and changes when I use the keys.

I think I won't insist, it seems really not possible to control brightness on my laptop with nVidia drivers.

Anyway, many thanks for your help.
nonymous

Re: nVidia Brightness controls.

Post by nonymous »

Ouch... and it was hard to restore my previous nouveau driver : after the reboot I had an incorrect screen resolution.

Finally I managed to obtain the correct resolution by deleting the file which blacklisting the nouveau driver (in /etc/modprobe.d/)
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: nVidia Brightness controls.

Post by roblm »

nonymous,

Don't give up yet. First remove the line: Option "RegistryDwords" "EnableBrightnessControl=1"
from the “xorg.conf” file if it is there. Leave the lines that were added to the “60-keyboard.hwdb” file which caused the
brightness indicator to appear. Then open the Synaptic Package Manager and install xbacklight.
In the Terminal type: xbacklight -set 80

If the screen brightness does not change then try adding a kernel parameter to the GRUB boot file.
You can try temporarily testing them in case one of them causes a startup problem. The effect will only last for one session.
At the GRUB boot menu select the correct line but don’t press Enter. Press the “E” key to edit. If no menu shows then hold
down the shift key while starting. Using the arrow keys, go down to the line that starts with:
linux /boot/vmlinuz.......................ro quiet splash $vt_handoff

Add a space to the end of the line and then add the first parameter below:
acpi_osi=Linux
acpi_backlight=vendor
acpi_osi=Linux acpi_backlight=vendor
acpi_osi='!Windows 2012'
acpi_osi=

Press Ctrl+X at the same time to start your system.
When you get to the desktop, test your brightness keys. If they don't work then test the xbacklight command again. Restart and
repeat the steps above for each parameter and also testing xbacklight each time.

If those steps fail then type this command in the Terminal:
cat /sys/devices/platform/samsung/backlight/samsung/max_brightness

Get the value from the output. Then type this command:
sudo echo X > /sys/devices/platform/samsung/backlight/samsung/brightness
replacing X with the value you just got.

If there is no change in brightness then type this:
echo X | sudo tee /sys/devices/platform/samsung/backlight/samsung/brightness
again replacing X.
Locked

Return to “Graphics Cards & Monitors”