NetBSD on Vaio Pro 13 mk2

とある事情で、Vaio Pro 13 mk2をしばらく使う機会があったので、NetBSD/amd64を動かしてみた。7.0_STABLEと7.99.26をUSB stickにインストールしたlive imageで動かした結果を書いておく。

Synapticsのtouchpadも、ハードウェアキーになって使いやすくなったし、Ethernet (有線LAN) も搭載されるようになったので、使いやすくなったと思う。

currentと7.0_STABLEでの共通事項

USB 3.0 (xHCI)がGENERICカーネルでは無効になっているので使えない (おそらく有効にしても、まともには使えない) 以外は、 主要な機能で認識されないものはなかった。 X window systemも特に設定することなく使える (アクセラレーションが効いているかは、確認方法を理解していないため未確認)。 Vaio Pro 11では、起動前にSDカードをスロットに挿入しておかないと、SDカードリーダー自体が認識されなかったが、Vaio Pro 13 mk2では挿入しておかなくても、sdmmc0 at rtsx0として認識される。

VGA端子が搭載されるようになったが、使えるかは確認しなかった。

LCDの明るさを設定できないようであった。NetBSDのACPIの仕組みがこのマシンには合っていないのかもしれない。他にも同じ症状のマシンはあるので、追求しておかないといけないが、できていない。

NetBSD/amd64 currentの場合

Wi-Fiは、iwm(4)として認識され、特にエラー等は発生せずに使用できる。

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016
    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 7.99.26 (GENERIC) #0: Sat Mar 19 19:10:30 JST 2016
 ryo_on@carrotcake:/usr/world/7.99/amd64/obj/sys/arch/amd64/compile/GENERIC
