Age | Commit message (Collapse) | Author |
|
|
|
no words or punctation were modified.
|
|
APM_USER_HIBERNATE_REQ event so apmd(8) can get it if it's running.
ok mlarkin@, deraadt@, miod@
|
|
ok nicm@
|
|
|
|
Discussed and okay drahn@. Okay deraadt@.
|
|
APM_IOC_{SUSPEND,STANDBY}_REQ: This is to fix an issue with apm suspend
where a call to zzz suspended the machine immediately, not giving anyone
listening for apm events (other than apmd) a chance to deal with the
upcoming change. This hit X hard since the introduction of drm, since it
needs to have time to idle the 3d engine and otherwise get the device
into a recoverable state. Such things are needed until we support
modesetting in the kernel.
Now, instead of forcing a suspend, using ioctl sends out an event similar
to if you had put the lid down, giving all userland applications a
chance to reply.
tested by sthen@ and beck@, especial thanks to sthen for sitting there
while I tried to debug this remotely, I owe him beer.
Prompted by and ok deraadt@
|
|
|
|
in big endian order, swap if flags was given.
reported by: Hans-Joerg Hoexer <Hans-Joerg.Hoexer@yerbouti.franken.de>
|
|
apparently i thought i comitted this already before apmd.
tested by me, art@ and jason@ .
|
|
|
|
|
|
|
|
account for 16bit and 32bit code segments at different bases;
leave interrupts enabled when calling apm bios;
a few more debugging printfs (ifdef'ed appropriately).
|
|
|
|
|
|
not seconds
|
|
1) default: print out all messages. I made this the default so there
would be no visable change to people who are used to what they have.
2) disable all messages. This mode is set by apmd when it starts up.
I think it is reasonable for apmd to disable the driver display
because it is collecting the data and syslogging it. Don't need
to see it three and 4 times.
3) print percentage changes. For those who have a _noisy_ machine
such as me but don't want to see lots and lots of messages I added
a mode where the messages will only be displayed if the estimated
battery percenge changes.
|
|
configs will be updated
|
|
add to your config:
bios0 at mainbus0
apm0 at mainbus0 # (if you are using APM)
|
|
|
|
(original PCMCIA framework by Stefan Grefen [grefen@convex.com]).
|