Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

[HOWTO] Sony Vaio FS series FN keys

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
221 posts
  • Page 2 of 9
    • Jump to page:
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 9
  • Next
Author
Message
harryx
n00b
n00b
Posts: 1
Joined: Thu Sep 01, 2005 1:55 pm

  • Quote

Post by harryx » Thu Sep 01, 2005 2:56 pm

I have a Sony PCG K15. The sony_acpi module together with
sonyfn does not work as expected. The reason is that on my
laptop it seems not possible to read out the current screen
brightness. Reading from the file proc/acpi/sony/brightness
always returns the same value as reading from
/proc/acpi/sony/brightness_default/ (kind of strange)

I changed sonyfn so that changing the screen
brightness always writes to brightness and brightness_default.
Then everything works fine. Thanks for the program.
Top
pijalu
Guru
Guru
User avatar
Posts: 365
Joined: Mon Oct 04, 2004 10:43 am

  • Quote

Post by pijalu » Thu Sep 01, 2005 3:53 pm

yep, I already notice this behavior an a sony laptop of a friends (i just don't remember the version)
The most funny thing is actually the laptop use "default" value but need a write in brigthness to actually use it...

Anyway, thx for info and model, and confirmation of this "funny" behavior :)
Top
Deltaflyer
n00b
n00b
Posts: 4
Joined: Fri Sep 02, 2005 1:56 am

  • Quote

Post by Deltaflyer » Fri Sep 02, 2005 2:04 am

Hi,

I tried your sony_acpi Patch on my Vaio VGN-A115M, but the patched Module don't seems to creat a fnkey file in /proc/acpi/sony.

Code: Select all

Drone sony # pwd
/proc/acpi/sony
Drone sony # ls
brightness  brightness_default
Do you think that my Notebook is just incompatible? ( i hope not ;) )
or is it only some pebkac on my side? ;)
Top
dextermagnific
Tux's lil' helper
Tux's lil' helper
Posts: 113
Joined: Sat Apr 16, 2005 10:02 am

  • Quote

Post by dextermagnific » Fri Sep 02, 2005 9:40 am

Tha patch didn't work for you as for me.
I just added the entries that are in the patch manually in sony_acpi.c (added those entries for the fnkeys)

I have a question : did anyone succeeded in making the fn+f7 (tv-out) keys working ?

Thanks
Top
pijalu
Guru
Guru
User avatar
Posts: 365
Joined: Mon Oct 04, 2004 10:43 am

  • Quote

Post by pijalu » Fri Sep 02, 2005 12:20 pm

dextermagnific wrote:Tha patch didn't work for you as for me.
I just added the entries that are in the patch manually in sony_acpi.c (added those entries for the fnkeys)

I have a question : did anyone succeeded in making the fn+f7 (tv-out) keys working ?

Thanks
I didn't succeed to make it work on my machine, plugging/unplugging an external screen generate an acpi event but that all i see so far... the strange thing is the nvidia-settings don't see the additional screen aswell.... the only way i found was to power the laptop with the screen plugged... I still have to play with other screen (the one i use is a really pretty old one...)
Top
pijalu
Guru
Guru
User avatar
Posts: 365
Joined: Mon Oct 04, 2004 10:43 am

  • Quote

Post by pijalu » Fri Sep 02, 2005 12:30 pm

Deltaflyer wrote:Hi,

I tried your sony_acpi Patch on my Vaio VGN-A115M, but the patched Module don't seems to creat a fnkey file in /proc/acpi/sony.

Code: Select all

Drone sony # pwd
/proc/acpi/sony
Drone sony # ls
brightness  brightness_default
Do you think that my Notebook is just incompatible? ( i hope not ;) )
or is it only some pebkac on my side? ;)
Easy way to check

Code: Select all

sudo strings /proc/acpi/dsdt | grep GHKE
should return GHKE
if not: not supported,
if yes, are you sure you are using the patched version ?
Give a try at the second patch for sony_acpi, this one added a PP, and you should see a 0.2-PP in the syslog
and try

Code: Select all

rmmod sony_acpi
depmod -a
modprobe sony_acpi
and check again :)
Top
dextermagnific
Tux's lil' helper
Tux's lil' helper
Posts: 113
Joined: Sat Apr 16, 2005 10:02 am

  • Quote

Post by dextermagnific » Fri Sep 02, 2005 2:18 pm

so turning on the computer with an external screen plugged makes the computer display on that screen ?
if so, this is good news for me. I can make my presentation without having to find another laptop that *works* grrrrrrrrrrrr.....

