Skip to Content.
Sympa Menu

linux-sony-z1 - Re: Sony Vaio Z1 DEBIAN. Patches for kernel 2.6.9

Subject: Linux users of Sony Z1 series

List archive

Re: Sony Vaio Z1 DEBIAN. Patches for kernel 2.6.9


Chronological Thread 
  • From: "BROUARD Nicolas" <>
  • To: Sylvain Maucourt <>
  • Cc:
  • Subject: Re: Sony Vaio Z1 DEBIAN. Patches for kernel 2.6.9
  • Date: Thu, 18 Nov 2004 16:43:04 +0100

Le jeudi 18 novembre 2004 à 14:33 +0100, Sylvain Maucourt a écrit :
> re-Bonjour,
>
> je viens d'accèder à votre répertoire :
> http://sauvy.ined.fr/~brouard/sony/patches/
>
> Si je comprend bien.
>
> Après téléchargement du kernel 2.6.9, je dois appliquer tous ces patchs se
> trouvant dans le répertoire 2.6.9-nbmdk et compiler?

>From the subject of your mail, I guess that you are running on Debian
and from your former mail that it is running a 2.6.7 kernel. I suggest
you to ask Ionut (and why not on this list) because he is running a
Debian "unstable". And Debian unstable uses probably a more recent
advanced kernel and probably a 2.6.9 kernel.

Therefore, you should probably at first upgrade to Debian unstable (I
don't know how to do that) and then to apply some patches.

Ionut listed in a former archived mail the patches that he used (he used
swsusp2 instead of me, I am back and successfully to standard swsusp);

What you can find at the following URL
http://sauvy.ined.fr/~brouard/sony/patches/ 2 subdirectories, 2.6.8.1mdk
and 2.6.9nbmdk:

- 2.6.8mdk collects additional patches which apply to kernel
2.6.8.1-20mdk latest kernel (Mandrake 10.1 Official kernel). Suspend to
ram wil not work (but suspend to disk).

- 2.6.9nbmdk collects patches to a vanilla 2.6.9 kernel. I called them
nbmdk because Mandrake hasn't published, even on Cooker, any 2.6.9
kernel . So I tried during the WE to make a kernel rpm by just adding
what is necessary for a Sony Z1 to work. But I haven't tried to apply
former 2.6.8.1 patches (about 100 patches), thus my rpm is very very
different from a future Mandrake 10.2 kernel. For example, supermount is
not here (hal and dbus are supposed to replace it but I didn't try).
Also I don't know if ip2200 is in the kernel 2.6.9 by default.

>From the given URL, here are the patches that you could apply for a
2.6.9 kernel:

- DB02_scsi-qla-os-gcc34.patch
It can be used if you use a gcc 3.4.1 compiler. The qla_os.c will not
compile because the compiler is buggy (as 4.0). Doesn't harm to apply.

- DB19_alps-0136-269.patch is the ALPS touchpad patch that you were
looking for. (For a 2.6.8 kernel you need to add the line
#define PSMOUSE_CMD_DISABLE 0x00f5 in psmouse.h)

- DB21_sony-kfifo.patch
It is included in 2.6.10-?? but not in 2.6.9, thus apply it.

- DB22_sonypi-18.patch to DB29_sonypi-88.patch
These concern the 8 patches to make sonypi resuming well both with
swsusp1 and swsusp2.

- ZZ80_acpi-20041105-269.patch
It concerns latest ACPI patches on November 5 2004.

It should be enough to get suspend to disk and suspend to ram (you
probably need video_post because you have a radeon).

Other patches on my 2.6.9-nbmdk subdirectory are probably useless:
- DV33_vesafb-tng-0.9-rc4-r3-2.6.9.patch
It is an attempt to have video= instead vga= in your lilo or grub to
be able to resume with a frambuffer (compiled without problem but I
haven't tested yet, search vesafb-tng on Google)

- ZZ83_mki-adapter26_1_3_8.patch and ZZ84_Kernel-Win4Lin3-2.6.9.patch
are Win4Lin kernel 2.6.9 patches (from ftp netraverse.com testing
2.6.9). Win4Lin works on my 2.6.9 kernel.

- MC38_ipw2100-0.54.tar MC39_ipw2200-0.8.tar and
MD39_ipw2200-0.8-build-DEV_OPEN-fix.patch are former 2.6.8.1 Mandrake
patches which I applied (succesfully) to get ip2100 and ip2200 modules
but I haven't tested WIFI again.

With this experimental 2.6.9 kernel, both suspend to disk and suspend to
ram are working fine. But I need video_post in order to resume
correctly.
My susptoram script is
chvt 1 && echo -n "mem" > /sys/power/state && /root/video_post && chvt
7

The console is accessible with chvt 1 or CTL_ALT-F1 (and any other tty
too), but it is not tuned properly. I mean that the screen is divided in
three identical parts (with 3 login!). But you can read it (with
difficulties) and send commands.

Thus, as Ionut doesn't need video_post, the magic is still perhaps in
swsusp2. Ionut, will you suggest to Sylvain to compile swsusp2 too?

Cheers,

Nicolas





>
> Merci d'avance.
>
> Sylvain Maucourt
--
Brouard Nicolas
<>




Archive powered by MHonArc 2.6.18.

Top of Page