Page 1 of 2 12 LastLast
Results 1 to 10 of 112

Thread: Fn keys Sony Vaio

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Beans
    194
    Distro
    Xubuntu 10.10 Maverick Meerkat

    Wink Fn keys Sony Vaio

    From Thewall83
    Zhukov: you should edit your first post and specify that it works only on the FJ series of Sony VAIO's laptop.
    On the FE under Feisty it doesn't work.
    So, you're warned

    Gutsy instructions as well!! Read the post!

    Nice! Feisty instructions!

    Code:
    sudo rmmod sony_acpi
    Code:
    sudo apt-get install libasound2-dev build-essential linux-headers-$(uname -r) gcc-3.4 libxosd-dev checkinstall
    Code:
    wget http://download.berlios.de/fsfn/sony_acpi.tar.gz
    wget http://student.dei.uc.pt/~jpoa/fsfn/fsfn.conf.txt
    wget http://student.dei.uc.pt/~jpoa/fsfn/fsfn.txt
    Forgot this deb... tsc tsc
    Code:
    wget http://student.dei.uc.pt/~jpoa/fsfn/fsfn_1.1-1_i386.deb
    Code:
    sudo dpkg -i fsfn_1.1-1_i386.deb
    Code:
    tar xvzf sony_acpi.tar.gz
    cd sony_acpi
    make
    Code:
    sudo cp sony_acpi.ko /lib/modules/2.6.20-15-generic/kernel/ubuntu/acpi/
    Code:
    sudo modprobe sony_acpi
    Code:
    sudo modprobe sony_acpi

    Sexy!

    Kudos mainly to Schwieb and also to UbuntuFS for the sony_acpi link (new version I believe).

    So now just continue from where you left with the old tutorial (marked with bold).




    Ok, so this is what I did to get the FN keys to work on my Vaio:

    First let's install some packages:

    Code:
    sudo apt-get install libasound2-dev build-essential linux-headers-$(uname -r) gcc-3.4 libxosd-dev checkinstall
    Then:

    Code:
    wget http://student.dei.uc.pt/~jpoa/fsfn/fsfn-1.1-take2.tar.gz
    	wget http://student.dei.uc.pt/~jpoa/fsfn/fsfn.conf.txt
    	wget http://student.dei.uc.pt/~jpoa/fsfn/fsfn.txt
    Extract and compile:

    Code:
    tar zxvf fsfn-1.1-take2.tar.gz
    	cd fsfn-1.1
    	./configure && make && sudo checkinstall
    Don't forget to get back to the initial directory:

    Code:
    cd ..
    Then, just to be sure all modules are loaded:

    Code:
    sudo rmmod sony_acpi
    	sudo modprobe sony_acpi
    	ls /proc/acpi/sony/
    And check for:

    Code:
    brightness brightness_default fnkey
    Feisty users continue here!

    Then let's copy the configuration file:

    Code:
    sudo cp fsfn.conf.txt /etc/fsfn.conf
    Then edit it as desired:

    Code:
    sudo gedit /etc/fsfn.conf
    For example, I reduce the size of the fonts and use Headphone as the ALSA device.

    If you need to activate the FJS hack add this to the beggining of the file:

    Code:
    BRT_SETDEFAULT=1
    	BRT_HACK_FJS=1
    Now let's test it!

    Code:
    sudo fsfn
    And:

    Code:
    fsfn -o
    Now try the keys. If everything is ok let's just add it to the boot process:

    Code:
    sudo chown root:root fsfn.txt && sudo chmod +x fsfn.txt && sudo mv fsfn.txt /etc/init.d/fsfn
    And:

    Code:
    sudo update-rc.d fsfn defaults

    !!! UPDATE FOR FRESH GUTSY INSTALLS !!! This comes from our friend mjpoetic

    Kudos man! You saved my day!

    UPDATE:
    I have been messing around with this and I managed to install it now. First I unloaded the other sony modules before installing things (i.e., sonypi and sony_laptop). Then when you are compiling the sony_acpi.ko file use:

    Code:

    Code:
    make && sudo make install
    Copy the sony_acpi.ko to it's appropriate place:

    Code:

    Code:
    sudo cp sony_acpi.ko /lib/modules/`uname -r`/ubuntu/acpi/


    Ill try to clean this post up soon


    And that's it! Hope it works for you!


    This is basically a summary of this I have NO CREDIT AT ALL!: http://www.ubuntuforums.org/showthread.php?t=88611

    Kudos to the developers and original thread creators!
    Last edited by Zhukov; December 5th, 2007 at 03:35 AM. Reason: Update for Gutsy

  2. #2
    Join Date
    Sep 2006
    Beans
    3

    Question Re: Fn keys Sony Vaio

    This is my eagerest thread, thanks for your efforts. Although I followed everything you posted, my sony laptop's fn-keys still don't work. That's what happened:

    Code:
    sudo rmmod sony_acpi
    ERROR: Module sony_acpi does not exist in /proc/modules
    Code:
    modprobe sony_acpi
    FATAL: Error inserting sony_acpi (/lib/modules/2.6.17-10-generic/kernel/drivers/acpi/sony_acpi.ko): Operation not permitted
    I have tried more than twice.
    Any help is appreciated.

  3. #3
    Join Date
    Apr 2005
    Beans
    194
    Distro
    Xubuntu 10.10 Maverick Meerkat

    Re: Fn keys Sony Vaio

    The fact that the module isn't there when you want to remove it it's not a problem.
    (That's what rmmod does anyway )

    To solve your issue just do sudo modprobe sony_acpi instead of just modprobe sony_acpi.
    That is the cause of the permission problem, you have to run the command as sudo.

    Thanks for pointing it out, i've already fixed it.

  4. #4
    Join Date
    Sep 2006
    Beans
    3

    Re: Fn keys Sony Vaio

    Thanks for your reply, it works fine.

  5. #5
    Join Date
    Jun 2006
    Location
    Sunny South Florida
    Beans
    93
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Fn keys Sony Vaio

    Worked here too!! Nice Howto!! A must have for VAIO users
    Last edited by mjpoetic; May 27th, 2007 at 06:37 PM.
    "Education is the most powerful weapon which you can use to change the world." - Nelson Mandela

  6. #6
    Join Date
    Dec 2006
    Beans
    11

    Re: Fn keys Sony Vaio

    It doesn't work for me!
    I've got a UBUNTU 6.10 on a Sony VAIO FE11H.
    The kernel is 2.6.17-10-generic.

    The howto goes well until I type:
    Code:
    ls /proc/acpi/sony/
    This command responds to me:
    Code:
    brightness brightness_default
    So, "fnkey" is not present!
    In fact when, after
    Code:
    fsfn -o
    , I try to type Fn+F5 or Fn+F6 it doesn't happen anything!
    I think that I should add some command near the lines F5 and F6 in the file "/etc/fsfn.conf", but Idon't know what kind of command will work!

    The only command that work (by terminal) are:
    Code:
    smartdimmer -i (increase brightness)
    smartdimmer -d (decrease      "    )
    but in my case they don't work near lines F5 and F6.

    How could I assign these commands to my Fn keys?

  7. #7
    Join Date
    Jan 2005
    Beans
    77

    Re: Fn keys Sony Vaio

    To thewall83:

    try to check
    Code:
    cat /var/log/acpid
    Is there any exceptions ?
    Try to click Fn keys and check /var/log/acpid again

  8. #8
    Join Date
    Dec 2006
    Beans
    11

    Re: Fn keys Sony Vaio

    Quote Originally Posted by larytet View Post
    To thewall83:

    try to check
    Code:
    cat /var/log/acpid
    Is there any exceptions ?
    Try to click Fn keys and check /var/log/acpid again
    Any exceptions
    It's like I didin't click any key.
    It's a known bug and (at the moment) it's unresolved because it needs the hard patching of the module sony_acpi.
    http://www.iwebyoumind.com/index.php...7228&SID=guest
    Bye bye!

  9. #9
    Join Date
    Jan 2005
    Beans
    77

    Re: Fn keys Sony Vaio

    Looks like screendimmer works in 6.10 out of the box for VGN-S460
    Code:
     sudo smartdimmer -i
     sudo smartdimmer -d
    I slightly modified
    /etc/acpi/sonybright.sh

    Code:
    #!/bin/bash
    
    BRIGHTNESS=$(cat /proc/acpi/sony/brightness)
    
    
    if [ "$BRIGHTNESS" -gt 8 ]; then
    	BRIGHTNESS=8
    fi
    
    if [ "x$1" = "xdown" ]; then
       if [ "$BRIGHTNESS" -gt 1 ]; then
          BRIGHTNESS=$(( $BRIGHTNESS - 1 ))
          echo $BRIGHTNESS > /proc/acpi/sony/brightness
          echo "BRIGHTNESS=$BRIGHTNESS"
          [ -x /usr/bin/smartdimmer ] && smartdimmer -d 2>/dev/null
          [ -x /usr/bin/smartdimmer ] && smartdimmer -d 2>/dev/null
       fi
    
    elif [ "x$1" = "xup" ]; then
       if [ "$BRIGHTNESS" -lt 8 ]; then
          BRIGHTNESS=$(( $BRIGHTNESS + 1 ))
          echo $BRIGHTNESS > /proc/acpi/sony/brightness
          echo "BRIGHTNESS=$BRIGHTNESS"
          [ -x /usr/bin/smartdimmer ] && smartdimmer -i 2>/dev/null
          [ -x /usr/bin/smartdimmer ] && smartdimmer -i 2>/dev/null
       fi
    
    else
       echo >&2 Unknown argument $1
    fi

    make sure that you start from some reasonable number
    for example:
    sudo echo 8 > /proc/acpi/sony/brightness
    and call
    sudo smartdimmer -i

    a couple of times


    Interesting exercise with ACPI (this one throttles power for CPU0)
    Code:
    su
    cd /proc/acpi/processor/CPU0/
    echo 7:7 > limit
    Last edited by larytet; January 28th, 2007 at 05:07 PM.

  10. #10
    Join Date
    Nov 2006
    Beans
    8

    Re: Fn keys Sony Vaio

    Quote Originally Posted by Zhukov View Post
    Ok, so this is what I did to get the FN keys to work on my Vaio:

    First let's install some packages:

    Code:
    sudo apt-get install libasound2-dev build-essential linux-headers-$(uname -r) gcc-3.4 libxosd-dev checkinstall
    Then:

    Code:
    wget http://student.dei.uc.pt/~jpoa/fsfn/fsfn-1.1-take2.tar.gz
    	wget http://student.dei.uc.pt/~jpoa/fsfn/fsfn.conf.txt
    	wget http://student.dei.uc.pt/~jpoa/fsfn/fsfn.txt
    Extract and compile:

    Code:
    tar zxvf fsfn-1.1-take2.tar.gz
    	cd fsfn-1.1
    	./configure && make && sudo checkinstall
    Don't forget to get back to the initial directory:

    Code:
    cd ..
    Then, just to be sure all modules are loaded:

    Code:
    sudo rmmod sony_acpi
    	sudo modprobe sony_acpi
    	ls /proc/acpi/sony/
    And check for:

    Code:
    brightness brightness_default fnkey
    Then let's copy the configuration file:

    Code:
    sudo cp fsfn.conf.txt /etc/fsfn.conf
    Then edit it as desired:

    Code:
    sudo gedit /etc/fsfn.conf
    For example, I reduce the size of the fonts and use Headphone as the ALSA device.

    If you need to activate the FJS hack add this to the beggining of the file:

    Code:
    BRT_SETDEFAULT=1
    	BRT_HACK_FJS=1
    Now let's test it!

    Code:
    sudo fsfn
    And:

    Code:
    fsfn -o
    Now try the keys. If everything is ok let's just add it to the boot process:

    Code:
    sudo chown root:root fsfn.txt && sudo chmod +x fsfn.txt && sudo mv fsfn.txt /etc/init.d/fsfn
    And:

    Code:
    sudo update-rc.d fsfn defaults
    And that's it! Hope it works for you!


    This is basically a summary of this I have NO CREDIT AT ALL!: http://www.ubuntuforums.org/showthread.php?t=88611

    Kudos to the developers and original thread creators!
    This worked for me in 6.10 release, but NOT in Feisy. What can i do?
    Thx!!!!!

Page 1 of 2 12 LastLast

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
  •