--- wikisrc/laptops.mdwn 2020/06/10 15:06:55 1.18 +++ wikisrc/laptops.mdwn 2020/09/06 23:52:46 1.23 @@ -1,5 +1,6 @@ This page lists and links to pages about laptops, notebooks, -and portable computers that work (or do not work) well with NetBSD. +and portable computers that work well with NetBSD, are of interest +to developers, and are standardized or easy to find. For i386-based netbooks also see . @@ -8,98 +9,99 @@ For i386-based netbooks also see --- -# Acer +# Generic laptop support -## Acer Aspire One 532h-2588 +## Graphics -As of current in July 2010: -Missing speedstep support (reed has patch for this). -No ethernet (Atheros AR8132 PCI-E Fast Ethernet). -No wireless (Atheros AR9285 Wireless LAN 802.11 a/b/g/n). +NetBSD 9.0 supports Intel integrated graphics up to Kaby Lake, +Nvidia graphics up to Maxwell, and AMD graphics up to GCNv1. ---- - -# Apple +Anything newer than this will work, but will use `llvmpipe` +instead of hardware acceleration for OpenGL. -## iBook G3/600 with Radeon 7500 16MB VRAM +The support includes connecting external monitors over HDMI, +DisplayPort, and DisplayPort over USB-C. -Used since NetBSD 1.6 or so. -Works nice with NetBSD/macppc. -No suspend support on NetBSD. -No modem support (some usb attached modem attaching as [[!template -id=man name="ugen" section="4"]]. -No WPA on NetBSD with [[!template id=man name="wi" section="4"]] (in contrast -to Mac OS X). -NetBSD/5.1_STABLE has problem that keyboard doesn't -work in xdm after logout; solved by forcing a xdm restart upon -logout. +For the Intel driver, there may be slight graphical corruptions +when using X11 without a compositor. Xfce/MATE include their own +compositors, but lightweight window managers can benefit from +having `picom` running. +## CPU frequency adjustment -## MacBook Air 11 inch (mid 2012) +On most ACPI and some non-ACPI laptops, the `sysutils/estd` package +can be used to automatically adjust the CPU frequency depending on +system load, and potentially prolong battery life. This modifies the +`frequency` variables exposed by +[[!template id=man name="sysctl" section="8"]]. -NetBSD/amd64 6.99.11 works without some devices (for example, internal WiFi). -In detail, please see [[How to install NetBSD/amd64 current on MacBook Air 11 inch (mid 2012)|/users/ryoon/how_to_install_netbsd_amd64_to_macbook_air_11_inch]] +## Suspend +On ACPI systems, suspend-to-RAM is supported through +`sysctl hw.acpi.sleep.state=3`. This can be triggered through various +events (such as lid close) with +[[!template id=man name="powerd" section="8"]]. ---- +Suspend on NetBSD currently seems to work best on Thinkpads. -# Dell +## Input -## Dell Latitude D610 +Many x86 laptops use Synaptics touchpads over an emulated PS/2 interface, +which is supported through [[!template id=man name="pms" section="4"]], +with various adjustable Synaptics-specific sysctl variables. -NetBSD/i386 5.0.0. -Audio works (i82801FB (ICH6)). -Wireless with iwi (vendor 0x8086 product 0x4220). -For X11, using xf86-video-intel-2.2.1nb1 package. - ---- +## WiFi -# Fujitsu - -## Fujitsu FMV-BIBLO LOOX P70WN - -NetBSD/i386 5.99.55. -Wireless with wpi works properly only when ACPI is disabled with "boot netbsd -2". - ---- +Many x86 laptops with Intel processors will have WiFi cards supported +by the +[[!template id=man name="iwm" section="4"]] driver, or +[[!template id=man name="iwn" section="4"]] for older models. +Atheros 11n miniPCIe cards are supported by the +[[!template id=man name="athn" section="4"]] driver. -# HP / Hewlett Packard +See the +[[!template id=man name="afterboot" section="8"]] man page for details +on connecting to a WPA network. For connecting to a non-WPA network, +simply specify `ssid networkname up` in +[[!template id=man name="ifconfig" section="8"]], and make sure +[[!template id=man name="dhcpcd" section="8"]] is running. -## HP nc6120 +USB 11n WiFi adapters such as +[[!template id=man name="urtwn" section="4"]] and +[[!template id=man name="run" section="4"]] can also be used, +and most/all generic USB ethernet adapters are also well supported. +For a fairly complete list, see +[[!template id=man name="usb" section="4"]]. -5.1 did not have a working X. +Unfortunately, WiFi hardware is not particularly standardized compared +to most other aspects of modern laptops. -Almost everything works with -current: sound, wireless, X11. -Did not try resume/suspend. -Did not try the memory card slot recently. +## Audio -5.1 and -current have wired ethernet stability problems. -It gets watchdog timeouts and resets. +Essentially all modern x86 laptops use the +[[!template id=man name="hdaudio" section="4"]] driver. -X11 has a stability problem where a program can make total garbage on the -screen (except the mouse pointer) and lock up the server. Repeatable with a -certain image viewer which shows very big images. The machine does not -freeze: power off button powers down smoothly, (but can not switch consoles to -try to kill the X server). +In the case that switching between speakers and the headphone port +is not handled automatically by the hardware, the `dacsel` +[[!template id=man name="mixerctl" section="1"]] variable can be +modified. -## HP Pavilion laptop, dv9750 +## Sensors -NetBSD 5.1, audio, webcam, Ethernet, kb/touchpad work fine. -Broadcom Wireless 4312 does not work. - -## HP ProBook 4310s - -NetBSD i386 5.99.55 -Audio works (ADI AD1984A). -Wireless with iwn (vendor 0x8086 product 0x4232). -No ethernet (vendor 0x11ab product 0x436c). -SDHC at sd*, Bluetooth. -Doesn't work with NetBSD 5. +Regardless of whether the system is ACPI, NetBSD will +expose all sensors (e.g. for temperature and battery) +via [[!template id=man name="envstat" section="8"]]. --- # IBM / Lenovo +The [[!template id=man name="thinkpad" section="4"]] driver provides +support for various Thinkpad-specific sensors and function keys. + +A number of NetBSD developers use Thinkpads to hack on NetBSD +and for everyday usage. + ## ThinkPad T22 Works perfect (sound, display, all devices, infrared port not tested). @@ -108,25 +110,9 @@ Works perfect (sound, display, all devic Used it since NetBSD 4.x. With Intel GMA, X works great. -In netbsd-5 there is a patch to make trackpoint/touchpad initialize correctly. -Requires [[!template id=man name="hdaudio" section="4"]] instead -of [[!template id=man name="azalia" section="4"]] to make headphones work. Cardbus port doesn't work properly. Expresscard not tested/tried. -## Lenovo ThinkPad T61p - -Following -current for the last 18 months or so (2012-12). -As close to perfect as one gets. Suspend/resume didn't work at the -time; not tried it since. - -## Lenovo ThinkPad T500 - -in the version with ATI graphics. Has a tendency to run hot and then to not -reboot cleanly (gets stuck after printing the mainbus line at boot); -5min off for cool-down usually fix this. This doesn't usually occur when -only the Intel on-board graphics get used. No known errors while running. - ## ThinkPad X60s Everything works. @@ -155,55 +141,75 @@ From user reports, in NetBSD 9.0: * Video acceleration works, but when using `xf86-video-intel` (the default), it's advisable to set `Option "AccelMethod" "uxa"` in `xorg.conf`. -* WiFi works, it uses the `iwn(4)` dirver. +* Ethernet is supported through the [[!template id=man name="wm" section="4"]] driver. +* WiFi is supported through the [[!template id=man name="iwn" section="4"]] driver. * Suspend and resume work. +## Thinkpad X230 + +From user reports, in NetBSD 9.0: + +* Ethernet is supported through the [[!template id=man name="wm" section="4"]] driver. +* WiFi is supported through the [[!template id=man name="iwn" section="4"]] driver. + ## Thinkpad X250 Nearly perfect. Running NetBSD 9.0 and -current since 2019. * Accelerated graphics with the i915 driver. Connecting externals displays works with the miniDP and VGA ports. -* Working SD card reader, audio, ethernet (`wm(4)`), and WiFi (`iwm(4)`). +* SD card reader is supported through the [[!template id=man name="rtsx" section="4"]] driver. +* Ethernet is supported through the [[!template id=man name="wm" section="4"]] driver. +* WiFi is supported through the [[!template id=man name="iwm" section="4"]] driver. * For the extra trackpoint buttons to work correctly, needs a patch to synaptics.c that is in -current and will be in 9.1. Tapping and the clickpad have always been fine. * Brightness buttons do not work in 9 by default. You can bind them to xrandr in your window manager. -* Webcam will depend on upcoming xhci(4) isochronous pipe support. -* Wakes up after suspend. I have mine set to suspend on lid close with - powerd. - -## Lenovo ThinkPad Edge E130 - -With NetBSD/amd64 6.0 - -* Bluetooth adapter is recognized as ugen0 (should be patched like MacBook Air mid 2012 11-inch's one probably) -* Native X.org needs xorg.conf that has vesa driver entry, and sometimes X.org starts with slightly wrong resolution (xrandr is useful). -* Sound is recognized as hdaudio, and not tested. -* Network adapters are not tested. Wired LAN adapter is detected as re0, and WiFi adapter is not recognized. -* Card reader is not recognized +* Webcam will depend on upcoming xhci isochronous pipe support. +* To record from the internal mic, set `mixerctl -w record.source=ADC02` +* Suspend and resume work. ---- +## Thinkpad X260 -# Toshiba +Likely very similar to the X250. -## Toshiba Satellite A215-S7422 +From user reports, in NetBSD 9.0: -NetBSD/amd64 5.99.38, but booting with "boot netbsd -2" to disable ACPI -but has no keyboard use. -See . -Audio works with hdaudio (vendor 0x10EC product 0x0268). - -## Toshiba Satellite L350-S1701 - -NetBSD/amd64 5.99.38. -Wireless with iwn (vendor 0x8086 product 0x4232). -For X11, using xf86-video-vesa-2.3.0nb1 package. -Sometimes X starts up on wrong resolution. -The MMC works on sd0. -Some USB failures. -Audio works with hdaudio (vendor 0x10EC product 0x0268). +* SD card reader is supported through the [[!template id=man name="rtsx" section="4"]] driver. +* Ethernet is supported through the [[!template id=man name="wm" section="4"]] driver. +* WiFi is supported through the [[!template id=man name="iwm" section="4"]] driver. +* For the extra trackpoint buttons to work correctly, needs a patch to + synaptics.c that is in -current and will be in 9.1. + Tapping and the clickpad have always been fine. +* Suspend and resume work. --- +# PINE64 + +A number of NetBSD developers use Pinebooks to hack on NetBSD +and for everyday usage. + +Pinebook and Pinebook Pro do not use ACPI, so certain aspects are +different compared to x86 laptops. + +## Pinebook (Allwinner A64) + +From user reports to port-arm@, in NetBSD 9.0: + +* [[!template id=man name="uvideo" section="4"]] webcam works. +* External WiFI adapters can be used. Support for the internal WiFi - after WiFi system rework? +* Plugging in external monitors works via the HDMI port. +* The CPU frequency can be adjusted with `sysctl machdep.cpufreq.*`. +* Mesa llvmpipe is currently used for 3D/OpenGL. + +## Pinebook Pro + +* [[!template id=man name="uvideo" section="4"]] webcam works. +* Internal Broadcom WiFi is supported via the [[!template id=man name="bwfm" section="4"]] driver in -current. + External adapters may still be more stable. +* The CPU frequency can be adjusted automatically with `estd` or with `sysctl machdep.cpufreq.*`. +* The display backlight can be adjusted with `sysctl`. +* Mesa llvmpipe is currently used for 3D/OpenGL. +* Connecting external monitors does not currently work through USB-C.