Thanks, i'll try that.
Top
pijalu
Guru
Guru
User avatar
Posts: 365
Joined: Mon Oct 04, 2004 10:43 am

  • Quote

Post by pijalu » Fri Sep 02, 2005 2:35 pm

dextermagnific wrote:so turning on the computer with an external screen plugged makes the computer display on that screen ?
if so, this is good news for me. I can make my presentation without having to find another laptop that *works* grrrrrrrrrrrr.....

Thanks, i'll try that.
at least on mine, and work as a dual (crt+lcd)
Top
Deltaflyer
n00b
n00b
Posts: 4
Joined: Fri Sep 02, 2005 1:56 am

  • Quote

Post by Deltaflyer » Fri Sep 02, 2005 2:57 pm

dextermagnific wrote:so turning on the computer with an external screen plugged makes the computer display on that screen ?
if so, this is good news for me. I can make my presentation without having to find another laptop that *works* grrrrrrrrrrrr.....

Thanks, i'll try that.
I think it should also work with only restarting the Xserver.
So you only have to plug in the Monitor and press crtl+alt+backspace. (you should have configured the 2nd Moinor in your config ;) )

At least that worked for me.
Last edited by Deltaflyer on Fri Sep 02, 2005 3:14 pm, edited 1 time in total.
[root@Hive /root]# man real-life
No manual entry for real-life
Top
Deltaflyer
n00b
n00b
Posts: 4
Joined: Fri Sep 02, 2005 1:56 am

  • Quote

Post by Deltaflyer » Fri Sep 02, 2005 3:07 pm

pijalu wrote:
Easy way to check

Code: Select all

sudo strings /proc/acpi/dsdt | grep GHKE
should return GHKE
if not: not supported,
if yes, are you sure you are using the patched version ?
Give a try at the second patch for sony_acpi, this one added a PP, and you should see a 0.2-PP in the syslog
and try

Code: Select all

rmmod sony_acpi
depmod -a
modprobe sony_acpi
and check again :)

Code: Select all

Drone ~ # strings /proc/acpi/dsdt
Drone ~ #  
could it be, that this returns nothing?

Code: Select all

Drone ~ # rmmod sony_acpi
Drone ~ # lsmod
Module                  Size  Used by
Drone ~ # depmod -a
Drone ~ # modprobe sony_acpi
Drone ~ # dmesg | grep -i sony
ACPI Sony Notebook Control Driver v0.2-PP successfully removed
ACPI Sony Notebook Control Driver v0.2-PP successfully installed
Drone ~ #       
and again "strings /proc/acpi/dsdt" returns nothing.
:(
[root@Hive /root]# man real-life
No manual entry for real-life
Top
pijalu
Guru
Guru
User avatar
Posts: 365
Joined: Mon Oct 04, 2004 10:43 am

  • Quote

Post by pijalu » Fri Sep 02, 2005 3:27 pm

Deltaflyer wrote: "strings /proc/acpi/dsdt" returns nothing.
:(
if the strings don't report you the GHKE, it just means your DSDT will not work with this how-to, maybe give a shot to the patched sony_pi
(see http://forums.gentoo.org/viewtopic-t-36 ... -sony.html)
Top
pijalu
Guru
Guru
User avatar
Posts: 365
Joined: Mon Oct 04, 2004 10:43 am

  • Quote

Post by pijalu » Fri Sep 02, 2005 3:29 pm

Deltaflyer wrote:
dextermagnific wrote:so turning on the computer with an external screen plugged makes the computer display on that screen ?
if so, this is good news for me. I can make my presentation without having to find another laptop that *works* grrrrrrrrrrrr.....

Thanks, i'll try that.
I think it should also work with only restarting the Xserver.
So you only have to plug in the Monitor and press crtl+alt+backspace. (you should have configured the 2nd Moinor in your config ;) )

At least that worked for me.
hihi I didn't try that yet... hmmm... that looks interesting...
Will look at that someday ;-)
Thx for sharing the info
Top
Deltaflyer
n00b
n00b
Posts: 4
Joined: Fri Sep 02, 2005 1:56 am

  • Quote

Post by Deltaflyer » Fri Sep 02, 2005 3:59 pm

pijalu wrote:
Deltaflyer wrote: "strings /proc/acpi/dsdt" returns nothing.
:(
if the strings don't report you the GHKE, it just means your DSDT will not work with this how-to, maybe give a shot to the patched sony_pi
(see http://forums.gentoo.org/viewtopic-t-36 ... -sony.html)
hrm,
I'm wondering, why this even don't return GPBR or SPBR.
I have /proc/acpi/sony/brightness and /proc/acpi/sony/brightness_default and they're working. So GPBR or SPBR should be present?!
(I hope thats not too much OT :) )
[root@Hive /root]# man real-life
No manual entry for real-life
Top
dextermagnific
Tux's lil' helper
Tux's lil' helper
Posts: 113
Joined: Sat Apr 16, 2005 10:02 am

  • Quote

Post by dextermagnific » Fri Sep 02, 2005 4:56 pm

About the tv-out :
yes it does work by restarting the X server.
The fact is that the monitor must be plugged before the X server starts. If it is already started, you must restart it.
This is very good news for me. At last I can show my presentation on my own laptop.
F**k non-standard hardware with no specifications !!!
You know i wrote to Sony to get some specifications about the fn keys, here is what i got :

Dear Mr xyz,
Unfortunately we cannot provide you with Linux drivers. Sony doesn't provide support for systems other than the one preinstalled.

This forum was very helpful for me. In 2 days, my fn keys worked and i got the tv-out.

There is still a pb : did anyone succeeded in hibernate ? (echo 4 > /proc/acpi/sleep or echi disk > /sys/power/state)
after freezing the cpu and stopping tasks, the monitor becomes black but the computer doesn't shut down

Thanks
Top
pijalu
Guru
Guru
User avatar
Posts: 365
Joined: Mon Oct 04, 2004 10:43 am

  • Quote

Post by pijalu » Fri Sep 02, 2005 10:59 pm

dextermagnific wrote: You know i wrote to Sony to get some specifications about the fn keys, here is what i got :

Dear Mr xyz,
Unfortunately we cannot provide you with Linux drivers. Sony doesn't provide support for systems other than the one preinstalled.

This forum was very helpful for me. In 2 days, my fn keys worked and i got the tv-out.
hmm, most of the constructor just don't want to bother with other systems than windows... it's not just Sony... most of them behave the same... we are not YET a good market (and the PS3 on linux... that's quite funny...)
I really don't get why the IT field is so complicated... One day I writed to Phillips to get the electrical schema of a dish washer.. and i got it the day after without any troubles...
There is still a pb : did anyone succeeded in hibernate ? (echo 4 > /proc/acpi/sleep or echi disk > /sys/power/state)
after freezing the cpu and stopping tasks, the monitor becomes black but the computer doesn't shut down

Thanks
I succeed to hibernate without problem if i am NOT on battery (using swsup) ... On battery it just hangs after the screen blanking... but i didn't go really further, still hold quite important informations on the HD (and honestly, I never use my laptop without power supply...)
The problem seems generic with sony laptops :( (from what i see)
Top
pijalu
Guru
Guru
User avatar
Posts: 365
Joined: Mon Oct 04, 2004 10:43 am

  • Quote

Post by pijalu » Sat Sep 03, 2005 5:13 am

Deltaflyer wrote: hrm,
I'm wondering, why this even don't return GPBR or SPBR.
I have /proc/acpi/sony/brightness and /proc/acpi/sony/brightness_default and they're working. So GPBR or SPBR should be present?!
(I hope thats not too much OT :) )
Yup, it should... send me your dsdt by mail and i will confirm/infirm :)
Top
G2k
l33t
l33t
User avatar
Posts: 672
Joined: Sat Mar 06, 2004 5:58 pm
Location: Rome, Italy

  • Quote

Post by G2k » Mon Sep 12, 2005 2:19 am

hey guys I was wondering if you know a way to have the system shutdown when the battery is low. Right now the only way I can know my battery status is through torsmo, but it would be nice to have the computer shutdown if I'm not around to do it myself. Any success on the suspending to RAM issue?

Also, will an ebuild for this ever come out :o cus I've been too lazy to attempt getting the FN keys to work properly.
thanks
Animula vagula blandula,
Hospes comesque corporis,
Quae nunc abibis in loca
Pallidula rigida nudula,
Nec ut soles dabis iocos...
- Imp. Caesar Hadrianus
Top
pijalu
Guru
Guru
User avatar
Posts: 365
Joined: Mon Oct 04, 2004 10:43 am

  • Quote

Post by pijalu » Tue Sep 13, 2005 3:44 pm

G2k wrote:hey guys I was wondering if you know a way to have the system shutdown when the battery is low. Right now the only way I can know my battery status is through torsmo, but it would be nice to have the computer shutdown if I'm not around to do it myself. Any success on the suspending to RAM issue?
* The shutdown on low battery: Take a look at acpid, should be doable (gnome/kde give me warn) - didn't try.... i hate this 'feature'... and i am always around my machine ;-)
Take a look at

Code: Select all

cat /proc/acpi/battery/BAT0/state
cat /proc/acpi/battery/BAT0/info
this give you needed infos

* Suspend to RAM/HD : nope... and honestly, i am not a "battery" guy anyway... the battery is not even in my laptop...
G2k wrote: Also, will an ebuild for this ever come out :o cus I've been too lazy to attempt getting the FN keys to work properly.
thanks
No ebuild yet, didn't find time to do it... but maybe give a shoot at http://developer.berlios.de/project/sho ... up_id=4604
I put there a project for it with sound-mind, no docs (yet) in the tar ball but here they comes:


Gentooist: new overlay ebuilds at http://download.berlios.de/fsfn/fsfn_overlay.tar.bz2
* untar this in your overlay dir
* emerge fsfn
* add sony_acpi to your modules autoload list
* jump to the rc-update part :)


Install (if needed) the patched sony_acpi
and then

Code: Select all

wget http://download.berlios.de/fsfn/sony_acpi.tar.gz
tar zxvf sony_acpi.tar.gz
cd sony_acpi
make && sudo make install
Check if the module fit your kernel

Code: Select all

modprobe sony_acpi
ls /proc/acpi/sony
You should see

Code: Select all

brightness  brightness_default  fnkey
If ok, add sony_acpi to your autoloaded modules

Code: Select all

echo sony_acpi >> /etc/modules.autoload.d/kernel-2.6
Install xosd (if needed)

Code: Select all

emerge xosd
Install the new sonyfn (called fsfn - didn't want to put sony in the short name... good machines... bad PR)

Code: Select all

wget http://download.berlios.de/fsfn/fsfn-1.0.tar.gz
tar zxvf fsfn-1.0.tar.gz
cd fsfn-1.0
./configure && make && sudo make install
If you want a init.d script, you can copy the one included in the gentoo dir or get it using svn

Code: Select all

cd /etc/init.d/
sudo wget "http://svn.berlios.de/viewcvs/*checkout*/fsfn/trunk/fsfn/gentoo/fsfn?rev=1" -O fsfn
chmod +x fsfn
Note: For debian/fedora based people, you can find a initscript in the debian/fedora sub dir or on svn:
debian(thanks go to messenjer for this one) / fedora


Autostart the handler (remove previous version manually from local or from previously posted init script)

Code: Select all

rc-update add fsfn default
Some infos:
This will launch a deamon to handle the key (like sonyfn) , should be run as root

Code: Select all

fsfn
or (best solution )

Code: Select all

/etc/init.d/fsfn start 
If you use X , add to kde/gnome/xsession the call to

Code: Select all

/usr/local/bin/fsfn -o
This is normally give you nice visual feedback about volume/brightness thanks to sound-mind. This can be run as a normal user

More infos: rtfm !

Code: Select all

man fsfn
==> Informations on fsfn

Code: Select all

man 5 fsfn
==> Informations of /etc/fsfn.conf (configuration for fsfn)

Hope it helps
Btw, any contrib welcome ;-)...

EDIT:
* 2005-12-13 : Updated for ver 1.0 [ new version - man - gentoo overlay]
* 2005-11-25 : Updated for ver 0.3 [deamonize corrected + debian initscript included]
* 2005-11-25 : Updated for ver 0.3-r1 [more details errors messages]
Last edited by pijalu on Tue Dec 13, 2005 7:15 pm, edited 7 times in total.
Top
G2k
l33t
l33t
User avatar
Posts: 672
Joined: Sat Mar 06, 2004 5:58 pm
Location: Rome, Italy

  • Quote

Post by G2k » Tue Sep 13, 2005 5:13 pm

everything went smoothly until

Code: Select all

# pwd
/etc/init.d
# rc-update add fsfn default
 * fsfn not executable; skipping
# /etc/init.d/fsfn start
-bash: /etc/init.d/fsfn: Permission denied
:?:
Animula vagula blandula,
Hospes comesque corporis,
Quae nunc abibis in loca
Pallidula rigida nudula,
Nec ut soles dabis iocos...
- Imp. Caesar Hadrianus
Top
pijalu
Guru
Guru
User avatar
Posts: 365
Joined: Mon Oct 04, 2004 10:43 am

  • Quote

Post by pijalu » Tue Sep 13, 2005 6:41 pm

G2k wrote:everything went smoothly until

Code: Select all

# pwd
/etc/init.d
# rc-update add fsfn default
 * fsfn not executable; skipping
# /etc/init.d/fsfn start
-bash: /etc/init.d/fsfn: Permission denied
:?:
sorry, a

Code: Select all

chmod +x /etc/init.d/fsfn 
should help (corrected previous post, thx)
Top
G2k
l33t
l33t
User avatar
Posts: 672
Joined: Sat Mar 06, 2004 5:58 pm
Location: Rome, Italy

  • Quote

Post by G2k » Tue Sep 13, 2005 6:49 pm

Code: Select all

/etc/init.d/fsfn start
 * Caching service dependencies ...                                       [ ok ]
 * Starting fsfn key handler ...
Failed to generate key: No such file or directory                         [ ok ]
I love it how there's an [ ok ] there anyways :)
and one last thing: where exactly do I have to add the line /usr/local/bin/fsfn -o ?
thanks for your time
Animula vagula blandula,
Hospes comesque corporis,
Quae nunc abibis in loca
Pallidula rigida nudula,
Nec ut soles dabis iocos...
- Imp. Caesar Hadrianus
Top
pijalu
Guru
Guru
User avatar
Posts: 365
Joined: Mon Oct 04, 2004 10:43 am

  • Quote

Post by pijalu » Tue Sep 13, 2005 7:21 pm

G2k wrote:

Code: Select all

/etc/init.d/fsfn start
 * Caching service dependencies ...                                       [ ok ]
 * Starting fsfn key handler ...
Failed to generate key: No such file or directory                         [ ok ]
I love it how there's an [ ok ] there anyways :)
and one last thing: where exactly do I have to add the line /usr/local/bin/fsfn -o ?
thanks for your time
the error is not good, won't work... it's when the deamon try generate a key for /proc/acpi/sony

Before launching, do a

Code: Select all

modprobe sony_acpi
then relaunch

Code: Select all

/etc/init.d/fsfn restart
if it don't complain, do

Code: Select all

echo sony_acpi >> /etc/modules.autoload.d/kernel-2.6
to load sony_acpi directly
Top
pijalu
Guru
Guru
User avatar
Posts: 365
Joined: Mon Oct 04, 2004 10:43 am

  • Quote

Post by pijalu » Tue Sep 13, 2005 7:53 pm

To add fsfn at start of your X session, in a clean and easy way:
* gnome
Desktop Menu - Preference - Sessions, then Startup program tab, choose add
enter for Startup Command : "/usr/local/bin/fsfn -o"
and set Order to 99 (last one to start)

* kde
copy this code in a file called fsfn in ~/.kde/Autostart/fsfn

Code: Select all

#!/bin/sh
/usr/local/bin/fsfn -o
and then do

Code: Select all

chmod +x of ~/.kde/Autostart/fsfn 
then you should have a nice output of brightness/sound changes
Top
G2k
l33t
l33t
User avatar
Posts: 672
Joined: Sat Mar 06, 2004 5:58 pm
Location: Rome, Italy

  • Quote

Post by G2k » Tue Sep 13, 2005 8:22 pm

uh...I think I got everything to run properly cus I didn't get any other errors. However the Fn key is not working :? do I have to reboot or something? I know...it's not windows...but still I tried restarting the service and it still doesn't work (and again, I get no errors). I also ran fsfn -o as a background process...still nothing.
Animula vagula blandula,
Hospes comesque corporis,
Quae nunc abibis in loca
Pallidula rigida nudula,
Nec ut soles dabis iocos...
- Imp. Caesar Hadrianus
Top
pijalu
Guru
Guru
User avatar
Posts: 365
Joined: Mon Oct 04, 2004 10:43 am

  • Quote

Post by pijalu » Tue Sep 13, 2005 8:35 pm

G2k wrote:uh...I think I got everything to run properly cus I didn't get any other errors. However the Fn key is not working :? do I have to reboot or something? I know...it's not windows...but still I tried restarting the service and it still doesn't work (and again, I get no errors). I also ran fsfn -o as a background process...still nothing.
reboot should not be needed...
Let's do some research
As root

Code: Select all

killall fsfn
rmmod sony_acpi
dmesg -c
modprobe sony_acpi
ls /proc/acpi/sony
ls /dev/input
fsfn -n
(try a few hit)
dmesg
This will start fsfn in a "non background" mode, to check what's going on..
If not working, send the result of the 2 ls and the last dmesg
Top
Post Reply

221 posts
  • Page 2 of 9
    • Jump to page:
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 9
  • Next

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy