Subject: NetBSD on Asus F2F Laptop partial success
To: None <current-users@netbsd.org>
From: Christian Hattemer <c.hattemer@arcor.de>
List: current-users
Date: 11/11/2006 14:46:07
Hi,

I've got myself an Asus F2F Laptop and put -current on it. I'll summarize 
below what works and what doesn't work yet. Please CC me on reply.

The system was installed about two weeks ago, with the kernel updated from 
todays source. See the dmesg below for reference when I talk about the 
various devices.

I've done a complete install except the X sets. I installed xorg from pkgsrc 
for that since the in-tree XFree doesn't yet support this chipset. It's 
working nicely. However when I switch to the external display using the 
Fn-key some garbage appears on the top of the LCD. It disappears when 
briefly switching to a console. But the mouse pointer also got invisible. 
The mouse is still operational, as shown by xev, but you can't see where it 
is... Is there a way to make the pointer visible again?

I saw there's also xorg in xsrc. How can that be built instead of XFree, and 
is it recommended to use it?

The other display related Fn-keys (brightness up/down, LCD on/off) are also 
working. The WLAN-enable key turns on the LED, but I didn't try if WLAN 
really works. The touchpad disable key, doesn't work. There are a few other 
buttons for Windows gimmicks that don't work of course. Maybe they could be 
turned into some other shortcuts, but I don't really need that.

Audio keys also don't seem to work. The manual describes them as "only under 
Windows", however it was also wrong about the position of the headphone jack...

Since audio doesn't work correctly at all, this can't be determined exactly. 
Playing a wav with audioplay just produces clicking noises. Perhaps the 
SP/DIF mode is on?

Here's audioctl -a output:
name=HD-Audio
version=1.0
config=azalia0
encodings=slinear_le:16,slinear_be:16*,ulinear_le:16*,ulinear_be:16*,mulaw:8*,alaw:8*,slinear_le:32,slinear_be:32*,ulinear_le:32*,ulinear_be:32*
properties=full_duplex,independent
full_duplex=0
fullduplex=0
blocksize=9600
hiwat=6
lowat=1
monitor_gain=0
mode=
play.rate=44100
play.channels=2
play.precision=16
play.encoding=slinear_le
play.gain=127
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=0
play.samples=0
play.eof=0
play.pause=0
play.error=0
play.waiting=0
play.open=0
play.active=0
play.buffer_size=65536
record.rate=8000
record.channels=1
record.precision=8
record.encoding=mulaw
record.gain=127
record.balance=32
record.port=0x0
record.avail_ports=0x0
record.seek=0
record.samples=0
record.eof=0
record.pause=0
record.error=0
record.waiting=0
record.open=0
record.active=0
record.buffer_size=65536
record.errors=0

Also mixerctl -av
inputs.dac03.mute=off  [ off on ]
inputs.dac04.mute=off  [ off on ]
inputs.dac05.mute=off  [ off on ]
inputs.dac06.mute=off  [ off on ]
inputs.dac07.mute=off  [ off on ]
outputs.adc08.source=black0d  [ black0d black0c black0f unknown10 unknown11 
mix15 ]
record.adc08.mute=off  [ off on ]
record.adc08=117,117  delta=19
outputs.unknown0b.boost=off  [ off on ]
outputs.black0c.dir=output  [ input output ]
outputs.black0d.dir=input  [ input output ]
outputs.black0f.dir=output  [ input output ]
outputs.black0f.boost=off  [ off on ]
outputs.unknown10.dir=input  [ input output ]
outputs.unknown10.boost=off  [ off on ]
outputs.unknown11.balan=off  [ off on ]
inputs.mix14.black0d.m=off  [ off on ]
inputs.mix14.unknown10=off  [ off on ]
outputs.mix15.mute=off  [ off on ]
outputs.mix15=106,106  delta=21
inputs.mix15.unknown11=off  [ off on ]
inputs.mix15.mix14.mut=off  [ off on ]
inputs.mix15.mix1c.mut=off  [ off on ]
inputs.mix15.unknown11=121,121  delta=11
inputs.mix15.mix14=121,121  delta=11
inputs.mix15.mix1c=121,121  delta=11
inputs.mix16.dac03.mut=off  [ off on ]
inputs.mix16.mix15.mut=off  [ off on ]
inputs.mix17.dac04.mut=off  [ off on ]
inputs.mix17.mix15.mut=off  [ off on ]
inputs.mix18.dac05.mut=off  [ off on ]
inputs.mix18.mix15.mut=off  [ off on ]
inputs.mix19.dac06.mut=off  [ off on ]
inputs.mix19.mix15.mut=off  [ off on ]
inputs.mix1a.dac04.mut=off  [ off on ]
inputs.mix1a.dac06.mut=off  [ off on ]
inputs.mix1a.mix15.mut=off  [ off on ]
inputs.mix1a.dac03.mut=off  [ off on ]
inputs.mix1b.dac04.mut=off  [ off on ]
inputs.mix1b.dac06.mut=off  [ off on ]
inputs.mix1b.mix15.mut=off  [ off on ]
inputs.mix1b.dac03.mut=off  [ off on ]
inputs.mix1c.black0c.m=off  [ off on ]
inputs.mix1c.black0f.m=off  [ off on ]
inputs.beep23.mute=off  [ off on ]
inputs.beep23=119  delta=17
playback.mode=03  [ 03 07 0405 06 ]

USB works a bit flaky. It sometimes works on boot and sometimes it doesn't. 
Rebooting usually makes it work. This seems to be random, maybe a race 
condition somewhere.

When it doesn't work it will report "uhub0: device problem, disabling port 
1" as seen in the dmesg below. This is the built-in fingerprint sensor, so 
it can't be removed for testing. When this happens all other ports are also 
dead and do not respond to devices being plugged in.

Here's a diff to the dmesg when it does work:
--- dmesg-bug   2006-11-11 12:34:58.000000000 +0100
+++ dmesg.norm  2006-11-11 12:42:11.000000000 +0100
@@ -50,8 +50,8 @@
  acpi0: X/RSDT: OemId <A M I ,OEMRSDT ,07000603>, AslId <MSFT,00000097>
  acpi0: SCI interrupting at int 9
  acpi0: fixed-feature power button present
-timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
-ACPI-Fast 24-bit timer
+timecounter: Timecounter "ACPI-Safe" frequency 3579545 Hz quality 900
+ACPI-Safe 24-bit timer
  ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
  ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
  ATK0100 at acpi0 not configured
@@ -95,7 +95,7 @@
  acpitz0 at acpi0: ACPI Thermal Zone
  acpitz0: unable to get polling interval; using default of 30.0s
  acpitz0: passive cooling mode only
-acpitz0: critical 105.0C passive 52.0C
+acpitz0: critical 105.0C passive 55.0C
  pckbd0 at pckbc0 (kbd slot)
  pckbc0: using irq 1 for kbd slot
  wskbd0 at pckbd0: console keyboard
@@ -200,6 +200,8 @@
  azalia0: codec[1]: No support for modem function groups
  azalia0: codec[1] has no audio function groups
  audio0 at azalia0: full duplex, independent
+ugen0 at uhub0 port 1
+ugen0: AuthenTec Fingerprint Sensor, rev 1.10/c.10, addr 2
  wd0 at atabus0 drive 0: <FUJITSU MHV2080BH PL>
  wd0: drive supports 16-sector PIO transfers, LBA48 addressing
  wd0: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 sectors