total memory = 3997 MB
avail memory = 3862 MB
cpu_rng: RDSEED
timecounter: Timecounters tick every 10.000 msec
Kernelized RAIDframe activated
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
Generic PC
mainbus0 (root)
ACPI: RSDP 0x00000000000F0120 000024 (v02 VAIO  )
ACPI: XSDT 0x00000000A4FFD1C0 0000CC (v01 Sony   VAIO     20151201 PTEC 00000002)
ACPI: FACP 0x00000000A4FF9000 00010C (v05 Sony   VAIO     20151201 PTEC 00000002)
ACPI: DSDT 0x00000000A4FDD000 017A49 (v02 VAIO   VAIO     20151201 INTL 20120711)
ACPI: FACS 0x00000000A4F9A000 000040
ACPI: SLIC 0x00000000A4FFC000 000176 (v01 Sony   VAIO     20151201 PTEC 00000002)
ACPI: ASF! 0x00000000A4FFB000 0000A5 (v32 VAIO   VAIO     20151201 PTEC 00000002)
ACPI: HPET 0x00000000A4FF8000 000038 (v01 VAIO   VAIO     20151201 PTEC 00000002)
ACPI: LPIT 0x00000000A4FF7000 000094 (v01 VAIO   VAIO     20151201 PTEC 00000002)
ACPI: APIC 0x00000000A4FF6000 000098 (v01 VAIO   VAIO     20151201 PTEC 00000002)
ACPI: MCFG 0x00000000A4FF5000 00003C (v01 VAIO   VAIO     20151201 PTEC 00000002)
ACPI: SSDT 0x00000000A4FDC000 000250 (v02 VAIO   VAIO     20151201 INTL 20120711)
ACPI: SSDT 0x00000000A4FD8000 0037AA (v02 VAIO   VAIO     20151201 INTL 20120711)
ACPI: SSDT 0x00000000A4FD7000 000539 (v02 VAIO   VAIO     20151201 INTL 20120711)
ACPI: SSDT 0x00000000A4FD6000 000B74 (v02 VAIO   VAIO     20151201 INTL 20120711)
ACPI: SSDT 0x00000000A4FD0000 005458 (v02 VAIO   VAIO     20151201 INTL 20120711)
ACPI: SSDT 0x00000000A4FCF000 000394 (v02 VAIO   VAIO     20151201 INTL 20120711)
ACPI: PCCT 0x00000000A4FCE000 00006E (v05 VAIO   VAIO     20151201 PTEC 00000002)
ACPI: SSDT 0x00000000A4FCD000 000AC4 (v02 VAIO   VAIO     20151201 INTL 20120711)
ACPI: UEFI 0x00000000A4FCC000 000042 (v01 VAIO   VAIO     20151201 PTEC 00000002)
ACPI: MSDM 0x00000000A4F73000 000055 (v03 VAIO   VAIO     20151201 PTEC 00000002)
ACPI: BATB 0x00000000A4FCB000 000046 (v01 VAIO   VAIO     20151201 PTEC 00000002)
ACPI: FPDT 0x00000000A4FCA000 000044 (v01 VAIO   VAIO     20151201 PTEC 00000002)
ACPI: SSDT 0x00000000A4FC9000 00004B (v02 VAIO   VAIO     20151201 INTL 20120711)
ACPI: UEFI 0x00000000A4FC8000 00030A (v01 VAIO   VAIO     20151201 PTEC 00000002)
ACPI: 9 ACPI AML tables successfully acquired and loaded
ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 0x20, 40 pins
cpu0 at mainbus0 apid 0
cpu0: Intel(R) Core(TM) i3-5005U CPU @ 2.00GHz, id 0x306d4
cpu1 at mainbus0 apid 1
cpu1: Intel(R) Core(TM) i3-5005U CPU @ 2.00GHz, id 0x306d4
cpu2 at mainbus0 apid 2
cpu2: Intel(R) Core(TM) i3-5005U CPU @ 2.00GHz, id 0x306d4
cpu3 at mainbus0 apid 3
cpu3: Intel(R) Core(TM) i3-5005U CPU @ 2.00GHz, id 0x306d4
acpi0 at mainbus0: Intel ACPICA 20160108
acpi0: X/RSDT: OemId <  Sony,    VAIO,20151201>, AslId 
acpi0: MCFG: segment 0, bus 0-63, address 0x00000000f8000000
ACPI: Dynamic OEM Table Load:
ACPI: SSDT 0xFFFFFE81071DD810 0003D3 (v02 PmRef  Cpu0Cst  00003001 INTL 20120711)
ACPI: Dynamic OEM Table Load:
ACPI: SSDT 0xFFFFFE81072A7010 0005AA (v02 PmRef  ApIst    00003000 INTL 20120711)
ACPI: Dynamic OEM Table Load:
ACPI: SSDT 0xFFFFFE8107201B90 000119 (v02 PmRef  ApCst    00003000 INTL 20120711)
acpi0: SCI interrupting at int 9
timecounter: Timecounter "ACPI-Safe" frequency 3579545 Hz quality 900
hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
timecounter: Timecounter "hpet0" frequency 14318180 Hz quality 2000
acpiec0 at acpi0 (EC0, PNP0C09)
: io 0x62,0x66
acpivga0 at acpi0 (GFX0): ACPI Display Adapter
acpiout0 at acpivga0 (DD01, 0x0100): ACPI Display Output Device
acpiout1 at acpivga0 (DD02, 0x0002): ACPI Display Output Device
acpiout2 at acpivga0 (DD03, 0x0300): ACPI Display Output Device
acpiout3 at acpivga0 (DD04, 0x0301): ACPI Display Output Device
acpiout4 at acpivga0 (DD05, 0x0302): ACPI Display Output Device
acpiout5 at acpivga0 (DD06, 0x0303): ACPI Display Output Device
acpiout6 at acpivga0 (DD07, 0x0304): ACPI Display Output Device
acpiout7 at acpivga0 (DD08, 0x0305): ACPI Display Output Device
acpiout8 at acpivga0 (DD09, 0x0009): ACPI Display Output Device
acpiout9 at acpivga0 (DD0A, 0x000a): ACPI Display Output Device
acpiout10 at acpivga0 (DD0B, 0x000b): ACPI Display Output Device
acpiout11 at acpivga0 (DD0C, 0x000c): ACPI Display Output Device
acpiout12 at acpivga0 (DD0D, 0x000d): ACPI Display Output Device
acpiout13 at acpivga0 (DD0E, 0x000e): ACPI Display Output Device
acpiout14 at acpivga0 (DD0F, 0x000f): ACPI Display Output Device
acpiout15 at acpivga0 (DD1F, 0x0400): ACPI Display Output Device
acpiout15: brightness levels: [0-100]
acpivga0: unknown output device acpiout0
acpivga0: unknown output device acpiout1
acpivga0: unknown output device acpiout2
acpivga0: unknown output device acpiout3
acpivga0: unknown output device acpiout4
acpivga0: unknown output device acpiout5
acpivga0: unknown output device acpiout6
acpivga0: unknown output device acpiout7
acpivga0: unknown output device acpiout8
acpivga0: unknown output device acpiout9
acpivga0: unknown output device acpiout10
acpivga0: unknown output device acpiout11
acpivga0: unknown output device acpiout12
acpivga0: unknown output device acpiout13
acpivga0: unknown output device acpiout14
acpivga0: connected output devices:
acpivga0:   0x0400 (acpiout15): Unknown Output Device, head 0
FWHD (INT0800) at acpi0 not configured
LDRC (PNP0C02) at acpi0 not configured
attimer1 at acpi0 (TIMR, PNP0100): io 0x40-0x43,0x50-0x53 irq 0
CWDT (INT3F0D) at acpi0 not configured
pckbc1 at acpi0 (PS2K, VAI0002) (kbd port): io 0x60,0x64 irq 1
pckbc2 at acpi0 (PS2M, SYN2711) (aux port): irq 12
SIRC (PNP0C02) at acpi0 not configured
PDRC (PNP0C02) at acpi0 not configured
acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
acpilid0 at acpi0 (LID0, PNP0C0D): ACPI Lid Switch
acpiacad0 at acpi0 (ACAD, ACPI0003): ACPI AC Adapter
acpibat0 at acpi0 (BAT1, PNP0C0A-1): ACPI Battery
acpibat0: VAIO Corp.  LION rechargeable battery
acpibat0: granularity: low->warn 0.064 Wh, warn->full 0.064 Wh
PEPD (INT33A1) at acpi0 not configured
PTID (INT340E) at acpi0 not configured
PCCD (INT340F) at acpi0 not configured
acpitz0 at acpi0 (THRM): cpu0 cpu1 cpu2 cpu3
acpitz0: levels: critical 130.0 C, hot 102.0 C, passive 130.0 C, passive cooling
acpiwmi0 at acpi0 (WMTF, PNP0C14-TBFP): ACPI WMI Interface
acpiwmibus at acpiwmi0 not configured
ACPI: Enabled 5 GPEs in block 00 to 7F
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc1 (aux slot)
pms0: Synaptics touchpad version 8.1
pms0: Extended W mode, Palm detect, Multi-finger Report, Multi-finger
pckbc1: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
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: vendor 8086 product 1604 (rev. 0x09)
i915drmkms0 at pci0 dev 2 function 0: vendor 8086 product 1616 (rev. 0x09)
drm: Memory usable by graphics device = 4096M
drm: Supports vblank timestamp caching Rev 2 (21.10.2013).
drm: Driver supports precise vblank timestamp query.
i915drmkms0: interrupting at ioapic0 pin 16 (i915)
intelfb0 at i915drmkms0
i915drmkms0: info: registered panic notifier
i915drmkms0: More than 8 outputs detected via ACPI
intelfb0: framebuffer at 0xffff800047669000, size 1920x1080, depth 32, stride 7680
wsdisplay0 at intelfb0 kbdmux 1: console (default, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
hdaudio0 at pci0 dev 3 function 0: HD Audio Controller
hdaudio0: interrupting at ioapic0 pin 16
hdaudio0: timeout leaving reset state
hdaudio0: device driver failed to attach
vendor 8086 product 9cb1 (USB serial bus, xHCI, revision 0x03) at pci0 dev 20 function 0 not configured
vendor 8086 product 9cba (miscellaneous communications, revision 0x03) at pci0 dev 22 function 0 not configured
hdaudio1 at pci0 dev 27 function 0: HD Audio Controller
hdaudio1: interrupting at ioapic0 pin 22
hdafg0 at hdaudio1: vendor 10ec product 0233
hdafg0: DAC00 2ch: Speaker [Built-In], HP Out [Jack]
hdafg0: ADC01 2ch: Mic In [Jack]
hdafg0: ADC02 2ch: Mic In [Built-In]
hdafg0: 2ch/2ch 44100Hz 48000Hz 96000Hz 192000Hz PCM16 PCM20 PCM24 AC3
audio0 at hdafg0: full duplex, playback, capture, mmap, independent
ppb0 at pci0 dev 28 function 0: vendor 8086 product 9c98 (rev. 0xe3)
ppb0: PCI Express capability version 2  x1 @ 5.0GT/s
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
ppb1 at pci0 dev 28 function 2: vendor 8086 product 9c94 (rev. 0xe3)
ppb1: PCI Express capability version 2  x1 @ 5.0GT/s
ppb1: link is x1 @ 2.5GT/s
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
iwm0 at pci2 dev 0 function 0: vendor 8086 product 095a (rev. 0x59)
iwm0: interrupting at msi0 vec 0
ppb2 at pci0 dev 28 function 3: vendor 8086 product 9c96 (rev. 0xe3)
ppb2: PCI Express capability version 2  x1 @ 5.0GT/s
ppb2: link is x1 @ 2.5GT/s
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
rtsx0 at pci3 dev 0 function 0: vendor 10ec product 5227 (rev. 0x01)
rtsx0: interrupting at msi1 vec 0
sdmmc0 at rtsx0
ppb3 at pci0 dev 28 function 4: vendor 8086 product 9c90 (rev. 0xe3)
ppb3: PCI Express capability version 2  x1 @ 5.0GT/s
ppb3: link is x1 @ 2.5GT/s
pci4 at ppb3 bus 8
pci4: i/o space, memory space enabled, rd/line, wr/inv ok
re0 at pci4 dev 0 function 0: RealTek 8168/8111 PCIe Gigabit Ethernet (rev. 0x0c)
re0: interrupting at msi2 vec 0
re0: Ethernet address XX:XX:XX:XX:XX:XX
re0: using 256 tx descriptors
rgephy0 at re0 phy 7: RTL8251 1000BASE-T media interface, rev. 0
rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto
ehci0 at pci0 dev 29 function 0: vendor 8086 product 9ca6 (rev. 0x03)
ehci0: interrupting at ioapic0 pin 23
ehci0: EHCI version 1.0
usb0 at ehci0: USB revision 2.0
ichlpcib0 at pci0 dev 31 function 0: vendor 8086 product 9cc5 (rev. 0x03)
timecounter: Timecounter "ichlpcib0" frequency 3579545 Hz quality 1000
ichlpcib0: 24-bit timer
tco0 at ichlpcib0: TCO (watchdog) timer configured.
tco0: Min/Max interval 1/367 seconds
gpio0 at ichlpcib0: 64 pins
ahcisata0 at pci0 dev 31 function 2: vendor 8086 product 9c83 (rev. 0x03)
ahcisata0: interrupting at ioapic0 pin 19
ahcisata0: 64-bit DMA
ahcisata0: AHCI revision 1.30, 2 ports, 32 slots, CAP 0xc734ff01
atabus0 at ahcisata0 channel 0
ichsmb0 at pci0 dev 31 function 3: vendor 8086 product 9ca2 (rev. 0x03)
ichsmb0: interrupting at ioapic0 pin 18
iic0 at ichsmb0: I2C bus
isa0 at ichlpcib0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
attimer1: attached to pcppi0
acpicpu0 at cpu0: ACPI CPU
acpicpu0: C1: FFH, lat   1 us, pow  1000 mW
acpicpu0: C2: FFH, lat 230 us, pow   200 mW
acpicpu0: C3: FFH, lat 233 us, pow   200 mW
acpicpu0: P0: FFH, lat  10 us, pow 15000 mW, 2001 MHz, turbo boost
acpicpu0: P1: FFH, lat  10 us, pow 15000 mW, 2000 MHz
acpicpu0: P2: FFH, lat  10 us, pow 14088 mW, 1900 MHz
acpicpu0: P3: FFH, lat  10 us, pow 13193 mW, 1800 MHz
acpicpu0: P4: FFH, lat  10 us, pow 12317 mW, 1700 MHz
acpicpu0: P5: FFH, lat  10 us, pow 11459 mW, 1600 MHz
acpicpu0: P6: FFH, lat  10 us, pow 10617 mW, 1500 MHz
acpicpu0: P7: FFH, lat  10 us, pow  9796 mW, 1400 MHz
acpicpu0: P8: FFH, lat  10 us, pow  8199 mW, 1200 MHz
acpicpu0: P9: FFH, lat  10 us, pow  7426 mW, 1100 MHz
acpicpu0: P10: FFH, lat  10 us, pow  6670 mW, 1000 MHz
acpicpu0: P11: FFH, lat  10 us, pow  5932 mW,  900 MHz
acpicpu0: P12: FFH, lat  10 us, pow  5209 mW,  800 MHz
acpicpu0: P13: FFH, lat  10 us, pow  4502 mW,  700 MHz
acpicpu0: P14: FFH, lat  10 us, pow  3812 mW,  600 MHz
acpicpu0: P15: FFH, lat  10 us, pow  3137 mW,  500 MHz
acpicpu0: T0: I/O, lat   1 us, pow     0 mW, 100 %
acpicpu0: T1: I/O, lat   1 us, pow     0 mW,  88 %
acpicpu0: T2: I/O, lat   1 us, pow     0 mW,  76 %
acpicpu0: T3: I/O, lat   1 us, pow     0 mW,  64 %
acpicpu0: T4: I/O, lat   1 us, pow     0 mW,  52 %
acpicpu0: T5: I/O, lat   1 us, pow     0 mW,  40 %
acpicpu0: T6: I/O, lat   1 us, pow     0 mW,  28 %
acpicpu0: T7: I/O, lat   1 us, pow     0 mW,  16 %
coretemp0 at cpu0: thermal sensor, 1 C resolution, Tjmax=105
acpicpu1 at cpu1: ACPI CPU
acpicpu2 at cpu2: ACPI CPU
coretemp1 at cpu2: thermal sensor, 1 C resolution, Tjmax=105
acpicpu3 at cpu3: ACPI CPU
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "TSC" frequency 1995527000 Hz quality 3000
acpiacad0: AC adapter online.
IPsec: Initialized Security Association Processing.
uhub0 at usb0: vendor 8086 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ahcisata0 port 0: device present, speed: 6.0Gb/s
acpibat0: VAIO Corp.  LION rechargeable battery
acpibat0: granularity: low->warn 0.064 Wh, warn->full 0.064 Wh
wd0 at atabus0 drive 0
wd0: 
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 119 GB, 248085 cyl, 16 head, 63 sec, 512 bytes/sect x 250069680 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA)
uhub1 at uhub0 port 1: vendor 8087 product 8001, class 9/0, rev 2.00/0.03, addr 2
uhub1: single transaction translator
uhub1: 8 ports with 8 removable, self powered
umass0 at uhub1 port 2 configuration 1 interface 0
umass0: SanDisk Extreme, rev 2.10/0.10, addr 3
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0:  disk removable
sd0(umass0:0:0:0):  Check Condition on CDB: 0x00 00 00 00 00 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Logical Unit Is in Process Of Becoming Ready

