PDA

View Full Version : some wake/suspend questions



Roger the Shrubber
2005-08-18, 08:23
I have a few questions related to WOL and suspending my server system. I'm a total Linux newbie, but I managed to install SUSE9.3. All music is going to be on external USB drives. I intend to put the files there from my regular PC through SFTP.


Hardware:
1. I believe my NIC might support WOL and my mainboard definately should (there's a BIOS setting for this). However, reading the WOL announcement thread, it seems I might need to have the PCI card plugged into a specific slot. So which one generally is PCI slot 2? The one closer to the AGP/CPU/power supply or the one near the ISA slots? Or the second one down from either side?


Software
2. Mounting the USB drive during boot (in the slimserver boot script) doesn't always work. It seems the drive spins down after a long time of inactivity (1 hour or so) and doesn't respond fast enough. It seems to work fine after a reboot. Is there a reliable way of getting it mounted during booting?

3. Suspend to disk works nicely on the system, and I think I'll use it even if WOL doesn't quite work (faster booting). However, USB drives are apparently unmounted right before suspending. Same question here basically: how to get the drive mounted reliably once the system comes out of suspend?

4. I'd like to get the system to suspend after some 30 minutes of inactivity. I don't want to do that from Slimserver because I also intend to use the server to backup files. But both the backing up and Slimserver would rely on the external USB drive, so maybe is it somehow possible to check when that has been last active?

stinkingpig
2005-08-18, 08:50
Roger the Shrubber wrote:

>I have a few questions related to WOL and suspending my server system.
>I'm a total Linux newbie, but I managed to install SUSE9.3. All music
>is going to be on external USB drives. I intend to put the files there
>from my regular PC through SFTP.
>
>
>Hardware:
>1. I believe my NIC might support WOL and my mainboard definately
>should (there's a BIOS setting for this). However, reading the WOL
>announcement thread, it seems I might need to have the PCI card plugged
>into a specific slot. So which one generally is PCI slot 2? The one
>closer to the AGP/CPU/power supply or the one near the ISA slots? Or
>the second one down from either side?
>
>
>

count from the AGP slot down -- next question is whether they started
counting at 0 or 1 :)

>Software
>2. Mounting the USB drive during boot (in the slimserver boot script)
>doesn't always work. It seems the drive spins down after a long time of
>inactivity (1 hour or so) and doesn't respond fast enough. It seems to
>work fine after a reboot. Is there a reliable way of getting it mounted
>during booting?
>
>

I'm not a SuSE user myself, so I don't know where they configured it,
but this is power management. My Mandrake system and the Red Hat systems
I've seen have an /etc/sysconfig directory where behaviour can be set --
check out harddisks and laptop. Also if you're running a KDE desktop,
your control center has all sorts of handy configuration options.

>3. Suspend to disk works nicely on the system, and I think I'll use it
>even if WOL doesn't quite work (faster booting). However, USB drives
>are apparently unmounted right before suspending. Same question here
>basically: how to get the drive mounted reliably once the system comes
>out of suspend?
>
>
>
/etc/sysconfig/suspend, or if you really want to get your hands dirty,
/etc/sysconfig/suspend-scripts.

>4. I'd like to get the system to suspend after some 30 minutes of
>inactivity. I don't want to do that from Slimserver because I also
>intend to use the server to backup files. But both the backing up and
>Slimserver would rely on the external USB drive, so maybe is it somehow
>possible to check when that has been last active?
>
>
>
>
keep an eye on /var/log/syslog, there should be messages about what's
going on. /proc/bus/usb/devices has a listing of what's currently
active, or if you want to get more specific you can explore the new
/sys/bus/usb/devices/ directory.

--
Jack at Monkeynoodle dot Org : It's a Scientific Venture!
"I spent all me tin with the ladies drinking gin,
so across the Western ocean I must wander." -- All for Me Grog, traditional