@@ -211,13 +213,15 @@
  cd0: 32-bit data port
  cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
  cd0(piixide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
+uhidev0 at uhub0 port 2 configuration 1 interface 0
+uhidev0: Logitech Trackball, rev 1.10/2.20, addr 3, iclass 3/1
+ums0 at uhidev0: 3 buttons and Z dir.
+wsmouse1 at ums0 mux 0
  boot device: wd0
  root on wd0a dumps on wd0b
  root file system type: ffs
  cpu1: CPU 1 running
-uhub0: device problem, disabling port 1
  wsdisplay0: screen 1 added (80x25, vt100 emulation)
  wsdisplay0: screen 2 added (80x25, vt100 emulation)
  wsdisplay0: screen 3 added (80x25, vt100 emulation)
  wsdisplay0: screen 4 added (80x25, vt100 emulation)
-uhub0: device problem, disabling port 2

Also note the other changes here. I just saw them in the diff. Don't know 
why or how often they change.

The CPU is a Core Duo T2300E. It's reported as "unknown Enhanced SpeedStep 
CPU". This shouldn't be hard to fix, but I don't know where to look.

I don't know what this "ATK0100 at acpi0 not configured" is. It has a 
Windows driver, but I haven't looked closely. Probably nothing important.

The ExpressCard slot is untested because I don't have such cards. It doesn't 
show up in dmesg, but this may be normal since according to Wikipedia it 
doesn't have an own controller as CardBus has. Or maybe it is behind the 
unconfigured PCI Express bridge.

There's also a reader for memory cards. It's said to be PCI connected, but I 
didn't see it show up anywhere, even under Windows.

WLAN is untested, Ethernet works fine. Suspend/Hibernate isn't tested yet.

Here's the dmesg. The kernel is based on GENERIC.MPACPI with some 
unnecessary things removed by adjustkernel and myself.

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
     The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.

NetBSD 4.99.3 (WEBSTERBIS) #2: Sat Nov 11 11:37:44 CET 2006
	krille@websterbis.lan:/usr/src/sys/arch/i386/compile/WEBSTERBIS
total memory = 1015 MB
avail memory = 993 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
BIOS32 rev. 0 found at 0xf0010
mainbus0 (root)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel Pentium M (Yonah) (686-class), 1662.62 MHz, id 0x6e8
cpu0: features bfe9fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features bfe9fbff<PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX>
cpu0: features bfe9fbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: features2 c189<SSE3,MONITOR,EST,TM2,xTPR>
cpu0: "Genuine Intel(R) CPU           T2300  @ 1.66GHz"
cpu0: I-cache 32 KB 64B/line 8-way, D-cache 32 KB 64B/line 8-way
cpu0: L2 cache 2 MB 64B/line 8-way
cpu0: using thermal monitor 1
cpu0: Enhanced SpeedStep (1388 mV) 1667 MHz
cpu0: unknown Enhanced SpeedStep CPU.
cpu0: using only highest and lowest  power states.
cpu0: Enhanced SpeedStep frequencies available (MHz): 1667 1000
cpu0: calibrating local timer
cpu0: apic clock running at 166 MHz
cpu0: 64 page colors
cpu1 at mainbus0: apid 1 (application processor)
cpu1: starting
cpu1: Intel Pentium M (Yonah) (686-class), 1662.51 MHz, id 0x6e8
cpu1: features bfe9fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu1: features bfe9fbff<PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX>
cpu1: features bfe9fbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu1: features2 c189<SSE3,MONITOR,EST,TM2,xTPR>
cpu1: "Genuine Intel(R) CPU           T2300  @ 1.66GHz"
cpu1: I-cache 32 KB 64B/line 8-way, D-cache 32 KB 64B/line 8-way
cpu1: L2 cache 2 MB 64B/line 8-way
cpu1: using thermal monitor 1
cpu1: Enhanced SpeedStep (1388 mV) 1667 MHz
cpu1: unknown Enhanced SpeedStep CPU.
cpu1: using only highest and lowest  power states.
cpu1: Enhanced SpeedStep frequencies available (MHz): 1667 1000
ioapic0 at mainbus0 apid 2 (I/O APIC)
ioapic0: pa 0xfec00000, version 20, 24 pins
acpi0 at mainbus0: Advanced Configuration and Power Interface
acpi0: using Intel ACPI CA subsystem version 20060217
acpi0: X/RSDT: OemId <A M I ,OEMRSDT ,07000603>, AslId <MSFT,00000097>
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
ACPI-Fast 24-bit timer
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ATK0100 at acpi0 not configured
PNP0A08 [PCI Express/PCI-X Mode-2 Host Bridge] at acpi0 not configured
PNP0C01 [System Board] at acpi0 not configured
PNP0000 [AT Interrupt Controller] at acpi0 not configured
PNP0200 [AT DMA Controller] at acpi0 not configured
attimer0 at acpi0 (PNP0100): AT Timer
attimer0: io 0x40-0x43 irq 0
PNP0B00 [AT Real-Time Clock] at acpi0 not configured
pckbc0 at acpi0 (PNP0303): kbd port
pckbc0: io 0x60,0x64 irq 1
pckbc1 at acpi0 (SYN0A06): aux port
pckbc1: irq 12
pcppi0 at acpi0 (PNP0800)
pcppi0: io 0x61
pcppi0: children must have an explicit unit
midi0 at pcppi0: PC speaker (CPU-intensive output)
sysbeep0 at pcppi0
npx0 at acpi0 (PNP0C04)
npx0: io 0xf0-0xff irq 13
npx0: reported by CPUID; using exception 16
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
acpiec0 at acpi0 (PNP0C09): ACPI Embedded Controller
acpiec0: io 0x62,0x66
IFX0102 at acpi0 not configured
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
acpiacad0 at acpi0 (ACPI0003): ACPI AC Adapter
acpibat0 at acpi0 (PNP0C0A-0): ACPI Battery (Control Method)
PNP0C01 [System Board] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
acpibut0 at acpi0 (PNP0C0C): ACPI Power Button
acpibut1 at acpi0 (PNP0C0E): ACPI Sleep Button
acpilid0 at acpi0 (PNP0C0D): ACPI Lid Switch
acpitz0 at acpi0: ACPI Thermal Zone
acpitz0: unable to get polling interval; using default of 30.0s
acpitz0: passive cooling mode only
acpitz0: critical 105.0C passive 52.0C
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0: attached to attimer0
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82945GM/PM/GMS Host Bridge (rev. 0x03)
agp0 at pchb0: detected 7932k stolen memory
agp0: aperture at 0xd0000000, size 0x10000000
vga0 at pci0 dev 2 function 0: Intel 82945GM/PM/GMS Integrated Graphics 
Device (rev. 0x03)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
Intel 82945GM/PM/GMS Integrated Graphics Device (miscellaneous display, 
revision 0x03) at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0: Generic High Definition Audio Controller
azalia0: interrupting at ioapic0 pin 16 (irq 11)
azalia0: host: Intel 82801GB/GR High Definition Audio Controller (rev. 2)
azalia0: host: High Definition Audio rev. 1.0
ppb0 at pci0 dev 28 function 0: Intel 82801GB/GR PCI Express Port #1 (rev. 0x02)
pci1 at ppb0 bus 1
pci1: memory space enabled, rd/line, wr/inv ok
wpi0 at pci1 dev 0 function 0: Intel PRO/Wireless LAN 3945ABG Mini-PCI 
Adapter (rev. 0x02)
wpi0: interrupting at ioapic0 pin 16 (irq 11)
wpi0: 802.11 address xx:xx:xx:xx:xx:xx
wpi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wpi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wpi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 
36Mbps 48Mbps 54Mbps
ppb1 at pci0 dev 28 function 1: Intel 82801GB/GR PCI Express Port #2 (rev. 0x02)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
uhci0 at pci0 dev 29 function 0: Intel 82801GB/GR USB UHCI Controller (rev. 
0x02)
uhci0: interrupting at ioapic0 pin 23 (irq 3)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1: Intel 82801GB/GR USB UHCI Controller (rev. 
0x02)
uhci1: interrupting at ioapic0 pin 19 (irq 7)
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2: Intel 82801GB/GR USB UHCI Controller (rev. 
0x02)
uhci2: interrupting at ioapic0 pin 18 (irq 4)
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3: Intel 82801GB/GR USB UHCI Controller (rev. 
0x02)
uhci3: interrupting at ioapic0 pin 16 (irq 11)
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7: Intel 82801GB/GR USB EHCI Controller (rev. 
0x02)
ehci0: interrupting at ioapic0 pin 23 (irq 3)
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ppb2 at pci0 dev 30 function 0: Intel 82801BAM Hub-PCI Bridge (rev. 0xe2)
pci3 at ppb2 bus 5
pci3: i/o space, memory space enabled
rtk0 at pci3 dev 0 function 0: Realtek 8139 10/100BaseTX (rev. 0x10)
rtk0: interrupting at ioapic0 pin 16 (irq 11)
rtk0: Ethernet address xx:xx:xx:xx:xx:xx
rlphy0 at rtk0 phy 7: Realtek internal PHY
rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcib0 at pci0 dev 31 function 0
pcib0: Intel 82801GBM LPC Interface Bridge (rev. 0x02)
piixide0 at pci0 dev 31 function 2
piixide0: Intel 82801GBM/GHM Serial ATA Controller (ICH7) (rev. 0x02)
piixide0: bus-master DMA support present
piixide0: primary channel wired to compatibility mode
piixide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus0 at piixide0 channel 0
piixide0: secondary channel wired to compatibility mode
piixide0: secondary channel interrupting at ioapic0 pin 15 (irq 15)
atabus1 at piixide0 channel 1
Intel 82801GB/GR SMBus Controller (SMBus serial bus, revision 0x02) at pci0 
dev 31 function 3 not configured
isa0 at pcib0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
isapnp0: no ISA Plug 'n Play devices found
ioapic0: enabling
WARNING: Callback scheduled before sysmon task queue thread present.
WARNING: Callback scheduled before sysmon task queue thread present.
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
azalia0: codec[0]: 0x10ec/0x0861 (rev. 3.64)
azalia0: codec[0]: High Definition Audio rev. 1.0
azalia0: playback: max channels=2, encodings=1<PCM>
azalia0: playback: PCM formats=e0140<24bit,20bit,16bit,96kHz,48kHz>
azalia0: recording: max channels=2, encodings=1<PCM>
azalia0: recording: PCM formats=20140<16bit,96kHz,48kHz>
azalia0: codec[1]: 0x1543/0x3155 (rev. 7.0)
azalia0: codec[1]: High Definition Audio rev. 1.0
azalia0: codec[1]: No support for modem function groups
azalia0: codec[1] has no audio function groups
audio0 at azalia0: full duplex, independent
wd0 at atabus0 drive 0: <FUJITSU MHV2080BH PL>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <HL-DT-ST DVDRAM GMA-4082N, K0567Q91325, HJ02> 
cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(piixide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
cpu1: CPU 1 running
uhub0: device problem, disabling port 1
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
uhub0: device problem, disabling port 2

Please remember to CC me on reply.

Bye, Chris