Subject: date doesn't set date and time
To: None <current-users@netbsd.org>
From: Thierry Lacoste <th.lacoste@wanadoo.fr>
List: current-users
Date: 06/19/2005 15:42:17
# uname -a
NetBSD sirius.stars.net 3.99.3 NetBSD 3.99.3 (MYKERNEL) #0: Sun May  8 
19:28:52CEST 2005  
root@sirius.stars.net:/usr/obj/sys/arch/i386/compile/MYKERNEL i386

/usr/src/sys/arch/i386/conf/MYKERNEL is essentialy GENERIC_LAPTOP
with ACPI enabled instead of APM (see below).

# date 0101010101
Jun 19 15:30:53 sirius date: date set by root
Sun Jun 19 15:30:53 CEST 2005

I'm almost sure it once worked (with 2.0 or a previous -current).
Any idea?

Regards,
Thierry.

# pwd
/usr/src/sys/arch/i386/conf
# diff MYKERNEL GENERIC_LAPTOP
68c68
< #options      SHMMAXPGS=16284 # 2048 pages is the default
---
> #options      SHMMAXPGS=2048  # 2048 pages is the default
146,147c146,147
< options       IPSEC           # IP security
< options       IPSEC_ESP       # IP security (encryption part; define 
w/IPSEC)
---
> #options      IPSEC           # IP security
> #options      IPSEC_ESP       # IP security (encryption part; define 
w/IPSEC)
239c239
< #apm0 at mainbus0                     # Advanced power management
---
> apm0  at mainbus0                     # Advanced power management
253,257c253,257
< acpi0                 at mainbus0
< options       ACPI_PCI_FIXUP          # PCI interrupt routing via ACPI
< options       ACPI_ACTIVATE_DEV       # If set, activate inactive devices
< options       ACPICA_PEDANTIC         # force strict conformance to the 
Spec.
< options       ACPI_DISABLE_ON_POWEROFF        # disable acpi on power off
---
> #acpi0                at mainbus0
> #options      ACPI_PCI_FIXUP          # PCI interrupt routing via ACPI
> #options      ACPI_ACTIVATE_DEV       # If set, activate inactive devices
> #options      ACPICA_PEDANTIC         # force strict conformance to the 
Spec.
> #options      ACPI_DISABLE_ON_POWEROFF        # disable acpi on power off
260,265c260,265
< acpiacad*     at acpi?                # ACPI AC Adapter
< acpibat*      at acpi?                # ACPI Battery
< acpibut*      at acpi?                # ACPI Button
< acpiec*       at acpi?                # ACPI Embedded Controller
< acpilid*      at acpi?                # ACPI Lid Switch
< acpitz*       at acpi?                # ACPI Thermal Zone
---
> #acpiacad*    at acpi?                # ACPI AC Adapter
> #acpibat*     at acpi?                # ACPI Battery
> #acpibut*     at acpi?                # ACPI Button
> #acpiec*      at acpi?                # ACPI Embedded Controller
> #acpilid*     at acpi?                # ACPI Lid Switch
> #acpitz*      at acpi?                # ACPI Thermal Zone
268,277c268,277
< attimer*      at acpi?                # AT Timer
< com*          at acpi?                # Serial communications interface
< fdc*          at acpi?                # Floppy disk controller
< joy*          at acpi?                # Joystick/Game port
< lpt*          at acpi?                # Parallel port
< mpu*          at acpi?                # Roland MPU-401 MIDI UART
< npx*          at acpi?                # Math coprocessor
< pckbc*        at acpi?                # PC keyboard controller
< pcppi*         at acpi?                # AT-style speaker sound
< wss*          at acpi?                # NeoMagic 256AV in wss mode
---
> #attimer*     at acpi?                # AT Timer
> #com*                 at acpi?                # Serial communications 
interface
> #fdc*                 at acpi?                # Floppy disk controller
> #joy*         at acpi?                # Joystick/Game port
> #lpt*                 at acpi?                # Parallel port
> #mpu*         at acpi?                # Roland MPU-401 MIDI UART
> #npx*                 at acpi?                # Math coprocessor
> #pckbc*       at acpi?                # PC keyboard controller
> #pcppi*         at acpi?                # AT-style speaker sound
> #wss*                 at acpi?                # NeoMagic 256AV in wss mode