Re: APM

2009-11-13 Thread James Phillips

 Date: Thu, 12 Nov 2009 10:28:10 -0800 (PST)
 From: James Phillips anti_spam...@yahoo.ca
 Subject: APM
 To: freebsd-questions@freebsd.org
 Message-ID: 784120.47330...@web65508.mail.ac4.yahoo.com
 Content-Type: text/plain; charset=us-ascii
 
SNIP!
 
 I realize the memory can't be shutdown without Hibernation
 support, but the disks can be spun down manually (using
 atacontrol):
 http://forums.freebsd.org/showthread.php?t=1012
 
 However, when I try to do that, I find that the disk wakes
 within 2 seconds of spinning down. I noticed that the
 spindowns are logged. Could the log being written be causing
 the drive to spin up again?
SNIP!
I initially set the time-out to 60 seconds, then 300 seconds in a vain attempt 
to see the actual power savings. With a 900 second time-out, the drive only 
spun down once in the past 12 hours.

It appears that syslogd can defer *one* log entry. Understandable, since you 
don't want to loose too many logs in a power failure.
tail /var/log/messages (trimmed entries from the 300 second time-out):
Nov 13 07:46:59 dusty kernel: ad4: Idle, spin down
Nov 13 07:46:59 dusty kernel: wakeup from sleeping state (slept 00:35:44)
Nov 13 07:47:01 ad4: request while spun down, starting.

It looks like the logging of the spin down woke up the sleeping system. 
Either that, or the computer did not know the actual spin-down time. The sleep 
time was reported to be 2144 seconds: 1244 seconds longer than the the set 
spin-down time (900 seconds).

If it was spun-down when I checked this morning, the difference was less than 
3W. Though, the current drive (5400RPM) uses ~2 fewer watts than the old (7200 
RPM) drive. I'm an not sure, since I replaced RAM, and installed an optical 
drive since measuring my base-line (with the old drive). 

My computer case has noise-dampening foam for the hard-disk. I can't hear if 
the drive is spinning over the inverter in the ADSL modem (9W) and the (quiet) 
fan noise from both the router (21W) and server. I can heard a click when it 
starts up, that is about it.

Regards,

James Phillips



  __
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now
http://ca.toolbar.yahoo.com.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: APM

2009-11-13 Thread Chuck Swiger

Hi--

On Nov 13, 2009, at 12:15 PM, James Phillips wrote:
I initially set the time-out to 60 seconds, then 300 seconds in a  
vain attempt to see the actual power savings. With a 900 second time- 
out, the drive only spun down once in the past 12 hours.


It appears that syslogd can defer *one* log entry. Understandable,  
since you don't want to loose too many logs in a power failure.


One of the first things you should consider is either disabling  
syslogd entirely, or else setup logging to a RAMdisk (ie, have an  
initial copy of what's in /var on the hard disk, setup a RAMdisk and  
mount as /var, then copy over the /var tree from hard drive to RAMdisk  
during early stages of system boot).  The advice given for NanoBSD or  
embedded NetBSD systems about conserving writes to a flash-based  
filesystem would be helpful in your case.


You might also want to note that 2.5 laptop drives are/should be  
explicitly designed to spin down and park themselves much more often  
than generic IDE drives are; some generic desktop drives will fail  
quite rapidly (ie, in a matter of months) if you attempt to spin them  
down many times a day.


You might also give some consideration to trying a Mac Mini with  
maximum power-savings mode enabled; OSX provides significant amounts  
of hysteresis to avoid spinning the disks up and down, and will buffer  
significant amounts of data being changed into RAM to coalesce  
filesystem activity into fewer periods of disk activity.


Regards,
--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: APM

2009-11-13 Thread David Allen
On 11/13/09, Chuck Swiger cswi...@mac.com wrote:
 Hi--

 On Nov 13, 2009, at 12:15 PM, James Phillips wrote:
 I initially set the time-out to 60 seconds, then 300 seconds in a
 vain attempt to see the actual power savings. With a 900 second time-
 out, the drive only spun down once in the past 12 hours.

 It appears that syslogd can defer *one* log entry. Understandable,
 since you don't want to loose too many logs in a power failure.

 One of the first things you should consider is either disabling
 syslogd entirely, or else setup logging to a RAMdisk (ie, have an
 initial copy of what's in /var on the hard disk, setup a RAMdisk and
 mount as /var, then copy over the /var tree from hard drive to RAMdisk
 during early stages of system boot).

There are options available in /etc/defaults/rc.conf to do just that,
but how does one copy over the contents of /var at system boot?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: APM

2009-11-13 Thread Chuck Swiger

Hi, David--

On Nov 13, 2009, at 2:48 PM, David Allen wrote:

There are options available in /etc/defaults/rc.conf to do just that,
but how does one copy over the contents of /var at system boot?


I'd consider adding something to /etc/rc.d/mountcritlocal (which  
normally mounts the local filesystems) to setup a RAMdisk on /var and  
then do rsync -a /var_template /var (or use a dump/restore or tar  
pipeline).


Regards,
--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: APM

2009-11-13 Thread David Allen
On 11/13/09, Chuck Swiger cswi...@mac.com wrote:
 Hi, David--

 On Nov 13, 2009, at 2:48 PM, David Allen wrote:
 There are options available in /etc/defaults/rc.conf to do just that,
 but how does one copy over the contents of /var at system boot?

 I'd consider adding something to /etc/rc.d/mountcritlocal (which
 normally mounts the local filesystems) to setup a RAMdisk on /var and
 then do rsync -a /var_template /var (or use a dump/restore or tar
 pipeline).

At the risk of sounding obtuse while asking for more help, I can work
out the rsync or dump part, but the rest I don't  get. The
mountcritremote essentially just does a mount -a -t ..., yes?  To
insert a few mdmfs commands followed by rsync commands, for example,
would require re-writing most the script.  Is there  a better place to
this?

The reason I ask is that some time ago I had a look at nanobsd which
is designed to run on RO flash media.  The /var and /tmp directories
are created as memory devices that supposedly get re-populated from a
/cfg directory at boot.

The /usr/src/tools/tools/nanobsd/nanobsd.sh setup script has a
function named setup_nanobsd_etc.  Essentially, it writes out an
/etc/fstab file and does a 'touch /etc/diskless'.  Unless there's
magic that happens behind the scenes with that /etc/diskless file, I
don't see how anything gets re-populated.

Put simply, I'm stuck somewhere between that script and your
suggestions thus far.

Thanks.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: APM

2009-11-13 Thread Chuck Swiger

Hi--

On Nov 13, 2009, at 3:54 PM, David Allen wrote:

I'd consider adding something to /etc/rc.d/mountcritlocal (which
normally mounts the local filesystems) to setup a RAMdisk on /var and
then do rsync -a /var_template /var (or use a dump/restore or tar
pipeline).


At the risk of sounding obtuse while asking for more help, I can work
out the rsync or dump part, but the rest I don't  get. The
mountcritremote essentially just does a mount -a -t ..., yes?  To
insert a few mdmfs commands followed by rsync commands, for example,
would require re-writing most the script.  Is there  a better place to
this?


Quite possibly.  I used NetBSD for a flash-based Soerkris boxes a  
while back, rather than NanoBSD.  It looks like reading /etc/ 
rc.initdiskless might be informative.



The reason I ask is that some time ago I had a look at nanobsd which
is designed to run on RO flash media.  The /var and /tmp directories
are created as memory devices that supposedly get re-populated from a
/cfg directory at boot.


Right...


The /usr/src/tools/tools/nanobsd/nanobsd.sh setup script has a
function named setup_nanobsd_etc.  Essentially, it writes out an
/etc/fstab file and does a 'touch /etc/diskless'.  Unless there's
magic that happens behind the scenes with that /etc/diskless file, I
don't see how anything gets re-populated.


The existence of /etc/diskless means /etc/rc runs /etc/rc.initdiskless:

% grep diskless /etc/rc
dlv=`/sbin/sysctl -n vfs.nfs.diskless_valid 2 /dev/null`
if [ ${dlv:=0} -ne 0 -o -f /etc/diskless ]; then
sh /etc/rc.initdiskless
# Run these after determining whether we are booting diskless in order
# to minimize the number of files that are needed on a diskless system,

Regards,
--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: APM

2009-11-13 Thread David Allen
On 11/13/09, Chuck Swiger cswi...@mac.com wrote:
 Hi--

 On Nov 13, 2009, at 3:54 PM, David Allen wrote:
 I'd consider adding something to /etc/rc.d/mountcritlocal (which
 normally mounts the local filesystems) to setup a RAMdisk on /var and
 then do rsync -a /var_template /var (or use a dump/restore or tar
 pipeline).

 At the risk of sounding obtuse while asking for more help, I can work
 out the rsync or dump part, but the rest I don't  get. The
 mountcritremote essentially just does a mount -a -t ..., yes?  To
 insert a few mdmfs commands followed by rsync commands, for example,
 would require re-writing most the script.  Is there  a better place to
 this?

 Quite possibly.  I used NetBSD for a flash-based Soerkris boxes a
 while back, rather than NanoBSD.  It looks like reading /etc/
 rc.initdiskless might be informative.

 The reason I ask is that some time ago I had a look at nanobsd which
 is designed to run on RO flash media.  The /var and /tmp directories
 are created as memory devices that supposedly get re-populated from a
 /cfg directory at boot.

 Right...

 The /usr/src/tools/tools/nanobsd/nanobsd.sh setup script has a
 function named setup_nanobsd_etc.  Essentially, it writes out an
 /etc/fstab file and does a 'touch /etc/diskless'.  Unless there's
 magic that happens behind the scenes with that /etc/diskless file, I
 don't see how anything gets re-populated.

 The existence of /etc/diskless means /etc/rc runs /etc/rc.initdiskless:

Aaaargh!  For those following along at home, that's

  /etc/rc.initdiskless

and not

  /etc/rc.d/somethingdiskless

 % grep diskless /etc/rc
 dlv=`/sbin/sysctl -n vfs.nfs.diskless_valid 2 /dev/null`
 if [ ${dlv:=0} -ne 0 -o -f /etc/diskless ]; then
   sh /etc/rc.initdiskless
 # Run these after determining whether we are booting diskless in order
 # to minimize the number of files that are needed on a diskless system,

The answer finally appears!

A note to the OP.  The only way I've found to keep a disk spun down
under FreeBSD is using memory devices for both /var and /tmp.
Disabling syslogd isn't enough, nor is modifying /etc/crontab, root's
crontab (or even disabling cron) to limit disk access.  But to use
memory devices and have a normal system, you'll need to re-populate
both /var and /tmp at startup.   Which, it turns out, means starting
with /etc/diskless.

Someone should add a section named  Non-Diskless Diskless Operation
to the Handbook.

Thanks again for all the help!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: APM

2009-11-13 Thread James Phillips
I was going to just respond to myself again, but I see I generated some 
discussion :)

Anyway, In the 
http://forums.freebsd.org/showthread.php?t=1012

page at least two people mentioned the ATAidle utility. It is not recommended 
for the same reason APM isn't: devices sleep without OS consent.

Anyway, I now know the drive saves 5W spun down because this command has 
immediate effect:
# ataidle -o /dev/ad4
Followed shortly by:
Nov 13 16:51:11 dusty kernel: ad4: TIMEOUT-WRITE=DMA retrying (1 retry left) 
LBA=23261855

I settled on (But using the rc.conf format):
ataidle -I 6 -S 10 /dev/ad4
because I think the Idle timer (minutes) and Supsend timer (minutes) stack 
to 16 minutes. Setting the suspend time has an effect of immediately spinning 
down the disk though (mentioned in the man page)

No logging means I have to figure out how often the drive spins up/down using 
other means. (I don't think the wake from idle (disk seems to keep spinning) or 
suspend triggers a message.)

Chuck wrote:
:You might also want to note that 2.5 laptop drives are/should be  explicitly 
designed to spin down and park themselves much more often than generic IDE 
drives are; some generic desktop drives will fail quite rapidly (ie, in a 
matter of months) if you attempt to spin them down many times a day.:

I suspect they are rated for a set number of power-on cycles. If (say) 5 
shutdowns/day kills the drive in months, it must be rated for something like 
1000. (hmm, I should look it up.)

Ideally, I want 1-5 shutdowns a day, depending on use. I know for a fact I want 
the drives shutdown when the server is idling for hours at a time. When set 
for a 15 minute time out (with atacontrol), the drive was not getting spurious 
shut-downs.

--- On Fri, 11/13/09, David Allen the.real.david.al...@gmail.com wrote:

 
  % grep diskless /etc/rc
  dlv=`/sbin/sysctl -n vfs.nfs.diskless_valid 2
 /dev/null`
  if [ ${dlv:=0} -ne 0 -o -f /etc/diskless ]; then
      sh /etc/rc.initdiskless
  # Run these after determining whether we are booting
 diskless in order
  # to minimize the number of files that are needed on a
 diskless system,
 
 The answer finally appears!
 
 A note to the OP.  The only way I've found to keep a
 disk spun down
 under FreeBSD is using memory devices for both /var and
 /tmp.
 Disabling syslogd isn't enough, nor is modifying
 /etc/crontab, root's
 crontab (or even disabling cron) to limit disk
 access.  But to use
 memory devices and have a normal system, you'll need to
 re-populate
 both /var and /tmp at startup.   Which, it
 turns out, means starting
 with /etc/diskless.

I think I thought of that (putting /var/log in RAM) on my own: it does not 
really fit what my server does though: it is a file server.

I have about 5-6GB set aside (big enough to hold a DVD image) for /var and 
/tmp, and only 256MB of memory. Backing the ramdisk with swap defeats the 
purpose.

Chuck wrote:
rsync -a /var_template /var
That is only half the battle: you need a way to flush it to disk when it 
actually spins up; else risk loosing log data (In the event of power/hardware 
failure).

I suppose a cron job backing up periodic filesytem snapshots is possible, but 
you would have to trigger on the number of interrupts seen by the disk or 
something to avoid waking it. I was thinking /proc/interrupts , but that is a 
Linux feature :P

Do the messages from spinning the disk back up (with atacontrol) have any 
hooks? I suppose if you are desperate, you can (tail+) grep /var/log/messages. 

 Someone should add a section named  Non-Diskless
 Diskless Operation
 to the Handbook.

I like to think what I am doing (with 10 year old hardware) is cutting edge 
research. That is to say, the normal mode of operation for servers is to hold 
your nose and let them run 24/7. It is more reliable that way.

The current trend for mitigating that waste of energy is consolidation. If you 
can put a dozen servers in one box, hopefully only 1 or 2 will be active at 
once.

However, I think drivers and hardware (like NICs with WOL) may have matured to 
the point that it is possible to run non-critical servers (and desktops) in 
such a way that they only turn on when needed. Suspend mode for the newer 
desktops here draw only ~3watts: comparable to the power-off (soft-off) state.


 Thanks again for all the help!
 


  __
Make your browsing faster, safer, and easier with the new Internet Explorer® 8. 
Optimized for Yahoo! Get it Now for Free! at 
http://downloads.yahoo.com/ca/internetexplorer/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


APM

2009-11-12 Thread James Phillips
Hello,

On Tuesday, I was all happy that I got APM working on my pre-2000 Compaq 
Deskpro following these instructions:
http://forums.freebsd.org/showthread.php?t=4619

On Wednesday, after configuring the router to wake the server whenever DHCP 
leases are touched (quickdirty hack), I was disappointed to learn that 
suspend mode saves only ~1watt over the inherent use of the HLT instruction 
by the kernel. 

I was expecting a savings of ~6 watts due to the disk spinning down.
Approx power consumption (+- 1W):
51 Watts (busy; disk + CPU IIRC; not retested with DVD activity)
35 Watts idle
34 Watts suspend
3 Watts off
(Measured using Kill-A-Watt model P4400)

Part of the problem may be that I am not using the on board IDE controllers: 
I am using a Promise (Ultra100TX2) PDC20268

I realize the memory can't be shutdown without Hibernation support, but the 
disks can be spun down manually (using atacontrol):
http://forums.freebsd.org/showthread.php?t=1012

However, when I try to do that, I find that the disk wakes within 2 seconds of 
spinning down. I noticed that the spindowns are logged. Could the log being 
written be causing the drive to spin up again?

apm(4) says that apm gets around that problem by logging the suspend event 
AFTER waking up. I suppose it would be tricky to concurrently log to spin down 
of several disks that way. For example: Say disk with /var/log spins down at 
00:00:05, but the rarely-used /srv drive spins down at 00:00:07. Should the 
logging drive defer recording BOTH spin-down messages, or spin-up, then 
spin-down again at about 00:15:20?

Not that important for a 1W savings, but apm says my BIOS supports the 
following capabilities:
global standby state // Supported sleep modes
global suspend state
resume timer from standby   // Resume timer allows sleep to last 
resume timer from suspend   // specific period of time?
RI resume from standby   // Wake on interrupts, i assume
RI resume from suspend

Would it be possible to coordinate the cron dameon with the suspend timer? Ie: 
wake 15 sec- 5min before next cron job? Not worth it without hibernate support 
though.
apm(4) does not mention suspend timers at all.
acpi(4) mentions timer as a sub-device and feature that can be disabled.

Regards,

James Phillips



  __
Connect with friends from any web browser - no download required. Try the new 
Yahoo! Canada Messenger for the Web BETA at 
http://ca.messenger.yahoo.com/webmessengerpromo.php
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Clearchains wpi and apm/acpi

2008-02-21 Thread Martin Boulianne
Hi,
I successfully installed wpi driver and it works great. I'm using acpi.
But my screen doesn't go off when I close the lid, and I read
that apm could do the trick. So I disabled acpi and enabled apm.

Woohoo! The screen shutdowns as predicted. BUT, the wpi driver
won't work anymore! I guess that it somehow depends on acpi.

Do you guys have seen anything alike? Is it possible to make wpi
work with apm?

I'm running 7.0-current i386, on a Dell Inspiron 6400.


Thanks!!

Martin Boulianne
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ACPI / APM Question

2006-05-11 Thread Graham Bentley
I am running 6.0 on a little rackserver.
Alot of the time its inactive and I was
wondering about trying to setup ACPI
the main reason being to spin down the 
disc / PSU so its a bit quieter (its in my 
office) I would require it to wake on
LAN activity. How feasable is this
and what steps do I need to take
to set it up ?

I am reading acpiconf man right now
but I suspect more is required.

I have set the BIOS to WOL, spin
down disc after 15 mins and ACPI
suspend type to S1.

Just tested acpiconf -s 4 and it
shuts the system down completely?

Any help appreciated - Thanks!

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ACPI / APM Question

2006-05-11 Thread Graham Bentley
Here is output :-

rackserver# sysctl hw.acpi
hw.acpi.supported_sleep_state: S1 S4 S5
hw.acpi.power_button_state: S5
hw.acpi.sleep_button_state: S1
hw.acpi.lid_switch_state: NONE
hw.acpi.standby_state: S1
hw.acpi.suspend_state: S3
hw.acpi.sleep_delay: 1
hw.acpi.s4bios: 0
hw.acpi.verbose: 0
hw.acpi.reset_video: 1
hw.acpi.cpu.cx_supported: C1/0 C2/90 C3/900
hw.acpi.cpu.cx_lowest: C1
hw.acpi.cpu.cx_usage: 100.00% 0.00% 0.00%
hw.acpi.thermal.min_runtime: 0
hw.acpi.thermal.polling_rate: 10
hw.acpi.thermal.tz0.temperature: 32.0C
hw.acpi.thermal.tz0.active: -1
hw.acpi.thermal.tz0.thermal_flags: 0
hw.acpi.thermal.tz0._PSV: 50.0C
hw.acpi.thermal.tz0._HOT: -1
hw.acpi.thermal.tz0._CRT: 60.0C
hw.acpi.thermal.tz0._ACx: 50.0C -1 -1 -1 -1 -1 -1 -1 -1 -1

 I am running 6.0 on a little rackserver.
 Alot of the time its inactive and I was
 wondering about trying to setup ACPI
 the main reason being to spin down the 
 disc / PSU so its a bit quieter (its in my 
 office) I would require it to wake on
 LAN activity. How feasable is this
 and what steps do I need to take
 to set it up ?
 
 I am reading acpiconf man right now
 but I suspect more is required.
 
 I have set the BIOS to WOL, spin
 down disc after 15 mins and ACPI
 suspend type to S1.
 
 Just tested acpiconf -s 4 and it
 shuts the system down completely?
 
 Any help appreciated - Thanks!
 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: New FreeBSD Logo (was ACPI / APM Question)

2006-05-11 Thread Graham Bentley
Figure this may get more attention - LOL !!!

Message: 6
Date: Thu, 11 May 2006 07:31:50 +0100
From: Graham Bentley [EMAIL PROTECTED]
Subject: ACPI / APM Question
To: freebsd-questions@freebsd.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=iso-8859-1

I am running 6.0 on a little rackserver.
Alot of the time its inactive and I was
wondering about trying to setup ACPI
the main reason being to spin down the 
disc / PSU so its a bit quieter (its in my 
office) I would require it to wake on
LAN activity. How feasable is this
and what steps do I need to take
to set it up ?

I am reading acpiconf man right now
but I suspect more is required.

I have set the BIOS to WOL, spin
down disc after 15 mins and ACPI
suspend type to S1.

Just tested acpiconf -s 4 and it
shuts the system down completely?

