Re: rdist like thing for Windows / Linux

2004-08-03 Thread Simon McCartney
Thomas Amm wrote:
Michael K O'Brien wrote:
Hola~
I've got a Linux laptop (Debian unstable) I need to syncronize with a 
Windows
XP box. I'm looking for something like rdist to intelligently sync the 
two.

Other than cygwin's rdist, can anyone recommend something?
Unison?  You'd need samba going somewhere...the Windows GTK port isn't bad.
http://freshmeat.net/projects/unison/
--
-simonm (E: [EMAIL PROTECTED] W: +44 28 9072 5060 M: +44 7710 836915)
I'm too lazy to make a sig


signature.asc
Description: OpenPGP digital signature


Problems using ndiswrapper kernel modules

2004-08-03 Thread Steinar Bang
Platform: Intel Pentium M (Dell Inspiron D600)
  gcc 3.3.4-1,
  kernel-image-2.6.4-1-686 2.6.4-1,
  kernel-headers-2.6.4-1 2.6.4-1,
  kernel-headers-2.6.4-1-686 2.6.4-1,
  ndiswrapper 0.8-1,
  ndiswrapper-source 0.8-1

I'm trying to follow the instructions on
http://tiefighter.et.tudelft.nl/~arthur/wpc54g/
to get support for a BroadCom BCM94306 based WLAN card.

However, the "modprobe ndiswrapper" isn't able to find the ndiswrapper
module resulting from the build.

Has anyone else seen this problem?  Does anyone know how to correct
it?

The commands I ran, and their output, follows below.

Thanx!


- Steinar

[EMAIL PROTECTED]:/etc# apt-get install ndiswrapper ndiswrapper-source 
ndiswrapper-bcm94306
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package ndiswrapper-bcm94306
[EMAIL PROTECTED]:/etc# apt-get install ndiswrapper ndiswrapper-source
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  build-essential dpatch module-assistant
Recommended packages:
  patchutils
The following NEW packages will be installed:
  build-essential dpatch module-assistant ndiswrapper ndiswrapper-source
0 upgraded, 5 newly installed, 0 to remove and 259 not upgraded.
Need to get 201kB of archives.
After unpacking 581kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://rigtorp.se unstable/ ndiswrapper 1:0.8-1 [16.3kB]
Get:2 http://ftp.no.debian.org testing/main build-essential 10 [6450B]
Get:3 http://rigtorp.se unstable/ ndiswrapper-source 1:0.8-1 [67.3kB]
Get:4 http://ftp.no.debian.org testing/main dpatch 2.0.8 [72.8kB]
Get:5 http://ftp.no.debian.org testing/main module-assistant 0.6.8 [38.5kB]
Fetched 201kB in 1s (122kB/s)
Selecting previously deselected package build-essential.
(Reading database ... 176131 files and directories currently installed.)
Unpacking build-essential (from .../build-essential_10_i386.deb) ...
Selecting previously deselected package dpatch.
Unpacking dpatch (from .../archives/dpatch_2.0.8_all.deb) ...
Selecting previously deselected package module-assistant.
Unpacking module-assistant (from .../module-assistant_0.6.8_all.deb) ...
Selecting previously deselected package ndiswrapper.
Unpacking ndiswrapper (from .../ndiswrapper_1%3a0.8-1_i386.deb) ...
Selecting previously deselected package ndiswrapper-source.
Unpacking ndiswrapper-source (from .../ndiswrapper-source_1%3a0.8-1_all.deb) ...
Setting up build-essential (10) ...
Setting up dpatch (2.0.8) ...
Setting up module-assistant (0.6.8) ...
Setting up ndiswrapper (0.8-1) ...
Setting up ndiswrapper-source (0.8-1) ...
[EMAIL PROTECTED]:/etc# cd /usr/src/
[EMAIL PROTECTED]:/usr/src# tar -xvzf ndiswrapper-source.tar.gz
modules/ndiswrapper/
modules/ndiswrapper/Makefile
modules/ndiswrapper/hal.c
modules/ndiswrapper/divdi3.c
modules/ndiswrapper/coffpe.h
modules/ndiswrapper/ndiswrapper.h
modules/ndiswrapper/iw_ndis.c
modules/ndiswrapper/iw_ndis.h
modules/ndiswrapper/misc_funcs.c
modules/ndiswrapper/debian/
modules/ndiswrapper/debian/postinst.modules.in
modules/ndiswrapper/debian/rules
modules/ndiswrapper/debian/changelog
modules/ndiswrapper/debian/control.modules.in
modules/ndiswrapper/debian/copyright
modules/ndiswrapper/ndis.c
modules/ndiswrapper/ndis.h
modules/ndiswrapper/proc.c
modules/ndiswrapper/loader.c
modules/ndiswrapper/loader.h
modules/ndiswrapper/version
modules/ndiswrapper/ntoskernel.c
modules/ndiswrapper/ntoskernel.h
modules/ndiswrapper/INSTALL
modules/ndiswrapper/wrapper.c
modules/ndiswrapper/wrapper.h
modules/ndiswrapper/longlong.h
[EMAIL PROTECTED]:/usr/src# cd modules/ndiswrapper/
[EMAIL PROTECTED]:/usr/src/modules/ndiswrapper# sed -i 
's/KVERS=\$(KVERS)/KVER=$(KVERS)/' debian/rules
[EMAIL PROTECTED]:/usr/src/modules/ndiswrapper# debian/rules binary-modules 
KSRC=/lib/modules/`uname -r`/build
for templ in ; do \
cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.4-1-686/g'` ; \
  done
for templ in `ls debian/*.modules.in` ; do \
test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} 
${templ%.modules.in}.backup 2>/dev/null || true; \
sed -e 's/##KVERS##/2.6.4-1-686/g ;s/#KVERS#/2.6.4-1-686/g ; 
s/_KVERS_/2.6.4-1-686/g ; s/##KDREV##/unknown/g ; s/#KDREV#/unknown/g ; 
s/_KDREV_/unknown/g' < $templ > ${templ%.modules.in}; \
  done
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs lib/modules/2.6.4-1-686/misc
# build and install the module
/usr/bin/make KPKG_EXTRAV_ARG= KSRC=/lib/modules/2.6.4-1-686/build \
KVER=2.6.4-1-686 \
INST_DIR=debian/tmp/lib/modules/2.6.4-1-686/misc/ install
make[1]: Entering directory `/usr/src/modules/ndiswrapper'
/usr/bin/make -C /lib/modules/2.6.4-1-686/build SUBDIRS=/usr/src/modules/ndiswrapper 
DRV_VERSION=0.8 modules
make[2]: Entering directory `/usr/src/kernel-headers-2.6.4-1-686'
*** Warning: Overriding SUBDIRS on the command line can cause
***  inconsistencies
  CC [M]  /usr/src/modules/ndiswrapper/wrappe

Re: rdist like thing for Windows / Linux

2004-08-03 Thread Debian Laptop List
On Tue, 3 Aug 2004, Simon McCartney wrote:

