Page 1 of 3 123 LastLast
Results 1 to 10 of 30

Thread: Sony VAIO FZ brightness WORKS!

  1. #1
    Join Date
    Oct 2006
    Location
    Amsterdam
    Beans
    153
    Distro
    Xubuntu 8.04 Hardy Heron

    Talking Sony VAIO FZ brightness WORKS!

    Hello!
    Good News!
    I can report, that brightness is working now on my Sony VAIO FZ31M. (nvidia 8400M GT)
    thanks to the guide of "frank17" here (it is in italian):
    http://www.frank17.it/linux/fz18m.htm from http://www.linux-on-laptops.com/

    it is a real solution:
    the nvclock from cvs, provided in that site, is able to control the brightness of my laptop!
    I waited for that now very long...

    let's put that in English:

    (MINI-HOW-TO):

    First of all, be careful, I do not know if this can demage your hardware,
    it works very well for me, but you should know what you are doing... at your own risk..
    you should also have everything one needs to compile, like autoconf tools etcetc..

    i highly recommend checkinstall instead of make install,
    checkinstall keeps your system clean and you can easely find and uninstall your self-compiled packages under synaptic.
    Code:
    $ sudo apt-get install checkinstall
    1)
    if you never downloaded anything with cvs, and you never heard of it, than you need to open the terminal ant type this:

    Code:
      $ sudo apt-get install cvs
    2)
    create a folder somewhere in your home-dir called "nvclock"
    in my case I hava a folder in my home-dir called "apps" and inside that one I will create a folder called "nvclock"

    Code:
      $ mkdir ~/apps/nvclock

    3)
    now enter your new folder

    Code:
      $ cd ~/apps/nvclock
    paste this into the terminal:

    Code:
      $ cvs -d:pserver:anonymous@nvclock.cvs.sourceforge.net:/cvsroot/nvclock login
    it will ask for a password, but you just press 'ENTER'

    to download the nvclock from cvs paste this into your terminal:

    Code:
      $ cvs -z3 -d:pserver:anonymous@nvclock.cvs.sourceforge.net:/cvsroot/nvclock co -P nvclock

    4)
    after the cvs snapshot is done you can
    compile and install nvclock:

    Code:
      $ cd ~/apps/nvclock/nvclock 
      $ ./configure
      $ make
      $ sudo checkinstall
    you need to go through the checkinstall-wizard inside the terminal and correct the name and version, otherwise it will abort.
    it is very easy as the wizard is well done.
    i named it "nvclock" and set version to "0.8.4"

    everything went flawlessly yesterday and you will end up with a nice build and installed .deb package which you can uninstall at anytime via synaptic.


    5)
    now we can try it out:
    (note: nvclock will be installed as default in /usr/local/bin)

    Code:
        $ /usr/local/bin/nvclock -S -10
    
        $ /usr/local/bin/nvclock -S -10
    Look how the brightness is changing: Smartdimmer should be working now and you should be reading this message: "Changing Smartdimmer level from 100% to 90% New Smartdimmer level: 90%"


    6)
    To get this function to work with the FnKeys FN+F5/F6 we will have to change the scripts /etc/acpi/events/sony-brightness-down e sony-brightness up:

    Code:
        $ sudo gedit /etc/acpi/events/sony-brightness-down
    
        event=sony/hotkey SNC 00000001 00000010
        action=/usr/local/bin/nvclock -S -10
    Code:
        $ sudo gedit /etc/acpi/events/sony-brightness-up
    
        event=sony/hotkey SNC 00000001 00000011
        action=/usr/local/bin/nvclock -S +10
    Save the changes and type this into the terminal to make them executable again:
    Code:
        $ sudo chmod +x sony-brightness-down
    
        $ sudo chmod +x sony-brightness-up
    Finally restart your acpi-demon:

    Code:
        $ sudo etc/init.d/acpid restart
    The FnKeys should work now, but we will have to reboot the machine
    and test again, if everything went well, your FnKeys FnF5/F6 should control the real brightness of your LCD.


    Dim backlight on Battery

    Create the file /etc/udev/rules.d/80-smartdimmer.rules (thx to IntuitiveNipple)
    Code:
    # NVidia backlight control using nvclock
    
    
    
    
    
    ACTION=="change", SUBSYSTEM=="power_supply", ATTR{type}=="Battery", ATTR{status}=="Discharging", RUN+="/usr/local/bin/nvclock -S 50"
    
    ACTION=="change", SUBSYSTEM=="power_supply", ATTR{type}=="Battery", ATTR{status}=="Charging", RUN+="/usr/local/bin/nvclock -S 100"
    Reload the UDEV rules and then try switching the charger off/on:
    Code:
     sudo udevadm control –reload_rules


    Happy brightnessing!
    Last edited by hihihi; December 12th, 2008 at 02:57 PM.
    everything has an end, the sausage has two.
    <<<<<<<<<<<<<<<<<<<"linux worms"

  2. #2
    Join Date
    Feb 2007
    Location
    US of A
    Beans
    639
    Distro
    Ubuntu Karmic Koala (testing)

    Re: Sony VAIO FZ brightness WORKS!

    do you know how to do with on a cr120 sony vaio without a nvidia card in it??
    If you have any questions just send me a private message and a link back to the thread
    My Guides: sendEmail | Windows Shares

  3. #3
    Join Date
    Apr 2006
    Location
    New Zealand
    Beans
    Hidden!

    Re: Sony VAIO FZ brightness WORKS!

    Thanks for this info....

    It mostly works for my VGN-SZ55TN

    I also required a few packages before I could ./configure

    Code:
     sudo apt-get install libxext-dev libx11-dev
    I can use the
    Code:
    /usr/local/bin/nvclock -S -10
    and
    Code:
    /usr/local/bin/nvclock -S +10
    to adjust the brightness by -10% and +10% increments but I cannot seem to get the function keys to work.

    My brightness keys are F5 and F6.

    How can I check to see what numbers I need for my FN keys to work because the default entries in this tutorial don't seem to work for my FN keys??
    event=sony/hotkey SNC 00000001 00000011

  4. #4
    Join Date
    Dec 2008
    Beans
    3

    Re: Sony VAIO FZ brightness WORKS!

    Quote Originally Posted by remarks View Post
    Thanks for this info....

    It mostly works for my VGN-SZ55TN

    I also required a few packages before I could ./configure

    Code:
     sudo apt-get install libxext-dev libx11-dev
    I can use the
    Code:
    /usr/local/bin/nvclock -S -10
    and
    Code:
    /usr/local/bin/nvclock -S +10
    to adjust the brightness by -10% and +10% increments but I cannot seem to get the function keys to work.

    My brightness keys are F5 and F6.

    How can I check to see what numbers I need for my FN keys to work because the default entries in this tutorial don't seem to work for my FN keys??
    event=sony/hotkey SNC 00000001 00000011


    acpi_listen


  5. #5
    Join Date
    Oct 2006
    Location
    Amsterdam
    Beans
    153
    Distro
    Xubuntu 8.04 Hardy Heron

    Talking Re: Sony VAIO FZ brightness WORKS!

    Quote Originally Posted by remarks View Post
    ...
    My brightness keys are F5 and F6.

    How can I check to see what numbers I need for my FN keys to work because the default entries in this tutorial don't seem to work for my FN keys??
    event=sony/hotkey SNC 00000001 00000011
    hello there, as anthropo said, you need to work now with acpi_listen in order to find out the key code, it is very easy:

    1)
    open termninal,
    $ sudo gedit /etc/acpi/events/sony-brightness-down


    2)
    open another terminal and type:
    $ acpi_listen


    3)
    press your fn-f5 (brightness-down) and read the value
    compare that with the one in the script and if needed replace that.

    4)
    repeat the same with /etc/acpi/events/sony-brightness-up

    5)
    restart acpid
    $ sudo /etc/init.d/acpid restart

    6)
    test it
    if it does not work, try to reboot before getting the crisis//
    this should work.

    good luck
    everything has an end, the sausage has two.
    <<<<<<<<<<<<<<<<<<<"linux worms"

  6. #6
    Join Date
    Jun 2006
    Location
    Germany
    Beans
    14
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Sony VAIO FZ brightness WORKS!

    two things:
    1) thanks a ton!
    2) added vaio sz tag since I have such a model with nvidia gfx

    regards,
    psyeye

  7. #7
    Join Date
    Jun 2006
    Location
    Germany
    Beans
    14
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Sony VAIO FZ brightness WORKS!

    One question though: I always need to restart acpid before my fn-keys start to work.

    Anyone any idea why? Seems a bit strange to me...

    regards,
    psyeye

  8. #8
    Join Date
    Feb 2008
    Beans
    5

    Re: Sony VAIO FZ brightness WORKS!

    Whoaw thanks man, I've been waiting for this to work for years now

    I can finally use Ubuntu on my vaio FZ21S

  9. #9
    Join Date
    May 2008
    Beans
    40

    Re: Sony VAIO FZ brightness WORKS!

    i got a problem here. when i used acpi_listen and typed fn+f5, nothing appears. maybe keyboard layout settings problem?

  10. #10
    Join Date
    Sep 2008
    Location
    PA, USA
    Beans
    10
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Sony VAIO FZ brightness WORKS!

    i have to do: sudo /etc/init.d/acpid restart every time for it to work. any work around for having to manually type it in every time i restart?

Page 1 of 3 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •