|

fjkeyd, Apanel and the newer 2.6.14.2 kernel. All with hibernation!

First and foremost – Happy new year!

Technically speaking, it has gone rather well so far, this new year. Although it was actually yesterday, I’ve managed to add another feature to my little laptop, and support the Fujitsu Keys on my linux – this time, with no errors, no problems, and without killing SWSUSP2 – My working (so far flawlessly) software suspend.

First, to remember what I’ve done, I’ve looked in this link, my past post about it. It wasn’t too informative, but it did point me to the right place to begin at, Apanel Sourceforge project page. Couldn’t find better. There you can download the current latest version, 1.4, and you can fail to compile it, just like I did.

Compilation of the package is rather simple – You go and read its “README.linux” file. It’s great, simple, compiles for 2.6.13 just as it should, and fails to compile on my brand new 2.6.14.2 kernel. Bummer.

Then I’ve found out this page, under the project’s page, incliding patch just for the 2.6.14+ kernels. Simple math shows I’m using a 2.6.14+ kernel, and I applied the patch doing the following:

1. cd to the root of the package/linux

2. cat /tmp/patch.diff (or whatever its name) | patch -p5

3. One hulk failed, one succeeded.

4. Compiled. Was happy.

After compilation, you need to copy apanel.ko to your kernel modules directory. I’ve put them in /lib/modules/2.6.14.2/kernel/drivers/char . Seemed like a good place. Afterwards, all you have to do is run “depmod -a” and afterwards, just insmod the newly compiled modules.

Compiling the Apanel application I leave as an execise for you. I have a nice script which starts my fujikd daemon, and it works now like charm. Doesn’t leave tons of useless junk lines in my messages files.

Correction – After hibernation, it does. I will try to remove the module and re-insert it to see what happens.

Update – It actually is ok after removal and re-insert. All this is done by simply unloading / reloading the fjkeyd service. I will add it to my hibernation.conf file.

Update 2 – It returns. Not much of it, but it does return, and I hate it. For now, I will try to use it under controlled environment. We’ll see on it in the future.

Similar Posts

3 Comments

  1. Hi,
    I found the Apanel driver, but I don’t like that it use an user space application. I develop a driver to create an input device.
    Now I look for people who want to test it. Are you interested?
    If you are interested please contact me.
    Regards.

  2. I would be glad to.
    I’m using kernel 2.6.19 and will be contacting you via e-mail as well.

  3. Did you receive my mail?
    I finish my driver, now it’s completed.
    fjpanel-0.0.5.tar.gz
    It contains:
    – Keys control support.
    – Led control support.
    – “input” kernel class aware
    – “i2c” chips kernel driver aware
    A “README” file explains how to manage the key with X windows.
    The led is currently mapped on Mail receive event but no application manages this function. It’s possible to map the led on the CAPLOCK event. The README explains that too.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.