//home | my other blog | github | twitter | about

OpenBSD on a Dell Inspiron 1090 Duo

Why?

First of all, why? Well, because… why not? Let’s be honest, it’s a slow machine. But makes for a great portable terminal. This is my go-to laptop for light late-nite hacking (while in bed and everyone else is asleep), or a portable mp3/internet-radio player when I’m in the garage. I took it on several trips with me as my only computing device (not counting the smartphone…) and didn’t really feel the need for something faster. Most if not all of my articles were written on this little thing. If I’m not mistaken this is the first machine that got converted to OpenBSD.

Specs

For those of you who want some numbers:

$ sysctl hw.{machine,model,ncpu,smt,physmem} 
hw.machine=amd64
hw.model=Intel(R) Atom(TM) CPU N570 @ 1.66GHz
hw.ncpu=4
hw.smt=0
hw.physmem=2118381568

What works

Pretty much everything, …including the touch screen. which I fixed while writing these lines ;)

By default, it sort of worked, except that the upper-left corner of the touchscreen was mapped to the whole display (so, ‘touching’ a point somewhere within the first ~25% of the screen, would make the cursor go close to the lower-right corner)

After some ‘digging’, this small annoyance was promtly fixed by using xtsscale(1) to calibrate the touchscreen:

$ xtsscale -d 8 -c -v  
XRandR extension version 1.5 present
Calibrating /dev/wsmouse1
x[0] = 276 y[0] = 314
x[1] = 266 y[1] = 3788
x[2] = 2022 y[2] = 2102
x[3] = 3830 y[3] = 330
x[4] = 3810 y[4] = 3818
mouse.scale=18,4079,73,4057,0,1366,768

The last line went into /etc/wsconsctl.conf, as:

mouse1.scale=18,4079,73,4057,0,1366,768

What (partially) works

There’s also a JBL base/’docking station’ for this thing. which includes speakers, a wired NIC, a couple’ USB ports, SD card reader. The USB ports work, charging works while docked, the SD card reader probably also works.

What doesn’t work are the (supposedly) nice JBL speakers within the base (although I didn’t try too hard to find out why).

When docked, dmesg reports:

uhub5 at uhub4 port 7 configuration 1 interface 0 "Dell product 0xa502" rev 2.00/b.a0 addr 3
umass0 at uhub5 port 2 configuration 1 interface 0 "Generic USB2.0-CRW" rev 2.00/58.88 addr 4
umass0: using SCSI over Bulk-Only
scsibus4 at umass0: 2 targets, initiator 0
sd1 at scsibus4 targ 1 lun 0: <Generic-, Multi-Card, 1.00> SCSI0 0/direct removable serial.0bda0158114173400000

UPD1: looks like I jinxed it. If left for a while, the display goes blank, as it should:

~$ grep timeout .Xdefaults
xidle*timeout  : 300

with the exception that it doesn’t react to keyboard/mouse events anymore, and the screen stays blank. Nothing in any logs, not clear what’s going on. (Did not try to SSH into it). Without the JBL base - there are absolutely no issues.

Mugshot

Mandatory picture, on the JBL base, with a crappy USB keyboard. dell-inspiron-duo

Full dmesg output

OpenBSD 6.4 (GENERIC.MP) #0: Sat Nov 17 22:15:46 CET 2018
    root@syspatch-64-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2118381568 (2020MB)
avail mem = 2044968960 (1950MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xe6a50 (48 entries)
bios0: vendor Dell Inc. version "A06" date 08/23/2011
bios0: Dell Inc. Inspiron 1090
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC MCFG SLIC BOOT OSFR SSDT SSDT SSDT WDAT
acpi0: wakeup devices PWRB(S4) LID0(S3) P32_(S4) UHC1(S0) UHC2(S0) UHC3(S0) UHC4(S0) ECHI(S0) EXP2(S4) EXP3(S4) EXP4(S3) AZAL(S4) MODM(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Atom(TM) CPU N570 @ 1.66GHz, 1662.91 MHz, 06-1c-0a
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN
cpu0: 512KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 7 var ranges, 88 fixed ranges
cpu0: apic clock running at 166MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.0.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Atom(TM) CPU N570 @ 1.66GHz, 1662.59 MHz, 06-1c-0a
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN
cpu1: 512KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Atom(TM) CPU N570 @ 1.66GHz, 997.56 MHz, 06-1c-0a
cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN
cpu2: 512KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Atom(TM) CPU N570 @ 1.66GHz, 997.56 MHz, 06-1c-0a
cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN
cpu3: 512KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 20, 24 pins, remapped
acpimcfg0 at acpi0
acpimcfg0: addr 0xe0000000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 5 (P32_)
acpiprt2 at acpi0: bus 1 (EXP1)
acpiprt3 at acpi0: bus 2 (EXP2)
acpiprt4 at acpi0: bus 3 (EXP3)
acpiprt5 at acpi0: bus 4 (EXP4)
acpiec0 at acpi0
acpicpu0 at acpi0: !C3(100@57 io@0x416), !C2(500@1 io@0x414), C1(1000@1 halt), PSS
acpicpu1 at acpi0: !C3(100@57 io@0x416), !C2(500@1 io@0x414), C1(1000@1 halt), PSS
acpicpu2 at acpi0: !C3(100@57 io@0x416), !C2(500@1 io@0x414), C1(1000@1 halt), PSS
acpicpu3 at acpi0: !C3(100@57 io@0x416), !C2(500@1 io@0x414), C1(1000@1 halt), PSS
acpipwrres0 at acpi0: FN00, resource for FAN_
acpitz0 at acpi0: critical temperature is 92 degC
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: LID0
acpiac0 at acpi0: AC unit offline
acpicmos0 at acpi0
acpials0 at acpi0: ALSD
"PNP0C32" at acpi0 not configured
acpiac1 at acpi0: AC unit offline
acpibat0 at acpi0: BAT1 model "DELL TR2F114N" serial 0613 type Lion oem "SANYO"
"SMO8600" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
acpivideo0 at acpi0: OVGA
acpivout0 at acpivideo0: DD02
ipmi: unknown register spacing
ipmi at mainbus0 not configured
cpu0: Enhanced SpeedStep 1662 MHz: speeds: 1666, 1333, 1000 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Pineview DMI" rev 0x02
inteldrm0 at pci0 dev 2 function 0 "Intel Pineview Video" rev 0x02
drm0 at inteldrm0
intagp0 at inteldrm0
agp0 at intagp0: aperture at 0x80000000, size 0x10000000
inteldrm0: msi
inteldrm0: 1366x768, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel Pineview Video" rev 0x02 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi
azalia0: codecs: Conexant/0x5069
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: msi
pci1 at ppb0 bus 1
vendor "Broadcom", unknown product 0x1615 (class multimedia subclass miscellaneous, rev 0x00) at pci1 dev 0 function 0 not configured
ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: msi
pci2 at ppb1 bus 2
athn0 at pci2 dev 0 function 0 "Atheros AR9285" rev 0x01: apic 4 int 17
athn0: AR9285 rev 2 (1T1R), ROM rev 14, address 88:25:2c:fd:c3:56
ppb2 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x02: msi
pci3 at ppb2 bus 3
ppb3 at pci0 dev 28 function 3 "Intel 82801GB PCIE" rev 0x02: msi
pci4 at ppb3 bus 4
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 4 int 16
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 4 int 17
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 4 int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 4 int 19
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 4 int 16
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2
pci5 at ppb4 bus 5
pcib0 at pci0 dev 31 function 0 "Intel NM10 LPC" rev 0x02
ahci0 at pci0 dev 31 function 2 "Intel 82801GR AHCI" rev 0x02: msi, AHCI 1.1
ahci0: port 0: 3.0Gb/s
ahci0: PHY offline on port 1
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, SAMSUNG SSD PB22, VBM9> SCSI3 0/direct fixed naa.50000f0056424431
sd0: 122104MB, 512 bytes/sector, 250069680 sectors, thin
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x02: apic 4 int 17
iic0 at ichiic0
iic0: addr 0x19 0f=32 10=03 11=a6 12=9c 13=42 14=40 15=c0 16=e9 17=47 18=06 1a=30 1b=c0 20=37 23=80 27=ff 28=e0 29=fb 2a=b0 2c=20 2d=42 30=95 31=25 32=97 33=0c 34=95 35=25 36=97 37=0c 8f=32 90=03 91=a6 92=9c 93=42 94=40 95=c0 96=e9 97=47 98=06 9a=30 9b=c0 a0=37 a3=80 a7=ff a8=40 a9=fd aa=80 ac=80 ad=41 b0=95 b1=25 b2=97 b3=0c b4=95 b5=25 b6=97 b7=0c words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000
iic0: addr 0x1e 00=10 01=20 02=03 04=20 06=20 08=20 0a=48 0b=34 0c=33 0e=10 10=10 11=20 12=03 13=fc 14=6e 15=01 16=91 17=fd 18=d5 19=01 1a=48 1b=34 1c=33 1e=10 20=10 21=20 22=03 23=fc 24=6f 25=01 26=91 27=fd 28=da 29=01 2a=48 2b=34 2c=33 2e=10 30=10 31=20 32=03 33=fc 34=71 35=01 36=96 37=fd 38=d0 39=01 3a=48 3b=34 3c=33 3e=10 40=10 41=20 42=03 43=fc 44=71 45=01 46=96 47=fd 48=20 49=03 4a=48 4b=34 4c=33 4e=10 50=10 51=20 52=03 53=fc 54=71 55=01 56=96 57=fd 58=d0 59=01 5a=48 5b=34 5c=33 5e=10 60=10 61=20 62=03 63=fc 64=75 65=01 66=90 67=fd 68=ce 69=01 6a=48 6b=34 6c=33 6e=10 70=10 71=20 72=03 73=fc 74=71 75=01 76=8f 77=fd 78=d2 79=01 7a=48 7b=34 7c=33 7e=10 80=10 81=20 82=03 83=fc 84=77 85=01 86=90 87=fd 88=d6 89=01 8a=48 8b=34 8c=33 8e=10 90=10 91=20 92=03 93=fc 94=71 95=01 96=97 97=fd 98=d1 99=01 9a=48 9b=34 9c=33 9e=10 a0=10 a1=20 a2=03 a3=fc a4=79 a5=01 a6=99 a7=fd a8=cf a9=01 aa=48 ab=34 ac=33 ae=10 b0=10 b1=20 b2=03 b3=fc b4=7e b5=01 b6=8d b7=fd b8=d2 b9=01 ba=48 bb=34 bc=33 be=10 c0=10 c1=20 c2=03 c3=fc c4=74 c5=01 c6=9b c7=fd c8=d0 c9=01 ca=48 cb=34 cc=33 ce=10 d0=10 d1=20 d2=03 d3=fc d4=70 d5=01 d6=9a d7=fd d8=cf d9=01 da=48 db=34 dc=33 de=10 e0=10 e1=20 e2=03 e3=fc e4=6f e5=01 e6=90 e7=fd e8=ce e9=01 ea=48 eb=34 ec=33 ee=10 f0=10 f1=20 f2=03 f3=fc f4=79 f5=01 f6=97 f7=fd f8=ce f9=01 fa=48 fb=34 fc=33 fe=10 words 00=1020 01=2003 02=03fc 03=fc79 04=7901 05=0197 06=97fd 07=fdce
spdmem0 at iic0 addr 0x50: 2GB DDR3 SDRAM PC3-10600 SO-DIMM
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pms0: Synaptics touchpad, firmware 7.4, 0x1e0b1 0xa40000
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: VMX (using slow L1TF mitigation)
uvideo0 at uhub0 port 3 configuration 1 interface 0 "Generic Integrated Webcam" rev 2.00/b2.21 addr 2
video0 at uvideo0
uhidev0 at uhub3 port 1 configuration 1 interface 0 "eGalax Inc. USB TouchController" rev 1.10/10.04 addr 2
uhidev0: iclass 3/1, 5 report ids
ums0 at uhidev0 reportid 1: 2 buttons
wsmouse1 at ums0 mux 0
ums1 at uhidev0 reportid 2: 1 button, tip
wsmouse2 at ums1 mux 0
uhid0 at uhidev0 reportid 3: input=63, output=63, feature=0
ums2 at uhidev0 reportid 4: 1 button, tip
wsmouse3 at ums2 mux 0
uhid1 at uhidev0 reportid 5: input=0, output=0, feature=2
ugen0 at uhub3 port 2 "Atheros Communications AR3011" rev 1.10/2.00 addr 3
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (2158d3102fbd578d.a) swap on sd0b dump on sd0b