Any help appreciated - Thanks!




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Toshiba Tecra: ACPI and APM woes...

2006-02-03 Thread Norberto Meijome

Hi all, (apologies for the long email!)

I've recently made the switch to FBSD 6.0 (FreeBSD 6.0-STABLE #6: Mon 
Jan 30 15:08:44 EST 2006) from WinXP on my work laptop, a Toshiba Tecra 
A2. Apps work great, but the system feels a bit unstable...too many 
(fatal) crashes for my liking. (and hardly any crashes under windows XP 
- NOT wanting to start a flame war, but I rather avoid the obligatory 
your hardware is broken emails ;)  )


Anyway, the major crashes seem to be related to power management.

I tried first ACPI enabled (default)  including the acpi_toshiba and the 
toshctl port. S3 (suspend) worked fine, but on resume the disk subsystem 
died on me and after a few seconds it just panic'ed with lots of errors:

g_vfs_done():ad0s1d(write .)] error 6
g_vfs_done():ad0s1d(write .)] error 6
g_vfs_done():ad0s1d(write .)] error 6
g_vfs_done():ad0s1d(write .)] error 6
(s1d - /var)
so that was a no goer :( .I have since then upgraded the bios from 
version 1.30 to version 1.40 with no changes in the result. The .asl 
generated with acpidump have some minor differences between versions.


Is there some part of ACPI I can disable to get this fixed? Is there a 
fixed / improved ASL for this laptop?


Also, what is the difference between ACPI works under Windows because 
uses it 'real mode' ... ? ( I think i read it in some docs about acpi)


So I had to fall back onto APM, which is definitely not my fav. option.

Now, apm seems to lock up a lot at random times. Sometimes when coming 
back from sleep, sometimes it will come back ok, then I will run my 
'wireless_up.sh' (ifconfig iwi0 up; dhclient iwi0 ) and this will lock 
up / reset the machine.


The other issue is the crash when doing apm -z from X ( search for my 
post lockup when suspending from X, Jan 30th 06 for details). But I 
will give a try to the trick mentioned in a page about IBM laptops 
(using vidcontrol to switch to the text vc before zzz).


Not sure if this is anything important or not, but the lock ups seemed 
to happen a lot more often when I had loaded (via loader.conf) vesa.ko, 
saver_fire.ko and kqemu.ko



attached: DMESG , with acpi disabled (first boot, then a crash - see the 
fs-not-clean lines, then the boot with APM)

sysctl acpi-lines when acpi enabled
Kernel Conf.

output of toshctl -a (works fine with APM):
[EMAIL PROTECTED] [Sat Feb  4 01:53:42 2006]
~
$ sudo toshctl -a
bios.date: 1114351200
bios.id: 64767
bios.version: 1.40 
hci.cpu_speed: -1

hci.fan: -1
hci.lcd.backlight: 1
hci.lcd.brightness: 4
hci.lcd.mode: 2
hci.lcd.type: 4
hci.power_source: 1
hci.select_bay: 2
hci.software_suspend: 1
---

I am running with apm_enable=yes and apmd_enable=yes in rc.conf

--
[EMAIL PROTECTED] [Sat Feb  4 01:55:54 2006]
~
$ cat /boot/loader.conf.local
#bitmap_load=YES
#splash_bmp_load=YES
#bitmap_name=/boot/apache_header.bmp

### MODULES TO LOAD ###
apm_load=YES

if_iwi_load=YES
snd_ich_load=YES
speaker_load=YES
# need vesa?
#vesa_load=YES
# QEmu Accelerator
#kqemu_load=YES
# Need this for XCDRoast
atapicam_load=YES
hw.ata.atapi_dma=1
# Java needs this
linprocfs_load=YES

# ACPI for TOSH - not using ACPI
#acpi_toshiba_load=YES

### OTHER OPTIONS ###
autoboot_delay=5
#loader_logo=beastiebw
---


thanks in advance for any help / advice / suggestions you can provide :)

Beto, wanting to have the rock stable BSD from my servers working better 
on this laptop.
  acpisem37 3K   -   37  64
 acpitask 0 0K   -   28  32
   acpica  186998K   -36311  16,32,64,128,256,512,1024,2048,4096
acpi_perf 1 1K   -1  512
  acpidev74 3K   -   74  32
debug.acpi.do_powerstate: 1
debug.acpi.acpi_ca_version: 0x20041119
debug.acpi.semaphore_debug: 0
hw.acpi.supported_sleep_state: S3 S4 S5
hw.acpi.power_button_state: S5
hw.acpi.sleep_button_state: S3
hw.acpi.lid_switch_state: NONE
hw.acpi.standby_state: S1
hw.acpi.suspend_state: S3
hw.acpi.sleep_delay: 1
hw.acpi.s4bios: 0
hw.acpi.verbose: 0
hw.acpi.reset_video: 1
hw.acpi.cpu.cx_supported: C1/0 C2/1 C3/85
hw.acpi.cpu.cx_lowest: C1
hw.acpi.cpu.cx_usage: 100.00% 0.00% 0.00%
hw.acpi.battery.life: 78
hw.acpi.battery.time: -1
hw.acpi.battery.state: 2
hw.acpi.battery.units: 1
hw.acpi.battery.info_expire: 5
hw.acpi.acline: 1
hw.acpi.toshiba.force_fan: 0
hw.acpi.toshiba.video_output: 1
hw.acpi.toshiba.lcd_brightness: 4
hw.acpi.toshiba.lcd_backlight: 1
hw.acpi.toshiba.cpu_speed: 4
hw.acpi.thermal.min_runtime: 0
hw.acpi.thermal.polling_rate: 10
hw.acpi.thermal.tz0.temperature: 55.0C
hw.acpi.thermal.tz0.active: -1
hw.acpi.thermal.tz0.passive_cooling: 1
hw.acpi.thermal.tz0.thermal_flags: 0
hw.acpi.thermal.tz0._PSV: 102.0C
hw.acpi.thermal.tz0._HOT: -1
hw.acpi.thermal.tz0._CRT: 102.0C
hw.acpi.thermal.tz0._ACx: 102.0C 102.0C -1 -1 -1 -1 -1 -1 -1 -1
machdep.acpi_timer_freq: 3579545
machdep.acpi_root: 983424
dev.acpi.0.%desc: TOSHIB 750
dev.acpi.0.%driver: acpi
dev.acpi.0.%parent: nexus0
dev.pci_link.0.%parent: acpi0

6.0-RELEASE Thinkpad 600e SMBus IOCTL: Device not configured error apm issues.

2006-01-03 Thread Ross Marchiafava
Hello,

This is my second email to this list, I got no response from the first email
I sent, I hope i'm providing enough information.

I'm currently running FreeBSD 6.0-RELEASE on my IBM Thinkpad 600e 2645-4AU
with a custom kernel.  I updated the BIOS to the latest version that IBM
offers ( INET36WW
http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=DSHY-46HLKQ).

I've searched google quite a bit on how to get this laptop properly working
in FreeBSD.  I'm using APM on my system, one thing I noticed is that when
running 'apm' the Remaining battery time is not consistent, it jumps from
2:00:00 to 3:05:00 back to 2:35:00 it's really all over the place.  The
Remaining battery does not randomly change, so i'm assuming that is correct?


I also noticed that whenever my laptop comes out of suspend ( apm -Z ), the
video color is distorted I'm using VESA with 'vidcontrol MODE_279'
1024x768x16, all other modes seem to do the same thing however when coming
out of suspend mode it distorts to a different color, so on mode 279 it
distorts the white color to a light blue, and with 280 it distorts the white
color to red, it distorts other colors as well but that's the main color I
notice.

I've compiled smbus into my kernel and I load the intpm driver and the
/dev/smb0 is created.  I tried using 'chm' but I get these errors:

I have listed pciconf, dmesg, loader.conf, device.hints, and kernel config
below.
I appreciate any help that anyone is able to provide, I would love to have
this Laptop working 100%.
Thank you.

-Ross

chm:
ioctl: Device not configured

IOCTL: Device not configured
IOCTL: Device not configured
IOCTL: Device not configured
IOCTL: Device not configured
IOCTL: Device not configured
IOCTL: Device not configured
IOCTL: Device not configured
IOCTL: Device not configured
IOCTL: Device not configured
IOCTL: Device not configured
Motherboard Temperature: 191 ° C
CPU_0 Temperature: 191 ° C
CPU_1 Temperature: 191 ° C
IOCTL: Device not configured
VCore:   2.98438 V
IOCTL: Device not configured
Vit: 2.98438 V
IOCTL: Device not configured
Vio: 2.98438 V
IOCTL: Device not configured
+5V: 4.98391 V
IOCTL: Device not configured
+12V: 11.9375 V
IOCTL: Device not configured
-12V:-11.9375 V
IOCTL: Device not configured
-5V: -4.98391 V
IOCTL: Device not configured
Fan 1: 883 rpm
IOCTL: Device not configured
Fan 2: 1767 rpm
IOCTL: Device not configured
Fan 3: 3534 rpm


pciconf -vl:
[EMAIL PROTECTED]:0:0:  class=0x06 card=0x chip=0x71908086 rev=0x03
hdr=0x00
vendor   = 'Intel Corporation'
device   = '82443BX/ZX 440BX/ZX CPU to PCI Bridge (AGP Implemented)'
class= bridge
subclass = HOST-PCI
[EMAIL PROTECTED]:1:0: class=0x060400 card=0x chip=0x71918086 rev=0x03
hdr=0x01
vendor   = 'Intel Corporation'
device   = '82443BX/ZX 440BX/ZX AGPset PCI-to-PCI bridge'
class= bridge
subclass = PCI-PCI
[EMAIL PROTECTED]:2:0:  class=0x060700 card=0x00eb1014 chip=0xac1d104c rev=0x00
hdr=0x02
vendor   = 'Texas Instruments (TI)'
device   = 'PCI1251 PC Card CardBus Controller'
class= bridge
subclass = PCI-CardBus
[EMAIL PROTECTED]:2:1:  class=0x060700 card=0x00eb1014 chip=0xac1d104c rev=0x00
hdr=0x02
vendor   = 'Texas Instruments (TI)'
device   = 'PCI1251 PC Card CardBus Controller'
class= bridge
subclass = PCI-CardBus
[EMAIL PROTECTED]:6:0: class=0x040100 card=0x10101014 chip=0x60011013 rev=0x01
hdr=0x00
vendor   = 'Cirrus Logic'
device   = 'CS4610 CrystalClear SoundFusion PCI Audio Accelerator'
class= multimedia
subclass = audio
[EMAIL PROTECTED]:7:0: class=0x068000 card=0x chip=0x71108086 rev=0x02
hdr=0x00
vendor   = 'Intel Corporation'
device   = '82371AB/EB/MB PIIX4/4E/4M ISA Bridge'
class= bridge
[EMAIL PROTECTED]:7:1:   class=0x010180 card=0x chip=0x71118086
rev=0x01 hdr=0x00
vendor   = 'Intel Corporation'
device   = '82371AB/EB/MB PIIX4/4E/4M IDE Controller'
class= mass storage
subclass = ATA
[EMAIL PROTECTED]:7:2: class=0x0c0300 card=0x chip=0x71128086 rev=0x01
hdr=0x00
vendor   = 'Intel Corporation'
device   = '82371AB/EB/MB PIIX4/4E/4M USB Interface'
class= serial bus
subclass = USB
[EMAIL PROTECTED]:7:3:class=0x068000 card=0x chip=0x71138086
rev=0x02 hdr=0x00
vendor   = 'Intel Corporation'
device   = '82371AB/EB/MB PIIX4/4E/4M Power Management Controller'
class= bridge
[EMAIL PROTECTED]:0:0: class=0x03 card=0x00dd1014 chip=0x000510c8 rev=0x20
hdr=0x00
vendor   = 'Neomagic Corporation'
device   = 'NM2200 MagicMedia 256AV'
class= display
subclass = VGA

