Re: issues with acer aspire one (now tested with -current)

2011-04-21 Thread Kent Watsen

 On 04/21/11 05:50, Jacob Meuser wrote:

no.  azalia(4) supports the HD audio interface on ich.  see azalia(4).

there's perhaps a gpio that controls eapd or somesuch.

can you please send the output of '# pcidump -x 0:27:0' ?  thanks for
including a dmesg.


# pcidump -x 0:27:0
 0:27:0: Intel 82801GB HD Audio
0x: 27d88086 0016 04030002 0010
0x0010: 5824   
0x0020:    03491025
0x0030:  0050  010b


Thanks for showing interest.



Re: issues with acer aspire one (now tested with -current)

2011-04-21 Thread Jacob Meuser
On Wed, Apr 20, 2011 at 09:54:17PM -0400, Kent Watsen wrote:

> 2. no sound
> ---
> Still no sound
> 
> Like reported lasted time, this may be due to the 'azalia' driver being used 
> instead of the 'auich' driver.  I deduced this before since sound worked 
> under Linux where the audio device as "Intel Corp N10/ICH 7 Family HD Audio 
> Controller (rev 02)".  So, if "ICH7" is needed, then that implies it should 
> be the 'auich' driver, right?

no.  azalia(4) supports the HD audio interface on ich.  see azalia(4).

there's perhaps a gpio that controls eapd or somesuch.

can you please send the output of '# pcidump -x 0:27:0' ?  thanks for
including a dmesg.

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



Re: issues with acer aspire one (now tested with -current)

2011-04-20 Thread Kent Watsen
A couple listers suggested trying -current, so here it is again on a 4.9 
snapshot dated 201104119 (summary: no change, all issues still present)



1. screen blacks out during boot


Still blacks out, but the location changed.  This is the last line I see before 
the backlight turns off:

ahci0 at pci0 dev 31 function 2 "Intel 82801GR AHCI" rev 0x02: apic 4 int 
17 (irq 10), AHCI 1.1


And this is the first line I see when the backlight turns back on:

ahci0: PHY offline on port 1

This is interesting for two reasons: 1) unlike before, there are no lines 
between and 2) there's no overlap in the lines from before (weird)



2. no sound
---
Still no sound

Like reported lasted time, this may be due to the 'azalia' driver being used instead of the 'auich' 
driver.  I deduced this before since sound worked under Linux where the audio device as "Intel 
Corp N10/ICH 7 Family HD Audio Controller (rev 02)".  So, if "ICH7" is needed, then 
that implies it should be the 'auich' driver, right?



3. cf reader won't mount

Still mounts as ugen0



4. can't disable power button
-
Still can't disable power button from initiating a shutdown
  - really, I don't know how - something in /etc/apm/ ?



5. resume didn't resume after long wait
---
Can't reproduce (mentioned before)



6. can't re-enable wi-fi disabling via Fn-F3

Still can't re-enable radio after disabling



7. Fn-F4 ("Zz") doesn't put computer to sleep
-
This button is still completely unresponsive



New dmesg
-
OpenBSD 4.9-current (GENERIC.MP) #73: Tue Apr 19 13:34:15 MDT 2011
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
RTC BIOS diagnostic error 80
cpu0: Intel(R) Atom(TM) CPU N550 @ 1.50GHz ("GenuineIntel" 686-class) 1.50 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE
real mem  = 1061335040 (1012MB)
avail mem = 1033809920 (985MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 10/07/10, SMBIOS rev. 2.6 @ 0xe80b0 (36 
entries)
bios0: vendor Acer version "V3.08(DDR3)" date 10/07/2010
bios0: Acer AOD255
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC MCFG SLIC BOOT SSDT WDAT
acpi0: wakeup devices UHC1(S3) UHC2(S3) UHC3(S3) UHC4(S3) ECHI(S3) EXP1(S4) 
EXP2(S0) EXP3(S4) EXP4(S4) AZAL(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 166MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Atom(TM) CPU N550 @ 1.50GHz ("GenuineIntel" 686-class) 1.50 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Atom(TM) CPU N550 @ 1.50GHz ("GenuineIntel" 686-class) 1.50 GHz
cpu2: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Atom(TM) CPU N550 @ 1.50GHz ("GenuineIntel" 686-class) 1.50 GHz
cpu3: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE
ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 4
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (EXP1)
acpiprt2 at acpi0: bus 2 (EXP2)
acpiprt3 at acpi0: bus -1 (EXP3)
acpiprt4 at acpi0: bus -1 (EXP4)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpicpu2 at acpi0: C3, C2, C1, PSS
acpicpu3 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: FN00
acpitz0 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: LID0
acpibat0 at acpi0: BAT0 model "13848633228217409" type Lion oem "SANYO "
acpiac0 at acpi0: AC unit online
acpivideo0 at acpi0: OVGA
acpivout0 at acpivideo0: DD02
bios0: ROM list: 0xc/0xda00!
cpu0: Enhanced SpeedStep 1497 MHz: speeds: 1500, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel Pineview DMI" rev 0x02
vga1 at pci0 dev 2 function 0 "Intel Pineview Video" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0x4000, size 0x1000
inteldrm0 at vga1: apic 4 int 16 (irq 11)
drm0

issues with acer aspire one

2011-04-20 Thread Kent Watsen
I've always wanted a netbook for OpenBSD.  The form factor reminds me of
the TS1000, my first computer.  I picked up this refurbished Acer Aspire
One (D255-1268) for just $229, and have 7 days (5 more now) to return it
to the store.  So far it's running OpenBSD pretty well, but I found some
issues that I'm hoping to resolve:

1. screen blacks out during boot
2. no sound
3. cf reader won't mount
4. can't disable power button
5. resume didn't resume after long wait
6. can't re-enable wi-fi disabling via Fn-F3
7. Fn-F4 ("Zz") doesn't put computer to sleep

On a positive note, many things do work: bsd.mp, machdep.lidsuspend,
wi-fi, x-windows, sleep/resume, function keys (disable wi-fi radio,
switch to external screen, disable trackpad, mute sound, control volume,
and control screen brightness), and usb-based cdrom and flash drives). I
have not tested the web cam, the built-in ethernet nic, or the "Windows
7" that shipped with the system (haven't even booted it as I'm still
decided it to return this machine for another)

