Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sony Vaio S4 Series
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
knefas
l33t
l33t


Joined: 21 Dec 2003
Posts: 828

PostPosted: Thu Aug 25, 2005 8:43 pm    Post subject: Reply with quote

I though it would be a good idea to let everyone contribute to this howto, in order to collect and organize better all the stuff that is around, so I started a wiki page, I hope you'll enjoy it :)
Back to top
View user's profile Send private message
flocchini
Veteran
Veteran


Joined: 17 May 2003
Posts: 1124
Location: Milano, Italy

PostPosted: Sun Sep 11, 2005 12:17 am    Post subject: Reply with quote

your ebuild for sonykeyd mentioned in wiki page has been removed from altervista :?

I found it trough google cache

Code:
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

S=${WORKDIR}/${PN}
DESCRIPTION="A daemon to use fn key on Sony Vaio Laptops"
HOMEPAGE="http://juljas.net/linux/vaiofx240/sonykeyd.html"
SRC_URI="http://knefas.altervista.org/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"


RDEPEND="media-video/smartdimmer"

src_unpack() {
unpack ${A} || die
}

src_compile() {
cd ${S} || die
emake || die
}

src_install() {
exeinto /usr/sbin
doexe sonykeyd
exeinto /usr/local/sbin
doexe scripts/sonykey.sh

exeinto /etc/init.d
doexe scripts/sonypi
dodoc doc/README
}

pkg_postinst() {
einfo "To enable fn-keys at boot run"
einfo "rc-update add sonypi default"
einfo "Please see http://forums.gentoo.org/viewtopic-t-2590043.html"
}


But the source is still missed. Can you link it here? :wink:
_________________
~~ Per amore della rosa si sopportano le spine... ~~
Back to top
View user's profile Send private message
knefas
l33t
l33t


Joined: 21 Dec 2003
Posts: 828

PostPosted: Sun Sep 11, 2005 6:34 am    Post subject: Reply with quote

Damn altervista, sometimes I forget to keep it alive...sorry about that. :)

I've updated the wiki with the new ebuild and re-uploaded the source. It doesn't depend anymore on smartdimmer, since it's functionalities have been integrated into nvclock-0.8beta. I didn't find the time to write a sonykey.sh to use the new nvclock (I'm still using smartdimmer!), but that's the way to go.
Back to top
View user's profile Send private message
flocchini
Veteran
Veteran


Joined: 17 May 2003
Posts: 1124
Location: Milano, Italy

PostPosted: Sun Sep 11, 2005 2:31 pm    Post subject: Reply with quote

great :wink:

but there are still some problems
Code:
voyager sonykeyd # emerge sonykeyd
Calculating dependencies ...done!
>>> emerge (1 of 1) app-laptop/sonykeyd-0.2.2 to /
>>> md5 files   ;-) sonykeyd-0.2.2.ebuild
>>> md5 files   ;-) files/digest-sonykeyd-0.2.2
>>> md5 src_uri ;-) sonykeyd-0.2.2.tar.gz
>>> Unpacking source...
>>> Unpacking sonykeyd-0.2.2.tar.gz to /var/tmp/portage/sonykeyd-0.2.2/work
>>> Source unpacked.
gcc -Wall -Wstrict-prototypes -O2 -pipe -I/usr/src/linux/include   -c -o sonykeyd.o sonykeyd.c
sonykeyd.c:49:18: xosd.h: No such file or directory
make: *** [sonykeyd.o] Error 1

!!! ERROR: app-laptop/sonykeyd-0.2.2 failed.
!!! Function src_compile, Line 22, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


I installed xosd-2.2.14 and it works. This is the fixed ebuild:

Code:
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

S=${WORKDIR}/${PN}
DESCRIPTION="A daemon to use fn key on Sony Vaio Laptops"
HOMEPAGE="http://juljas.net/linux/vaiofx240/sonykeyd.html"
SRC_URI="http://knefas.altervista.org/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"

DEPEND=">=x11-libs/xosd-2.2.14"

src_unpack() {
unpack ${A} || die
}

src_compile() {
cd ${S} || die
emake || die
}

src_install() {
exeinto /usr/sbin
doexe sonykeyd
exeinto /usr/local/sbin
doexe scripts/sonykey.sh

exeinto /etc/init.d
doexe scripts/sonypi
dodoc doc/README
}

pkg_postinst() {
einfo "To enable fn-keys at boot run"
einfo "rc-update add sonypi default"
einfo "Please see http://forums.gentoo.org/viewtopic-t-2590043.html"
}

_________________
~~ Per amore della rosa si sopportano le spine... ~~
Back to top
View user's profile Send private message
flocchini
Veteran
Veteran


Joined: 17 May 2003
Posts: 1124
Location: Milano, Italy