Here is my dmesg ( this is after It wakes from the lid being opened after
it's closed, I get some ROUTE_INTERRUPT failed mesages :

Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983

6.0-RELEASE Thinkpad 600e SMBus IOCTL: Device not configured erro apm issues.

2006-01-02 Thread Ross Marchiafava
Hello,

I'm currently running FreeBSD 6.0-RELEASE on my IBM Thinkpad 600e 2645-4AU
with a custom kernel.  I updated the BIOS to the latest version that IBM
offers ( INET36WW
http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=DSHY-46HLKQ).

I've searched google quite a bit on how to get this laptop properly working
in FreeBSD.  I'm using APM on my system, one thing I noticed is that when
running 'apm' the Remaining battery time is not consistent, it jumps from
2:00:00 to 3:05:00 back to 2:35:00 it's really all over the place.  The
Remaining battery does not randomly change, so i'm assuming that is correct?

I also noticed that whenever my laptop comes out of suspend ( apm -Z ), the
video color is distorted I'm using VESA with 'vidcontrol MODE_279'
1024x768x16, all other modes seem to do the same thing however when coming
out of suspend mode it distorts to a different color, so on mode 279 it
distorts the white color to a light blue, and with 280 it distorts the white
color to red, it distorts other colors as well but that's the main color I
notice.

I've compiled smbus into my kernel and I load the intpm driver and the
/dev/smb0 is created.  I tried using 'chm' but I get these errors:

I have listed pciconf, dmesg, loader.conf, device.hints, and kernel config
below.
I appreciate any help that anyone is able to provide, I would love to have
this Laptop working 100%.
Thank you.

-Ross

chm:
ioctl: Device not configured

IOCTL: Device not configured
IOCTL: Device not configured
IOCTL: Device not configured
IOCTL: Device not configured
IOCTL: Device not configured
IOCTL: Device not configured
IOCTL: Device not configured
IOCTL: Device not configured
IOCTL: Device not configured
IOCTL: Device not configured
Motherboard Temperature: 191 ° C
CPU_0 Temperature: 191 ° C
CPU_1 Temperature: 191 ° C
IOCTL: Device not configured
VCore:   2.98438 V
IOCTL: Device not configured
Vit: 2.98438 V
IOCTL: Device not configured
Vio: 2.98438 V
IOCTL: Device not configured
+5V: 4.98391 V
IOCTL: Device not configured
+12V:11.9375 V
IOCTL: Device not configured
-12V:-11.9375 V
IOCTL: Device not configured
-5V: -4.98391 V
IOCTL: Device not configured
Fan 1: 883 rpm
IOCTL: Device not configured
Fan 2: 1767 rpm
IOCTL: Device not configured
Fan 3: 3534 rpm


pciconf -vl:
[EMAIL PROTECTED]:0:0:  class=0x06 card=0x chip=0x71908086 rev=0x03
hdr=0x00
vendor   = 'Intel Corporation'
device   = '82443BX/ZX 440BX/ZX CPU to PCI Bridge (AGP Implemented)'
class= bridge
subclass = HOST-PCI
[EMAIL PROTECTED]:1:0: class=0x060400 card=0x chip=0x71918086 rev=0x03
hdr=0x01
vendor   = 'Intel Corporation'
device   = '82443BX/ZX 440BX/ZX AGPset PCI-to-PCI bridge'
class= bridge
subclass = PCI-PCI
[EMAIL PROTECTED]:2:0:  class=0x060700 card=0x00eb1014 chip=0xac1d104c rev=0x00
hdr=0x02
vendor   = 'Texas Instruments (TI)'
device   = 'PCI1251 PC Card CardBus Controller'
class= bridge
subclass = PCI-CardBus
[EMAIL PROTECTED]:2:1:  class=0x060700 card=0x00eb1014 chip=0xac1d104c rev=0x00
hdr=0x02
vendor   = 'Texas Instruments (TI)'
device   = 'PCI1251 PC Card CardBus Controller'
class= bridge
subclass = PCI-CardBus
[EMAIL PROTECTED]:6:0: class=0x040100 card=0x10101014 chip=0x60011013 rev=0x01
hdr=0x00
vendor   = 'Cirrus Logic'
device   = 'CS4610 CrystalClear SoundFusion PCI Audio Accelerator'
class= multimedia
subclass = audio
[EMAIL PROTECTED]:7:0: class=0x068000 card=0x chip=0x71108086 rev=0x02
hdr=0x00
vendor   = 'Intel Corporation'
device   = '82371AB/EB/MB PIIX4/4E/4M ISA Bridge'
class= bridge
[EMAIL PROTECTED]:7:1:   class=0x010180 card=0x chip=0x71118086
rev=0x01 hdr=0x00
vendor   = 'Intel Corporation'
device   = '82371AB/EB/MB PIIX4/4E/4M IDE Controller'
class= mass storage
subclass = ATA
[EMAIL PROTECTED]:7:2: class=0x0c0300 card=0x chip=0x71128086 rev=0x01
hdr=0x00
vendor   = 'Intel Corporation'
device   = '82371AB/EB/MB PIIX4/4E/4M USB Interface'
class= serial bus
subclass = USB
[EMAIL PROTECTED]:7:3:class=0x068000 card=0x chip=0x71138086
rev=0x02 hdr=0x00
vendor   = 'Intel Corporation'
device   = '82371AB/EB/MB PIIX4/4E/4M Power Management Controller'
class= bridge
[EMAIL PROTECTED]:0:0: class=0x03 card=0x00dd1014 chip=0x000510c8 rev=0x20
hdr=0x00
vendor   = 'Neomagic Corporation'
device   = 'NM2200 MagicMedia 256AV'
class= display
subclass = VGA

Here is my dmesg ( this is after It wakes from the lid being opened after
it's closed, I get some ROUTE_INTERRUPT failed mesages :

Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 6.0

Computer hanging when trying to load APM, at boot time

2005-04-26 Thread FIlosofem
Hi.

As written in the subject, my computer freezes at the point it should
load APM.  However, it does boot in safe mode, and shutdown -p now
works perfectly.

Moreover, unfortunatly, when I boot in safe mode, only one of my two
processors is being used (it is therefore impossible to always boot in
safe mode).

Thus, my question is: What does booting in safe mode changes, about
APM, so that it works?

Actually, I would like this function to work, since it is pretty
useful with SSH.

Thanks.

Notes: 

1: For sure, the problem is about it since my computer boots perfectly
when disabled in device.hints, but doesn't when enabled.

2: I can't use ACPI since my BIOS is on the black list.  

3: I am using FreeBSD 5.3.

4: My server  is a HP Kayak XU/400, dual Pentium II Xeon 400 Mhz, 640 Megabytes.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: acpi, wi0 and apm.

2005-04-26 Thread FIlosofem
Hi.

You need to edit /boot/device.hints and, at the line that is about
disabling apm, and for which the actual value is 1, change it for
0.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


acpi, wi0 and apm.

2005-04-25 Thread Peter Ankerstål
I have a problem with my WaveLAN.
It works fine when I boot my FreeBSD 5.4-RC3 with acpi disabled.
But when i enable acpi it says:

wi0: Lucent Technologies WaveLAN/IEEE at port 0x100-0x13f irq 11 function 0 co
nfig 1 on pccard0
wi0: timeout in wi_cmd 0x; event status 0x8000
wi0: timeout in wi_cmd 0x; event status 0x8000
wi0: timeout in wi_cmd 0x; event status 0x8000
: init failed
device_attach: wi0 attach returned 6

Then I tried to use apm instead. (worked fine in FreeBSD 4.)
But i've compiled device apm into the kernel but I don't have
any /dev/apm.

-- 
MVH
Peter Ankerstål.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


apm on 5.3

2005-01-14 Thread Matthias Buelow
I'm trying to get APM to work (ACPI makes the kernel crap itself when I 
insert or remove a pcmcia card into my Armada m700 notebook) and load 
the apm.ko from loader.conf.  However, it doesn't seem to create the 
necessary device entry /dev/apm, and apmd and apm(8) complain about 
that.  What's the proper way to enable apm on 5.3-STABLE?  Or, any way 
to enable it at all?  Do I have to compile the driver into the kernel 
instead?

mkb.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ACPI and APM on 5.3

2005-01-03 Thread Eric Schuele
[EMAIL PROTECTED] wrote:
I finally got around to cleaning up rc.conf, now using only acpi. 'acpiconf -s
1' works. Resume is _much_ faster. That only leaves me with a couple of acpi
'acpiconf -s 1' works well for me too on my laptop while using only 
acpi.  However 'acpiconf -s 3' causes an immediate reboot of the 
machine.  No errors... nothing logged. Just blip... and a fresh POST of 
the machine.  Its immediate... doesn't think twice.

Haven't had much time to look into it.
boot errors to clean up (they do not affect anything AFAIK) and to set rc.resume
to restore the network connection.
I have some glitches that were also present (or worse) using apm. I would assume
all this works much better on newer hardware.
On Fri, 31 Dec 2004, Eric Schuele wrote:

[EMAIL PROTECTED] wrote:
In attempting to get sound working on a Dell 7500 Inspiron (cira 1994) I tried
many combinations of ACPI and APM thinking that my sound problems stemmed from
interrupt or irq/pnp problems. That turned out not to be the case. Now
everything is working, but I am using a combination of the two as documented
below.
Did I just 'luck out' or does apmd (sorta) by design work with the environment
it finds?
[cut]
FWIW...
I have experienced the same thing on my Dell Inspiron 5100.  I'm not
currently running it that way, but was. Until I read that ACPI and APM
will not run together.  Supposedly the last one up notices the first and
bails.  So I opted for ACPI... which has left me wishing I was back with
both even though they are not supposed to work together.
I'm interested too, in other's opinions/explanations of this phenomenon.
Regards,
Eric

_
Douglas Denault
http://www.safeport.com
[EMAIL PROTECTED]
Voice: 301-469-8766
  Fax: 301-469-0601
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

--
Regards,
Eric
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ACPI and APM on 5.3

2004-12-31 Thread Eric Schuele
[EMAIL PROTECTED] wrote:
In attempting to get sound working on a Dell 7500 Inspiron (cira 1994) I tried
many combinations of ACPI and APM thinking that my sound problems stemmed from
interrupt or irq/pnp problems. That turned out not to be the case. Now
everything is working, but I am using a combination of the two as documented
below.
Did I just 'luck out' or does apmd (sorta) by design work with the environment
it finds?
-
/boot/loader.conf
  snd_maestro_load=YES
/etc/rc.conf
  apm_enable=YES
  apmd_enable=YES
kldstat
Id Refs AddressSize Name
 19 0xc040 5cdad0   kernel
 21 0xc09ce000 7200 snd_maestro.ko
 32 0xc09d6000 1d4fcsound.ko
 4   14 0xc09f4000 537f0acpi.ko
 51 0xc169 17000linux.ko
So apm.ko is not loaded. However everything works. I got to this configuration
by accident (i.e., I forgot rc.conf). 'apm -l' works, 'apm -z' works and I can
resume okay.
FWIW...
I have experienced the same thing on my Dell Inspiron 5100.  I'm not 
currently running it that way, but was. Until I read that ACPI and APM 
will not run together.  Supposedly the last one up notices the first and 
bails.  So I opted for ACPI... which has left me wishing I was back with 
both even though they are not supposed to work together.

I'm interested too, in other's opinions/explanations of this phenomenon.

_
Douglas Denault
http://www.safeport.com
[EMAIL PROTECTED]
Voice: 301-469-8766
  Fax: 301-469-0601
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

--
Regards,
Eric
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ACPI and APM on 5.3

2004-12-30 Thread doug
In attempting to get sound working on a Dell 7500 Inspiron (cira 1994) I tried
many combinations of ACPI and APM thinking that my sound problems stemmed from
interrupt or irq/pnp problems. That turned out not to be the case. Now
everything is working, but I am using a combination of the two as documented
below.

Did I just 'luck out' or does apmd (sorta) by design work with the environment
it finds?

-
/boot/loader.conf
  snd_maestro_load=YES

/etc/rc.conf
  apm_enable=YES
  apmd_enable=YES

kldstat
Id Refs AddressSize Name
 19 0xc040 5cdad0   kernel
 21 0xc09ce000 7200 snd_maestro.ko
 32 0xc09d6000 1d4fcsound.ko
 4   14 0xc09f4000 537f0acpi.ko
 51 0xc169 17000linux.ko

So apm.ko is not loaded. However everything works. I got to this configuration
by accident (i.e., I forgot rc.conf). 'apm -l' works, 'apm -z' works and I can
resume okay.



_
Douglas Denault
http://www.safeport.com
[EMAIL PROTECTED]
Voice: 301-469-8766
  Fax: 301-469-0601
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Unable to get APM running on an Acer Travelmate 4002WLMi

2004-12-24 Thread -
Hi list,
I simply can't get APM to work on this laptop.
It is a travelmate 4002WLMi (P-M 1.6) on which I've just installed 
FreeBSD 5.3-RELEASE, and built a custom kernel with apm, apm_saver and 
acpi (also tried with only apm, apm+apm_saver, and now apm+apm_saver+acpi)

I had set the hints to disable ACPI and enable APM on /boot/device.hints 
(don't know the exact names now and I've just shut the laptop down) - 
This resulted in no /dev/apm and /dev/apmctl entries being created..

I tried changing the order of the statements (enable APM first then 
disable ACPI).. to no avail

I also tried enabling both, which obviously didn't work quite well :-)
apm_enable=YES and apmd_enable=YES  on /etc/rc.conf
apm_load=YES on /boot/loader.conf
Still, /dev/apm*'s never show up. Except if I actually disable APM and 
enable ACPI instead, /dev/apm will show.. but no /dev/apmctl.

I'm new to the laptop world and I really would like to enable power 
saving features on this laptop.. I had managed to get est/estctrl 
running, and it was changing my CPU from 600 to 1600 ghz according to 
the load, but when I disable APM and enable ACPI this will cease working 
and the CPU will always run at  1600ghz. Also, acpiconf -i0 says device 
not configured..

As far as I was able to see, most battery monitoring stuff (integrated 
on KDE and all) will depend on APM.. So I'd really like to enable it!

Am I missing some step to get APM working? Or does this laptop just 
plain and simply doesn't support it ?
Please enlighten me.

Best regards,
Hugo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


APM and/or ppp doing strange things

2004-11-28 Thread Emil Khatib
Hi list. I've got a very strange problem with FreeBSD 4.10 and APM.
After waking up the machine after a zzz, ppp will dials up but nothing
works; I have no ftp access, www navigators don't work, etc ...
I've got FreeBSD installed on a HP Pavilion 8515. Everything else
seems to work just fine.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


acpi, apm and 5.3R

2004-11-18 Thread Kjell Midtseter
On my old 4.10 system I have set up the BIOS to turn the power on at 07:00, 
and this works fine ensuring that the system will come back on 
after a temporary mains failure when I am off on vacation.

No such luck om 5.3R 
When I enter a shutdown -p now command I am told
System halted.
Push any button to restart.

If I then stop the PC by pushing the Power Off button, 
the PC will not restart at 07:00 the next morning.

I have tried pulling the mains plug on a running system, 
then insering it again after a while:
It does not start at 07:00

I have experimented with disabling acpi, and compiling apm into my GENERIC 
kernel.

Thoughts appreciated
Kjell

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


APM and DRI lockups when suspending

2004-07-07 Thread Duane Winner
Does anybody know if there is a workaround for the problem with DRI and 
APM within X?

If I load the DRI module in my XF86Config file, and attempt to suspend 
my laptop, the system freezes on resume, then reboots.

If I comment out the line Load dri out of the Module section in 
/etc/X11/XF86Config, all is well.

But now I don't have direct rendering capability, correct? I don't think 
I have any apps yet that need direct rendering, so it probably isn't a 
huge deal (yet), but I would like to have it enable if possible.

Does anybody know of a solution or simple workaround for this problem?
Thanks,
Duane Winner
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


APM and DRI lockups when suspending

2004-07-07 Thread Sean Welch
Duane, there have always been issues with this aspect of APM.  I
have found it sufficient to run two X servers to handle the issue.
Most of my software runs in an X session without DRI enabled and
then when I want to run accelerated 3D I just start up another X
session with DRI enabled.

For example, this can be done by running the following command from
an xterm in the first (normal, non-DRI session):

startx -- :1 -xf86config XF86Config.dri 

I've got DRI enabled in the XF86Config.dri file (which just resides
under /etc/X11 along side the default config file) and this command
starts up an X session on ttyv9 (alt-ctrl-F10).  Be sure that you
use a different window manager in your .xinitrc if you use either
Gnome or KDE!!