> Thomas Amm wrote:
> > Michael K O'Brien wrote:
> >
> >> Hola~
> >>
> >> I've got a Linux laptop (Debian unstable) I need to syncronize with a
> >> Windows
> >> XP box. I'm looking for something like rdist to intelligently sync the
> >> two.
> >>
> >> Other than cygwin's rdist, can anyone recommend something?
>
> Unison?  You'd need samba going somewhere...the Windows GTK port isn't bad.

Unison is a good programme, but it has difficulties with international
characters in file and directory names (they are not transferred
correctly) when syncing between Windows and Linux. (See some other posts
of mine on the debian-user list and see the unison-user list archives)

You don't need samba to run unison (afaik), but you need unison running on
both systems.

Cheers, Stefan (debian @ goessling . de)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: rdist like thing for Windows / Linux

2004-08-03 Thread Simon McCartney
Debian Laptop List wrote:
Unison?  You'd need samba going somewhere...the Windows GTK port isn't bad.
You don't need samba to run unison (afaik), but you need unison running on
both systems.
True, I forgot about that, you can even tell unison to use ssh to talk 
to another machine and start a copy of unison there

--
-simonm (E: [EMAIL PROTECTED] W: +44 28 9072 5060 M: +44 7710 836915)
SAM: "How's life treating you Norm?"
NORM: "Like it caught me sleeping with its wife."


signature.asc
Description: OpenPGP digital signature


Hotplug with Netgear WG511 Confusion

2004-08-03 Thread Peter A. Cole
Hi all,

I'm now completely confused by hotplug, pcmcia-cs, and how on earth to get my WG511 up 
automatically by either plugging it in while my laptop is running or when it is 
booting if it's already plugged in.

I have successfully gotten my docking station's 3Com card working in this fashion as 
well as my Xircom 10/100 + 56K modem.

However, all attempts at getting my Netgear WG511 to load automatically have failed.

The only way I can get it to go is manually ifconfig eth0 up, then ifconfig eth0 down, 
then ifrename to give it the correct logical if name (ethwg5110), then ifconfig 
ethwg5110 up followed by iwconfig ethwg5110 essid mode enc and then, finally dhclient 
ethwg5110.

Once I do this, it works like a charm.

I have Googled, read the Debian reference, found what I could in /usr/share/doc, and 
am now even more confused than I was to begin with...

Anyway, here's what I've done:

Created /etc/iftab and added the following lines (using my real MAC addresses of 
course which I've triple checked):

eth3com0mac XX:XX:XX:XX:XX:XX
ethxirc0mac XX:XX:XX:XX:XX:XX
ethwg5110   mac XX:XX:XX:XX:XX:XX

Edited /etc/network/interfaces and made it look like this (once again I've triple 
checked my essid and key are correct):

mapping hotplug
   script echo

auto lo
iface lo inet loopback

iface eth3com0 inet dhcp

iface ethxirc0 inet dhcp

iface ethwg5110 inet dhcp
wireless-essid MY_ESSID
wireless-mode Managed
wireless-channel 11
wireless-key XX

I've also added the following three lines to the top of my /etc/modprobe.d/aliases 
file:

alias eth3com0 3c59x
alias ethxirc0 xirc2ps_cs
alias ethwg5110 prism54

When I boot with my laptop in the docking station, my 3Com card appears as eth3com0 
with a DHCP allocated address.

If I plug in my Xircom card, it appears as ethxirc0 with a DHCP allocated address.

If I plug in my Netgear WG511 card, the modules prism54 and firmware_class get loaded, 
and that's it. If I run iwconfig, it shows up as eth0, not ethwg5110 as it should do 
when ifrename has been run.

I also can't seem to find how to enable hotplug logging so I can see what's going on.

This is all on a Dell Latitude CPi (old but works ok) with Debian Sarge. I try to keep 
Sarge as up to date as I can, and I think my last update was only a day or two ago at 
the most.

I have the packages "hotplug", "wireless-tools", "ifupdown", "ifrename", and 
"pcmcia-cs" installed. I tried removing pcmcia-cs in case it was conflicting or 
something, but all that did was stop the Xircom from working.

Does anyone have any pointers where I can go from here?

Pete


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Hotplug with Netgear WG511 Confusion

2004-08-03 Thread Peter A. Cole
Sorry for the top post, but I neglected to mention I'm using kernel-image-2.6.7-1-686.

Pete

On Tue, 03 Aug 2004 21:34:37 +1000
"Peter A. Cole" <[EMAIL PROTECTED]> wrote:

> Hi all,
> 
> I'm now completely confused by hotplug, pcmcia-cs, and how on earth to get my WG511 
> up automatically by either plugging it in while my laptop is running or when it is 
> booting if it's already plugged in.
> 
> I have successfully gotten my docking station's 3Com card working in this fashion as 
> well as my Xircom 10/100 + 56K modem.
> 
> However, all attempts at getting my Netgear WG511 to load automatically have failed.
> 
> The only way I can get it to go is manually ifconfig eth0 up, then ifconfig eth0 
> down, then ifrename to give it the correct logical if name (ethwg5110), then 
> ifconfig ethwg5110 up followed by iwconfig ethwg5110 essid mode enc and then, 
> finally dhclient ethwg5110.
> 
> Once I do this, it works like a charm.
> 
> I have Googled, read the Debian reference, found what I could in /usr/share/doc, and 
> am now even more confused than I was to begin with...
> 
> Anyway, here's what I've done:
> 
> Created /etc/iftab and added the following lines (using my real MAC addresses of 
> course which I've triple checked):
> 
> eth3com0mac XX:XX:XX:XX:XX:XX
> ethxirc0mac XX:XX:XX:XX:XX:XX
> ethwg5110   mac XX:XX:XX:XX:XX:XX
> 
> Edited /etc/network/interfaces and made it look like this (once again I've triple 
> checked my essid and key are correct):
> 
> mapping hotplug
>script echo
> 
> auto lo
> iface lo inet loopback
> 
> iface eth3com0 inet dhcp
> 
> iface ethxirc0 inet dhcp
> 
> iface ethwg5110 inet dhcp
> wireless-essid MY_ESSID
> wireless-mode Managed
> wireless-channel 11
> wireless-key XX
> 
> I've also added the following three lines to the top of my /etc/modprobe.d/aliases 
> file:
> 
> alias eth3com0 3c59x
> alias ethxirc0 xirc2ps_cs
> alias ethwg5110 prism54
> 
> When I boot with my laptop in the docking station, my 3Com card appears as eth3com0 
> with a DHCP allocated address.
> 
> If I plug in my Xircom card, it appears as ethxirc0 with a DHCP allocated address.
> 
> If I plug in my Netgear WG511 card, the modules prism54 and firmware_class get 
> loaded, and that's it. If I run iwconfig, it shows up as eth0, not ethwg5110 as it 
> should do when ifrename has been run.
> 
> I also can't seem to find how to enable hotplug logging so I can see what's going on.
> 
> This is all on a Dell Latitude CPi (old but works ok) with Debian Sarge. I try to 
> keep Sarge as up to date as I can, and I think my last update was only a day or two 
> ago at the most.
> 
> I have the packages "hotplug", "wireless-tools", "ifupdown", "ifrename", and 
> "pcmcia-cs" installed. I tried removing pcmcia-cs in case it was conflicting or 
> something, but all that did was stop the Xircom from working.
> 
> Does anyone have any pointers where I can go from here?
> 
> Pete
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [OT] rdist like thing for Windows / Linux

2004-08-03 Thread Stefan Goessling-Reisemann

Wow, Michael, you don't mean to imply that Pixar is using Debian to
fabricate these enormously enjoybale movies? I love them!

Cheers, Stefan (debian @ goessling . de)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



suspend to disk while in X

2004-08-03 Thread Matt Perry
Hi,

I recently got a Dell 600m laptop.  I installed linux on it, but I ran into a 
few snags that are pretty much keeping me from leaving linux installed on it.

It has an ATI Radeon mobility 9000 graphics card, which I successfully have 
working in X.  However, when I'm in X,  and close the lid (which suspends to 
disk via echo 4 > /proc/acpi/sleep), the machine goes to sleep fine -- but 
when I wake it up, after it boots, my X display is all garbled.  After a 
second or two, it reboots a second time, and then is ok.  It's very annoying, 
though, to have to boot twice -- its both time consuming (>1 min) and power 
consuming.

If I have X open, but switch to a console before closing the lid, it will only 
have to resume once.  Then I just ctrl+alt+F7 to get my X session back 
cleanly.  This leads me to believe it has something to do with the video 
driver.  I'm using the free one that comes with X.

Has anyone else had and/or fixed this problem?  I can't seem to figure it out.  
And "just switch to a console before you close the lid" isn't the answer I'm 
looking for :)

Thanks,
- Matt


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: suspend to disk while in X

2004-08-03 Thread John M Flinchbaugh
On Tue, Aug 03, 2004 at 10:17:22AM -0400, Matt Perry wrote:
> If I have X open, but switch to a console before closing the lid, it 
will only 
> have to resume once.  Then I just ctrl+alt+F7 to get my X session 
back 
> cleanly.  This leads me to believe it has something to do with the 
video 
> driver.  I'm using the free one that comes with X.
> 
> Has anyone else had and/or fixed this problem?  I can't seem to 
figure it out.  
> And "just switch to a console before you close the lid" isn't the 
answer I'm 
> looking for :)

i have similar issues with ati mach64 driver (and other various
devices that don't like to suspend).

i have a whole suspend script that unloads some modules, shuts
some things down, and changes the console to a text console
before suspending.  is it acceptable to have it automatically
switch vt's for you?

#!/bin/sh
chvt 1
echo 4 > /proc/acpi/sleep
chvt 7

-- 
}John Flinchbaugh{__
| [EMAIL PROTECTED] http://www.hjsoft.com/~glynis/ |
~~Powered by Linux: Reboots are for hardware upgrades only~~


signature.asc
Description: Digital signature


floppy install: is there an immage with both EIDE and Wi-FI?

2004-08-03 Thread Ed Wastrodowski
Hi,
I've an Armada 7400 with a full disk of 800 Megs; I
found a 40 Gig Dk230eb on ebay, and I'm trying to
install linux on it, using floppy install because I
don't have it's CDROM; I do have a great Wi-Fi Avaya
11b connection from the 2.4.18 linux on the 100% used
disk.

I've discovered that the latest sarge images will do
Wi-Fi just great (DHCP to a belkin 7230-4 router), but
won't recognize the new 40 Gig.

I've discovered that a stable floppy 2.2.20 image will
partition the HD just fine, but won't do Wi-Fi.

what to do? The installation manual is tantalizing
with it's many ways and means of installing.. but
unless I stumble upon a floppy image kernel that does EIDE and
Wi-Fi, I won't succeed.
And there seems to be a way to extract a Wi-Fi module
perhaps, or an EIDE module perhaps, and custom kernel
it.. but what are the exact commands for doing that?
Section 10 says 'look for the modules that you need.'
But what name are they? and will they be files on the
disk?

thanks,

Ed


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Hotplug with Netgear WG511 Confusion

2004-08-03 Thread hbi
Hello,

I was faced to the same sort of problem, so I tried to find a way to work
with it.
Here were my experience and discoveries.

I use debian patched kernel 2.6.6 plus patch for bootsplash from testing
distribution.
I have a Compaq EVO  N800C with integrated Intel eepro100 ethernet adapter
seen as eth0 and a Cisco Aironet PCM350 wireless adapter seen as eth1 and
wifi0.
I just have the following within /etc/network/interface
auto lo
iface lo inet loopback
Nothing else.

To solve the problem, I first removed /etc/rc2.d/S20ifplugd. This one always
claimed that ifplugd was already started for eth0
Then I looked why this was claimed.

For me, with hotplug as implemented within Debian, as the PCI hotplug script
discover the integrated eepro100 adapter, it start ifplugd for eth0 via the
script /etc/hotplug.d/net/ifplug.hotplug. This last start
/etc/init.d/ifplugd for each interface eth* or wlan* or ath*.
Depending of the file content of /etc/default/ifplugd, it start or not the
script /etc/ifplug/action.d/ifupdown.for this interface.

I then modified those two files as follow to limit action precisely the the
specified interface.
/etc/default/ifplugd
INTERFACES="eth0"
HOTPLUG_INTERFACES="eth0"

/etc/ifplugd/action.d/ifupdown
---strip ---
up)
/sbin/ifup $1
/sbin/dhclient $1(added to obtain info from dhcp server)
;;
down)
/sbin/ifdown $1
/sbin/ifconfig $1 down(added to remove ip address and routing
info)
;;
---strip ---

This was perfect for the integrated eepro100 interface and have no more
action on the wireless interface.

To control this one, I installed the debian package waproamd  (apt-get
install waproamd) from testing.
This work nearly the same as ifplugd except, it refers to waproamd.
I also removed S20waproamd from /etc/rc2.d.
I modified the waproamd files to limit their action to eth1 in this case..
/etc/default/waproamd
INTERFACES="eth1"
HOTPLUG_INTERFACES="eth1"
ARGS=" -w  -M"(-M as the eth1 is a PCMCIA adapter, I need to monitor
its presence)

/etc/waproamd/action.d/ifupdown
---strip ---
up)
/sbin/ifup $1
/sbin/dhclient $1(added to obtain info from dhcp server)
;;
down)
/sbin/ifdown $1(nothing added, as removing the adapter,
remove all infos)
;;
---strip ---

After that, I find that with wireless connection, all process were very slow
to start.  The reason was the delay for the  DNS request timeout.
I have no DNS domain specified for my system. I solved this by adding my
hostname as alias for the localhost in /etc/hosts.

One more remark. Within files /etc/default/ifplugd or waproamd,  INTERFACES
seems not be used. The real important line is HOTPLUG_INTERFACES.  This last
specify the interface for which the script take an action.

I hope those explanation will help you to find a solution.

Regards

Henri

PS: I am on holliday till end augustus.


- Original Message - 
From: "Peter A. Cole" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, 03 August, 2004 13:45
Subject: Re: Hotplug with Netgear WG511 Confusion


> Sorry for the top post, but I neglected to mention I'm using
kernel-image-2.6.7-1-686.
>
> Pete
>
> On Tue, 03 Aug 2004 21:34:37 +1000
> "Peter A. Cole" <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
> >
> > I'm now completely confused by hotplug, pcmcia-cs, and how on earth to
get my WG511 up automatically by either plugging it in while my laptop is
running or when it is booting if it's already plugged in.
> >
> > I have successfully gotten my docking station's 3Com card working in
this fashion as well as my Xircom 10/100 + 56K modem.
> >
> > However, all attempts at getting my Netgear WG511 to load automatically
have failed.
> >
> > The only way I can get it to go is manually ifconfig eth0 up, then
ifconfig eth0 down, then ifrename to give it the correct logical if name
(ethwg5110), then ifconfig ethwg5110 up followed by iwconfig ethwg5110 essid
mode enc and then, finally dhclient ethwg5110.
> >
> > Once I do this, it works like a charm.
> >
> > I have Googled, read the Debian reference, found what I could in
/usr/share/doc, and am now even more confused than I was to begin with...
> >
> > Anyway, here's what I've done:
> >
> > Created /etc/iftab and added the following lines (using my real MAC
addresses of course which I've triple checked):
> >
> > eth3com0mac XX:XX:XX:XX:XX:XX
> > ethxirc0mac XX:XX:XX:XX:XX:XX
> > ethwg5110   mac XX:XX:XX:XX:XX:XX
> >
> > Edited /etc/network/interfaces and made it look like this (once again
I've triple checked my essid and key are correct):
> >
> > mapping hotplug
> >script echo
> >
> > auto lo
> > iface lo inet loopback
> >
> > iface eth3com0 inet dhcp
> >
> > iface ethxirc0 inet dhcp
> >
> > iface ethwg5110 inet dhcp
> > wireless-essid MY_ESSID
> > wireless-mode Managed
> > wireless-channel 11
> > wireless-

Re: suspend to disk while in X

2004-08-03 Thread François TOURDE
Hi Matt,

Le 12633ième jour après Epoch,
Matt Perry écrivait:

> Hi,
>
> I recently got a Dell 600m laptop.  I installed linux on it, but I ran into a 
> few snags that are pretty much keeping me from leaving linux installed on it.
>
> It has an ATI Radeon mobility 9000 graphics card, which I successfully have 
> working in X.  However, when I'm in X,  and close the lid (which suspends to 
> disk via echo 4 > /proc/acpi/sleep), the machine goes to sleep fine -- but 
> when I wake it up, after it boots, my X display is all garbled.  After a 
> second or two, it reboots a second time, and then is ok.  It's very annoying, 
> though, to have to boot twice -- its both time consuming (>1 min) and power 
> consuming.

I have a similar problem with a Dell C840, apm instead of acpi, and a
GeForce 4. What do you mean by "to boot twice" ? Is it "exit from
suspend mode twice" ?

I've tried the vt kludge, worked fine some times, but it's not a
good solution.

What I noticed: Sometimes, when opening the lid, the system run into
"resume suspend" mode, then go immediately into "critical
suspend". Then I close and reopen the lid, and the system is doing a
"critical resume".

AFAIK, "critical" apm is called with low battery status. I've no other
information about it.

Sometimes, the system freeze (no more keys but poweroff) after opening
lid, and I must reboot.

PS: Sorry for my english.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: suspend to disk while in X

2004-08-03 Thread Micha Feigin
On Tue, Aug 03, 2004 at 12:35:32PM -0400, John M Flinchbaugh wrote:
> On Tue, Aug 03, 2004 at 10:17:22AM -0400, Matt Perry wrote:
> > If I have X open, but switch to a console before closing the lid, it 
> will only 
> > have to resume once.  Then I just ctrl+alt+F7 to get my X session 
> back 
> > cleanly.  This leads me to believe it has something to do with the 
> video 
> > driver.  I'm using the free one that comes with X.
> > 

Do you have dri enabled? AFAIK the display should be ok as long as you
don't play with dri. Otherwise unless things have changed, suspend
support is implemented by reseting dri on VT switch, which is why you
need to switch to console.

> > Has anyone else had and/or fixed this problem?  I can't seem to 
> figure it out.  
> > And "just switch to a console before you close the lid" isn't the 
> answer I'm 
> > looking for :)
> 
> i have similar issues with ati mach64 driver (and other various
> devices that don't like to suspend).
> 

For me it suspends fine as long as I don't play with dri. I wrote a
patch to the dri code that resets the card on vt switch like the Radeon
one. I don't know whats the state of current things though, I still
haven't  upgraded from the dri tree of mid January (actually two
branches ago, since mach64 changed branches and then went mainline).

I do need to check the new code, hope I will have some time soon.

> i have a whole suspend script that unloads some modules, shuts
> some things down, and changes the console to a text console
> before suspending.  is it acceptable to have it automatically
> switch vt's for you?
> 
> #!/bin/sh
> chvt 1
> echo 4 > /proc/acpi/sleep
> chvt 7
> 

Or to make this code snippet a little more flexible:

#!/bin/sh
ORIG_VT=`fgconsole`
chvt 9
echo 4 > /proc/acpi/sleep
chvt $ORIG_VT

> -- 
> }John Flinchbaugh{__
> | [EMAIL PROTECTED] http://www.hjsoft.com/~glynis/ |
> ~~Powered by Linux: Reboots are for hardware upgrades only~~


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Hotplug with Netgear WG511 Confusion

2004-08-03 Thread peteracole
Quoting hbi <[EMAIL PROTECTED]>:

> Hello,
> 
> I was faced to the same sort of problem, so I tried to find a way to work
> with it.
> Here were my experience and discoveries.
> 
> I use debian patched kernel 2.6.6 plus patch for bootsplash from testing
> distribution.
> I have a Compaq EVO  N800C with integrated Intel eepro100 ethernet adapter
> seen as eth0 and a Cisco Aironet PCM350 wireless adapter seen as eth1 and
> wifi0.
> I just have the following within /etc/network/interface
> auto lo
> iface lo inet loopback
> Nothing else.
> 
> To solve the problem, I first removed /etc/rc2.d/S20ifplugd. This one always
> claimed that ifplugd was already started for eth0
> Then I looked why this was claimed.
> 
> *** snip ***

Thanks for your response on this, but unfortunately I'm not using ifplugd at
all.

I don't have the package installed and /etc/ifplugd doesn't exist.

Today I've brought my laptop to work with me and I've assembled the latest
testing CD with Jigdo to just blow it away and start from scratch as I wouldn't
be surprised if something has gone amiss since I first installed Sarge on it.

Thanks for the reply anyway  :-)

Pete


This message was sent using IMP, the Internet Messaging Program.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: rdist like thing for Windows / Linux

2004-08-03 Thread Simon McCartney

Thomas Amm wrote:

Michael K O'Brien wrote:


Hola~

I've got a Linux laptop (Debian unstable) I need to syncronize with a 
Windows
XP box. I'm looking for something like rdist to intelligently sync the 
two.


Other than cygwin's rdist, can anyone recommend something?


Unison?  You'd need samba going somewhere...the Windows GTK port isn't bad.

http://freshmeat.net/projects/unison/


--

-simonm (E: [EMAIL PROTECTED] W: +44 28 9072 5060 M: +44 7710 836915)
I'm too lazy to make a sig


signature.asc
Description: OpenPGP digital signature


Problems using ndiswrapper kernel modules

2004-08-03 Thread Steinar Bang
Platform: Intel Pentium M (Dell Inspiron D600)
  gcc 3.3.4-1,
  kernel-image-2.6.4-1-686 2.6.4-1,
  kernel-headers-2.6.4-1 2.6.4-1,
  kernel-headers-2.6.4-1-686 2.6.4-1,
  ndiswrapper 0.8-1,
  ndiswrapper-source 0.8-1

I'm trying to follow the instructions on
http://tiefighter.et.tudelft.nl/~arthur/wpc54g/
to get support for a BroadCom BCM94306 based WLAN card.

However, the "modprobe ndiswrapper" isn't able to find the ndiswrapper
module resulting from the build.

Has anyone else seen this problem?  Does anyone know how to correct
it?

The commands I ran, and their output, follows below.

Thanx!


- Steinar

[EMAIL PROTECTED]:/etc# apt-get install ndiswrapper ndiswrapper-source 
ndiswrapper-bcm94306
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package ndiswrapper-bcm94306
[EMAIL PROTECTED]:/etc# apt-get install ndiswrapper ndiswrapper-source
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  build-essential dpatch module-assistant
Recommended packages:
  patchutils
The following NEW packages will be installed:
  build-essential dpatch module-assistant ndiswrapper ndiswrapper-source
0 upgraded, 5 newly installed, 0 to remove and 259 not upgraded.
Need to get 201kB of archives.
After unpacking 581kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://rigtorp.se unstable/ ndiswrapper 1:0.8-1 [16.3kB]
Get:2 http://ftp.no.debian.org testing/main build-essential 10 [6450B]
Get:3 http://rigtorp.se unstable/ ndiswrapper-source 1:0.8-1 [67.3kB]
Get:4 http://ftp.no.debian.org testing/main dpatch 2.0.8 [72.8kB]
Get:5 http://ftp.no.debian.org testing/main module-assistant 0.6.8 [38.5kB]
Fetched 201kB in 1s (122kB/s)
Selecting previously deselected package build-essential.
(Reading database ... 176131 files and directories currently installed.)
Unpacking build-essential (from .../build-essential_10_i386.deb) ...
Selecting previously deselected package dpatch.
Unpacking dpatch (from .../archives/dpatch_2.0.8_all.deb) ...
Selecting previously deselected package module-assistant.
Unpacking module-assistant (from .../module-assistant_0.6.8_all.deb) ...
Selecting previously deselected package ndiswrapper.
Unpacking ndiswrapper (from .../ndiswrapper_1%3a0.8-1_i386.deb) ...
Selecting previously deselected package ndiswrapper-source.
Unpacking ndiswrapper-source (from .../ndiswrapper-source_1%3a0.8-1_all.deb) ...
Setting up build-essential (10) ...
Setting up dpatch (2.0.8) ...
Setting up module-assistant (0.6.8) ...
Setting up ndiswrapper (0.8-1) ...
Setting up ndiswrapper-source (0.8-1) ...
[EMAIL PROTECTED]:/etc# cd /usr/src/
[EMAIL PROTECTED]:/usr/src# tar -xvzf ndiswrapper-source.tar.gz
modules/ndiswrapper/
modules/ndiswrapper/Makefile
modules/ndiswrapper/hal.c
modules/ndiswrapper/divdi3.c
modules/ndiswrapper/coffpe.h
modules/ndiswrapper/ndiswrapper.h
modules/ndiswrapper/iw_ndis.c
modules/ndiswrapper/iw_ndis.h
modules/ndiswrapper/misc_funcs.c
modules/ndiswrapper/debian/
modules/ndiswrapper/debian/postinst.modules.in
modules/ndiswrapper/debian/rules
modules/ndiswrapper/debian/changelog
modules/ndiswrapper/debian/control.modules.in
modules/ndiswrapper/debian/copyright
modules/ndiswrapper/ndis.c
modules/ndiswrapper/ndis.h
modules/ndiswrapper/proc.c
modules/ndiswrapper/loader.c
modules/ndiswrapper/loader.h
modules/ndiswrapper/version
modules/ndiswrapper/ntoskernel.c
modules/ndiswrapper/ntoskernel.h
modules/ndiswrapper/INSTALL
modules/ndiswrapper/wrapper.c
modules/ndiswrapper/wrapper.h
modules/ndiswrapper/longlong.h
[EMAIL PROTECTED]:/usr/src# cd modules/ndiswrapper/
[EMAIL PROTECTED]:/usr/src/modules/ndiswrapper# sed -i 
's/KVERS=\$(KVERS)/KVER=$(KVERS)/' debian/rules
[EMAIL PROTECTED]:/usr/src/modules/ndiswrapper# debian/rules binary-modules 
KSRC=/lib/modules/`uname -r`/build
for templ in ; do \
cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.4-1-686/g'` ; \
  done
for templ in `ls debian/*.modules.in` ; do \
test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} 
${templ%.modules.in}.backup 2>/dev/null || true; \
sed -e 's/##KVERS##/2.6.4-1-686/g ;s/#KVERS#/2.6.4-1-686/g ; 
s/_KVERS_/2.6.4-1-686/g ; s/##KDREV##/unknown/g ; s/#KDREV#/unknown/g ; 
s/_KDREV_/unknown/g' < $templ > ${templ%.modules.in}; \
  done
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs lib/modules/2.6.4-1-686/misc
# build and install the module
/usr/bin/make KPKG_EXTRAV_ARG= KSRC=/lib/modules/2.6.4-1-686/build \
KVER=2.6.4-1-686 \
INST_DIR=debian/tmp/lib/modules/2.6.4-1-686/misc/ install
make[1]: Entering directory `/usr/src/modules/ndiswrapper'
/usr/bin/make -C /lib/modules/2.6.4-1-686/build 
SUBDIRS=/usr/src/modules/ndiswrapper DRV_VERSION=0.8 modules
make[2]: Entering directory `/usr/src/kernel-headers-2.6.4-1-686'
*** Warning: Overriding SUBDIRS on the command line can cause
***  inconsistencies
  CC [M]  /usr/src/modules/ndiswrapper/wrappe

Re: rdist like thing for Windows / Linux

2004-08-03 Thread Debian Laptop List
On Tue, 3 Aug 2004, Simon McCartney wrote:

> Thomas Amm wrote:
> > Michael K O'Brien wrote:
> >
> >> Hola~
> >>
> >> I've got a Linux laptop (Debian unstable) I need to syncronize with a
> >> Windows
> >> XP box. I'm looking for something like rdist to intelligently sync the
> >> two.
> >>
> >> Other than cygwin's rdist, can anyone recommend something?
>
> Unison?  You'd need samba going somewhere...the Windows GTK port isn't bad.

Unison is a good programme, but it has difficulties with international
characters in file and directory names (they are not transferred
correctly) when syncing between Windows and Linux. (See some other posts
of mine on the debian-user list and see the unison-user list archives)

You don't need samba to run unison (afaik), but you need unison running on
both systems.

Cheers, Stefan (debian @ goessling . de)



Re: rdist like thing for Windows / Linux

2004-08-03 Thread Simon McCartney

Debian Laptop List wrote:


Unison?  You'd need samba going somewhere...the Windows GTK port isn't bad.


You don't need samba to run unison (afaik), but you need unison running on
both systems.


True, I forgot about that, you can even tell unison to use ssh to talk 
to another machine and start a copy of unison there


--

-simonm (E: [EMAIL PROTECTED] W: +44 28 9072 5060 M: +44 7710 836915)
SAM: "How's life treating you Norm?"
NORM: "Like it caught me sleeping with its wife."


signature.asc
Description: OpenPGP digital signature


Hotplug with Netgear WG511 Confusion

2004-08-03 Thread Peter A. Cole
Hi all,

I'm now completely confused by hotplug, pcmcia-cs, and how on earth to get my 
WG511 up automatically by either plugging it in while my laptop is running or 
when it is booting if it's already plugged in.

I have successfully gotten my docking station's 3Com card working in this 
fashion as well as my Xircom 10/100 + 56K modem.

However, all attempts at getting my Netgear WG511 to load automatically have 
failed.

The only way I can get it to go is manually ifconfig eth0 up, then ifconfig 
eth0 down, then ifrename to give it the correct logical if name (ethwg5110), 
then ifconfig ethwg5110 up followed by iwconfig ethwg5110 essid mode enc and 
then, finally dhclient ethwg5110.

Once I do this, it works like a charm.

I have Googled, read the Debian reference, found what I could in 
/usr/share/doc, and am now even more confused than I was to begin with...

Anyway, here's what I've done:

Created /etc/iftab and added the following lines (using my real MAC addresses 
of course which I've triple checked):

eth3com0mac XX:XX:XX:XX:XX:XX
ethxirc0mac XX:XX:XX:XX:XX:XX
ethwg5110   mac XX:XX:XX:XX:XX:XX

Edited /etc/network/interfaces and made it look like this (once again I've 
triple checked my essid and key are correct):

mapping hotplug
   script echo

auto lo
iface lo inet loopback

iface eth3com0 inet dhcp

iface ethxirc0 inet dhcp

iface ethwg5110 inet dhcp
wireless-essid MY_ESSID
wireless-mode Managed
wireless-channel 11
wireless-key XX

I've also added the following three lines to the top of my 
/etc/modprobe.d/aliases file:

alias eth3com0 3c59x
alias ethxirc0 xirc2ps_cs
alias ethwg5110 prism54

When I boot with my laptop in the docking station, my 3Com card appears as 
eth3com0 with a DHCP allocated address.

If I plug in my Xircom card, it appears as ethxirc0 with a DHCP allocated 
address.

If I plug in my Netgear WG511 card, the modules prism54 and firmware_class get 
loaded, and that's it. If I run iwconfig, it shows up as eth0, not ethwg5110 as 
it should do when ifrename has been run.

I also can't seem to find how to enable hotplug logging so I can see what's 
going on.

This is all on a Dell Latitude CPi (old but works ok) with Debian Sarge. I try 
to keep Sarge as up to date as I can, and I think my last update was only a day 
or two ago at the most.

I have the packages "hotplug", "wireless-tools", "ifupdown", "ifrename", and 
"pcmcia-cs" installed. I tried removing pcmcia-cs in case it was conflicting or 
something, but all that did was stop the Xircom from working.

Does anyone have any pointers where I can go from here?

Pete



Re: Hotplug with Netgear WG511 Confusion

2004-08-03 Thread Peter A. Cole
Sorry for the top post, but I neglected to mention I'm using 
kernel-image-2.6.7-1-686.

Pete

On Tue, 03 Aug 2004 21:34:37 +1000
"Peter A. Cole" <[EMAIL PROTECTED]> wrote:

> Hi all,
> 
> I'm now completely confused by hotplug, pcmcia-cs, and how on earth to get my 
> WG511 up automatically by either plugging it in while my laptop is running or 
> when it is booting if it's already plugged in.
> 
> I have successfully gotten my docking station's 3Com card working in this 
> fashion as well as my Xircom 10/100 + 56K modem.
> 
> However, all attempts at getting my Netgear WG511 to load automatically have 
> failed.
> 
> The only way I can get it to go is manually ifconfig eth0 up, then ifconfig 
> eth0 down, then ifrename to give it the correct logical if name (ethwg5110), 
> then ifconfig ethwg5110 up followed by iwconfig ethwg5110 essid mode enc and 
> then, finally dhclient ethwg5110.
> 
> Once I do this, it works like a charm.
> 
> I have Googled, read the Debian reference, found what I could in 
> /usr/share/doc, and am now even more confused than I was to begin with...
> 
> Anyway, here's what I've done:
> 
> Created /etc/iftab and added the following lines (using my real MAC addresses 
> of course which I've triple checked):
> 
> eth3com0mac XX:XX:XX:XX:XX:XX
> ethxirc0mac XX:XX:XX:XX:XX:XX
> ethwg5110   mac XX:XX:XX:XX:XX:XX
> 
> Edited /etc/network/interfaces and made it look like this (once again I've 
> triple checked my essid and key are correct):
> 
> mapping hotplug
>script echo
> 
> auto lo
> iface lo inet loopback
> 
> iface eth3com0 inet dhcp
> 
> iface ethxirc0 inet dhcp
> 
> iface ethwg5110 inet dhcp
> wireless-essid MY_ESSID
> wireless-mode Managed
> wireless-channel 11
> wireless-key XX
> 
> I've also added the following three lines to the top of my 
> /etc/modprobe.d/aliases file:
> 
> alias eth3com0 3c59x
> alias ethxirc0 xirc2ps_cs
> alias ethwg5110 prism54
> 
> When I boot with my laptop in the docking station, my 3Com card appears as 
> eth3com0 with a DHCP allocated address.
> 
> If I plug in my Xircom card, it appears as ethxirc0 with a DHCP allocated 
> address.
> 
> If I plug in my Netgear WG511 card, the modules prism54 and firmware_class 
> get loaded, and that's it. If I run iwconfig, it shows up as eth0, not 
> ethwg5110 as it should do when ifrename has been run.
> 
> I also can't seem to find how to enable hotplug logging so I can see what's 
> going on.
> 
> This is all on a Dell Latitude CPi (old but works ok) with Debian Sarge. I 
> try to keep Sarge as up to date as I can, and I think my last update was only 
> a day or two ago at the most.
> 
> I have the packages "hotplug", "wireless-tools", "ifupdown", "ifrename", and 
> "pcmcia-cs" installed. I tried removing pcmcia-cs in case it was conflicting 
> or something, but all that did was stop the Xircom from working.
> 
> Does anyone have any pointers where I can go from here?
> 
> Pete
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 



Re: [OT] rdist like thing for Windows / Linux

2004-08-03 Thread Stefan Goessling-Reisemann

Wow, Michael, you don't mean to imply that Pixar is using Debian to
fabricate these enormously enjoybale movies? I love them!

Cheers, Stefan (debian @ goessling . de)



suspend to disk while in X

2004-08-03 Thread Matt Perry
Hi,

I recently got a Dell 600m laptop.  I installed linux on it, but I ran into a 
few snags that are pretty much keeping me from leaving linux installed on it.

It has an ATI Radeon mobility 9000 graphics card, which I successfully have 
working in X.  However, when I'm in X,  and close the lid (which suspends to 
disk via echo 4 > /proc/acpi/sleep), the machine goes to sleep fine -- but 
when I wake it up, after it boots, my X display is all garbled.  After a 
second or two, it reboots a second time, and then is ok.  It's very annoying, 
though, to have to boot twice -- its both time consuming (>1 min) and power 
consuming.

If I have X open, but switch to a console before closing the lid, it will only 
have to resume once.  Then I just ctrl+alt+F7 to get my X session back 
cleanly.  This leads me to believe it has something to do with the video 
driver.  I'm using the free one that comes with X.

Has anyone else had and/or fixed this problem?  I can't seem to figure it out.  
And "just switch to a console before you close the lid" isn't the answer I'm 
looking for :)

Thanks,
- Matt



Re: suspend to disk while in X

2004-08-03 Thread John M Flinchbaugh
On Tue, Aug 03, 2004 at 10:17:22AM -0400, Matt Perry wrote:
> If I have X open, but switch to a console before closing the lid, it 
will only 
> have to resume once.  Then I just ctrl+alt+F7 to get my X session 
back 
> cleanly.  This leads me to believe it has something to do with the 
video 
> driver.  I'm using the free one that comes with X.
> 
> Has anyone else had and/or fixed this problem?  I can't seem to 
figure it out.  
> And "just switch to a console before you close the lid" isn't the 
answer I'm 
> looking for :)

i have similar issues with ati mach64 driver (and other various
devices that don't like to suspend).

i have a whole suspend script that unloads some modules, shuts
some things down, and changes the console to a text console
before suspending.  is it acceptable to have it automatically
switch vt's for you?

#!/bin/sh
chvt 1
echo 4 > /proc/acpi/sleep
chvt 7

-- 
}John Flinchbaugh{__
| [EMAIL PROTECTED] http://www.hjsoft.com/~glynis/ |
~~Powered by Linux: Reboots are for hardware upgrades only~~


signature.asc
Description: Digital signature


floppy install: is there an immage with both EIDE and Wi-FI?

2004-08-03 Thread Ed Wastrodowski
Hi,
I've an Armada 7400 with a full disk of 800 Megs; I
found a 40 Gig Dk230eb on ebay, and I'm trying to
install linux on it, using floppy install because I
don't have it's CDROM; I do have a great Wi-Fi Avaya
11b connection from the 2.4.18 linux on the 100% used
disk.

I've discovered that the latest sarge images will do
Wi-Fi just great (DHCP to a belkin 7230-4 router), but
won't recognize the new 40 Gig.

I've discovered that a stable floppy 2.2.20 image will
partition the HD just fine, but won't do Wi-Fi.

what to do? The installation manual is tantalizing
with it's many ways and means of installing.. but
unless I stumble upon a floppy image kernel that does EIDE and
Wi-Fi, I won't succeed.
And there seems to be a way to extract a Wi-Fi module
perhaps, or an EIDE module perhaps, and custom kernel
it.. but what are the exact commands for doing that?
Section 10 says 'look for the modules that you need.'
But what name are they? and will they be files on the
disk?

thanks,

Ed



Re: Hotplug with Netgear WG511 Confusion

2004-08-03 Thread hbi
Hello,

I was faced to the same sort of problem, so I tried to find a way to work
with it.
Here were my experience and discoveries.

I use debian patched kernel 2.6.6 plus patch for bootsplash from testing
distribution.
I have a Compaq EVO  N800C with integrated Intel eepro100 ethernet adapter
seen as eth0 and a Cisco Aironet PCM350 wireless adapter seen as eth1 and
wifi0.
I just have the following within /etc/network/interface
auto lo
iface lo inet loopback
Nothing else.

To solve the problem, I first removed /etc/rc2.d/S20ifplugd. This one always
claimed that ifplugd was already started for eth0
Then I looked why this was claimed.

For me, with hotplug as implemented within Debian, as the PCI hotplug script
discover the integrated eepro100 adapter, it start ifplugd for eth0 via the
script /etc/hotplug.d/net/ifplug.hotplug. This last start
/etc/init.d/ifplugd for each interface eth* or wlan* or ath*.
Depending of the file content of /etc/default/ifplugd, it start or not the
script /etc/ifplug/action.d/ifupdown.for this interface.

I then modified those two files as follow to limit action precisely the the
specified interface.
/etc/default/ifplugd
INTERFACES="eth0"
HOTPLUG_INTERFACES="eth0"

/etc/ifplugd/action.d/ifupdown
---strip ---
up)
/sbin/ifup $1
/sbin/dhclient $1(added to obtain info from dhcp server)
;;
down)
/sbin/ifdown $1
/sbin/ifconfig $1 down(added to remove ip address and routing
info)
;;
---strip ---

This was perfect for the integrated eepro100 interface and have no more
action on the wireless interface.

To control this one, I installed the debian package waproamd  (apt-get
install waproamd) from testing.
This work nearly the same as ifplugd except, it refers to waproamd.
I also removed S20waproamd from /etc/rc2.d.
I modified the waproamd files to limit their action to eth1 in this case..
/etc/default/waproamd
INTERFACES="eth1"
HOTPLUG_INTERFACES="eth1"
ARGS=" -w  -M"(-M as the eth1 is a PCMCIA adapter, I need to monitor
its presence)

/etc/waproamd/action.d/ifupdown
---strip ---
up)
/sbin/ifup $1
/sbin/dhclient $1(added to obtain info from dhcp server)
;;
down)
/sbin/ifdown $1(nothing added, as removing the adapter,
remove all infos)
;;
---strip ---

After that, I find that with wireless connection, all process were very slow
to start.  The reason was the delay for the  DNS request timeout.
I have no DNS domain specified for my system. I solved this by adding my
hostname as alias for the localhost in /etc/hosts.

One more remark. Within files /etc/default/ifplugd or waproamd,  INTERFACES
seems not be used. The real important line is HOTPLUG_INTERFACES.  This last
specify the interface for which the script take an action.