PostPosted: Sun Sep 11, 2005 4:06 pm    Post subject: Reply with quote

knefas wrote:
Damn altervista, sometimes I forget to keep it alive...sorry about that. :)

I've updated the wiki with the new ebuild and re-uploaded the source. It doesn't depend anymore on smartdimmer, since it's functionalities have been integrated into nvclock-0.8beta. I didn't find the time to write a sonykey.sh to use the new nvclock (I'm still using smartdimmer!), but that's the way to go.


It doesn't work... I successfully installed sonykeyd with the provided ebuild, patched my gentoo-sources-2.6.12-gentoo-r10 and created the device node
Code:
echo -e "alias char-major-10-250 sonpi \noptions sonypi minor=250" > /etc/modules.d/sonypi
mknod /dev/sonypi c 10 250
modules-update
.

I load sonypi module and start the daemon but nothing happen, fn keys are still unusable. No log in /var/log/sonypi. What's wrong? :wink:
_________________
~~ Per amore della rosa si sopportano le spine... ~~
Back to top
View user's profile Send private message
knefas
l33t
l33t


Joined: 21 Dec 2003
Posts: 828

PostPosted: Sun Sep 11, 2005 4:39 pm    Post subject: Reply with quote

Try to emerge sonypid and see if it gets the key events...
when you
Code:
modprobe sonypi verbose=2

what does dmesg say?
Back to top
View user's profile Send private message
flocchini
Veteran
Veteran


Joined: 17 May 2003
Posts: 1124
Location: Milano, Italy

PostPosted: Sun Sep 11, 2005 6:57 pm    Post subject: Reply with quote

with sonykeyd and verbose module

fn+f2

Code:
Sony Vaio Jogdial input method installed.
Sony Vaio Keys input method installed.
sonypi: event port1=0x00,port2=0x05
sonypi: event port1=0x00,port2=0x05
sonypi: Sony Programmable I/O Controller Driverv1.26.
sonypi: detected type3 model, verbose = 2, fnkeyinit = off, camera = off, compat = off, mask = 0xffffffff, useinput = on, acpi = on
sonypi: enabled at irq=11, port1=0x1080, port2=0x1084
sonypi: unknown event port1=0x0e,port2=0x05
sonypi: event port1=0x12,port2=0x21
sonypi: event port1=0x1f,port2=0x21
sonypi: event port1=0x12,port2=0x21
sonypi: event port1=0x1f,port2=0x21


with verbose module launching sonypid:

Code:
voyager ~ # sonypid
sonypid: Sony Vaio SPIC daemon version 1.9, Oct 8, 2003
Event: Fn-F2 Pressed
Event: Event unknown!
Event: Fn-F3 Pressed
Event: Event unknown!
Event: Fn-F4 Pressed
Event: Event unknown!
Event: Fn-F5 Pressed
Event: Event unknown!
Event: Fn-F6 Pressed
Event: Event unknown!


:roll:

tnx for your help :wink:
_________________
~~ Per amore della rosa si sopportano le spine... ~~
Back to top
View user's profile Send private message
knefas
l33t
l33t


Joined: 21 Dec 2003
Posts: 828

PostPosted: Mon Sep 12, 2005 7:22 am    Post subject: Reply with quote

There's a little bug in sonykeyd, I'm really sorry about that, and thanks a lot to flocchini for telling me about it! :)
I think I've corrected it (it was just a misplaced comment) in the source that now is at http://knefas.altervista.org/sonykeyd-0.2.2.tar.gz

I don't know why but it seems that altervista (or my tar.gz...) today doesn't work so well, I can't directly emerge it and I get a
Code:
!!! Couldn't download sonykeyd-0.2.2.tar.gz. Aborting
But the source is all right downloaded in /usr/portage/distfiles. :? :?



EDIT: ah, the ebuild actually doesn't depend on xosd. You'll need it if you want to use some IMO cute thigs, but it's not compulsory ;) I removed the
Code:
#include <xosd.h>
that was there just for some experiments...sorry for uploading a so broken thing! :)
Back to top
View user's profile Send private message
flocchini
Veteran
Veteran


Joined: 17 May 2003
Posts: 1124
Location: Milano, Italy

PostPosted: Mon Sep 12, 2005 12:28 pm    Post subject: Reply with quote

ooooook, now it works, many thanks! :wink:

Still some problems with the init.d script, if sonykeyd is launced through it shut down after one command. Otherwhise no problem if launched standalone from the shell, I'm taking a look now :)
_________________
~~ Per amore della rosa si sopportano le spine... ~~
Back to top
View user's profile Send private message
flocchini
Veteran
Veteran


Joined: 17 May 2003
Posts: 1124
Location: Milano, Italy

