1 1.2 nia # $NetBSD: xorg.conf,v 1.2 2025/11/18 06:35:40 nia Exp $ 2 1.2 nia # 3 1.2 nia # This is a sample /etc/xorg.conf for use with NetBSD systems. 4 1.1 nia # 5 1.1 nia # Generally, it is not recommended to automatically generate an 6 1.1 nia # xorg.conf with "X -configure" any more. Many systems will work 7 1.1 nia # without an xorg.conf, but it may be necessary to specify a video 8 1.1 nia # driver or special server options. 9 1.1 nia 10 1.1 nia Section "Device" 11 1.1 nia Identifier "Card0" 12 1.1 nia 13 1.1 nia # Most NetBSD systems can use the framebuffer driver. 14 1.1 nia # 15 1.1 nia # On x86 it may need to be configured with either "vesa" or "gop" 16 1.1 nia # options in the bootloader. 17 1.1 nia # 18 1.1 nia # Other drivers (except DRM/KMS ones) generally need securelevel=0 19 1.1 nia # since they access hardware directly from user space. 20 1.1 nia Driver "wsfb" 21 1.1 nia 22 1.2 nia # Systems with Kernel Mode Setting drivers (DRM/KMS) should 23 1.1 nia # use the "modesetting" driver instead of "wsfb". 24 1.1 nia #Driver "modesetting" 25 1.1 nia 26 1.1 nia # Older Intel GPUs may need these options. See intel(4). 27 1.1 nia # Newer Intel GPUs should use modesetting. 28 1.1 nia #Driver "intel" 29 1.1 nia #Option "AccelMethod" "UXA" 30 1.1 nia #Option "TearFree" "on" 31 1.1 nia 32 1.1 nia # For a full list of 2D accelerated drivers, see 33 1.1 nia # /usr/X11R7/lib/modules/drivers 34 1.1 nia EndSection 35 1.1 nia 36 1.1 nia Section "ServerFlags" 37 1.1 nia # Uncommenting this allows restricting command-line access when 38 1.1 nia # Ctrl+Alt+FX is pressed on the keyboard. This is useful for 39 1.1 nia # protecting systems from untrusted users and their cats. 40 1.1 nia #Option "DontVTSwitch" "on" 41 1.1 nia EndSection 42