When I want to suspend, I just shut down the accelerated X session
and then when I resume I can start it back up again without ill
effects.

I hope this helps!

Sean

 Does anybody know if there is a workaround for the problem with DRI
 and 
 APM within X?
 
 If I load the DRI module in my XF86Config file, and attempt to
 suspend 
 my laptop, the system freezes on resume, then reboots.
 
 If I comment out the line Load dri out of the Module section in 
 /etc/X11/XF86Config, all is well.
 
 But now I don't have direct rendering capability, correct? I don't
 think 
 I have any apps yet that need direct rendering, so it probably isn't
 a 
 huge deal (yet), but I would like to have it enable if possible.
 
 Does anybody know of a solution or simple workaround for this
 problem?
 
 Thanks,
 Duane Winner
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: using apm to power a system down, 5.x

2004-06-18 Thread Lowell Gilbert
dave [EMAIL PROTECTED] writes:

 Yes, there is a kernel apm module. I've also disabled acpi via device.hints,
 and enabled apm via that file as well. I've also put apm_enable in rc.conf.
 Is this overkill?

Is the kernel module *loaded*?  

[I fixed up my scratch machine and this seems to work there, with the
same kind of configuration, but I built APM into the kernel on that
machine.]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: using apm to power a system down, 5.x

2004-06-17 Thread dave
Hello,
Yes, there is a kernel apm module. I've also disabled acpi via device.hints,
and enabled apm via that file as well. I've also put apm_enable in rc.conf.
Is this overkill?
Thanks.
Dave.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: using apm to power a system down, 5.x

2004-06-16 Thread Lowell Gilbert
dave [EMAIL PROTECTED] writes:

 I've got a 5.x system, an older box that doesn't use acpi. My first item is
 i need to disable acpi. I believe i have done this. I have the following in
 /boot/device.hints:
 hint.acpi.0.disabled=1
 hint.apm.0.disabled=0
 hint.apm.0.flags=0x20
 I next have to enable apm and get it to do system power downs when a
 shutdown -h or halt -p is issued. This is not working. I get the press any
 key to reboot but the system never powers down.
 Any ideas?

You need to have APM support in the kernel.
Is there a module for APM?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: apm support

2004-06-15 Thread Henrik W Lund
ray wrote:
ok i did that and got it to go in standby mode but i couldnt resume it 
 by tapping keys on the keyboard.

snip...

Do a dmesg | grep apm. If that gets you a line saying something like 
apm0: APM BIOS ... or something like that, it's software disabled. Try 
an apm -e enable. Then run apm again without arguments, and see if it 
says enabled. If that doesn't work, I guess it's your apm hardware not 
being supported. :-/
Were you able to resume it by moving the mouse, or were you unable to 
get it out of standby at all? I suppose this is definitely some hardware 
 issue. Perhaps not a fault per se, just a limitation of your 
particular controller.

As far as I know, there is no way to configure what takes your PC out of 
standby/suspend. apmd does have a config file, but apmd is just a 
wrapper for apm and its config file states what happens prior and 
posterior (can one say this?) to changing into/out of standby/suspend.

Anyways, if a jerk of the mouse will resume it and a keyboard tap won't, 
it's still working to some degree, ain't it? ;-)

-Henrik W Lund
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: apm support

2004-06-14 Thread Henrik W Lund
ray wrote:
hi, i have a Sony Vaio PCG-GRZ660 laptop and i'm trying to get apm 
to work. i have the apmd running. apm displays this:

~# apm
APM version: 1.2
APM Management: Disabled
  
 Look here!
My guess is that you've left the line apm_enable=yes out from your 
/etc/rc.conf. Put it in there! :-)

If you have it in /etc/rc.conf, check your kernel config to see if it's 
enabled in there. I believe it is disabled in GENERIC, so you have to 
enable it. This is for 4.X of course. I don't know about 5.X

-Henrik W Lund
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


using apm to power a system down, 5.x

2004-06-14 Thread dave
Hello,
I've got a 5.x system, an older box that doesn't use acpi. My first item is
i need to disable acpi. I believe i have done this. I have the following in
/boot/device.hints:
hint.acpi.0.disabled=1
hint.apm.0.disabled=0
hint.apm.0.flags=0x20
I next have to enable apm and get it to do system power downs when a
shutdown -h or halt -p is issued. This is not working. I get the press any
key to reboot but the system never powers down.
Any ideas?
Thanks.
Dave.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: apm support

2004-06-14 Thread Henrik W Lund
ray wrote:
i did all that :)
i added apmd_enable=YES in /etc/rc.conf and i also removed the disable line from my kernel config. 

On Mon, Jun 14, 2004 at 03:13:56PM +0200, Henrik W Lund wrote:
ray wrote:
hi, i have a Sony Vaio PCG-GRZ660 laptop and i'm trying to get apm 
to work. i have the apmd running. apm displays this:

~# apm
APM version: 1.2
APM Management: Disabled
 
Look here!
My guess is that you've left the line apm_enable=yes out from your 
/etc/rc.conf. Put it in there! :-)

If you have it in /etc/rc.conf, check your kernel config to see if it's 
enabled in there. I believe it is disabled in GENERIC, so you have to 
enable it. This is for 4.X of course. I don't know about 5.X

-Henrik W Lund
Do a dmesg | grep apm. If that gets you a line saying something like 
apm0: APM BIOS ... or something like that, it's software disabled. Try 
an apm -e enable. Then run apm again without arguments, and see if it 
says enabled. If that doesn't work, I guess it's your apm hardware not 
being supported. :-/

-Henrik W Lund
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


apm support

2004-06-13 Thread ray
hi, i have a Sony Vaio PCG-GRZ660 laptop and i'm trying to get apm to work. i have the 
apmd running. apm displays this:

~# apm
APM version: 1.2
APM Management: Disabled
AC Line status: on-line
Battery status: unknown
Remaining battery life: unknown
Remaining battery time: unknown
Number of batteries: 0
Resume timer: disabled
Resume on ring indicator: disabled
APM Capacities:
global standby state
global suspend state
resume timer from standby
resume timer from suspend

if i try to go in standby mode, it says:
~# apm -Z
apm: ioctl(APMIO_STANDBY): Invalid argument

how can i get it to go to standby mode, and also how can i get it to display battery 
status and show if the ac adapter is plugged in or not?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: APM on 4.9 on a Winbook XL2 laptop

2004-02-15 Thread Warren Block
On Sat, 14 Feb 2004, matthew wrote:

 One would make sure that

 device  apm0at nexus? disable flags 0x20 # Advanced Power Management

 is in their running kernel.

Not with that disable in there, which disables it.  On every desktop
system I've tried, a simple

device  apm

is enough.  Other hints may be required for some notebooks.

Of course, this is just the kernel part.  It also needs apm entries in
/etc/rc.conf and an APM-cable BIOS.

-Warren Block * Rapid City, South Dakota USA
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


APM on 4.9 on a Winbook XL2 laptop

2004-02-14 Thread Sara Trice
I can't get the APM on this to work for anything. I have tried putting:

apm_load=YES

in my /boot/loader.conf file, and the lines:

apm_enable=YES
apmd_enable=YES
in my /etc/rc.conf file.

I run apm -a and it tells me:
apm: can't open /dev/apm: Device not configured
Any ideas?

TIA
Sara T.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: APM on 4.9 on a Winbook XL2 laptop

2004-02-14 Thread matthew


On Sat, 14 Feb 2004, Sara Trice wrote:

 I can't get the APM on this to work for anything. I have tried putting:

 apm_load=YES

 in my /boot/loader.conf file, and the lines:

 apm_enable=YES
 apmd_enable=YES

 in my /etc/rc.conf file.

 I run apm -a and it tells me:
 apm: can't open /dev/apm: Device not configured

 Any ideas?


One would make sure that

device  apm0at nexus? disable flags 0x20 # Advanced Power
Management

is in their running kernel.

Is APM enabled in your BIOS?

These two answers are the basic ones. Reply back with answer.

m

 TIA
 Sara T.

 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: APM on 4.9 on a Winbook XL2 laptop

2004-02-14 Thread matthew


On Sat, 14 Feb 2004, matthew wrote:



 On Sat, 14 Feb 2004, Sara Trice wrote:

  I can't get the APM on this to work for anything. I have tried putting:
 
  apm_load=YES
 
  in my /boot/loader.conf file, and the lines:
 
  apm_enable=YES
  apmd_enable=YES
 
  in my /etc/rc.conf file.
 
  I run apm -a and it tells me:
  apm: can't open /dev/apm: Device not configured
 
  Any ideas?

Sara emailed me back when she found the answer.
I want to post this so others can find this answer too.
Her solution was:

echo en apm0  /boot/kernel.conf

m

 

 One would make sure that

 device  apm0at nexus? disable flags 0x20 # Advanced Power
 Management

 is in their running kernel.

 Is APM enabled in your BIOS?

 These two answers are the basic ones. Reply back with answer.

 m

  TIA
  Sara T.
 
  ___
  [EMAIL PROTECTED] mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to [EMAIL PROTECTED]
 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


apm device not configured ?!

2004-01-24 Thread Julian Holley
Hi all - I'm still having problems persuading my laptop to work with apm
- apparently my machine should work on 4.9 - I have re-compiled with apm
enabled, set rc.conf to enable apm etc, but apmd, apm will not operate
and gives the message :-

apm device not configured, although /dev/apm does exist !?

what do I have to do to configure apm ? on bsd 4.9 
what is the difference between apm and apm0 ?

IBM TP 390x 2626FOG on FreeBSD4.9

any help much appreciated, J

