guillaumezin / nvidiabl

/!\ Please note that I don't maintain this repository anymore, please have a look at forked projects. /!\
82 stars 82 forks source link

Problem with VAIO-CW2 #66

Open ghaffarian opened 11 years ago

ghaffarian commented 11 years ago

I have a VAIO VPC-CW2 laptop, with Nvidia GT-320M. This module is working partially! It's never working immediately after boot-up, but sometimes specially when not plugged in to a power source, it starts working. I will be glad to help and provide more info to fix this issue. Any help is greatly appreciated.

OS = Ubuntu-12.04 (64-bit) GPU = NVIDIA GeForce GT-320M Laptop Model = Sony VAIO VPC-CW2 NVIDIA Driver Version = 295.40 (installed from Ubuntu repos)

guillaumezin commented 11 years ago

Does it work with commands like these :+1:

echo 50 | sudo tee /sys/class/backlight/nvidia_backlight/brightness echo 127 | sudo tee /sys/class/backlight/nvidia_backlight/brightness

ghaffarian commented 11 years ago

Yes, I tested those commands and they affected the screen brightness. So how to fix it to work with the brightness hot-keys ?!

austin-1 commented 11 years ago

I was having this same problem, sorry nobody has answered it yet.

From my experience, I was able to adjust the brightness with the keys after I manually entered the brightness value in the terminal (but not before doing so). All you have to do is make a simple startup script that "manually" sets the brightness on boot.

To do that:

Open gedit (assuming you want to start at level 100 or about 80%) Copy and paste this:

!/bin/bash

echo 100 | tee /sys/class/backlight/nvidia_backlight/brightness

Save as nvidiablset (or whatever)

Right-click on the file you just saved and go to Properties > Permissions Check the box "Allow executing file as program"

Then open the terminal and enter these two commands:

sudo cp nvidiablset /etc/init.d/nvidiablset sudo update-rc.d nvidiablset defaults

Then restart and you should be good to go!