Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
    
Try second solution from askubuntu.com/a/266618/285763 (that one that starts with "Execute gksu gedit /etc/default/grub") –  artis May 27 at 13:44
    
@artis Sorry sir, That didn't work either. –  Hitesh Bhatt May 28 at 7:53
    
@HiteshBhatt did my answer work for you? –  Korkel May 28 at 8:11
    
@Korkel No Sir, It ended up even more screwed. The display went blank, didn't even showed in failsafe. –  Hitesh Bhatt May 28 at 9:03

3 Answers 3

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...

share|improve this answer
    
worked for me... –  pinkpanther Nov 17 at 18:28

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.

share|improve this answer

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.

share|improve this answer
    
Thanks for your help, but the file does not exists. –  Hitesh Bhatt Jun 14 at 5:04
    
Locate the file which stores the current screen brightness and modify the code to make it work. –  VelS Jun 14 at 6:51
    
there is a link to another location as "acpi_video0" in /sys/class/backlight . It has files as "actual_brightness", "brightness" and "max_brightness", can you suggest me a script which allows me to change the brightness in "brightness" through the hotkeys? I need to change the brightness much often and can't stick to a single value. –  Hitesh Bhatt Jul 3 at 13:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.