incidently on 5.2 apm appears, and loads, but alas crashes on resume :(
 
  Powered by IBM Running Linux
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: apm device not configured ?!

2004-01-24 Thread pbdlists
Julian,

Did you try to add the following line to your /boot/kernel.conf file?

en apm

and make sure the file ends with a q all by itself on a line.

Unfortunately I have quite some issues with either apm or acpi on my
Dell laptop as well when installing FBSD 5.2; it stops during boot when
a battery is connected and ACPI not disabled. It crashes on resume and
my 3Com PCMCIA ethernet card stops working sometimes, needing an
ifconfig down; ifconfig up. Maybe the PC-card problem is not apm/ACPI
related?

On Sat, Jan 24, 2004 at 04:27:53PM +, Julian Holley wrote:
 Hi all - I'm still having problems persuading my laptop to work with apm
 - apparently my machine should work on 4.9 - I have re-compiled with apm
 enabled, set rc.conf to enable apm etc, but apmd, apm will not operate
 and gives the message :-
 
 apm device not configured, although /dev/apm does exist !?
 
 what do I have to do to configure apm ? on bsd 4.9 
 what is the difference between apm and apm0 ?
 
 IBM TP 390x 2626FOG on FreeBSD4.9
 
 any help much appreciated, J
 
 incidently on 5.2 apm appears, and loads, but alas crashes on resume :(
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: apm device not configured ?!

2004-01-24 Thread Dinesh Nair

On Sat, 24 Jan 2004, Julian Holley wrote:

 Hi all - I'm still having problems persuading my laptop to work with apm
 - apparently my machine should work on 4.9 - I have re-compiled with apm
 enabled, set rc.conf to enable apm etc, but apmd, apm will not operate
 and gives the message :-

when booting, do you see a message like the one below:
apm0: APM BIOS on motherboard
apm0: found APM BIOS v1.2, connected at v1.2

Regards,   /\_/\   All dogs go to heaven.
[EMAIL PROTECTED](0 0)http://www.alphaque.com/
+==oOO--(_)--OOo==+
| for a in past present future; do|
|   for b in clients employers associates relatives neighbours pets; do   |
|   echo The opinions here in no way reflect the opinions of my $a $b.  |
| done; done  |
+=+

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


no APM or X support for IBM A20p laptop in 4.8

2003-09-15 Thread Kip Macy
I just installed 4.8 from the BSDMall CD on my 3 year old IBM
A20p. APM worked in 4.6 but no longer does. FreeBSD's XFree86
never worked (RedHat has always worked just fine). I have a
commercial X server that worked fine under 4.6 but was broken
by changes to libc in 4.8.

Has anyone else gotten FreeBSD 4.8 to work on an A20p?

Thanks.

-Kip
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How create /dev/apm* ???

2003-08-22 Thread Eric
This is better suited towards freebsd-questions, so I'm going to copy this
to that list.

It is my understanding that ACPI depreciates APM, and that APM was mainly
used in the 4.x branch. If anyone is the wiser, please correct me.

--
Eric

- Original Message - 
From: Armand Passelac [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 22, 2003 9:10 AM
Subject: How create /dev/apm* ???



 Hi,
 I have installed a FreeBSD 5.1 on my Laptop (Compaq Armada E500).
 I have a problem with the power management :

 - I can't use the ACPI module : the kernel can't be loaded.
 OK no problem !
 As I saw within many FAQs, it's normal (it depends on the type of the
laptop).

 - I would like to use APM so !
 I realize the following stages (see
http://freebsd.unixtech.be/doc/en_US.ISO8859-1/articles/laptop/x61.html) :

 * I build my kernel with device apm

 * /boot/device.hints :
 hint.acpi.0.disabled=1
 #hw.acpi.ec.event_driven=1
 hint.apm.0.disabled=0
 hint.apm.0.flags=0x20

 * /boot/loader.conf :
 apm_load=YES

 * /etc/rc.conf
 apm_enable=YES


 But during the boot I get an error : can't open /dev/apm

 Indeed, there is no device with apm* name within /dev

 How can I create this device (In the freebsd-questions list somebody tails
me that's not possible with 5.X there is no possibility to use a kind of
makedev).


 Thanks a lot.


 -- 
 No guts No glory

 =] PASSELAC Armand [=
  (  @ @ )
 Ingenieur Systemes-Reseaux  Securite
 ORBYTES INGENIERIE
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to [EMAIL PROTECTED]


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How create /dev/apm* ???

2003-08-22 Thread Armand Passelac

[ On Fri, 22 Aug, 2003 at  9:22, Eric wrote: ]
 This is better suited towards freebsd-questions, so I'm going to copy this
 to that list.

In freebsd-questions or freebsd-current ???
As somebody point the mistake out to me : I'm working on 5.1 which is the current. So 
I have just posted this question in freebsd-current.
That's good or not ?


 
 It is my understanding that ACPI depreciates APM, and that APM was mainly
 used in the 4.x branch. If anyone is the wiser, please correct me.

I'm newcomer on freebsd (before I work several years on Linux).
I have no personal preference between ACPI and APM.
ACPI is more recent and more powerfull than APM.
But with some kind of BIOS the ACPI using, it seems to be impossible.
So I try to use APM.
APM seems to be usable on FreeBSD 5.X.
The HandBook explains how to use it. But I have always  a problem.



 
 --
 Eric
 
 - Original Message - 
 From: Armand Passelac [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, August 22, 2003 9:10 AM
 Subject: How create /dev/apm* ???
 
 
 
  Hi,
  I have installed a FreeBSD 5.1 on my Laptop (Compaq Armada E500).
  I have a problem with the power management :
 
  - I can't use the ACPI module : the kernel can't be loaded.
  OK no problem !
  As I saw within many FAQs, it's normal (it depends on the type of the
 laptop).
 
  - I would like to use APM so !
  I realize the following stages (see
 http://freebsd.unixtech.be/doc/en_US.ISO8859-1/articles/laptop/x61.html) :
 
  * I build my kernel with device apm
 
  * /boot/device.hints :
  hint.acpi.0.disabled=1
  #hw.acpi.ec.event_driven=1
  hint.apm.0.disabled=0
  hint.apm.0.flags=0x20
 
  * /boot/loader.conf :
  apm_load=YES
 
  * /etc/rc.conf
  apm_enable=YES
 
 
  But during the boot I get an error : can't open /dev/apm
 
  Indeed, there is no device with apm* name within /dev
 
  How can I create this device (In the freebsd-questions list somebody tails
 me that's not possible with 5.X there is no possibility to use a kind of
 makedev).
 
 
  Thanks a lot.
 
 
  -- 
  No guts No glory
 
  =] PASSELAC Armand [=
   (  @ @ )
  Ingenieur Systemes-Reseaux  Securite
  ORBYTES INGENIERIE
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
[ End of original mail from Eric ]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


How create /dev/apm* ???

2003-08-18 Thread Armand Passelac

Hi,
I have installed a FreeBSD 5.1 on my Laptop (Compaq Armada E500).
I have a problem with the power management :

- I can't use the ACPI module : the kernel can't be loaded.
OK no problem !
As I saw within many FAQs, it's normal (it depends on the type of the laptop).

- I would like to use APM so !
I realize the following stages (see 
http://freebsd.unixtech.be/doc/en_US.ISO8859-1/articles/laptop/x61.html) :

* I build my kernel with device apm

* /boot/device.hints :
hint.acpi.0.disabled=1
#hw.acpi.ec.event_driven=1
hint.apm.0.disabled=0
hint.apm.0.flags=0x20

* /boot/loader.conf :
apm_load=YES

* /etc/rc.conf 
apm_enable=YES


But during the boot I get an error : can't open /dev/apm

Indeed, there is no device with apm* name within /dev

How can I create this device (there is no possibility to use a kind of makedev ??)

Thanks a lot.

-- 
No guts No glory

=] PASSELAC Armand [=
 (  @ @ )   
Ingenieur Systemes-Reseaux  Securite
ORBYTES INGENIERIE
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


laptop hard drive spin-down APM stuff - controllable??

2003-06-14 Thread BSD baby
Anyone who's using FreeBSD with a laptop:

I'm having problems with my hard drive spinning down (sleeping) every 30 seconds.

Is that something that's controllable in FreeBSD?   I don't see it in BIOS.
Is it a kernel thing?

This thing sleeps and wakes, sleeps and wakes about every 15 seconds.
Everything else is fine and it doesn't do it when I boot into Windows.

Thanks for any help!

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Enabling APM in Freebsd 4.7

2003-03-11 Thread Mica Telodico
 --- Tijl Coosemans [EMAIL PROTECTED] ha scritto: 
On Tue, 11 Mar 2003 00:03:53 +0100 (CET), Mica
 Telodico wrote:
 
  Hi, 
  
  I've installed FreeBSD 4.7 and I'd like to get
 enabled
  the APM support. I know that I can enable it by
  compile it in the kernel, but I've read about
 another
  system that consist in the writing of a line in
 the
  /boot/loader.conf (enable apm0) but  at start the
  loader says that there is a syntax error : enable
 apm0

 
  ^
  
  Why? How I can enable it without recompiling the
  kernel?
 
 You should modify /boot/kernel.conf to look like
 this:
 
   en apm0
   [some other kernel options]
   q
 
 Then in your /boot/loader.conf make sure you have
 this:
 
   userconfig_script_load=YES
 
  I've noticed also that in the GENERIC kernel
 config 
  there is a disable flag in the line of the APM
  device, I have to delete that to enable the APM
  support?The line looks like this one:
  
  device apm0 nexus? disable Flag 0x20
  
  I've changed it into :
  
  device apm0 nexus? Flag 0x20
  
  is this right?
 
 Yes, if your recompile your kernel now, apm should
 be enabled by
 default.
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of
 the message 


Thank you all for your responds , I've enabled APM
now, but I can get the suspend mode working but the
standby mode no , in the console appears :ata0:
resetting devices... and the system is dead , I have
to reboot :cry:. Why? I've thought about a BIOS issue,
but I've tried in linux and the situation is opposite
( standby works and suspends no) .

Any one knows something about?

Thanks bye

__
Yahoo! Cellulari: loghi, suonerie, picture message per il tuo telefonino
http://it.yahoo.com/mail_it/foot/?http://it.mobile.yahoo.com/index2002.html

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


APM standby freeze the PC

2003-03-11 Thread Mica Telodico
Hi, I have this configuration:

MoBo MSI KT4 Ultra
CPU Athlon XP 2400+
Matrox G450

I'd like to keep my computer in standby when I don't
use it , but if I give the command : apm -Z in the
console appears : ata0: resetting devices...

And the system locks up . The Suspend mode works
perfectly. On linux the standby works too.
My IDE configuration (if this can be of any help )

IDE0:
Master: Maxtor 60GB ATA133
Slave: Nec DV5800 DVD Reader
IDE1:
Master: Quantum Fireball 30GB ATA100
Slave: HP CD-Writer Plus 8100

Thanks for UR help

Bye

__
Yahoo! Cellulari: loghi, suonerie, picture message per il tuo telefonino
http://it.yahoo.com/mail_it/foot/?http://it.mobile.yahoo.com/index2002.html

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Enabling APM in Freebsd 4.7

2003-03-10 Thread Mica Telodico
Hi, 

I've installed FreeBSD 4.7 and I'd like to get enabled
the APM support. I know that I can enable it by
compile it in the kernel, but I've read about another
system that consist in the writing of a line in the
/boot/loader.conf (enable apm0) but  at start the
loader says that there is a syntax error : enable apm0
   
^

Why? How I can enable it without recompiling the
kernel?

I've noticed also that in the GENERIC kernel config 
there is a disable flag in the line of the APM
device, I have to delete that to enable the APM
support?The line looks like this one:

device apm0 nexus? disable Flag 0x20

I've changed it into :

device apm0 nexus? Flag 0x20

is this right?

Thanks

Bye

__
Yahoo! Cellulari: loghi, suonerie, picture message per il tuo telefonino
http://it.yahoo.com/mail_it/foot/?http://it.mobile.yahoo.com/index2002.html

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: Enabling APM in Freebsd 4.7

2003-03-10 Thread Kjell
 I've installed FreeBSD 4.7 and I'd like to get enabled
 the APM support. I know that I can enable it by
 compile it in the kernel, but I've read about another
 system that consist in the writing of a line in the
 /boot/loader.conf (enable apm0) but  at start the
 loader says that there is a syntax error : enable apm0

 ^
 
 Why? How I can enable it without recompiling the
 kernel?
 
 I've noticed also that in the GENERIC kernel config 
 there is a disable flag in the line of the APM
 device, I have to delete that to enable the APM
 support?The line looks like this one:
 
 device apm0 nexus? disable Flag 0x20
 
 I've changed it into :
 
 device apm0 nexus? Flag 0x20
 
 is this right?

In my 'GENERIC' I have only left this:
device apm0
Then I have insert into rc.conf:
apm_enable=YES
 
 Thanks
 
 Bye
 
 __
 Yahoo! Cellulari: loghi, suonerie, picture message per il tuo telefonino
 http://it.yahoo.com/mail_it/foot/?http://it.mobile.yahoo.com/index2002.html
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: Enabling APM in Freebsd 4.7

2003-03-10 Thread Tijl Coosemans
On Tue, 11 Mar 2003 00:03:53 +0100 (CET), Mica Telodico wrote:

 Hi, 
 
 I've installed FreeBSD 4.7 and I'd like to get enabled
 the APM support. I know that I can enable it by
 compile it in the kernel, but I've read about another
 system that consist in the writing of a line in the
 /boot/loader.conf (enable apm0) but  at start the
 loader says that there is a syntax error : enable apm0

 ^
 
 Why? How I can enable it without recompiling the
 kernel?

You should modify /boot/kernel.conf to look like this:

  en apm0
  [some other kernel options]
  q

Then in your /boot/loader.conf make sure you have this:

  userconfig_script_load=YES

 I've noticed also that in the GENERIC kernel config 
 there is a disable flag in the line of the APM
 device, I have to delete that to enable the APM
 support?The line looks like this one:
 
 device apm0 nexus? disable Flag 0x20
 
 I've changed it into :
 
 device apm0 nexus? Flag 0x20
 
 is this right?

Yes, if your recompile your kernel now, apm should be enabled by
default.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


keyboard mapping + ACPI/APM

2003-02-03 Thread La Temperanza
Hi, I'd like to map one of the Windows keys on my M$ keyboard to the
UNIX Compose key, preferably under both X and console. But the key
doesn't seem to be listed in 'man kbdmap', and I can't find where the
X keyboard mappings are stored. Can anyone help me out?

Also, I thought I'd ask in the same message: what are the advantages and
disadvantages of ACPI versus APM?

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: keyboard mapping + ACPI/APM

2003-02-03 Thread Nathan Kinkade
On Mon, Feb 03, 2003 at 12:06:34AM -0800, La Temperanza wrote:
 Hi, I'd like to map one of the Windows keys on my M$ keyboard to the
 UNIX Compose key, preferably under both X and console. But the key
 doesn't seem to be listed in 'man kbdmap', and I can't find where the
 X keyboard mappings are stored. Can anyone help me out?
 
 Also, I thought I'd ask in the same message: what are the advantages and
 disadvantages of ACPI versus APM?

I'm not an expert in this area, but maybe these tips will help.  First,
try launching the X utility `xev`.  It should bring up a small white
window.  Make sure that this window has the focus and then press the
keyboard key in which you are interested - note the messages that pop
up in the terminal from which you launched xev.  You can use this method
to figure out the keycode for that particular key.  For example, the
left windows key on my keyboard is keycode 115 wity a keysym name of
Super_L.  You can use this info to configure xmodmap(1).  For example,
I have a file in my home directory called .xmodmaprc in which I define
key mappings for the numeric keypad so that I never have to worry about
the numlock key again.  Some lines in this file might look like:
keycode 79 = 7
keycode 80 = 8
keycode 81 = 9

As for the console keyboard maps, I believe they are stored in
/usr/share/syscons/keymaps.  I think the utility kbdcontrol(1) will
allow you to change the current keymap.  If you want to load a
particular keymap on boot, you can add a line like the following to your
/etc/rc.conf file:
keymap=gr.elot.acc
(I stole that one from an earlier post by Giorgos Keramidas)

Nathan

-- 
GPG Public Key ID: 0x4250A04C
gpg --keyserver pgp.mit.edu --recv-keys 4250A04C
http://63.105.21.156/gpg_nkinkade_4250A04C.asc



msg17818/pgp0.pgp
Description: PGP signature


/dev/apm: device not configured

2003-01-10 Thread John Bleichert
Hello All

I'm trying to use apmd on my Thinkpad but I can't seem to figure it out. I 
have the support in my kernel:

root:/home/johnnyb  dmesg | grep pm
intpm0: Intel 82371AB Power management controller port 0xefa0-0xefaf irq 
9 at device 7.3 on pci0
intpm0: I/O mapped efa0
intpm0: intr IRQ 9 enabled revision 0
intpm0: PM I/O mapped ef00 

but as you can see, no /dev/apm0 (which I'm expecting to be in dmesg). If 
I try to use it, it fails:

johnnyb:~  apm -l
apm: can't open /dev/apm: Device not configured

Any hints on where I'm going wrong? I have 

apmd_enable=YES

in rc.conf and it doesn't seem to error out at boot time, but it doesn't 
work and I can't load it from the command line (same error about the 
unconfigured device).

Any hints on how to get this working appreciated!

Thanks - JB



#  John Bleichert 
#  http://vonbek.dhs.org/latest.jpg


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: /dev/apm: device not configured

2003-01-10 Thread Matthew Seaman
On Fri, Jan 10, 2003 at 10:35:40AM -0500, John Bleichert wrote:

 I'm trying to use apmd on my Thinkpad but I can't seem to figure it out. I 
 have the support in my kernel:
 
 root:/home/johnnyb  dmesg | grep pm
 intpm0: Intel 82371AB Power management controller port 0xefa0-0xefaf irq 
 9 at device 7.3 on pci0
 intpm0: I/O mapped efa0
 intpm0: intr IRQ 9 enabled revision 0
 intpm0: PM I/O mapped ef00 
 
 but as you can see, no /dev/apm0 (which I'm expecting to be in dmesg). If 
 I try to use it, it fails:
 
 johnnyb:~  apm -l
 apm: can't open /dev/apm: Device not configured
 
 Any hints on where I'm going wrong? I have 
 
 apmd_enable=YES
 
 in rc.conf and it doesn't seem to error out at boot time, but it doesn't 
 work and I can't load it from the command line (same error about the 
 unconfigured device).

You need the apm0 device in your kernel, as well as the specific
device for the particular Power management bus chipset you have:

% grep pm /var/run/dmesg.boot
apm0: APM BIOS on motherboard
apm0: found APM BIOS v1.2, connected at v1.2
viapropm0: SMBus I/O base at 0xe800
viapropm0: VIA VT8233 Power Management Unit port 0xe800-0xe80f at device 17.0 on 
pci0
viapropm0: SMBus revision code 0x0

ie. edit the Kernel config to add a 'device apm0' line as follows:

device  apm0at nexus? flags 0x20 # Advanced Power Management

apm0 is in GENERIC, but it's marked 'disable' by default.  I think you
can enable it using the GENERIC kernel by:

ena apm0

in /boot/kernel.conf and 

userconfig_script_load=YES

in /boot/loader.conf, but as I tend to automatically build myself a
custom kernel I have never spent much time investigating.  FreeBSD-5.0
might or might not work the same way, and you may find that ACPI is a
better alternative for that OS version on some motherboards.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: /dev/apm: device not configured

2003-01-10 Thread John Bleichert
On Fri, 10 Jan 2003, Matthew Seaman wrote:
 Subject: Re: /dev/apm: device not configured
 
 On Fri, Jan 10, 2003 at 10:35:40AM -0500, John Bleichert wrote:
 
  I'm trying to use apmd on my Thinkpad but I can't seem to figure it out. I 
  have the support in my kernel:
  
  root:/home/johnnyb  dmesg | grep pm
  intpm0: Intel 82371AB Power management controller port 0xefa0-0xefaf irq 
  9 at device 7.3 on pci0
  intpm0: I/O mapped efa0
  intpm0: intr IRQ 9 enabled revision 0
  intpm0: PM I/O mapped ef00 
  
  but as you can see, no /dev/apm0 (which I'm expecting to be in dmesg). If 
  I try to use it, it fails:
  
  johnnyb:~  apm -l
  apm: can't open /dev/apm: Device not configured
  
snip
 
 You need the apm0 device in your kernel, as well as the specific
 device for the particular Power management bus chipset you have:
 
 % grep pm /var/run/dmesg.boot
 apm0: APM BIOS on motherboard
 apm0: found APM BIOS v1.2, connected at v1.2
 viapropm0: SMBus I/O base at 0xe800
 viapropm0: VIA VT8233 Power Management Unit port 0xe800-0xe80f at device 17.0 
on pci0
 viapropm0: SMBus revision code 0x0
 
 ie. edit the Kernel config to add a 'device apm0' line as follows:
 
 device  apm0at nexus? flags 0x20 # Advanced Power Management
 
snip

Whoops! I had forgotten to remove 'disable' from that line. Works like a 
charm now (although my battery is shot ...).

Thanks for the pointer - JB

#  John Bleichert 
#  http://vonbek.dhs.org/latest.jpg


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: APM

2002-12-29 Thread Andrew Prewett
On Dec 28 Adam Weinberger wrote:

  (12.28.2002 @ 2157 PST): Derision said, in 0.4K: 
  What is the correct line in the kernel config for
  making halt -p work?
 
  Mine is currently
  device  apm0
 
  (FreeBSD 4.7)
  end of APM from Derision 

 Make sure you also have:
 apm_enable=YES
 apmd_enable=YES

 I think, apmd not needed for halt/shutdown -p to work.
 I newer used, and it works just fine w/o them.

-andrew

 in your /etc/rc.conf.

 # Adam

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: APM

2002-12-29 Thread Wayne Lubin

--- Adam Weinberger [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
  (12.28.2002 @ 2157 PST): Derision said, in 0.4K:
 
  What is the correct line in the kernel config for
  making halt -p work?
  
  Mine is currently 
  device  apm0
  
  (FreeBSD 4.7)
  end of APM from Derision 
 
 Make sure you also have:
 apm_enable=YES
 apmd_enable=YES
 
 in your /etc/rc.conf.
 
 # Adam
 
 
 - --
 Adam Weinberger
 vectors.cx  [EMAIL PROTECTED]
 FreeBSD.org [EMAIL PROTECTED]
 Bayer Berkeley  [EMAIL PROTECTED]
 #vim:set ts=8: 8-char tabs prevent tooth decay.
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.1 (FreeBSD)
 

iD8DBQE+Dpiuo8KM2ULHQ/0RAqaPAJ4uyhXLpaENj9pXRqkR39u3heOIFwCgxs24
 3Rcck6MQU3aaL1j7CJeuZs4=
 =0/wZ
 -END PGP SIGNATURE-
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of
 the message


Actually 

apmd_enable=YES

will suffice (man apmd) since apmd will enable apm
(whatever that means) each time it starts up. enabling
both apmd and apm in rc.conf won't hurt, it is just
redundant.

Wayne

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: APM

2002-12-28 Thread Adam Weinberger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 (12.28.2002 @ 2157 PST): Derision said, in 0.4K: 
 What is the correct line in the kernel config for
 making halt -p work?
 
 Mine is currently 
 deviceapm0
 
 (FreeBSD 4.7)
 end of APM from Derision 

Make sure you also have:
apm_enable=YES
apmd_enable=YES

in your /etc/rc.conf.

# Adam


- --
Adam Weinberger
vectors.cx[EMAIL PROTECTED]
FreeBSD.org   [EMAIL PROTECTED]
Bayer Berkeley[EMAIL PROTECTED]
#vim:set ts=8: 8-char tabs prevent tooth decay.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+Dpiuo8KM2ULHQ/0RAqaPAJ4uyhXLpaENj9pXRqkR39u3heOIFwCgxs24
3Rcck6MQU3aaL1j7CJeuZs4=
=0/wZ
-END PGP SIGNATURE-

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



green- or apm-saver

2002-12-24 Thread Hanspeter Roth
Hello,

what's the difference of the green and apm-console-saver?
Are there restrictions when running X11?

-Hanspeter

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



apm

2002-12-07 Thread Wayne Lubin
Hi,

Sleep mode works when I manually do apm -z or
equivalently zzz. The problem is it is not
automatically invoked when the computer is idol for 20
mins. which I have set my bios for.  

dmesg gives:

apm0: APM BIOS on motherboard
apm: found APM BIOS v1.2, connected at v1.2

so the device is being detected.


/etc/rc.conf has got the line:

apmd_enable=YES


/etc/apmd.conf has got:

apm_event SUSPENDREQ {
exec /etc/rc.suspend;
}

apm_event USERSUSPENDREQ {
exec sync  sync  sync;
exec sleep 1;
exec apm -z;
}

apm_event NORMRESUME, STANDBYRESUME {
exec /etc/rc.resume;
}


/etc/rc.suspend looks like:

if [ -r /var/run/rc.suspend.pid ]; then
exit 1
fi

echo $$  /var/run/rc.suspend.pid

# If you have troubles on suspending with PC-CARD
modem, try this.
# See also contrib/pccardq.c (Only for PAO users).
# pccardq | awk -F '~' '$5 == filled  $4 ~ /sio/ \
#   { printf(pccardc power %d 0, $1); }' | sh

logger -t apmd suspend at `date +'%Y%m%d %H:%M:%S'`
sync  sync  sync
sleep 3

rm -f /var/run/rc.suspend.pid
zzz

exit 0


/etc/rc.resume looks like:

if [ -r /var/run/rc.suspend.pid ]; then
kill -9 `cat /var/run/rc.suspend.pid`
rm -f /var/run/rc.suspend.pid
echo 'rc.suspend is killed'
fi

# Turns on a power supply of a card in the slot
inactivated.
# See also contrib/pccardq.c (only for PAO users).
# pccardq | awk -F '~' '$5 == inactive \
#   { printf(pccardc power %d 1, $1); }' | sh

logger -t apmd resumed at `date +'%Y%m%d %H:%M:%S'`
sync  sync  sync

exit 0


I think that is most of the important info. Any help? Thanks.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message