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