ACPI on Sony VAIO z505s on fresh -CURRENT

2001-08-22 Thread Vladimir B. Grebenschikov


Hi

Anybody tried subj ?

It compiles in, and seems to work:

Aug 17 14:16:58 vbook /boot/kernel/kernel: ACPI debug layer 0x0  debug level 0x0
Aug 17 14:16:59 vbook /boot/kernel/kernel: acpi0: PTLTDRSDT   on motherboard
Aug 17 14:16:59 vbook /boot/kernel/kernel: acpi0: power button is handled as a fixed 
feature programming model.
Aug 17 14:16:59 vbook /boot/kernel/kernel: Timecounter ACPI  frequency 3579545 Hz
Aug 17 14:16:59 vbook /boot/kernel/kernel: acpi_cpu0: CPU on acpi0
Aug 17 14:16:59 vbook /boot/kernel/kernel: acpi_tz0: thermal zone on acpi0
Aug 17 14:16:59 vbook /boot/kernel/kernel: acpi_button0: Power Button on acpi0
Aug 17 14:16:59 vbook /boot/kernel/kernel: acpi_pcib0: Host-PCI bridge on acpi0
Aug 17 14:16:59 vbook /boot/kernel/kernel: pci0: PCI bus on acpi_pcib0
Aug 17 14:17:00 vbook /boot/kernel/kernel: acpi_pcib0: matched entry for 0.10.INTA 
(source \_SB_.LNKB)
Aug 17 14:17:00 vbook /boot/kernel/kernel: acpi_pcib0: device is routed to IRQ 9
Aug 17 14:17:00 vbook /boot/kernel/kernel: acpi_cmbat0: Control method Battery on 
acpi0
Aug 17 14:17:00 vbook /boot/kernel/kernel: acpi_acad0: AC adapter on acpi0
Aug 17 14:17:00 vbook /boot/kernel/kernel: acpi_timer0: 24-bit timer at 3.579545MHz 
port 0x8008-0x800b on acpi0
Aug 17 14:17:01 vbook /boot/kernel/kernel: acpi_cpu0: set speed to 100.0%
Aug 17 14:17:01 vbook /boot/kernel/kernel: acpi_cpu: CPU throttling enabled, 8 steps 
from 100% to 12.5%

acpidump - dumps a lot of information

But there are some problems with using acpi:

1st: it seems that acpi not emulates apm interface (/dev/{apm,apmctl}) so
 apm-based utilites don't work (apmd, zzz, monitors and so)

 Is it planned to have apm interface through acpi or not ?
 If I compile both in kernel - apm code not works.

2nd: Where I can get more info about acpimodes, from man acpiconf(8):
  -s type
 Enters the specified sleep mode.  Recognized types are 1, 2, 3,
 4, and 5.
 in man acpiconf(8) there are no mention about mode 4b 
 I have tried some:
1,2 - do nothing
5   - turn off machine without proper shutdown

3rd: I have tried couple utilites from http://people.freebsd.org/~jhb/acpi/
  batt.c- works after patching, but if no battary present on laptop
  shows 1 battary with unrealistic numbers
  health.c  - I can't make it work - it seems it lacks of defines in kernel

  May be there are some other utilites for acpi ?


--
TSB Russian Express, Moscow
Vladimir B. Grebenschikov, [EMAIL PROTECTED]

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



Re: ACPI on Sony VAIO z505s on fresh -CURRENT

2001-08-22 Thread Takanori Watanabe

In message [EMAIL PROTECTED], Vladimir B. Grebensch
ikov さんいわく:

acpidump - dumps a lot of information

But there are some problems with using acpi:

1st: it seems that acpi not emulates apm interface (/dev/{apm,apmctl}) so
 apm-based utilites don't work (apmd, zzz, monitors and so)

 Is it planned to have apm interface through acpi or not ?
 If I compile both in kernel - apm code not works.

At least I don't have plan to imprement apmctl.There is more appropreate 
way: kqueue. That is undergoing project. Imprementing ome apm-compatible 
interface may be good thing.



2nd: Where I can get more info about acpimodes, from man acpiconf(8):
  -s type
 Enters the specified sleep mode.  Recognized types are 1, 2, 3,
 4, and 5.
 in man acpiconf(8) there are no mention about mode 4b 
 I have tried some:
1,2 - do nothing
   5   - turn off machine without proper shutdown

3rd: I have tried couple utilites from http://people.freebsd.org/~jhb/acpi/
  batt.c- works after patching, but if no battary present on laptop
  shows 1 battary with unrealistic numbers
  health.c  - I can't make it work - it seems it lacks of defines in kerne
l

health.c will not work because Thermal zone driver has no ioctl 
interface for now.
But there is sysctl interface instead.

  May be there are some other utilites for acpi ?

User interface of ACPI itself is not so fixed.

Takanori Watanabe
a href=http://www.planet.sci.kobe-u.ac.jp/~takawata/key.html;
Public Key/a
Key fingerprint =  2C 51 E2 78 2C E1 C5 2D  0F F1 20 A3 11 3A 62 2A 

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