PostPosted: Mon Sep 12, 2005 1:33 pm    Post subject: Reply with quote

solved: the problem was apparently the "DAEMON" variable, hardcoding the command works perfectly for me :wink:

First of all you must add sonypy module to /etc/modules.autoload.d/kernel-2.6 with the wiki-provided options in /etc/modules.d/sonypi

Now the init, maybe a good idea update the source archive :) (after you successfully tested it, of course, don't trust me! :lol:)

Code:
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# Please mail me for suggestion/support: knefas@gmail.com
# $Header: $

start() {
  ebegin "Starting Sony Input/Output event interface"
   start-stop-daemon --start --quiet --exec /usr/sbin/sonykeyd
  eend $?
}

stop() {
  ebegin "Stopping Sony Input/Output event interface"
  start-stop-daemon --stop --quiet --exec /usr/sbin/sonykeyd
  rmmod sonypi
  eend $?
}

reload() {
  ebegin "Restarting Sony Input/Output event interface"
  start-stop-daemon --stop --signal 1 --quiet --exec /usr/sbin/sonykeyd
  eend $?
}

_________________
~~ Per amore della rosa si sopportano le spine... ~~
Back to top
View user's profile Send private message
M0
n00b
n00b


Joined: 17 Oct 2005
Posts: 4
Location: Germany

PostPosted: Mon Oct 17, 2005 8:57 pm    Post subject: "noise" of VGN-S4? Reply with quote

Hi all,

I am thinking about buying a vaio VGN-S5HP and since I was told that the S4 and S5 series are quite similar (despite of CPU, Harddisk and GPU) I'd like to hear about your experiences with the S4:
I am quite noise sensitive and I hate Notebooks that constantly have a fan running. The dealer told me that the fan would only run in rare cases when the system is claimed very much, but on the the one hand his experience is M$-Win based only and on the other hand I'd like to get some "independend" statements.

My "great dream" would be that the NB is quiet (fan off and no electronic chirping) in everyday work like textediting (email, programming, OpenOffice, ...) and surfing the web. Of course it's absolutely okay if the fan is running while doing CPU- and / or GPU-intensive work like compiling, encoding or running 3D acceleration. What are your experiences?

Thank's in advance!

Greetings
Moritz
PS: I hope this posting is not OT!? :roll:
Back to top
View user's profile Send private message
knefas
l33t
l33t


Joined: 21 Dec 2003
Posts: 828

PostPosted: Mon Oct 17, 2005 9:56 pm    Post subject: Reply with quote

The fan kicks on at 56 degrees on S4's, and yes, you will definitely reach them even undervolting. I haven't find a way to modify this behaviour. :)
Back to top
View user's profile Send private message
M0
n00b
n00b


Joined: 17 Oct 2005
Posts: 4
Location: Germany

PostPosted: Tue Oct 18, 2005 7:50 am    Post subject: Reply with quote

knefas wrote:
The fan kicks on at 56 degrees on S4's, and yes, you will definitely reach them even undervolting. I haven't find a way to modify this behaviour. :)

Hmmm ... doesn't sound that good. :(
Does that mean, the fan will run nearly all the time? :? What is the temperature while the system is idle (up an runnig, but not touched)?
What about my example of text editing and surfing; do you think (or have you experienced) this will make the temperature go over the mentioned 56 degrees?

You mentioned undervolting, but what about the speedstep modes? The S5HP has 1,73GHz which I think is far more power than usually needed for surfing (and my often mentioned text editing :wink:). Let's say I throttle it to ~1 GHz, shouldn't that keep the CPU cool enough?
Back to top
View user's profile Send private message
knefas
l33t
l33t


Joined: 21 Dec 2003
Posts: 828

PostPosted: Tue Oct 18, 2005 10:15 pm    Post subject: Reply with quote

See the wiki section about undervolting, and the 3d about it...it has useful info :) You can run a 1.73Ghz CPU at 800 (non sure, but something like that). You can also say that you want it to run at 0.800 Volt instead that 1.xxx : it requires a bit of testing and it's not really straightforward, but it saves power and heat.

My S4 runs 55-56 degrees idle, I'm quite happy about it, but yes, it runs at that temp.
Back to top
View user's profile Send private message
M0
n00b
n00b


Joined: 17 Oct 2005
Posts: 4
Location: Germany

PostPosted: Wed Oct 19, 2005 1:38 pm    Post subject: Reply with quote

In a nutshell: The fan is wailing all the time ?! :cry:
Back to top
View user's profile Send private message
knefas
l33t
l33t


Joined: 21 Dec 2003
Posts: 828

PostPosted: Wed Oct 19, 2005 4:32 pm    Post subject: Reply with quote

M0 wrote:
In a nutshell: The fan is wailing all the time ?! :cry:

