![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
|
|
Hardware & Laptops Problems with hardware & laptops not being detected or supported during or after install. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Skinny Soy Caramel Ubuntu
![]() Join Date: Nov 2006
Location: España
Beans: 668
Ubuntu Development Release
|
A new Gnome panel applet to control Nvidia screen brightness:
Having recently bought a Sony Vaio laptop that has a Nvidia GeForce Go 7600, and installed Feisty, I found the existing brightness control (using sonypi interface) doesn't work. I also tried the Gnome panel applet VaioLCD Brightness but it relies on the sonypi device too. The smartdimmer package is the solution. It is a command-line program that can get, set, and increment/decrement brightness on many Nvidia chipsets. I wanted a Gnome panel applet just like VaioLCD Brightness to make the task easy, so I have hacked VaioLCD into a new package, SmartDimmerApplet, that makes calls to the smartdimmer program to adjust brightness. This works with (at least) Feisty and Gutsy, and on 32-bit and 64-bit Intel/AMD architectures. If you have it working on other architectures please let us know. To use it, first install smartdimmer from the Ubuntu repositories using Synaptic, or using the command-line, and then test it to ensure it works with your Nvidia chipset: Code:
$ sudo apt-get install smartdimmer $ smartdimmer -g SmartDimmer level: 21 $ smartdimmer -s 10 $ smartdimmer -i $ smartdimmer -d If necessary, install the packages required to build Gnome applets You also need to install the automake package and, if it isn't created, a symlink: Code:
$ sudo apt-get install automake1.9 $ if [ ! -e /usr/share/automake ]; then sudo ln -s /usr/share/automake-1.9 /usr/share/automake; fi Code:
$ sudo apt-get install libglade2-dev libpanel-applet2-dev Note: I have installed so many packages for building software I'm no longer sure precisely which packages are required, so if you build on a clean system please make a note of each package you install and post the list here. I'll add it to this first article to help others.Now follow these steps to build and install the applet:
Code:
$ cd ~ $ wget http://ubuntuforums.org/attachment.php?attachmentid=33182&d=1179871063 $ tar -xzvf gnome-smartdimmer-1.0.tar.gz $ cd gnome-smartdimmer-1.0 $ ./configure $ make $ sudo make install To alter brightness click the panel icon and drag the slider.
__________________
TJ. "The only intuitive interface is the nipple. After that it's all learned" So try my Ubuntu PPA Last edited by IntuitiveNipple; September 5th, 2007 at 09:04 AM.. Reason: Added required package |
|
|
|
|
#2 |
|
5 Cups of Ubuntu
![]() Join Date: May 2007
Beans: 35
Ubuntu 9.10 Karmic Koala
|
smartdimmer gives error: "init_nvclock() failed!"
i'm running xubuntu 64 bit on an AMD turion64 laptop with an onboard nvidia geforce card pl help |
|
|
|
|
#3 | |
|
Skinny Soy Caramel Ubuntu
![]() Join Date: Nov 2006
Location: España
Beans: 668
Ubuntu Development Release
|
Re: New: Nvidia Brightness Control
Quote:
I'd guess that the Nvidia chipset on your system isn't supported by smartdimmer, but as you don't say what the model number is, or give the PCI ID of the card (found using lspci) it's difficult to be precise.
__________________
TJ. "The only intuitive interface is the nipple. After that it's all learned" So try my Ubuntu PPA |
|
|
|
|
|
#4 | |
|
Skinny Soy Caramel Ubuntu
![]() |
Re: New: Nvidia Brightness Control
Quote:
Code:
01:00.0 VGA compatible controller: nVidia Corporation G72 [GeForce 7300 LE] (rev a1) |
|
|
|
|
|
#5 |
|
Skinny Soy Caramel Ubuntu
![]() Join Date: Nov 2006
Location: España
Beans: 668
Ubuntu Development Release
|
I posted details of my SmartDimmer applet in the Nvidia Linux forums, and someone there replied with information that there is now an updated nvclock backend, which smartdimmer was derived from originally.
I'm going to get the latest nvclock source, build it, and then adapt my SmartDimmer applet to use it. If it works for me I'll modify SmartDimmer so by default it'll try to use nvclock, and only if it isn't found will it try to use smartdimmer. That way SmartDimmer can support both utilities, and use whatever the user's PC has installed.
__________________
TJ. "The only intuitive interface is the nipple. After that it's all learned" So try my Ubuntu PPA |
|
|
|
|
#6 |
|
Skinny Soy Caramel Ubuntu
![]() Join Date: Nov 2006
Location: España
Beans: 668
Ubuntu Development Release
|
Re: New: Nvidia Brightness Control
I've tested nvclock and it also works to control the brightness. I've asked the author for a couple of minor command-line alterations to make it easier for SmartDimmer to use it.
Once that is done I'll add support for nvclock and post and updated SmartDimmer applet here. I'm also investigating having the applet remember the last-used setting and automatically restore it when the applet starts.
__________________
TJ. "The only intuitive interface is the nipple. After that it's all learned" So try my Ubuntu PPA |
|
|
|
|
#7 | |
|
5 Cups of Ubuntu
![]() Join Date: May 2007
Beans: 35
Ubuntu 9.10 Karmic Koala
|
Re: New: Nvidia Brightness Control
Quote:
00:05.0 VGA compatible controller: nVidia Corporation C51 PCI Express Bridge (rev a2) isn't there a way to alter the 'brightness' file in proc/acpi/video/VGA/LCD directly or through a script. i mean, use the sony/toshiba scripts that are present by default and modify them? that would require catching the relevant key combination. can this be done? |
|
|
|
|
|
#8 |
|
Skinny Soy Caramel Ubuntu
![]() Join Date: Nov 2006
Location: España
Beans: 668
Ubuntu Development Release
|
Re: New: Nvidia Brightness Control
I modified the ACPI brightness scripts to call smartdimmer which helps when the laptop goes between AC and battery modes. You could do the same using nvclock.
The VaioLCD Brightness panel applet is hard-coded to use sonypi though, and as far as I can make out that only works with Intel-based graphics chipsets. For Nvidia, brightness control can't be done via sonypi.
__________________
TJ. "The only intuitive interface is the nipple. After that it's all learned" So try my Ubuntu PPA |
|
|
|
|
#9 |
|
First Cup of Ubuntu
![]() Join Date: Jul 2006
Beans: 2
|
Re: New: Nvidia Brightness Control
./configure gives errror cannot find install-sh or install.sh in . ./.. ./../..
|
|
|
|
|
#10 | ||
|
Skinny Soy Caramel Ubuntu
![]() Join Date: Nov 2006
Location: España
Beans: 668
Ubuntu Development Release
|
Re: New: Nvidia Brightness Control
Quote:
Quote:
__________________
TJ. "The only intuitive interface is the nipple. After that it's all learned" So try my Ubuntu PPA |
||
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|