Note: full `dmesg` output is at bottom.

1. screen blacks out during boot


The screen apparently blanks out while OpenBSD is booting.  What's weird
is that I'm looking at the screen in very bright light, I can still see
the "blue lines" scrolling - so it seems that the LCD backlight is being
disabled momentarily.

This is completely reproduce-able on my machine and I recall the same
happening on another Aspire One model at the store.  In case it matters,
in both cases I'm booting OpenBSD off a USB pen drive...

This is the last line I see before the backlight turns off:

uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1

This is the first line I see when the backlight turns back on:

npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16

So, comparing to the `dmesg` below, the following messages are posted
while the backlight is off:

usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0

2. no sound
--

azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: apic
4 int 19 (irq 11)
azalia0: codecs: Realtek ALC272
audio0 at azalia0

As seen above, the device is found, and I've double-checked that sound is
not muted and that the volume turned all the way up.   Note: the function
keys work - that is, they correctly modify the "mute" and "gain" values
in the output below (even though I can't hear anything)

I know the speaker works because I was able to use it after booting the
Parted Magic CD (linux) and running the "Test Audio" application, which
produced the normal beep pattern.  It detected the audio device as "Intel
Corp N10/ICH 7 Family HD Audio Controller (rev 02)".  

Should OpenBSD should be using the "auich" driver, which is reported to
support "ICH7"?  - how can I get OpenBSD to use a different driver?

# audioctl
name=HD-Audio
version=1.0
config=azalia0
encodings=slinear_le:16:2:1,slinear_le:20:4:1,slinear_le:24:4:1
properties=full_duplex,independent
full_duplex=0
fullduplex=0
blocksize=9600
hiwat=6
lowat=4
output_muted=0
monitor_gain=0
mode=
play.rate=48000
play.sample_rate=48000
play.channels=2
play.precision=16
play.bps=2
play.msb=1
play.encoding=slinear_le
play.gain=255
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
play.block_size=9600
play.errors=0
record.rate=48000
record.sample_rate=48000
record.channels=2
record.precision=16
record.bps=2
record.msb=1
record.encoding=slinear_le
record.gain=120
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.block_size=9600
record.errors=0

# mixerctl   
inputs.dac-0:1=192,192
inputs.dac-4:5=192,192
inputs.dac-2:3=126,126
record.adc-2:3_mute=off
record.adc-2:3=120,120
record.adc-0:1_mute=off
record.adc-0:1=120,120
inputs.mix_source=mic2
inputs.mix_mic2=120,120
inputs.mix2_source=dac-0:1,mix
inputs.mix3_source=dac-4:5,mix
inputs.mix4_source=dac-2:3,mix
outputs.spkr_source=mix3
outputs.spkr_mute=off
outputs.spkr_dir=output
outputs.spkr_boost=off
outputs.spkr_eapd=on
outputs.mic2_source=mix4
outputs.mic2_mute=off
inputs.mic2=85,85
outputs.mic2_dir=input-vr80
outputs.hp_source=mix2
outputs.hp_mute=off
outputs.hp_boost=off
record.adc-0:1_source=mic2,mix,mic
record.adc-2:3_source=mic2,mix
outputs.mic2_sense=unplugged
outputs.hp_sense=unplugged
outputs.spkr_muters=mic