###############################################################################
# /boot/loader.conf configuration file for x230 thinkpad #
###############################################################################
### Structure
## SYSTEM
# General
# -
# Networking
# Specific
# Disabled
# General
# Dtrace system state information
security.bsd.allow_destructive_dtrace=0
# Asynchronous I/O
aio_load="YES"
## System dependent
# enable LCD backlight control, ThinkPad buttons, etc
acpi_ibm_load="YES"
#increase inactivity periods by reducing the interrupt rate
kern.hz="100"
hint.atrtc.0.clock="0"
# Disk organization mgmgt
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
# filesystems support
zfs_load="YES"
# Load MMC/SD card-reader support
mmc_load="YES"
mmcsd_load="YES"
sdhci_load="YES"
# Filesystems in Userspace
fuse_load="YES"
# desktop-ish filesystems, webcam driver, etc
cuse4bsd_load="YES"
# Handle Unicode on removable media
libiconv_load="YES"
libmchain_load="YES"
cd9660_iconv_load="YES"
msdosfs_iconv_load="YES"
# Access ATAPI devices through the CAM subsystem
atapicam_load="YES"
## kernel
# Boot-time kernel tuning
kern.ipc.shmseg=1024
kern.ipc.shmmni=1024
kern.maxproc=100000
# Bootup, Startup
boot_mute="YES"
autoboot_delay=5
## audio
hw.syscons.bell=0
kern.vt.enable_bell=0
snd_hda_load="YES"
## virtualization
# Skip the often slow memory tests in VMs
hw.memtest.tests=0
## Synaptics
# Enable psm configuration interface for trackpad/trackpoint:
hw.psm.synaptics_support=1
hw.psm.trackpoint_support=1
## Networking
# increase the network interface queue link default (50) is way too low
net.link.ifqmaxlen="2048" # 1024
#WiFi
iwn6000g2afw_load="YES"
#if_iwn_load="YES"
legal.intel_iwn.license_ack=1
#WLAN
wlan_wep_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"
# Load the H-TCP algorithm. It has a more aggressive ramp-up to max
cc_htcp_load="YES"
## CPU
# enable CPU firmware updates
cpuctl_load="YES"
## Power management
# Disable acpi throttle by default, fixes issues with powerd and later AMDs
hint.acpi_throttle.0.disabled="1"
# Intel Core thermal sensors
coretemp_load="YES"
hint.p4tcc.1.disabled=1
hint.acpi.0.diabled="0"
hint.acpi_throttle.0.disabled="1"
hint.ahcich.0.pm_level="5"
hint.ahcich.1.pm_level="5"
hint.ahcich.2.pm_level="5"
hint.ahcich.3.pm_level="5"
hint.ahcich.4.pm_level="5"
hint.ahcich.5.pm_level="5"
# suspend on lid close
hw.acpi.lid_switch_state=s3
# Any PCI devices that do not have a driver put into ACPI D3 power state (off)
hw.pci.do_power_nodriver=3
#higher sound card buffering latency
hw.snd.latency=4 #7
hint.pcm.0.buffersize=65536
hint.pcm.1.buffersize=65536
hint.pcm.2.buffersize=65536
hw.snd.feeder_buffersize=65536
# Enable GPU power-saving idle states
compat.linuxkpi.enable_rc6=7
## virtualization
vboxdrv_load="YES"
vfs.aio.max_buf_aio=8192
vfs.aio.max_aio_queue_per_proc=65536
vfs.aio.max_aio_per_proc=8192
vfs.aio.max_aio_queue=65536
# Enable NewCons / vt
kern.vty=vt
# enable i915 kernel mode setting:
i915kms_load="YES"
################################################################################
# p4tcc Intel-Relict of netburst ages
hint.p4tcc.0.disabled=1
hint.p4tcc.1.disabled=1
hint.acpi_throttle.0.disabled="1"
hint.ahcich.0.pm_level="5"
hint.ahcich.1.pm_level="5"
hint.ahcich.2.pm_level="5"
hint.ahcich.3.pm_level="5"
hint.ahcich.4.pm_level="5"
hint.ahcich.5.pm_level="5"
# Devil worship in loader logo
#loader_logo="beastie"
# Boot-time kernel tuning
kern.ipc.shmseg=1024
kern.ipc.shmmni=1024
kern.maxproc=60000
# In-memory filesystems
tmpfs_load="YES"
# Intel i915 tunables (many of those are often default in Linux distros)
#enable power savings
drm.i915.powersave="1"
#enable render C-state 6.
drm.i915.enable_rc6="7"
#enable Intel IOMMU,
drm.i915.intel_iommu_enabled="1"
#enable LVDS downlock,
drm.i915.lvds_downclock=1
#use semaphores for inter-ring sync
drm.i915.semaphores="1"
#enable framebuffer compression
drm.i915.enable_fbc="1"
#enable LCD screen brightness control (see below)
#acpi_video_load="YES" #suppressed
#limit ZFS ARC (4G instead of default half=8Gb out of 16)
vfs.zfs.arc_max="4G"
#enable CPU freq monitoring
cpufreq_load="YES"
#enable temperature monitoring
coretemp_load="YES"
#kern.vt.fb.default_mode="1366x768"
# Disable legacy p4 and acpi power management
hint.p4tcc.0.disabled=1
hint.acpi_throttle.0.disabled=1
# Enable GPU power-saving idle states
compat.linuxkpi.enable_rc6=7
###################################################
umass_load="YES"
hint.acpi.0.disabled="0"
hint.pcm.0.buffersize=65536
hint.pcm.1.buffersize=66536
hw.snd.feeder_buffersize=65536
#hw.psm.synaptics_support="1"
# Load Linux compat
linux_load="YES"
sysctlinfo_load="YES"
# enable
aesni_load="YES"
### Disabled
#opensolaris_load="YES"