Subject: Linux users of Sony Z1 series
List archive
- From: Brouard Nicolas <>
- To: "Mark A. Davis" <>
- Cc: Linux Sony Z1 users <>
- Subject: Re: Hibernate + 10.1 + ipw2100 resuming well +ipw2200 +dkms
- Date: Wed, 01 Dec 2004 12:34:41 +0100
Le lundi 29 novembre 2004 à 22:53 -0500, Mark A. Davis a écrit :
> On Sun, 07 Nov 2004 23:18:37 +0100 you wrote:
>
> >I only need a small script for the clock and the usb module.
> [...]
> >I am trying to get a suspend script which could work with swsusp2 and
> >swsusp1. I don't use swsusp2 anymore but I like the
> >script /etc/hibernate/hibernate.conf .
> >I modified the swsusp scriptlet in order to work with swsusp1. But it is
> >ugly. I also tried to have bootsplash.
>
> Hi, I have a new Sony VGN-T150... posting info about Mandrake 10.1.1 on
> http://markadavis.org/vgnt150.html
Very nice documentation!
> I also experience the "can't power down the machine with ACPI" problem and
> the
> software clock being off after a hibernate. Have been using the klaptop
> applet to initiate the hibernate. I can't for the life of me figure out
> where I can put a script that will be executed after a resume. I have
> no /etc/hibernate* I do have /etc/sysconfig/suspend* but apparently none
> of
> that stuff is being used (I tested it).
Mandrake kernels are built with APIC and latest 10.1 2.6.8.1-20mdk
kernel does not incorporate the "nolapic" patch which makes the sony
power off (it is included in 2.6.10!). If it is the same thing for your
VGN Sony, there is no other solution than building a new kernel with
this patch. Include "nolapic" in your lilo.
Concerning hibernation, just look at
http://listes.ined.fr/wws/arc/linux-sony-z1/2004-11/msg00044.html
and click on the hibernate-scripts mdk binary rpm
(hibernate-scripts-1.0.1-2mdk.i586.rpm ).
You should also click on the sonyxosd rpm (sonyxosd-1.3.0-2mdk.i586.rpm)
and Fn-F12 will hibernate (suspend to disk) (but not power off with
basic kernel). And it will probably resume correctly. Look
at /usr/sbin/sonyxosd to adapt the perl script to your needs and
Function Keys.
Fn-Esc will probably suspend to ram correctly but not resume. Try.
"My" hybernate-scripts include video_post which might be useless for you
if you don't have a radeon card. But it doesn't harm, just suppress the
"UseVideoPost on" in /etc/hibernate/susptoram.conf (this option will
vanish in next official Bernard's hibernate script and replaced by
something like "OnResume 96 /usr/sbin/video_post".
But S3 (suspend to ram) would probably still not work on a 2.6.8 kernel
and you need a 2.6.9 kernel!
On my site http://sauvy.ined.fr/~brouard/sony/rpm you will get a
2.6.8.1-20nb1 patched kernel(binary rpm
kernel-2.6.8.1.20nb1w4lmdk-1-1mdk.i586.rpm ) which includes patches from
http://sauvy.ined.fr/~brouard/sony/patches/2.6.8.1-mdk . The sonypi
patches makes sonypi resuming correctly but you could add your sonypi
patches for VGN too. You can suppress win4lin (and mkiadapter) if you
don't need Win4lin.
But just try the binary rpm first if you have 512Mb of RAM, otherwise
you probably need the bigger kernel which I haven't compiled (I give
some instructions on how to compile with rpmbuild -ba ...).
If you want to test a 2.6.9 kernel you may try
kernel-2.6.9.nb3mdk-1-1mdk.i586.rpm (patches reside on
http://sauvy.ined.fr/~brouard/sony/patches/2.6.9-nbmdk/).
I never lost any data by trying such kernels but you should probably
have a backup of your data before testing.
For ipw2100 or ipw2200 you should try the dkms approach (initiated by
DELL). It is a simple way to compile just a module for any kernel by a
simple rpm -ivh ipw2100-dkms-1.0.1-1mdk.noarch.rpm or
rpm -ivh ipw2200-dkms-0.15-1mdk.noarch.rpm
If dkms is not on your system, just do urpmi dkms on root.
Look at http://plf.zarb.org/~bgmilne/dkms/ and try for your ipw2200 (I
only tried ipw2100 because I don't have a ipw2200 chipset).
With latest ipw2100 1.0.1 version, you can suspend/resume the module
correctly both in S3 and in S4 (I tried on this 2.6.9.nb3mdk kernel).
Version 1.0.1 needs a new firmware 1.3 instead of 1.2:
ipw2100-fw.1.3.tgz which can be downloaded at
http://ipw2100.sourceforge.net/firmware.php
Binaries firmware have to be placed on /lib/firmware and no more
at /usr/lib/hotplug/firmware
The MandrakeClub firmware binary rpm has probably to be updated
accordingly.
ipw2100 1.0.1 has power management facility and you can do
iwconfig eth2 power on . Just add WIRELESS_POWER=on in your
/etc/sysconfig/network-scripts/ifcfg-eth2
Patch ifup-wireless (just adding POWER and WIRELESS_POWER in the script)
with the included patch.
I will try your compact lilo option!!
I make a copy of your message to the mailing list (where you are welcome
to subscribe even if you don't have a Z1. But discussion will
concentrate on this specific hardware mostly).
The advantage of rpm is that if you do a rpm -e foo.rpm your package is
erased and your system is clean, even with kernels. It is not completely
true with dkms where you may need to do something like:
dkms remove --all -m ipw2100 -v 1.0.1
Cheers,
PS: Here are my lilo concerning these 2 kernels.
image=/boot/vmlinuz-2.6.8.1-20nb1w4lmdk
label="2681-20nb1w4l"
root=/dev/hda5
initrd=/boot/initrd-2.6.8.1-20nb1w4lmdk.img
append="nolapic acpi=on resume=/dev/hda8 splash=silent"
vga=788
read-only
image=/boot/vmlinuz-2.6.9-nb3mdk
label="269-nb3"
root=/dev/hda5
initrd=/boot/initrd-2.6.9-nb3mdk.img
append="nolapic acpi=on resume=/dev/hda8 splash=silent"
read-only
Nicolas
> I have spent hours on Google trying to search for answers to no avail. Any
> pointers would be appreciated. Thanks!
--
Brouard Nicolas
<>
- working directory: /etc/sysconfig/network-scripts/ % diff -burN ifup-wireless~ ifup-wireless --- ifup-wireless~ 2004-12-01 01:52:29.842221016 +0100 +++ ifup-wireless 2004-12-01 01:49:20.636984584 +0100 @@ -53,6 +53,9 @@ if [ -n "$RATE" ] ; then iwconfig $DEVICE rate $RATE fi +if [ -n "$POWER" ] ; then + iwconfig $DEVICE power $POWER +fi if [ -n "$KEY" ] ; then iwconfig $DEVICE key $KEY else @@ -93,7 +96,7 @@ # Note : we need the wireless parameters to be set up before IP parameters, # so that we can perform DHCP over the Wireless link if needed. Jean II -if [ -n "${WIRELESS_MODE}${WIRELESS_ESSID}${WIRELESS_NWID}${WIRELESS_FREQ}${WIRELESS_SENS}${WIRELESS_RATE}${WIRELESS_ENC_KEY}${WIRELESS_RTS}${WIRELESS_FRAG}${WIRELESS_IWCONFIG}${WIRELESS_IWSPY}${WIRELESS_IWPRIV}${WIRELESS_ESSID}" -a -x /sbin/iwconfig ] ; then +if [ -n "${WIRELESS_MODE}${WIRELESS_ESSID}${WIRELESS_NWID}${WIRELESS_FREQ}${WIRELESS_SENS}${WIRELESS_RATE}${WIRELESS_ENC_KEY}${WIRELESS_RTS}${WIRELESS_FRAG}${WIRELESS_IWCONFIG}${WIRELESS_IWSPY}${WIRELESS_IWPRIV}${WIRELESS_ESSID}${WIRELES_POWER}" -a -x /sbin/iwconfig ] ; then # Set all desired settings via iwconfig # Mode need to be first : some settings apply only in a specific mode ! @@ -123,6 +126,9 @@ if [ "$WIRELESS_ENC_KEY" ] ; then /sbin/iwconfig $DEVICE key $WIRELESS_ENC_KEY fi + if [ "$WIRELESS_POWER" ] ; then + /sbin/iwconfig $DEVICE power $WIRELESS_POWER + fi if [ "$WIRELESS_RTS" ] ; then /sbin/iwconfig $DEVICE rts $WIRELESS_RTS fi
- Re: Hibernate + 10.1 + ipw2100 resuming well +ipw2200 +dkms, Brouard Nicolas, 12/01/2004
Archive powered by MHonArc 2.6.18.