Posts Tagged ‘Fujitsu’

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

Sunday, January 1st, 2006

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 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/ . 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.

Fujitsu special keys

Wednesday, July 20th, 2005

Last night, after I finished writing the previous entry, I was looking for Fujitsu & Linux related sites, for somewhat more information about my modem.

I found out a site, which reminded me of the Fujitsu special keys which I’ve never used nor managed to setup. Well, the version the site pointed at was old, and I could not compile it, however, the newer version (courtasy of google) of fjkeys and apanel allowed me to finally, for the first time, to comile and insert this module. I was so surprised to find out that there was one led of which I never knew.

Nothing is perfect, of course. I have tons of message such as this:

i2c_adapter i2c-0: Error: command never completed

but besides that (which does not damage nor slow down my suspend/resume), all seems to work. Good. This blog existance (no readers so far, and still no search engine index) pushed me towards solving some of my problems, and towards a better laptop-wise life.

Another set of reasons are that it’s damn hot in the house (but in the balcony it’s cooler, and there’s some wind), and that I have a new set of two batteries (Extended primary battery, and the modular bay battery) which allow me up to 8-9 hours of work. Under high loads, this time tends to get shorter, but not less than 5 hours or so. Cool.

Software Suspend 2, a success story

Wednesday, July 20th, 2005

Owning a laptop, you try to get the best out of it. you want it to be the strongest it can, you want it to be fast, reliable, useful, and cunning. My Fujitsu is cunning, I can say. Not a day passes without me hearing someone saying "Wow, it is so small". I didn’t get it for the audiance, though, I got it because traveling to end users and customer sites could be frustrating when you have no connectivity, and you cannot relay on the customers environment. I once, few years ago, had the paradox I call "The Ez paradox", where I got to a customer who just arranged a brand new ADSL line, had a network card with me, but I forgot the drivers. There was no way I could connect using her computer, nor did I have my laptop then. It consumed few extra hours just finding someone around who could allow me to use his computer to download the NIC drivers. Never again, I swore then, and I was proven to be right. There was one time with another customer, where I proved the screen to be the problem, and not the computer’s VGA card, using my laptop, and another where I could remove the blame from a poor and unjustly accused computer, because I could not connect to the internet using the same ADSL line from my own laptop, etc. It’s a usefull machine, and it saves my time.

One of the things one expects is to open his laptop’s cover, and "Whoosh!", get an up-and-running system right then. As we all know computers, this is not the case. Running Linux on the laptop, it was even worse. Up till a year ago, Software Suspend solution for a pooched ACPI enabled laptops, with no hardware suspend built-in, were, how to say, poor at best. I remember being able to suspend using some SWSUSP beta version, and it was able to suspend and resume about 2/3 of the times I tried to, took five minutes, and not always when it didn’t manage to suspend I was attentative enough to notice it. The poor laptop got to remain up and running (and when swsusp got hang, it consumed 100% CPU) inside my bag few times, until I discovered it half an hour or so later. Not good. Not only this, but this beta version worked sometimes, while its following release (or RC) version failed to suspend or resume or both completely. It was far from being perfect. However, I am full of respect to the people who made it, fighting uncommon hardware setups, which you can find only in laptops, and made a mature and working

Mature, becuase it works, not becuase it’s the most trivial thing to make it work.

I can clearly say that SWSUSP2, in version 2.1.9, for kernel is remarkebly fast, clear, and well working. Using the new UserUI (Nice splash screen with animation, showing during the suspend/resume operation), i can be the envy of my peers, if only they cared.

For anyone on the net asking about it, i can describe shortly how and what I did to make it work.

First, follow the instructions in Software Suspend web site. They know what they are saying, although their site is not always organized (it’s getting better, with the Wiki! Keep the good work!).

To Explain in short words what I have done:

  1. Get and untar/bzip2 kernel version (linux-
  2. Get software-suspend-2.1.9-for-2.6.11
  3. Patch the new kernel by using the new method swsusp2 supply (RTFM)
  4. Patch the new kernel with your newly downloaded fbsplash-0.9.2-2.6.11 patch
  5. Get, unzip and compile userui package (note – You will need to edit fbanim/userui_fbanim_core.c and change #include <linux/fb.h> into #include "linux/fb.h" else it won’t compile
  6. You would want to make your own kernel now. It’s going to take a while. You can borrow from my own config (config- file.
  7. Anything further can be found easilly in Software Suspend Wiki
  8. Make sure your initrd (if you use it) is set up correctly

It should work correctly at this point. You would like to pick a nice graphics, and I hope, with the help of my wife, to arrange myself some uniqe and eye catching image. Why? Because. It doesn’t cost my anything further, and it will sure attract attention to the system.