3

I recently installed Ubuntu 14.04 LTS on my Sony Vaio [nVidia GeForce 410M/PCIe/SSE2]. Earlier I had 12.04 installed on it, then I edited the xorg.conf file to control brightness using the function keys. But now the file is empty and even if i created it like last time it ain't working. I tried the xbacklight too, it didn't worked.

Please Help....

Thanks

EDIT: Ubuntu Installed is 64bit version.

6 Answers6

5

I have a Sony VPCEH notebook, I had the same problem.

I tried this solution that worked for me: http://ubuntuforums.org/showthread.php?t=2221452#6

Briefly:

With root privileges, create the file /usr/share/X11/xorg.conf.d/20nvidia.conf with the following content

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

Log out and back in again to test.

And it gently adds: "If something goes wrong, simply delete that file and reboot to recover the system."

But I didn't need that addition. After logout and login the brightness control started to work again.

I hope it helps you too...

Pep
  • 186
2

edit note: don't change anything related to intel files especially usr/share/x11/20-intel because yours is NVIDIA and it broke my Ubuntu. I couldn't open Ubuntu anymore, so I removed 20-intel in safe mode from the console.

JUST do this to recreate:
this will recreate etc/X11/xorgconf be root then execute this on terminal

nvidia-xconfig

lastly be sure that you are pasting enablebrightness in right section which is section "device"

for nvidia and ubuntu 14.04 x64 check this post ... it solved mine.

ubuntu 14.04 fn brightness nvidia not working samsung r540

HOW I SOLVED IT

in terminal

# nvidia-xconfig

this creates /etc/X11/xorg.conf . edit it.

# sudo su  // become root
# gedit /etc/X11/xorg.conf 

find Section "device" in text. it should look like this on the right side:

from this                        TO   this     

Section "Device"                  | Section "Device"
 Identifier "Device0"             |   Identifier  "Device0"
 Driver     "nvidia"              |   Driver      "nvidia"
 VendorName "NVIDIA Corporation"  |   VendorName  "NVIDIA Corporation"
                                  |   Option "RegistryDwords" "EnableBrightnessControl=1"
EndSection                        | EndSection

save changes (ctrl+S).
log out. log in.

we are done!! now Fn + Up/Down is adjusting the brightness.

this post will make your fn+up ,down keys work

bh_earth0
  • 151
0

1️⃣ Edycja pliku konfiguracji GRUB Otwórz terminal za pomocą skrótu Ctrl + Alt + T. Wpisz polecenie, aby edytować plik konfiguracyjny GRUB: sudo nano /etc/default/grub Znajdź linię: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" Zamień ją na: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvidia.NVreg_EnableBrightnessControl=1 acpi_osi=! acpi_backlight=native" Zapisz zmiany: Naciśnij Ctrl + O (literka "O" jak "Ola"), aby zapisać plik. Naciśnij Enter, aby potwierdzić ścieżkę zapisu. Naciśnij Ctrl + X, aby zamknąć edytor.

2️⃣ Zastosowanie zmian w GRUB W terminalu wpisz: sudo update-grub Po zakończeniu aktualizacji uruchom ponownie komputer: sudo reboot

0

I checked on my Sony Vaio VPCEH2D1E, on Ubuntu 24.04.01 LTS. It definitely works. Greetings from Poland.

  1. Editing the GRUB Configuration File

    1. Open the terminal using the shortcut Ctrl+Alt+T.

    2. Type the following command to edit the GRUB configuration file:

      sudo nano /etc/default/grub  
      
    3. And then find the line:

      GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"  
      

      Replace it with:

      GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=native"  
      
    4. Save the changes:
      Press Ctrl+O(letter "O" as in "Oscar") to save the file.

    5. Press Enter to confirm the file path.

    6. Press Ctrl+X to exit the editor.

  2. Applying Changes in GRUB

    1. In the terminal, type:

      sudo update-grub  
      
    2. Once the update is complete, restart your computer:

      sudo reboot
      

If it doesn't work, you can try using.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvidia.NVreg_EnableBrightnessControl=1 acpi_osi=! acpi_backlight=native"

But it also works, so there is no need to fill grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=native"
zx485
  • 2,865
0

Open a terminal and make this file if it doesn't exist:

sudo touch /usr/share/X11/xorg.conf.d/20-intel.conf

We need to edit that file, so enter the following in a terminal:

sudo gedit /usr/share/X11/xorg.conf.d/20-intel.conf

Then add the following in the file and save it:

Section "Device"
    Identifier  "card0"
    Driver      "intel"
    Option      "Backlight"  "intel_backlight"
    BusID       "PCI:0:2:0"

EndSection

Log out and in again, and it must work.

Korkel
  • 1,168
0

Here is a Python code to alter the screen brightness BrightnessControl.

Before running check if the follwing file exists /sys/class/backlight/intel_backlight/brightness
The content of this file is an integer indicating the current brightness.