View previous topic :: View next topic |
Author |
Message |
G2k l33t
Joined: 06 Mar 2004 Posts: 672 Location: Rome, Italy
|
Posted: Tue Sep 13, 2005 10:20 pm Post subject: |
|
|
Code: | # ls /proc/acpi/sony/
brightness brightness_default fnkey
# ls /dev/input/
event0 event2 event4 js1 js3 mouse0 mouse2
event1 event3 js0 js2 mice mouse1
# fsfn -n
# dmesg
ACPI Sony Notebook Control Driver v0.2-PP successfully installed
atkbd.c: Unknown key pressed (translated set 2, code 0xf5 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e075 <keycode>' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0xf5 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e075 <keycode>' to make it known.
atkbd.c: Unknown key pressed (translated set 2, code 0xf5 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e075 <keycode>' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0xf5 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e075 <keycode>' to make it known.
atkbd.c: Unknown key pressed (translated set 2, code 0xf5 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e075 <keycode>' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0xf5 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e075 <keycode>' to make it known.
atkbd.c: Unknown key pressed (translated set 2, code 0xf5 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e075 <keycode>' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0xf5 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e075 <keycode>' to make it known.
atkbd.c: Unknown key pressed (translated set 2, code 0xf5 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e075 <keycode>' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0xf5 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e075 <keycode>' to make it known. |
_________________ Animula vagula blandula,
Hospes comesque corporis,
Quae nunc abibis in loca
Pallidula rigida nudula,
Nec ut soles dabis iocos...
- Imp. Caesar Hadrianus |
|
Back to top |
|
|
G2k l33t
Joined: 06 Mar 2004 Posts: 672 Location: Rome, Italy
|
Posted: Tue Sep 13, 2005 11:51 pm Post subject: |
|
|
Rebooted and still doesn't work.
I tried running xev. When I click a key and then release it two messages appear respectively. However, this doesn't work at all with the Fn key, it's as if I'm not pressing anything. Could it be that I have to change keyboard layout or something? I don't think it's something missing in the kernel. _________________ Animula vagula blandula,
Hospes comesque corporis,
Quae nunc abibis in loca
Pallidula rigida nudula,
Nec ut soles dabis iocos...
- Imp. Caesar Hadrianus |
|
Back to top |
|
|
pijalu Guru
Joined: 04 Oct 2004 Posts: 365
|
Posted: Wed Sep 14, 2005 4:49 am Post subject: |
|
|
G2k wrote: | Rebooted and still doesn't work.
I tried running xev. When I click a key and then release it two messages appear respectively. However, this doesn't work at all with the Fn key, it's as if I'm not pressing anything. Could it be that I have to change keyboard layout or something? I don't think it's something missing in the kernel. |
Nope, everything seems fine as far as i can see... i guess a last info can be to check keyboard input device
Code: |
cat /dev/input/event0
|
and try pressing the fn key, do you see "garbage" coming out ? if not, can you do the same with all event until you find the one who give garbage ?
And in your bios, what's the hotkey event type ? (on mine, type 1 - as default factory) |
|
Back to top |
|
|
G2k l33t
Joined: 06 Mar 2004 Posts: 672 Location: Rome, Italy
|
Posted: Wed Sep 14, 2005 4:53 am Post subject: |
|
|
basically every key returned "garbage" except for the Fn key...is this normal behavior?
How can I check the BIOS hotkey event type? _________________ Animula vagula blandula,
Hospes comesque corporis,
Quae nunc abibis in loca
Pallidula rigida nudula,
Nec ut soles dabis iocos...
- Imp. Caesar Hadrianus |
|
Back to top |
|
|
pijalu Guru
Joined: 04 Oct 2004 Posts: 365
|
Posted: Wed Sep 14, 2005 5:00 am Post subject: |
|
|
G2k wrote: | basically every key returned "garbage" except for the Fn key...is this normal behavior?
How can I check the BIOS hotkey event type? |
sorry, was unclear, It's should return garbage when you do a Fn+action key
For the bios, when machine boots you should get an option to enter bios (F2 if i remember well)
[otw]
You never sleep ?
[/otw] |
|
Back to top |
|
|
G2k l33t
Joined: 06 Mar 2004 Posts: 672 Location: Rome, Italy
|
Posted: Wed Sep 14, 2005 5:03 am Post subject: |
|
|
pijalu wrote: | [otw]
You never sleep ?
[/otw] | hehe. Nope
cat /dev/input/event0 doesn't work even with Fn+combination.
The Hotkey thing in the BIOS was Type 1
EDIT:
the code you sent me returned nothing. _________________ Animula vagula blandula,
Hospes comesque corporis,
Quae nunc abibis in loca
Pallidula rigida nudula,
Nec ut soles dabis iocos...
- Imp. Caesar Hadrianus
Last edited by G2k on Wed Sep 14, 2005 5:26 am; edited 1 time in total |
|
Back to top |
|
|
pijalu Guru
Joined: 04 Oct 2004 Posts: 365
|
Posted: Wed Sep 14, 2005 5:19 am Post subject: |
|
|
humm, try the code i pm-ed you, and gimme results
edit: start to smell strange... anyway, try the "last" hope check... and did the code return nothing for all eventX ? |
|
Back to top |
|
|
pijalu Guru
Joined: 04 Oct 2004 Posts: 365
|
Posted: Wed Sep 14, 2005 5:45 am Post subject: |
|
|
Ok, following
Code: |
cat /proc/bus/input/devices
|
your keyboard is mapped as event2
cf
Code: |
I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
H: Handlers=kbd event2
B: EV=120013
B: KEY=4 2000000 3802078 f840d001 f2ffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7
|
So, can you see if
Code: |
fsfn -n -d /dev/input/event2
|
Does it do the trick ? (if not, run pm code on this device) |
|
Back to top |
|
|
G2k l33t
Joined: 06 Mar 2004 Posts: 672 Location: Rome, Italy
|
Posted: Wed Sep 14, 2005 5:53 am Post subject: |
|
|
that did the trick! but am I supposed to get an on-screen display giving me information on how bright it is or how loud the volume is? I emerged xosd already.
EDIT:
also, how can I make it so that there's a default brightness and default sound? Is the last used the default? Thanks so much. _________________ Animula vagula blandula,
Hospes comesque corporis,
Quae nunc abibis in loca
Pallidula rigida nudula,
Nec ut soles dabis iocos...
- Imp. Caesar Hadrianus |
|
Back to top |
|
|
pijalu Guru
Joined: 04 Oct 2004 Posts: 365
|
Posted: Wed Sep 14, 2005 6:28 am Post subject: |
|
|
G2k wrote: | that did the trick! but am I supposed to get an on-screen display giving me information on how bright it is or how loud the volume is? I emerged xosd already.
EDIT:
also, how can I make it so that there's a default brightness and default sound? Is the last used the default? Thanks so much. |
ok, good news, now change the /etc/init.d/fsfn with
Code: |
#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
depend() {
need localmount
}
checkconfig() {
if [ ! -e /proc/acpi/sony/fnkey ] ; then
eerror "Sony acpi key handler not found"
return 1
fi
}
start() {
ebegin "Starting fsfn key handler"
nice -n 10 /usr/local/bin/fsfn -d /dev/input/event2
eend $?
}
stop() {
ebegin "Stopping fsfn key handler"
start-stop-daemon --stop --pidfile /var/run/fsfn.pid
eend $?
}
|
Now, for xosd you have to add to your x session startup the "fsfn -o" (see previous post for it - should be run after fsfn is loaded)
* Default sound level will be the last sound level, and should be done by alsa (when reading/saving current values)
* default brightness: do a
Code: |
echo 5 > /proc/acpi/sony/brightness_default
|
for a level 5 default brightness (value are from 1 to 8 )
(Actually i plan to change the code of the handler to change the default to the last set value, this will be (IMHO) more userfriendly and will, as a side effect, made some non-fs serie able to use the fsfn without patching... |
|
Back to top |
|
|
G2k l33t
Joined: 06 Mar 2004 Posts: 672 Location: Rome, Italy
|
Posted: Wed Sep 14, 2005 2:26 pm Post subject: |
|
|
thanks so much, it all works well now! _________________ Animula vagula blandula,
Hospes comesque corporis,
Quae nunc abibis in loca
Pallidula rigida nudula,
Nec ut soles dabis iocos...
- Imp. Caesar Hadrianus |
|
Back to top |
|
|
axterics n00b
Joined: 14 Sep 2005 Posts: 29 Location: Verona - IT
|
Posted: Thu Sep 15, 2005 12:11 am Post subject: |
|
|
I have a FS115S. I don't know why but my keyboard is mapped differently to G2k and is on event0 (I've checked with cat /proc/bus/input/devices, on event2 I've the mouse).
The brigthness FNkey work, but not the 3 audio FNkey.. the dmesg is equal to the last of G2k...
I've the init script of the berlios site.. Maybe I've to upgrade to the last post here in the forum? |
|
Back to top |
|
|
pijalu Guru
Joined: 04 Oct 2004 Posts: 365
|
Posted: Thu Sep 15, 2005 11:08 am Post subject: |
|
|
axterics wrote: | I have a FS115S. I don't know why but my keyboard is mapped differently to G2k and is on event0 (I've checked with cat /proc/bus/input/devices, on event2 I've the mouse).
The brigthness FNkey work, but not the 3 audio FNkey.. the dmesg is equal to the last of G2k...
I've the init script of the berlios site.. Maybe I've to upgrade to the last post here in the forum? |
My laptop got the keyboard as event0 as well... it's not a big deal, for you fsfn should work as a default (the init posted sooner is a g2k version only or for people who go another input for keyboard)
For the dmesg, just normal, since the fn+something generate a keycode unknow by the kernel
if you want to "remove" these messages, you can do something like
Code: |
setkeycodes e075 220
|
(with last parameters any unused keycode), this will stop the kernel to issue warning
For the sound, you should have OSS enabled, since the fsfn use the OSS device mixer, so
should return something like
Code: |
lrwxrwxrwx 1 root root 11 Sep 15 12:38 /dev/mixer -> sound/mixer
|
and
should return something like
Code: |
snd_pcm_oss 48864 0
snd_mixer_oss 17216 2 snd_pcm_oss
snd_seq_oss 33600 0
snd_seq_midi_event 5760 1 snd_seq_oss
snd_seq 48848 4 snd_seq_oss,snd_seq_midi_event
snd_seq_device 7180 2 snd_seq_oss,snd_seq
snd_pcm 80968 3 snd_pcm_oss,snd_hda_intel,snd_hda_codecsnd 46884 9 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_seq_device,snd_hda_intel,snd_hda_codec,snd_pcm,snd_timer
|
|
|
Back to top |
|
|
axterics n00b
Joined: 14 Sep 2005 Posts: 29 Location: Verona - IT
|
Posted: Thu Sep 15, 2005 12:48 pm Post subject: |
|
|
Ah that's the problem: OSS.. I haven't built in the kernel.. I use only ALSA and alsamixer / amixer.. If I replace volume_up()/down() in fsfn.c with amixer -c 0 Front,0 10%+/- are there any problem? Thanks for the good work you are doing I think isn't very difficult make a patch for fsfn for Alsa.. if you have time I appreciate it a lot |
|
Back to top |
|
|
pijalu Guru
Joined: 04 Oct 2004 Posts: 365
|
Posted: Thu Sep 15, 2005 5:30 pm Post subject: |
|
|
axterics wrote: | Ah that's the problem: OSS.. I haven't built in the kernel.. I use only ALSA and alsamixer / amixer.. If I replace volume_up()/down() in fsfn.c with amixer -c 0 Front,0 10%+/- are there any problem? Thanks for the good work you are doing I think isn't very difficult make a patch for fsfn for Alsa.. if you have time I appreciate it a lot |
just do
Code: |
wget http://download.berlios.de/fsfn/fsfn-0.2.tar.gz
tar zxvf fsfn-0.2.tar.gz
cd fsfn-0.2
./configure && make && sudo make install
|
I just updated fsfn to support alsa
btw took me long to figure out how alsa thing work reading amixer src... so code can be "not optimal" |
|
Back to top |
|
|
G2k l33t
Joined: 06 Mar 2004 Posts: 672 Location: Rome, Italy
|
Posted: Thu Sep 15, 2005 6:12 pm Post subject: |
|
|
pijalu wrote: | just do
Code: |
wget http://download.berlios.de/fsfn/fsfn-0.2.tar.gz
tar zxvf fsfn-0.2.tar.gz
cd fsfn-0.2
./configure && make && sudo make install
|
I just updated fsfn to support alsa
btw took me long to figure out how alsa thing work reading amixer src... so code can be "not optimal" | to use this new version is that all we have to do or do we have to edit init scripts as well? _________________ Animula vagula blandula,
Hospes comesque corporis,
Quae nunc abibis in loca
Pallidula rigida nudula,
Nec ut soles dabis iocos...
- Imp. Caesar Hadrianus |
|
Back to top |
|
|
pijalu Guru
Joined: 04 Oct 2004 Posts: 365
|
Posted: Thu Sep 15, 2005 6:18 pm Post subject: |
|
|
G2k wrote: | to use this new version is that all we have to do or do we have to edit init scripts as well? |
nope, you can use same init script, no change for init (yet)
So it should be enought
Btw, if problem with it, just post here
(alsa is really not as easy as OSS for mixer control ) |
|
Back to top |
|
|
axterics n00b
Joined: 14 Sep 2005 Posts: 29 Location: Verona - IT
|
Posted: Fri Sep 16, 2005 1:26 pm Post subject: |
|
|
C00l
Work greatly
Now I try to tune xosd colors with my desktop theme and get shorter bar, too long for my flavour |
|
Back to top |
|
|
G2k l33t
Joined: 06 Mar 2004 Posts: 672 Location: Rome, Italy
|
Posted: Sun Sep 25, 2005 11:14 pm Post subject: |
|
|
gah! If someone teaches me how to make ebuilds I'll make one for this...it's getting annoying to have to repeat all the steps and modifying the init script (since I was having that problem before) every time I recompile a kernel.
Where can I learn how to make ebuilds? Thanks
EDIT:
I read the how to make an ebuild documentation and it would take me a few years of programming skills to figure it out....I have to learn both how e-builds work and how bash works....blah. _________________ Animula vagula blandula,
Hospes comesque corporis,
Quae nunc abibis in loca
Pallidula rigida nudula,
Nec ut soles dabis iocos...
- Imp. Caesar Hadrianus |
|
Back to top |
|
|
G2k l33t
Joined: 06 Mar 2004 Posts: 672 Location: Rome, Italy
|
Posted: Thu Oct 13, 2005 2:46 pm Post subject: |
|
|
who should be asked abou including the sony thing into the kernel? It would be really useful so that I dont have to manually do it every time I compile a new kernel.
thnx _________________ Animula vagula blandula,
Hospes comesque corporis,
Quae nunc abibis in loca
Pallidula rigida nudula,
Nec ut soles dabis iocos...
- Imp. Caesar Hadrianus |
|
Back to top |
|
|
pijalu Guru
Joined: 04 Oct 2004 Posts: 365
|
Posted: Thu Oct 13, 2005 4:28 pm Post subject: |
|
|
G2k wrote: | who should be asked abou including the sony thing into the kernel? It would be really useful so that I dont have to manually do it every time I compile a new kernel.
thnx |
You can try but, IMHO, it's obviously too specific to be included in the kernel
So you will have to keep doing "make && make install" of the sony_acpi (since the rest is not kernel specific) |
|
Back to top |
|
|
G2k l33t
Joined: 06 Mar 2004 Posts: 672 Location: Rome, Italy
|
Posted: Thu Oct 13, 2005 6:32 pm Post subject: |
|
|
or a patch to the kernel....isn't that what groups like love source and whatnot do? _________________ Animula vagula blandula,
Hospes comesque corporis,
Quae nunc abibis in loca
Pallidula rigida nudula,
Nec ut soles dabis iocos...
- Imp. Caesar Hadrianus |
|
Back to top |
|
|
pijalu Guru
Joined: 04 Oct 2004 Posts: 365
|
Posted: Thu Oct 13, 2005 7:17 pm Post subject: |
|
|
G2k wrote: | or a patch to the kernel....isn't that what groups like love source and whatnot do? |
hmmm... good luck |
|
Back to top |
|
|
G2k l33t
Joined: 06 Mar 2004 Posts: 672 Location: Rome, Italy
|
Posted: Fri Oct 14, 2005 8:10 pm Post subject: |
|
|
this is offtopic but has anyone been able to get the framebuffer image working on the fs 660 or the like (widescreen)...I have tried everything and can't get a nice framebuffer image. _________________ Animula vagula blandula,
Hospes comesque corporis,
Quae nunc abibis in loca
Pallidula rigida nudula,
Nec ut soles dabis iocos...
- Imp. Caesar Hadrianus |
|
Back to top |
|
|
sound-mind n00b
Joined: 30 Jan 2005 Posts: 21
|
Posted: Sat Oct 15, 2005 10:57 pm Post subject: |
|
|
G2k wrote: | this is offtopic but has anyone been able to get the framebuffer image working on the fs 660 or the like (widescreen)...I have tried everything and can't get a nice framebuffer image. |
Hmmm someone else has asked me the same question via email but I haven't had time to respond. Yeah I _had_ a framebuffer image working. What do you need to know?
Slightly more off topic: I finally managed to get S3/suspend-to-ram to resume properly. Looks like it was a buggy DSDT. I'm going to tie the S1 or S2 buttons to trigger a change to that state. I've only tested the new DSDT on the FS660 but if someone else is interested just let me know... |
|
Back to top |
|
|
|