I hope those explanation will help you to find a solution.

Regards

Henri

PS: I am on holliday till end augustus.


- Original Message - 
From: "Peter A. Cole" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, 03 August, 2004 13:45
Subject: Re: Hotplug with Netgear WG511 Confusion


> Sorry for the top post, but I neglected to mention I'm using
kernel-image-2.6.7-1-686.
>
> Pete
>
> On Tue, 03 Aug 2004 21:34:37 +1000
> "Peter A. Cole" <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
> >
> > I'm now completely confused by hotplug, pcmcia-cs, and how on earth to
get my WG511 up automatically by either plugging it in while my laptop is
running or when it is booting if it's already plugged in.
> >
> > I have successfully gotten my docking station's 3Com card working in
this fashion as well as my Xircom 10/100 + 56K modem.
> >
> > However, all attempts at getting my Netgear WG511 to load automatically
have failed.
> >
> > The only way I can get it to go is manually ifconfig eth0 up, then
ifconfig eth0 down, then ifrename to give it the correct logical if name
(ethwg5110), then ifconfig ethwg5110 up followed by iwconfig ethwg5110 essid
mode enc and then, finally dhclient ethwg5110.
> >
> > Once I do this, it works like a charm.
> >
> > I have Googled, read the Debian reference, found what I could in
/usr/share/doc, and am now even more confused than I was to begin with...
> >
> > Anyway, here's what I've done:
> >
> > Created /etc/iftab and added the following lines (using my real MAC
addresses of course which I've triple checked):
> >
> > eth3com0mac XX:XX:XX:XX:XX:XX
> > ethxirc0mac XX:XX:XX:XX:XX:XX
> > ethwg5110   mac XX:XX:XX:XX:XX:XX
> >
> > Edited /etc/network/interfaces and made it look like this (once again
I've triple checked my essid and key are correct):
> >
> > mapping hotplug
> >script echo
> >
> > auto lo
> > iface lo inet loopback
> >
> > iface eth3com0 inet dhcp
> >
> > iface ethxirc0 inet dhcp
> >
> > iface ethwg5110 inet dhcp
> > wireless-essid MY_ESSID
> > wireless-mode Managed
> > wireless-channel 11
> > wireless-key XX
> >

Re: suspend to disk while in X

2004-08-03 Thread François TOURDE
Hi Matt,

Le 12633ième jour après Epoch,
Matt Perry écrivait:

> Hi,
>
> I recently got a Dell 600m laptop.  I installed linux on it, but I ran into a 
> few snags that are pretty much keeping me from leaving linux installed on it.
>
> It has an ATI Radeon mobility 9000 graphics card, which I successfully have 
> working in X.  However, when I'm in X,  and close the lid (which suspends to 
> disk via echo 4 > /proc/acpi/sleep), the machine goes to sleep fine -- but 
> when I wake it up, after it boots, my X display is all garbled.  After a 
> second or two, it reboots a second time, and then is ok.  It's very annoying, 
> though, to have to boot twice -- its both time consuming (>1 min) and power 
> consuming.

I have a similar problem with a Dell C840, apm instead of acpi, and a
GeForce 4. What do you mean by "to boot twice" ? Is it "exit from
suspend mode twice" ?

I've tried the vt kludge, worked fine some times, but it's not a
good solution.

What I noticed: Sometimes, when opening the lid, the system run into
"resume suspend" mode, then go immediately into "critical
suspend". Then I close and reopen the lid, and the system is doing a
"critical resume".

AFAIK, "critical" apm is called with low battery status. I've no other
information about it.

Sometimes, the system freeze (no more keys but poweroff) after opening
lid, and I must reboot.

PS: Sorry for my english.



Re: suspend to disk while in X

2004-08-03 Thread Micha Feigin
On Tue, Aug 03, 2004 at 12:35:32PM -0400, John M Flinchbaugh wrote:
> On Tue, Aug 03, 2004 at 10:17:22AM -0400, Matt Perry wrote:
> > If I have X open, but switch to a console before closing the lid, it 
> will only 
> > have to resume once.  Then I just ctrl+alt+F7 to get my X session 
> back 
> > cleanly.  This leads me to believe it has something to do with the 
> video 
> > driver.  I'm using the free one that comes with X.
> > 

Do you have dri enabled? AFAIK the display should be ok as long as you
don't play with dri. Otherwise unless things have changed, suspend
support is implemented by reseting dri on VT switch, which is why you
need to switch to console.

> > Has anyone else had and/or fixed this problem?  I can't seem to 
> figure it out.  
> > And "just switch to a console before you close the lid" isn't the 
> answer I'm 
> > looking for :)
> 
> i have similar issues with ati mach64 driver (and other various
> devices that don't like to suspend).
> 

For me it suspends fine as long as I don't play with dri. I wrote a
patch to the dri code that resets the card on vt switch like the Radeon
one. I don't know whats the state of current things though, I still
haven't  upgraded from the dri tree of mid January (actually two
branches ago, since mach64 changed branches and then went mainline).

I do need to check the new code, hope I will have some time soon.

> i have a whole suspend script that unloads some modules, shuts
> some things down, and changes the console to a text console
> before suspending.  is it acceptable to have it automatically
> switch vt's for you?
> 
> #!/bin/sh
> chvt 1
> echo 4 > /proc/acpi/sleep
> chvt 7
> 

Or to make this code snippet a little more flexible:

#!/bin/sh
ORIG_VT=`fgconsole`
chvt 9
echo 4 > /proc/acpi/sleep
chvt $ORIG_VT

> -- 
> }John Flinchbaugh{__
> | [EMAIL PROTECTED] http://www.hjsoft.com/~glynis/ |
> ~~Powered by Linux: Reboots are for hardware upgrades only~~



Re: Hotplug with Netgear WG511 Confusion

2004-08-03 Thread peteracole
Quoting hbi <[EMAIL PROTECTED]>:

> Hello,
> 
> I was faced to the same sort of problem, so I tried to find a way to work
> with it.
> Here were my experience and discoveries.
> 
> I use debian patched kernel 2.6.6 plus patch for bootsplash from testing
> distribution.
> I have a Compaq EVO  N800C with integrated Intel eepro100 ethernet adapter
> seen as eth0 and a Cisco Aironet PCM350 wireless adapter seen as eth1 and
> wifi0.
> I just have the following within /etc/network/interface
> auto lo
> iface lo inet loopback
> Nothing else.
> 
> To solve the problem, I first removed /etc/rc2.d/S20ifplugd. This one always
> claimed that ifplugd was already started for eth0
> Then I looked why this was claimed.
> 
> *** snip ***

Thanks for your response on this, but unfortunately I'm not using ifplugd at
all.

I don't have the package installed and /etc/ifplugd doesn't exist.

Today I've brought my laptop to work with me and I've assembled the latest
testing CD with Jigdo to just blow it away and start from scratch as I wouldn't
be surprised if something has gone amiss since I first installed Sarge on it.

Thanks for the reply anyway  :-)

Pete


This message was sent using IMP, the Internet Messaging Program.