sd0: drive offline
sd0: fabricating a geometry
uvideo0 at uhub1 port 5 configuration 1 interface 0: Chicony Electronics Co.,Ltd. Front Camera, rev 2.01/58.30, addr 4
video0 at uvideo0: Chicony Electronics Co.,Ltd. Front Camera, rev 2.01/58.30, addr 4
ubt0 at uhub1 port 6
ubt0: vendor 8087 product 0a2a, rev 2.01/0.01, addr 5
pad0: outputs: 44100Hz, 16-bit, stereo
audio1 at pad0: half duplex, playback, capture
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs
kern.module.path=/stand/amd64/7.99.26/modules
iwm0: hw rev: 0x210, fw ver 25.228 (API ver 9), address XX:XX:XX:XX:XX:XX
iwm0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
iwm0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
iwm0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps

NetBSD/amd64 7.0_STABLEの場合

Wi-Fiは認識されない。iwm(4)は7.0_STABLEには存在しないし、MSI/MSI-Xサポートが7.0_STABLEには存在しないので、移植するのは難しいのではないだろうか。

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015
    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 7.0_STABLE (GENERIC) #0: Sat Mar 19 20:36:53 JST 2016
 ryo_on@carrotcake:/usr/world/7/amd64/obj/sys/arch/amd64/compile/GENERIC
total memory = 3997 MB
avail memory = 3864 MB
kern.module.path=/stand/amd64/7.0/modules
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
Generic PC
mainbus0 (root)
ACPI: RSDP 0xf0120 000024 (v02   VAIO)
ACPI: XSDT 0xa4ffd1c0 0000CC (v01   Sony     VAIO 20151201 PTEC 00000002)
ACPI: FACP 0xa4ff9000 00010C (v05   Sony     VAIO 20151201 PTEC 00000002)
ACPI: DSDT 0xa4fdd000 017A49 (v02   VAIO     VAIO 20151201 INTL 20120711)
ACPI: FACS 0xa4f9a000 000040
ACPI: SLIC 0xa4ffc000 000176 (v01   Sony     VAIO 20151201 PTEC 00000002)
ACPI: ASF! 0xa4ffb000 0000A5 (v32   VAIO     VAIO 20151201 PTEC 00000002)
ACPI: HPET 0xa4ff8000 000038 (v01   VAIO     VAIO 20151201 PTEC 00000002)
ACPI: LPIT 0xa4ff7000 000094 (v01   VAIO     VAIO 20151201 PTEC 00000002)
ACPI: APIC 0xa4ff6000 000098 (v01   VAIO     VAIO 20151201 PTEC 00000002)
ACPI: MCFG 0xa4ff5000 00003C (v01   VAIO     VAIO 20151201 PTEC 00000002)
ACPI: SSDT 0xa4fdc000 000250 (v02   VAIO     VAIO 20151201 INTL 20120711)
ACPI: SSDT 0xa4fd8000 0037AA (v02   VAIO     VAIO 20151201 INTL 20120711)
ACPI: SSDT 0xa4fd7000 000539 (v02   VAIO     VAIO 20151201 INTL 20120711)
ACPI: SSDT 0xa4fd6000 000B74 (v02   VAIO     VAIO 20151201 INTL 20120711)
ACPI: SSDT 0xa4fd0000 005458 (v02   VAIO     VAIO 20151201 INTL 20120711)
ACPI: SSDT 0xa4fcf000 000394 (v02   VAIO     VAIO 20151201 INTL 20120711)
ACPI: PCCT 0xa4fce000 00006E (v05   VAIO     VAIO 20151201 PTEC 00000002)
ACPI: SSDT 0xa4fcd000 000AC4 (v02   VAIO     VAIO 20151201 INTL 20120711)
ACPI: UEFI 0xa4fcc000 000042 (v01   VAIO     VAIO 20151201 PTEC 00000002)
ACPI: MSDM 0xa4f73000 000055 (v03   VAIO     VAIO 20151201 PTEC 00000002)
ACPI: BATB 0xa4fcb000 000046 (v01   VAIO     VAIO 20151201 PTEC 00000002)
ACPI: FPDT 0xa4fca000 000044 (v01   VAIO     VAIO 20151201 PTEC 00000002)
ACPI: SSDT 0xa4fc9000 00004B (v02   VAIO     VAIO 20151201 INTL 20120711)
ACPI: UEFI 0xa4fc8000 00030A (v01   VAIO     VAIO 20151201 PTEC 00000002)
ACPI: All ACPI Tables successfully acquired
ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 0x20, 40 pins
cpu0 at mainbus0 apid 0: Intel(R) Core(TM) i3-5005U CPU @ 2.00GHz, id 0x306d4
cpu1 at mainbus0 apid 1: Intel(R) Core(TM) i3-5005U CPU @ 2.00GHz, id 0x306d4
cpu2 at mainbus0 apid 2: Intel(R) Core(TM) i3-5005U CPU @ 2.00GHz, id 0x306d4
cpu3 at mainbus0 apid 3: Intel(R) Core(TM) i3-5005U CPU @ 2.00GHz, id 0x306d4
acpi0 at mainbus0: Intel ACPICA 20131218
acpi0: X/RSDT: OemId <  Sony,    VAIO,20151201>, AslId 
ACPI: SSDT 0xa4d7dc18 0003D3 (v02  PmRef  Cpu0Cst 00003001 INTL 20120711)
ACPI: SSDT 0x0 0003D3 (v02  PmRef  Cpu0Cst 00003001 INTL 20120711)
ACPI: SSDT 0xa4d7d618 0005AA (v02  PmRef    ApIst 00003000 INTL 20120711)
ACPI: SSDT 0x0 0005AA (v02  PmRef    ApIst 00003000 INTL 20120711)
ACPI: SSDT 0xa4d7cd98 000119 (v02  PmRef    ApCst 00003000 INTL 20120711)
ACPI: SSDT 0x0 000119 (v02  PmRef    ApCst 00003000 INTL 20120711)
acpi0: SCI interrupting at int 9
timecounter: Timecounter "ACPI-Safe" frequency 3579545 Hz quality 900
hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
timecounter: Timecounter "hpet0" frequency 14318180 Hz quality 2000
acpiec0 at acpi0 (EC0, PNP0C09)
: io 0x62,0x66
acpivga0 at acpi0 (GFX0): ACPI Display Adapter
acpiout0 at acpivga0 (DD01, 0x0100): ACPI Display Output Device
acpiout1 at acpivga0 (DD02, 0x0002): ACPI Display Output Device
acpiout2 at acpivga0 (DD03, 0x0300): ACPI Display Output Device
acpiout3 at acpivga0 (DD04, 0x0301): ACPI Display Output Device
acpiout4 at acpivga0 (DD05, 0x0302): ACPI Display Output Device
acpiout5 at acpivga0 (DD06, 0x0303): ACPI Display Output Device
acpiout6 at acpivga0 (DD07, 0x0304): ACPI Display Output Device
acpiout7 at acpivga0 (DD08, 0x0305): ACPI Display Output Device
acpiout8 at acpivga0 (DD09, 0x0009): ACPI Display Output Device
acpiout9 at acpivga0 (DD0A, 0x000a): ACPI Display Output Device
acpiout10 at acpivga0 (DD0B, 0x000b): ACPI Display Output Device
acpiout11 at acpivga0 (DD0C, 0x000c): ACPI Display Output Device
acpiout12 at acpivga0 (DD0D, 0x000d): ACPI Display Output Device
acpiout13 at acpivga0 (DD0E, 0x000e): ACPI Display Output Device
acpiout14 at acpivga0 (DD0F, 0x000f): ACPI Display Output Device
acpiout15 at acpivga0 (DD1F, 0x0400): ACPI Display Output Device
acpiout15: brightness levels: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
acpivga0: unknown output device acpiout0
acpivga0: unknown output device acpiout1
acpivga0: unknown output device acpiout2
acpivga0: unknown output device acpiout3
acpivga0: unknown output device acpiout4
acpivga0: unknown output device acpiout5
acpivga0: unknown output device acpiout6
acpivga0: unknown output device acpiout7
acpivga0: unknown output device acpiout8
acpivga0: unknown output device acpiout9
acpivga0: unknown output device acpiout10
acpivga0: unknown output device acpiout11
acpivga0: unknown output device acpiout12
acpivga0: unknown output device acpiout13
acpivga0: unknown output device acpiout14
acpivga0: connected output devices:
acpivga0:   0x0400 (acpiout15): Unknown Output Device, head 0
FWHD (INT0800) at acpi0 not configured
LDRC (PNP0C02) at acpi0 not configured
attimer1 at acpi0 (TIMR, PNP0100): io 0x40-0x43,0x50-0x53 irq 0
CWDT (INT3F0D) at acpi0 not configured
pckbc1 at acpi0 (PS2K, VAI0002) (kbd port): io 0x60,0x64 irq 1
pckbc2 at acpi0 (PS2M, SYN2711) (aux port): irq 12
SIRC (PNP0C02) at acpi0 not configured
PDRC (PNP0C02) at acpi0 not configured
acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
acpilid0 at acpi0 (LID0, PNP0C0D): ACPI Lid Switch
acpiacad0 at acpi0 (ACAD, ACPI0003): ACPI AC Adapter
acpibat0 at acpi0 (BAT1, PNP0C0A-1): ACPI Battery
acpibat0: VAIO Corp.  LION rechargeable battery
acpibat0: granularity: low->warn 0.064 Wh, warn->full 0.064 Wh
PTID (INT340E) at acpi0 not configured
PCCD (INT340F) at acpi0 not configured
acpitz0 at acpi0 (THRM): cpu0 cpu1 cpu2 cpu3
acpitz0: levels: critical 130.0 C, hot 102.0 C, passive 130.0 C, passive cooling
acpiwmi0 at acpi0 (WMTF, PNP0C14-TBFP): ACPI WMI Interface
acpiwmibus at acpiwmi0 not configured
ACPI: Enabled 5 GPEs in block 00 to 7F
ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S1_] (20131218/hwxface-646)
ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20131218/hwxface-646)
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc1 (aux slot)
pms0: Synaptics touchpad version 8.1
pms0: Extended W mode, Palm detect, Multi-finger Report, Multi-finger
pckbc1: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
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: vendor 0x8086 product 0x1604 (rev. 0x09)
i915drmkms0 at pci0 dev 2 function 0: vendor 0x8086 product 0x1616 (rev. 0x09)
drm: Memory usable by graphics device = 4096M
drm: Supports vblank timestamp caching Rev 2 (21.10.2013).
drm: Driver supports precise vblank timestamp query.
i915drmkms0: interrupting at ioapic0 pin 16 (i915)
intelfb0 at i915drmkms0
i915drmkms0: info: registered panic notifier
i915drmkms0: More than 8 outputs detected via ACPI
intelfb0: framebuffer at 0xffff80004766d000, size 1920x1080, depth 32, stride 7680
wsdisplay0 at intelfb0 kbdmux 1: console (default, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
hdaudio0 at pci0 dev 3 function 0: HD Audio Controller
hdaudio0: interrupting at ioapic0 pin 16
hdaudio0: timeout leaving reset state
hdaudio0: device driver failed to attach
vendor 0x8086 product 0x9cb1 (USB serial bus, xHCI, revision 0x03) at pci0 dev 20 function 0 not configured
vendor 0x8086 product 0x9cba (miscellaneous communications, revision 0x03) at pci0 dev 22 function 0 not configured
hdaudio1 at pci0 dev 27 function 0: HD Audio Controller
hdaudio1: interrupting at ioapic0 pin 22
hdafg0 at hdaudio1: Realtek product 0x0233
hdafg0: DAC00 2ch: Speaker [Built-In], HP Out [Jack]
hdafg0: ADC01 2ch: Mic In [Jack]
hdafg0: ADC02 2ch: Mic In [Built-In]
hdafg0: 2ch/2ch 44100Hz 48000Hz 96000Hz 192000Hz PCM16 PCM20 PCM24 AC3
audio0 at hdafg0: full duplex, playback, capture, mmap, independent
ppb0 at pci0 dev 28 function 0: vendor 0x8086 product 0x9c98 (rev. 0xe3)
ppb0: PCI Express capability version 2  x1 @ 5.0GT/s
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
ppb1 at pci0 dev 28 function 2: vendor 0x8086 product 0x9c94 (rev. 0xe3)
ppb1: PCI Express capability version 2  x1 @ 5.0GT/s
ppb1: link is x1 @ 2.5GT/s
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
vendor 0x8086 product 0x095a (miscellaneous network, revision 0x59) at pci2 dev 0 function 0 not configured
ppb2 at pci0 dev 28 function 3: vendor 0x8086 product 0x9c96 (rev. 0xe3)
ppb2: PCI Express capability version 2  x1 @ 5.0GT/s
ppb2: link is x1 @ 2.5GT/s
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
rtsx0 at pci3 dev 0 function 0: vendor 0x10ec product 0x5227 (rev. 0x01)
rtsx0: interrupting at ioapic0 pin 19
sdmmc0 at rtsx0
ppb3 at pci0 dev 28 function 4: vendor 0x8086 product 0x9c90 (rev. 0xe3)
ppb3: PCI Express capability version 2  x1 @ 5.0GT/s
ppb3: link is x1 @ 2.5GT/s
pci4 at ppb3 bus 8
pci4: i/o space, memory space enabled, rd/line, wr/inv ok
re0 at pci4 dev 0 function 0: RealTek 8168/8111 PCIe Gigabit Ethernet (rev. 0x0c)
re0: interrupting at ioapic0 pin 16
re0: Unknown revision (0x4c000000)
re0: Ethernet address XX:XX:XX:XX:XX:XX
re0: using 256 tx descriptors
rgephy0 at re0 phy 7: RTL8251 1000BASE-T media interface, rev. 0
rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto
ehci0 at pci0 dev 29 function 0: vendor 0x8086 product 0x9ca6 (rev. 0x03)
ehci0: interrupting at ioapic0 pin 23
ehci0: EHCI version 1.0
usb0 at ehci0: USB revision 2.0
pcib0 at pci0 dev 31 function 0: vendor 0x8086 product 0x9cc5 (rev. 0x03)
ahcisata0 at pci0 dev 31 function 2: vendor 0x8086 product 0x9c83 (rev. 0x03)
ahcisata0: interrupting at ioapic0 pin 19
ahcisata0: 64-bit DMA
ahcisata0: AHCI revision 1.30, 2 ports, 32 slots, CAP 0xc734ff01
atabus0 at ahcisata0 channel 0
ichsmb0 at pci0 dev 31 function 3: vendor 0x8086 product 0x9ca2 (rev. 0x03)
ichsmb0: interrupting at ioapic0 pin 18
iic0 at ichsmb0: I2C bus
isa0 at pcib0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
attimer1: attached to pcppi0
acpicpu0 at cpu0: ACPI CPU
acpicpu0: C1: FFH, lat   1 us, pow  1000 mW
acpicpu0: C2: FFH, lat 230 us, pow   200 mW
acpicpu0: C3: FFH, lat 233 us, pow   200 mW
acpicpu0: P0: FFH, lat  10 us, pow 15000 mW, 2001 MHz, turbo boost
acpicpu0: P1: FFH, lat  10 us, pow 15000 mW, 2000 MHz
acpicpu0: P2: FFH, lat  10 us, pow 14088 mW, 1900 MHz
acpicpu0: P3: FFH, lat  10 us, pow 13193 mW, 1800 MHz
acpicpu0: P4: FFH, lat  10 us, pow 12317 mW, 1700 MHz
acpicpu0: P5: FFH, lat  10 us, pow 11459 mW, 1600 MHz
acpicpu0: P6: FFH, lat  10 us, pow 10617 mW, 1500 MHz
acpicpu0: P7: FFH, lat  10 us, pow  9796 mW, 1400 MHz
acpicpu0: P8: FFH, lat  10 us, pow  8199 mW, 1200 MHz
acpicpu0: P9: FFH, lat  10 us, pow  7426 mW, 1100 MHz
acpicpu0: P10: FFH, lat  10 us, pow  6670 mW, 1000 MHz
acpicpu0: P11: FFH, lat  10 us, pow  5932 mW,  900 MHz
acpicpu0: P12: FFH, lat  10 us, pow  5209 mW,  800 MHz
acpicpu0: P13: FFH, lat  10 us, pow  4502 mW,  700 MHz
acpicpu0: P14: FFH, lat  10 us, pow  3812 mW,  600 MHz
acpicpu0: P15: FFH, lat  10 us, pow  3137 mW,  500 MHz
acpicpu0: T0: I/O, lat   1 us, pow     0 mW, 100 %
acpicpu0: T1: I/O, lat   1 us, pow     0 mW,  88 %
acpicpu0: T2: I/O, lat   1 us, pow     0 mW,  76 %
acpicpu0: T3: I/O, lat   1 us, pow     0 mW,  64 %
acpicpu0: T4: I/O, lat   1 us, pow     0 mW,  52 %
acpicpu0: T5: I/O, lat   1 us, pow     0 mW,  40 %
acpicpu0: T6: I/O, lat   1 us, pow     0 mW,  28 %
acpicpu0: T7: I/O, lat   1 us, pow     0 mW,  16 %
coretemp0 at cpu0: thermal sensor, 1 C resolution, Tjmax=105
acpicpu1 at cpu1: ACPI CPU
acpicpu2 at cpu2: ACPI CPU
coretemp1 at cpu2: thermal sensor, 1 C resolution, Tjmax=105
acpicpu3 at cpu3: ACPI CPU
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "TSC" frequency 1995491680 Hz quality 3000
acpiacad0: AC adapter online.
IPsec: Initialized Security Association Processing.
uhub0 at usb0: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ahcisata0 port 0: device present, speed: 6.0Gb/s
acpibat0: VAIO Corp.  LION rechargeable battery
acpibat0: granularity: low->warn 0.064 Wh, warn->full 0.064 Wh
wd0 at atabus0 drive 0
wd0: 
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 119 GB, 248085 cyl, 16 head, 63 sec, 512 bytes/sect x 250069680 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA)
uhub1 at uhub0 port 1: vendor 0x8087 product 0x8001, class 9/0, rev 2.00/0.03, addr 2
uhub1: single transaction translator
uhub1: 8 ports with 8 removable, self powered
umass0 at uhub1 port 4 configuration 1 interface 0
umass0: SanDisk Extreme, rev 2.10/0.10, addr 3
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0:  disk removable
sd0(umass0:0:0:0):  Check Condition on CDB: 0x00 00 00 00 00 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Logical Unit Is in Process Of Becoming Ready

sd0: drive offline
sd0: fabricating a geometry
uvideo0 at uhub1 port 5 configuration 1 interface 0: Chicony Electronics Co.,Ltd. Front Camera, rev 2.01/58.30, addr 4
video0 at uvideo0: Chicony Electronics Co.,Ltd. Front Camera, rev 2.01/58.30, addr 4
ubt0 at uhub1 port 6
ubt0: vendor 0x8087 product 0x0a2a, rev 2.01/0.01, addr 5
Kernelized RAIDframe activated
pad0: outputs: 44100Hz, 16-bit, stereo
audio1 at pad0: half duplex, playback, capture
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs

Go言語で書かれたプログラムでHTTP/HTTPSプロキシーサーバーを指定する方法

kintone on Cybozu.comのデータをダウンロードしたり、アップロードしたりするためのソフトウェアとして、cli-kintoneというものが公開されている。 これは、subtableもexport/importできる大変に便利なソフトウェアである。

http/httpsなプロキシーサーバーの設置されている環境では、プロキシーサーバーを経由してcybozu.comにアクセスしないといけない。 しかし、Go言語で、プロキシーサーバーを使うようなコードの例が見当たらない。

良く調べてみると、Go言語で書かれたプログラムは、標準的に環境変数で指定されたプロキシーサーバーを指定できることが分かった。

HTTP_PROXY=http://username:password@proxy.local:8080/
HTTPS_PROXY=https://username:password@proxy.local:8080/

のように設定すれば良い。おそらくどちらか適切な方だけで良いはずだ。 これは、Windows環境でも同じで、システム環境変数かユーザー環境変数に指定しておけば良い。 ちなみに、環境変数NO_PROXYが存在すると、プロキシーサーバーは使用しないらしい。

Windows 11 Pro 24H2からSambaのguest ok = yesな共有フォルダーへアクセスする

Microsoft Windows 11 Proを動かしているマシンで、sambaでguest ok = yesにしている共有フォルダーにアクセスしていた。 Windows 11を24H2にアップデートしたところ、その共有フォルダーを開こうとすると、ログインを求められ、...