Code: Select all
# 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"
}Code: Select all
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.Code: Select all
# 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"
}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 nodeknefas 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.
Code: Select all
echo -e "alias char-major-10-250 sonpi \noptions sonypi minor=250" > /etc/modules.d/sonypi
mknod /dev/sonypi c 10 250
modules-updateCode: Select all
modprobe sonypi verbose=2Code: Select all
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=0x21Code: Select all
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!
Code: Select all
!!! Couldn't download sonykeyd-0.2.2.tar.gz. AbortingCode: Select all
#include <xosd.h>Code: Select all
# 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 $?
}
Hmmm ... doesn't sound that good.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.
Code: Select all
atkbd.c: Unknow key pressed (translated set 2, code 0xf5 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e075 <keycode>' to make it known.Hi!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!
emerge the lastest (beta) nvclock and run nvclock -S 30, or 40, or another percentage.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.