I can't really answer: No, it's not, but undervolting. And sometimes kicks on anyway. But it's possible that the S5 has a better cooling system, I have no idea. :)
Back to top
View user's profile Send private message
M0
n00b
n00b


Joined: 17 Oct 2005
Posts: 4
Location: Germany

PostPosted: Wed Oct 19, 2005 10:11 pm    Post subject: Reply with quote

knefas wrote:
I have no idea. :)


Anyway, thanks for your help! :D
Back to top
View user's profile Send private message
lacerto
n00b
n00b


Joined: 17 Oct 2005
Posts: 49

PostPosted: Sun Oct 23, 2005 1:02 pm    Post subject: Reply with quote

I've an S3XP, and followed the WIKI howto for the S4, as they a pretty much the same machine I think.

The problem I'm having is that when I compile ACPI Support-> Processor into the kernel, the boot process hangs for about 3 mins when loading the disk drivers(sata etc). In then runs on quite smoothly, though still a little slow.
When I compile as a module, the boot process works fine, but I loose the ACPI funtionality.

At I guess, I think the kernel might be throttling my CPU...if this is the case, is there some way of stopping it doing this, short of disabling ACPI?

I'm using kernel 2.6.13-r3.

Anyone seen this before?
Back to top
View user's profile Send private message
knefas
l33t
l33t


Joined: 21 Dec 2003
Posts: 828

PostPosted: Sun Oct 23, 2005 1:08 pm    Post subject: Reply with quote

Are you sure it depends only to "CONFIG_ACPI_PROCESSOR" ? I'm using gentoo-sources with acpi processor enabled and I don't see this...sorry. :)
Back to top
View user's profile Send private message
lacerto
n00b
n00b


Joined: 17 Oct 2005
Posts: 49

PostPosted: Sun Oct 23, 2005 2:08 pm    Post subject: Reply with quote

Hi thanks for the response.

Well yes and no I suppose - As I said, if I compile it as a modules, there's no problem. When in kernel, then it takes ages to boot.

I suppose it could be a combination though - if I compile into kernel, then I need to change something else. Tricky to find though....
Back to top
View user's profile Send private message
lacerto
n00b
n00b


Joined: 17 Oct 2005
Posts: 49

PostPosted: Mon Oct 24, 2005 6:55 pm    Post subject: Reply with quote

I don'tr suppsoe someone could post up their .config? Would be a useful addition to the wiki
Back to top
View user's profile Send private message
knefas
l33t
l33t


Joined: 21 Dec 2003
Posts: 828

PostPosted: Mon Oct 24, 2005 7:09 pm    Post subject: Reply with quote

see on the external link of the wiki, http://www.homepages.ucl.ac.uk/~zctly50/stuff/ for example :)
Back to top
View user's profile Send private message
lacerto
n00b
n00b


Joined: 17 Oct 2005
Posts: 49

PostPosted: Mon Oct 24, 2005 9:14 pm    Post subject: Reply with quote

Thanks - that has helped very much.
Back to top
View user's profile Send private message
alemare
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2004
Posts: 137
Location: Firenze

PostPosted: Tue Jan 10, 2006 6:39 pm    Post subject: Reply with quote

First off all hi! i'm a new buyer of a sony vaio and i have only one problem with fn key. The problem is simple fn doesn't work :D !
when i press for example fn-f4 in log appear a
Code:
atkbd.c: Unknow key pressed (translated set 2, code 0xf5 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e075 <keycode>' to make it known.

I had just loaded module sonypi and at boot started sonykeyd and all apper to start well without error.

All because i want to reduce brightness of the monitor. I try to use smartdimmer manually but the screen flash a moment but nothing change. There is the same brightness in all the 21 level selectable.
Bye bye Alemare
Back to top
View user's profile Send private message
knefas
l33t
l33t


Joined: 21 Dec 2003
Posts: 828

PostPosted: Tue Jan 10, 2006 8:52 pm    Post subject: Reply with quote

alemare wrote:
First off all hi! i'm a new buyer of a sony vaio and i have only one problem with fn key. The problem is simple fn doesn't work :D !

Hi! :-)
If you just bought it it's probably a VGN-S5, and I've no idea if this stuff still works. :)

The best way to see if sonipy is working is to:
1) compile a recent kernel, >= 2.6.14, with sonypi as module, reboot etc.
2) modprobe sonypi
3) emerge an run sonypid
4) press some key and see what happen (in sonypid). If nothing happens then there is a problem. :|

Quote:

All because i want to reduce brightness of the monitor. I try to use smartdimmer manually but the screen flash a moment but nothing change. There is the same brightness in all the 21 level selectable.

emerge the lastest (beta) nvclock and run nvclock -S 30, or 40, or another percentage.

good luck! :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum