Sunday 29 April 2007

Turn to deal with the display...

Dave from http://superdave.blogdns.org/superdave suggested this to make the
resolution 800x480

---------------------------------
As for xorg.conf, I added the following to the "Monitor" section:

Modeline "800x480" 44.32 800 832 1000 1032 480 489 496 505

And then simply added "800x480" in the modes list for 24 bit color.

Note that doing that got me 800x480 in GDM, but as soon as I logged in GNOME
would switch to 800x600. To make GNOME cooperate, I had to do the following:

gconftool-2 --type string --set /desktop/gnome/screen/default/0/resolution "800x480"

Note that I'm using the VirtualBox X.org display driver so I have no idea if any
of that will work with a *real* video driver. Let me know if it works
---------------------------------

But I'm afraid this doesn't seem to work here. When I put those lines in the
xorg.conf I get a message in the Xorg log saying that resolution is not
supported and then going to 640x480 ....

If anyone got this working in a non-virtualized envirnoment, please let me know.

Cheers

Details about setting up Wifi

Ah! I forgot one detail (although I'm not sure how relevant it is):

the "stock" version of wireless-tools that came with Fedora was giving errors
about incompatible versions with the wlan driver, so I updated it through yum. I
updated it to:

[root@kohji ~]# rpm -qa wireless-tools
wireless-tools-28-0.pre10.4
[root@kohji ~]#

And with this version there were no more error messages when using the iwconfig
command.

Details about setting up Wifi

As promised ...

In order to get the wifi working I got the driver provided by Kohjinsha and
searched in it, and found that it was compiled in a Fedora Core 4 environment,
so I decided to install that (I have no real preference for any particular
distribution), so I'm happy with that one.

After installation of Fedora I tried to insmod the module, but it complains
with:

[root@kohji ~]# insmod /home/angelv/kohji_drivers/wifi/w89c35-wpa37_Linux26/w35und.ko
insmod: error inserting '/home/angelv/kohji_drivers/wifi/w89c35-wpa37_Linux26/w35und.ko': -1 Invalid module format
[root@kohji ~]#

It turns out that cannot load it because the "version magic" in the driver is
different to what is expected, so I just opened the binary file with an editor
and changed one number

I get this in /var/log/messages:
kohji kernel: w35und: version magic '2.6.11-1.1369_FC4 686 REGPARM 4KSTACKS gcc-4.0' should be '2.6.11-1.1369_FC4 586 REGPARM 4KSTACKS gcc-4.0'

So I have to change the 686 in the driver file to 586. (Is this dangerous? Well,
I don't know for sure, but let's continue).

With the changed file, we can now do:

[root@kohji ~]# insmod /home/angelv/kohji_drivers/wifi/w89c35-wpa37_Linux26/w35und_test.ko
[root@kohji ~]#


And in /var/log/messages I get:

Apr 29 19:11:53 kohji kernel: Adapter =d0240280
Apr 29 19:11:53 kohji kernel: WbWLanInitialize(1)
Apr 29 19:11:53 kohji kernel: ******BB3c is 00000000
Apr 29 19:11:54 kohji kernel: WbWLanInitialize(2)
Apr 29 19:11:54 kohji kernel: usbcore: registered new driver w35und
Apr 29 19:11:54 kohji kernel: SIOCSIWESSID test

So all looks fine.

For the moment I have one problem. If I do this when the WIFI option (Fn+F4) is
off, and then I try to switch it on, then I cannot get it to work, but that's
easy. After switching it on, I just remove the module and load it again and all
is good:

[root@kohji ~]# rmmod w35und
[root@kohji ~]# insmod /home/angelv/kohji_drivers/wifi/w89c35-wpa37_Linux26/w35und_test.ko

in /var/log/messages:

Apr 29 19:16:19 kohji kernel: Adapter =d06b0280
Apr 29 19:16:19 kohji kernel: WbWLanInitialize(1)
Apr 29 19:16:19 kohji kernel: ******BB3c is 00000000
Apr 29 19:16:20 kohji kernel: WbWLanInitialize(2)
Apr 29 19:16:20 kohji kernel: usbcore: registered new driver w35und
Apr 29 19:16:20 kohji kernel: SIOCSIWESSID test
Apr 29 19:16:25 kohji dhclient: DHCPREQUEST on wlan0 to 255.255.255.255 port 67
Apr 29 19:16:32 kohji dhclient: DHCPREQUEST on wlan0 to 255.255.255.255 port 67
Apr 29 19:16:32 kohji dhclient: DHCPACK from 192.168.0.1
Apr 29 19:16:32 kohji NET[3270]: /sbin/dhclient-script : updated /etc/resolv.conf
Apr 29 19:16:32 kohji dhclient: bound to 192.168.0.130 -- renewal in 38903 seconds.

[root@kohji ~]# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:0D:F0:2D:DF:8C
inet addr:192.168.0.130 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20d:f0ff:fe2d:df8c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:44 errors:0 dropped:0 overruns:0 frame:0
TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7770 (7.5 KiB) TX bytes:4970 (4.8 KiB)


If someone is curious, the wlan0 configuration file reads:
[root@kohji ~]# cat /etc/sysconfig/network-scripts/ifcfg-wlan0
DEVICE=wlan0
USERCTL=yes
BOOTPROTO=dhcp

TYPE=Wireless
MODE=Managed
ESSID=SpeedTouch0CEAA4
RATE=54Mb/s

NETMASK=
DHCP_HOSTNAME=
IPADDR=
DOMAIN=
HWADDR=
PEERDNS=yes
GATEWAY=
IPV6INIT=no
ONBOOT=no
CHANNEL=1
[root@kohji ~]#


Perhaps this info is too verbose, but I hope it helps someone.

Cheers,
Angel

Saturday 28 April 2007

Wifi working in my Kohjinsha with Linux!

Well,

I know I had said that the monitor resolution was a priority, but this seems
not to be a big issue, while wifi was proving quite ellusive for those who had
tried it (at least according to a couple of blogs and forums I had visited), so
I decided to join forces... and the good news is that wifi is now working fine
in my Kohjinsha. I will post details later on, but this very e-mail is being
sent without cables attached... (for those who cannot wait, I used the driver
provided by Kohjinsha, with a minor change). I still want to do a few tests to
know exactly under which conditions it does work and whether it gives any
problems, but this is a first step in the right direction.

Friday 27 April 2007

Fedora Core 4 installed

OK, Fedora Core 4 is now installed (dual boot with Windows XP). Both OSs boot
OK: so far so good. Linux has some problems that we will have to deal with
during the coming days. Here are the first two I will deal with: both of them
very important:

1) The monitor resolution is set at 800x600 but the LCD is actually 800x480. You
can see all the screen OK, but the fonts are not as criap as they should
be. With Windows this was a matter of pressing Fn+Esc and then the new
resolution would be available (and your eyes thanked you for it), but with
Linux I will need to investigate.

2) The pointer is a bit flaky. If there is no other load in the system, the
pointer seems to be OK, but the moment you start loading something and then
trying to move the mouse, your pointer can go anywhere in the screen, very
annoying.

Linux for the Kohji

Well, it couldn't be otherwise, and at some point I had to switch over to linux
for the Kohji. I started right now, and will note on my progress here. I know it
is not going to be really easy (mainly for the drivers for the esoteric wifi
card), but hopefully I will manage to get rid of Windows in it. (I had a nice
setting with Windows and Cygwin, but it was starting to be quite slow, so I
decided to go for the real thing...)