Archive for the ‘Laptop’ Category

i810 dual-pipe issues with power management

Friday, May 9th, 2008

I have had a problem with my IBM X41 – ever since I have started using Ubuntu 7.10 (after a nice upgrade from 7.04), whenever the lid was closed, and reopened – the display would have flickered for a short while (while the lid is up) and then blank completely.

My (ugly) workaround was to force the computer to sleep whenever it happened. It seemed to be a workaround good enough for most cases. On some cases, the laptop would do just the same as it was placed in its docking station.

I have found an Ubuntu bug here, which seems to expose this problem too. It exposed few additional problems as well. The error message I got (through SSH, of course) when viewing the logs it said that the video card detected pipe A to be the active pipe, that it stopped using pipe B (which appeared to be the internal one) and that it decided to disable clone mode. Wow. I just lost my internal LCD. Connecting an external display, I get the whole picture working just fine, however, I cannot use the laptop like that.

After a major struggle with various i810 options, I have looked and found an option to disable Power Management. I have done so, according to the note here, and it solved all my problems in this area – for now.

Dial-up in Israel through Orange 3G

Saturday, May 3rd, 2008

I have set up a small script to allow me to dial-up using my cell to the internet. The speed of the 3G connection is quite amazing, and this information would assist, I’m sure, others as well. I am using Bluetooth to communicate between my cell and my portable computer.

Steps:

1. Create an /etc/wvdial.conf with the following contents:

[Dialer Defaults]
Phone = *99***1#
Username = orange
Password = mobile54
New PPPD = yes
Modem = /dev/rfcomm1
Baud = 460800
Init2 = atz
ISDN = off
Modem Type = Analog Modem
Dial Attempts = 1
Abort on No Dialtone = off
Stupid Mode = on

2. Pair your mobile and your laptop (check it on the net). Get the hardware ID

3. Get the channel for DUN (or Dial-Up Networking)

4. Add this script in /usr/local/sbin/ (I called it “gprs”). Replace the zeros with your own hardware ID, and the number 4 (Nokia N95) with the channel you use:

#!/bin/bash
rfcomm connect 1 00:00:00:00:00:00 4 &
PID_BT=$!
echo $PID_BT
sleep 5
wvdial &
PID_WV=$!
echo $PID_WV
sleep 7
ifconfig
echo “Press on Ctrl+C to disconnect”

trap “{ kill $PID_WV; sleep 1; kill $PID_BT; exit; }” SIGINT

while true; do sleep 10; done

5. You need to run the script under “sudo”. Ctrl+C will exit and disconnect.

Good luck.

Orinoco_pci finally working correctly!

Thursday, March 9th, 2006

After upgrading my laptop to 2.6.15.1 kernel, hibernation worked flawlessly. Running my previous version of kernel – 2.6.14.2, I have had some hibernation instabilities. I’ve had some memory corruptions here and there, which would have required I reboot the machine. So far, and it’s been a while, I’m glad to say I had no reason to "reboot" my laptop, but only to hibernate and awake it. Works like a charm.

In my post here, I have complained of performance issues with Orinoco_pci module. Although I’ve had somewhat below the average speed in my LAN (I’ve got about 800KB/s, give or take, on my 802.11b network), using this line to reach an external server / address or even a web site was disastrous. Degraded performance, up to no connection at all. Ping was correct at all times, just as a simple wget to a rather close server (on my ISP’s server room) got timed-out, and drained to less than 2KB/s… Terrible.

In this kernel version, as I’m happy to say, I have tested the built-in orinoco, and finally it’s working just as it should. I get to use my full internet bandwidth, and I’m happy with it. Normal response times, and all. Now all I’ve got left is to make sure the internal LEDs work. On another day :-)

Kernel update – 2.6.15.1

Friday, March 3rd, 2006

Alongside a newer kernel, I’m enjoying a newer Software Suspend2 package. I am not crazy about betas, or RCs, so now I’m on the 2.2 stable. I have hibernated only once since I’ve upgraded kernel, but it went just fine on the first try, so I’m rather ok with it without setting a set of cover-it-all tests.

Here’s my kernel config, if anyone’s interested – config-2.6.15.1.txt

Also, you can get the latest swsusp2 and fbsplash from the right places, as described in my post here. It’s good I use this blog – it keeps my memories for me.

fjkeyd, Apanel and the newer 2.6.14.2 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 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.

Orinoco_pci performance problems

Saturday, December 24th, 2005

Weird behavior of my Orinoco_pci wireless network interface. On my home 802.11b network, I get performance of about 600KB/s, instead of 1.1MB/s, which should be the approximate speed to expect to. Not only that, but browsing to external websites and the likes (I compare using wget), I get speeds of <7KB/s, and sometimes decreasing to a stall, on a 2Mb/s line. My desktop reaches speeds of >150KB/s, so I could either point at my wireless router/AP, or my wireless NIC. Using PCMCIA RTL8180 802.11b NIC, and using it with NDISwan drivers, I’ve got speeds of above 150KB/s, which points at my built-in Orinoco wireless interface.

I’ve tried downloading the newer orinoco driver, 0.15rc4 (instead of my existing 0.15rc2), and got similar results. I got stalled a bit later (testing with 18MB zip file), but it could be random point, just as well. Using the PCMCIA, it worked correctly *ALL* times. Pity. I will have to pay the “price”, regarding battery life, and extra accessories, regarding wireless for now. I might try this same test with some other router/AP sometime, when I get near one of those.

Kernel update – 2.6.14.2

Saturday, December 24th, 2005

My tiny laptop has worked rather well so far, but I’ve decided, due to some unexplained problems, to upgrade it to a newer version of kernel, aka 2.6.14.2.

Based on my own blog’s entry (what good are blogs if not to hold some long forgotten knowledge?), which can be found here, I’ve upgraded my kernel and used the following config file config-2.6.14.2.txt.

One thing which I’ve had to do, maybe due to some upgrade of mkinitrd tools, or the likes, and it took me one misserable hibernation and restore (or a failed restore) to discover was to add the line “echo >/proc/suspend2/do_resume” to /usr/share/initrd-tools/linuxrc (my exact file is linuxrc.txt), so that the system would actually restore from hibernation. Now it works correctly.

On another issue, I’ve been asked to advise during Oracle DB installation on Linux setup, with High Availability solution. Although, long time ago, I’ve installed Oracle on both Solaris and Windows (without fine-tuniing it, anyhow), I’ve started searching the net, and came to the following link. The documents linked there are worth their weight in gold and diamonds. I’ll be testing them in the next few days, for my own personal advantage, but I think it’s gonna succeed, and as it seems the place for such issues, I can only put my thumb up for such sites and information sources on the web. It reminds me of the good in it. I was very impressed.