Fn button
Hi.
A use laptop Acer 5620 Slackware 12 -current Anyone have idea how to get to work Fn button on laptop? I mean Fn+brightness and Fn+sound volume... |
Take a look at this blog post (Google is your friend). It is talking about a Dell, but offers a generic solution. It's near the bottom
http://intr.overt.org/blog/?page_id=56 |
Hi, gmartin
Thanks for help and for a new friend "Google". I didn't know what to look for, not been lazy one ... So i get : you will need to use setkeycodes to do that. usage: setkeycode scancode keycode ... (where scancode is either xx or e0xx, given in hexadecimal, and keycode is given in decimal) * Fn -Down (e005) - Automatically decreases brightness and generates a key event. * Fn -Up (e006) - Automatically increases brightness and generates a key event. How i run it? setkeycode e005 ??? |
Quote:
|
Still i don't get how to run it.
I used xev to find keycode fn+IncBright keycode is 212 Fn-DecBright keycode is 101 so i run setkeycodes e030 212 setkeycodes e02e 101 Nothing happens. The keys not functioning. Am i missing something? |
What I do for the multimedia keys ...
find out the keycodes of the buttons ...and then edit my ~/.Xmodmap (create if not present) my ~/.Xmodmap is : Quote:
Quote:
|
On 3 different laptops (Asus, Benq, Acer) with different linux distros (Slackware, Debian, OpenSuse) i saw that you don't need to set the keycodes for Fn+BrightenessUP or Down. It's a call directly to the BIOS, it doesn't involve the kernel (for example try incresing and decreasing the brightness when you are at lilo or when it's booting, and you will se that the brightness changes). It doesn't show that progress bar like in Windows, but it does his job. Same thing is with Fn and the Displays (the button with LCD/CRT image or something like that - the trick is to install the video drivers with dual-head).
For the multimedia keys, it's a bit different story. |
Quote:
Quote:
Quote:
Quote:
From what you're saying, you probably have one of the newer Acer laptops that doesn't just work out-of-the-box for this, so you'll need either acer_acpi (an out-of-tree module, if using a pre 2.6.25 kernel) or acer-wmi (an in-tree driver as of 2.6.25) to tell the kernel how to control the backlight. The next step for the backlight keys is to then get the scancodes mapped properly to the right keycodes (then I believe the kernel handles toggling the brightness). HAL takes care of this for many laptops already (and I've been adding the Acer ones like mad as I come across them). Chances are though, in 12.1 (whenever that comes out), this step will just be done for you. 12.0 might be a bit more hit-and-miss. Try the Fn+{Left, Right} keys and see if they produce any scancode messages in dmesg to tell if they're already mapped or not. After that, the easiest way (and what I use) to get the keys working in X properly is to use evdev as your keyboard driver - once your keys are mapped properly, evdev does the necessary kernel-to-X translation and things just work (and yes, I really do use this on my own Acer). |
@cathetic:
My Benq JoyBook A52 it's made in november 2007. The Acer I was talking about is bought in november 2007 (with a intel Core2Dou at 2Ghz and a NVidia 8600GT 512Mb, i don't think it is that old :D). The Fn + Display I only tested on my Asus and Beng at presentations, but the first thing after easter I will try it on my roomates Acer cause you made me curios. |
Quote:
|
On my Benq laptop I have an Ati Radeon Express 200M with 128Mb shared from RAM (don't throw rocks at me, i know about ati based video card and linux, but Compiz still works like a charm :D). After the driver installation, i have to run:
Code:
./aticonfig --initial=dual-head |
Quote:
|
Quote:
Thanks for help. I use acer Extensa 5620Z. Slackware -current kernel 2.6.24.5 generic-smp If i get your point, i need first acer-wmi driver to tell the kernel how to control the backlight. How i install it? Than, get the scancodes mapped properly to the right keycodes... Than, to use evdev as my keyboard driver ... Not sure, i am at this level of understanding, but i will try ... Now i try to google for : acer-wmi download slackware |
OK. Here we go ...
I found this module and installed it. cat /proc/modules | grep acer acer_acpi 19264 0 - Live 0xf8acd000 led_class 7300 1 acer_acpi, Live 0xf8aaa000 wmi_acer 10668 1 acer_acpi, Live 0xf8a3d000 I hope i do ok ??? |
I don't know where you got the module, but the correct place, as far as I can tell, is here: http://code.google.com/p/aceracpi
It even has a SlackBuild so you can build a package. (Beyond that you're on your own unless someone else, like cathectic, can help out.) |
All times are GMT -5. The time now is 04:12 PM. |