File:  [NetBSD Developer Wiki] / wikisrc / laptops.mdwn
Revision 1.24: download - view: text, annotated - select for diffs
Sun Sep 6 23:54:56 2020 UTC (6 weeks ago) by nia
Branches: MAIN
CVS tags: HEAD
afterboot contains information about non-WPA now

    1: This page lists and links to pages about laptops, notebooks,
    2: and portable computers that work well with NetBSD, are of interest
    3: to developers, and are standardized or easy to find.
    4: 
    5: For i386-based netbooks also see
    6: <http://www.netbsd.org/ports/i386/netbook.html>.
    7: 
    8: [[!toc ]]
    9: 
   10: ---
   11: 
   12: # Generic laptop support
   13: 
   14: ## Graphics
   15: 
   16: NetBSD 9.0 supports Intel integrated graphics up to Kaby Lake,
   17: Nvidia graphics up to Maxwell, and AMD graphics up to GCNv1.
   18: 
   19: Anything newer than this will work, but will use `llvmpipe`
   20: instead of hardware acceleration for OpenGL.
   21: 
   22: The support includes connecting external monitors over HDMI,
   23: DisplayPort, and DisplayPort over USB-C.
   24: 
   25: For the Intel driver, there may be slight graphical corruptions
   26: when using X11 without a compositor. Xfce/MATE include their own
   27: compositors, but lightweight window managers can benefit from
   28: having `picom` running.
   29: 
   30: ## CPU frequency adjustment
   31: 
   32: On most ACPI and some non-ACPI laptops, the `sysutils/estd` package
   33: can be used to automatically adjust the CPU frequency depending on
   34: system load, and potentially prolong battery life. This modifies the
   35: `frequency` variables exposed by
   36: [[!template id=man name="sysctl" section="8"]].
   37: 
   38: ## Suspend
   39: 
   40: On ACPI systems, suspend-to-RAM is supported through
   41: `sysctl hw.acpi.sleep.state=3`.  This can be triggered through various
   42: events (such as lid close) with
   43: [[!template id=man name="powerd" section="8"]].
   44: 
   45: Suspend on NetBSD currently seems to work best on Thinkpads.
   46: 
   47: ## Input
   48: 
   49: Many x86 laptops use Synaptics touchpads over an emulated PS/2 interface,
   50: which is supported through [[!template id=man name="pms" section="4"]],
   51: with various adjustable Synaptics-specific sysctl variables.
   52: 
   53: ## WiFi
   54: 
   55: Many x86 laptops with Intel processors will have WiFi cards supported
   56: by the
   57: [[!template id=man name="iwm" section="4"]] driver, or 
   58: [[!template id=man name="iwn" section="4"]] for older models.
   59: Atheros 11n miniPCIe cards are supported by the
   60: [[!template id=man name="athn" section="4"]] driver.
   61: 
   62: See the
   63: [[!template id=man name="afterboot" section="8"]] man page for details
   64: on connecting to WiFi networks.
   65: 
   66: USB 11n WiFi adapters such as
   67: [[!template id=man name="urtwn" section="4"]] and
   68: [[!template id=man name="run" section="4"]] can also be used,
   69: and most/all generic USB ethernet adapters are also well supported.
   70: For a fairly complete list, see 
   71: [[!template id=man name="usb" section="4"]].
   72: 
   73: Unfortunately, WiFi hardware is not particularly standardized compared
   74: to most other aspects of modern laptops.
   75: 
   76: ## Audio
   77: 
   78: Essentially all modern x86 laptops use the 
   79: [[!template id=man name="hdaudio" section="4"]] driver.
   80: 
   81: In the case that switching between speakers and the headphone port
   82: is not handled automatically by the hardware, the `dacsel`
   83: [[!template id=man name="mixerctl" section="1"]] variable can be
   84: modified.
   85: 
   86: ## Sensors
   87: 
   88: Regardless of whether the system is ACPI, NetBSD will
   89: expose all sensors (e.g. for temperature and battery)
   90: via [[!template id=man name="envstat" section="8"]].
   91: 
   92: ---
   93: 
   94: # IBM / Lenovo
   95: 
   96: The [[!template id=man name="thinkpad" section="4"]] driver provides
   97: support for various Thinkpad-specific sensors and function keys.
   98: 
   99: A number of NetBSD developers use Thinkpads to hack on NetBSD
  100: and for everyday usage.
  101: 
  102: ## ThinkPad T22
  103: 
  104: Works perfect (sound, display, all devices, infrared port not tested).
  105: 
  106: ## ThinkPad T61
  107: 
  108: Used it since NetBSD 4.x.
  109: With Intel GMA, X works great.
  110: Cardbus port doesn't work properly.
  111: Expresscard not tested/tried.
  112: 
  113: ## ThinkPad X60s
  114: 
  115: Everything works.
  116: 
  117: ## ThinkPad X41
  118: 
  119: Works fine (sound, display, all devices, bluetooth, modem not tested).
  120: Standby is broken for me in -current (~2012-01-12) but worked in 5.1.
  121: 
  122: ## ThinkPad X61s
  123: 
  124: Everything works. Requires `PCI_BUS_FIXUP` and `PCI_ADDR_FIXUP` [[!template
  125: id=man name="options" section="4"]].
  126: 
  127: ## Thinkpad X201
  128: 
  129: Running -current since March 2011.
  130: Working graphics (with the vesa driver), audio, trackpoint, wired
  131: and wireless LAN.
  132: Does not wake up after suspend (drives spin up but the display
  133: stays black and the LED indicating a sleep state stays lit).
  134: 
  135: ## Thinkpad X220
  136: 
  137: From user reports, in NetBSD 9.0:
  138: 
  139: * Video acceleration works, but when using `xf86-video-intel` (the default),
  140:   it's advisable to set `Option "AccelMethod"  "uxa"` in `xorg.conf`.
  141: * Ethernet is supported through the [[!template id=man name="wm" section="4"]] driver.
  142: * WiFi is supported through the [[!template id=man name="iwn" section="4"]] driver.
  143: * Suspend and resume work.
  144: 
  145: ## Thinkpad X230
  146: 
  147: From user reports, in NetBSD 9.0:
  148: 
  149: * Ethernet is supported through the [[!template id=man name="wm" section="4"]] driver.
  150: * WiFi is supported through the [[!template id=man name="iwn" section="4"]] driver.
  151: 
  152: ## Thinkpad X250
  153: 
  154: Nearly perfect. Running NetBSD 9.0 and -current since 2019.
  155: 
  156: * Accelerated graphics with the i915 driver. Connecting externals displays
  157:   works with the miniDP and VGA ports.
  158: * SD card reader is supported through the [[!template id=man name="rtsx" section="4"]] driver.
  159: * Ethernet is supported through the [[!template id=man name="wm" section="4"]] driver.
  160: * WiFi is supported through the [[!template id=man name="iwm" section="4"]] driver.
  161: * For the extra trackpoint buttons to work correctly, needs a patch to
  162:   synaptics.c that is in -current and will be in 9.1.
  163:   Tapping and the clickpad have always been fine.
  164: * Brightness buttons do not work in 9 by default. You can bind them to
  165:   xrandr in your window manager.
  166: * Webcam will depend on upcoming xhci isochronous pipe support.
  167: * To record from the internal mic, set `mixerctl -w record.source=ADC02`
  168: * Suspend and resume work.
  169: 
  170: ## Thinkpad X260
  171: 
  172: Likely very similar to the X250.
  173: 
  174: From user reports, in NetBSD 9.0:
  175: 
  176: * SD card reader is supported through the [[!template id=man name="rtsx" section="4"]] driver.
  177: * Ethernet is supported through the [[!template id=man name="wm" section="4"]] driver.
  178: * WiFi is supported through the [[!template id=man name="iwm" section="4"]] driver.
  179: * For the extra trackpoint buttons to work correctly, needs a patch to
  180:   synaptics.c that is in -current and will be in 9.1.
  181:   Tapping and the clickpad have always been fine.
  182: * Suspend and resume work.
  183: 
  184: ---
  185: 
  186: # PINE64
  187: 
  188: A number of NetBSD developers use Pinebooks to hack on NetBSD
  189: and for everyday usage.
  190: 
  191: Pinebook and Pinebook Pro do not use ACPI, so certain aspects are
  192: different compared to x86 laptops.
  193: 
  194: ## Pinebook (Allwinner A64)
  195: 
  196: From user reports to port-arm@, in NetBSD 9.0:
  197: 
  198: * [[!template id=man name="uvideo" section="4"]] webcam works.
  199: * External WiFI adapters can be used. Support for the internal WiFi - after WiFi system rework?
  200: * Plugging in external monitors works via the HDMI port.
  201: * The CPU frequency can be adjusted with `sysctl machdep.cpufreq.*`.
  202: * Mesa llvmpipe is currently used for 3D/OpenGL.
  203: 
  204: ## Pinebook Pro
  205: 
  206: * [[!template id=man name="uvideo" section="4"]] webcam works.
  207: * Internal Broadcom WiFi is supported via the [[!template id=man name="bwfm" section="4"]] driver in -current.
  208:   External adapters may still be more stable.
  209: * The CPU frequency can be adjusted automatically with `estd` or with `sysctl machdep.cpufreq.*`.
  210: * The display backlight can be adjusted with `sysctl`.
  211: * Mesa llvmpipe is currently used for 3D/OpenGL.
  212: * Connecting external monitors does not currently work through USB-C.

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb