Skip to content

Latest commit

 

History

History
351 lines (333 loc) · 7 KB

x230-FreeBSD.md

File metadata and controls

351 lines (333 loc) · 7 KB

Видео

pkg install drm-legacy-kmod gpu-firmware-kmod xf86-video-intel libva-intel-driver
# vi /usr/local/etc/X11/xorg.conf.d/driver-intel.conf - исправление тиринга forums.freebsd.org Handbook

Section "Device"
        Identifier      "Card0"
        Driver          "intel"
        Option "AccelMethod" "sna"
        Option "TearFree" "true"
EndSection

Звук

Bluetooth

Wiki Handbook
cat ~/bt-sound-term.sh

#!/usr/local/bin/bash
BT_ADDR_OF_DEVICE=mifa
hccontrol -n ubt0hci create_connection $BT_ADDR_OF_DEVICE && \
virtual_oss -C 2 -c 2 -r 48000 -b 16 -s 1024 -R /dev/null -P /dev/bluetooth/$BT_ADDR_OF_DEVICE -d dsp -t vdsp.ctl

Список эксклюзивно (вручную) установленных пакетов
$ pkg prime-list
Inconsolata-LGC
archivemount
atool
audacious
audacious-plugins
audacious-skins
audacity
automount
bash
bash-completion
bsdisks
calcoo
cdrtools
chromium
clex
cmake
conky
cool-retro-term
cppunit
deb2targz
dialog4ports
dmenu
dmidecode
drm-legacy-kmod
droid-fonts-ttf
emacs
en-freebsd-doc
eterm
findutils
firefox
fluxbox
font-gost
freecolor
fusefs-ntfs
gimp
git
gmake
grive2
groff
gtar
htop
hwstat
i3-gaps
i386-wine-devel
i3lock
i3status
inotify-tools
intltool
keepassxc
lazpaint-qt5
leafpad
lemonbar
libreoffice
libva-intel-driver
links
linux_base-c7
lumina-archiver
lxqt
mc
meld
mesa-demos
mpg321
mplayer
musicpd
nano
ncurses
networkmgr
pavucontrol-qt
pciutils
peazip-qt5
photoqt
picom
pkg
play
printscreen
pulseaudio-module-sndio
pv
pwcview
py36-pip
py36-speedtest-cli
qpdfview
qt5-sensors
qt5-webglplugin
read-edid
redshift
remmina
remmina-plugins
roboto-fonts-ttf
rpm2cpio
ru-freebsd-doc
ru-gimp-help-html
ru-libreoffice
rxvt-unicode
samba411
screen
screenFetch
sddm
showkey
slim
slim-freebsd-black-theme
slim-freebsd-themes
slim-themes
sndio
speedcrunch
sudo
sysinfo
telegram-desktop
terminus-font
tigervnc
tigervnc-viewer
tmux
tree
udfclient
unetbootin
upower
usbutils
vim
virtual_oss
virtual_oss_ctl
virtualbox-ose
virtualbox-ose-additions
vlc
vm-bhyve
warzone2100
webcamd
webcamoid
wget
wine-mono-devel
winetricks
wpa_supplicant
wpa_supplicant_gui
xbattbar
xf86-video-intel
xfe
xorg
zsh
/boot/loader.conf
autoboot_delay="2"
aesni_load="YES"
geom_eli_load="YES"
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
zfs_load="YES"

iwn6000g2afw_load="YES"
net.inet.tcp.soreceive_stream="1"
net.link.ifqmaxlen="2048"
cc_htcp_load="YES"

acpi_ibm_load="YES"
coretemp_load="YES"
cpuctl_load="YES"
# https://www.c0ffee.net/blog/freebsd-on-a-laptop/
hw.pci.do_power_nodriver="3"
hw.snd.latency="7"
hint.p4tcc.0.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"
drm.i915.enable_rc6="7"
drm.i915.semaphores="1"
drm.i915.intel_iommu_enabled="1"
kern.ipc.shmseg=1024
kern.ips.shmmni=1024
kern.maxproc=100000

hw.psm.synaptics_support="1"
hw.psm.trackpoint_support="1"
ng_bt3c_load="YES"
##mmc_load="YES"
mmcsd_load="YES"
sdhci_load="YES"
atapicam_load="YES"

fuse_load="YES"
cuse_load="YES"
tmpfs_load="YES"
aio_load="YES"
#autofs_load="YES"
libiconv_load="YES"
libmchain_load="YES"
cd9660_iconv_load="YES"
msdosfs_iconv_load="YES"

vboxdrv_load="YES"
/etc/rc.conf
hostname="x230"
wlans_iwn0="wlan0"
ifconfig_wlan0="WPA DHCP powersave"
create_args_wlan0="country RU regdomain NONE"
wpa_supplicant_program="/usr/local/sbin/wpa_supplicant"
background_dhclient="YES"
#sshd_enable="YES"
ntpd_enable="YES"
ntpd_flags="-g"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"
zfs_enable="YES"
linux_enable="YES"
clear_tmp_enable="YES"
syslogd_flags="-ss"
sendmail_enable="NONE"

powerd_enable="YES"
powerd_flags="-a hiadaptive -b adaptive"
performance_cx_lowest="Cmax"
economy_cx_lowest="Cmax"

gateway_enable="YES"
pf_enable="YES"
pf_rules="/etc/pf.conf"
ipv6_network_interfaces="none"      # Default is auto
ipv6_activate_all_interfaces="NO"   # this is the default
ip6addrctl_enable="NO"              # New way to disable IPv6 support
ip6addrctl_policy="ipv4_prefer"     # Use IPv4 instead of IPv6
ipv6_activate_all_interfaces="NO"   # Do not automatically add IPv6 addresses

kld_list="/boot/modules/drm2.ko /boot/modules/i915kms.ko"
dbus_enable="YES"
hald_enable="YES"
keymap="ru.win"
moused_enable="YES"
moused_flags="-VH"
#autofs_enable="YES"
hcsecd_enable="YES"
sdpd_enable="YES"
bthidd_enable="YES"
cupsd_enable="YES"
webcamd_enable="YES"

slim_enable=yes

#vm_enable="YES"
vm_dir="zfs:zroot/usr/bhyve"
cloned_interfaces="bridge0 tap0"
ifconfig_bridge0="addm wlan0 addm tap0"
#kld_list="nmdm vmm"
vboxnet_enable="YES"
devfs_system_ruleset="system"

sndiod_enable="YES"
/etc/sysctl.conf
#security.bsd.see_other_uids=0
vfs.zfs.min_auto_ashift=12
vfs.usermount=1
net.link.tap.up_on_open=1
net.inet6.ip6.auto_linklocal=0

#dev.acpi_ibm.0.bluetooth=1 # enabled by default?

# https://cooltrainer.org/a-freebsd-desktop-howto/
# Enhance shared memory X11 interface
kern.ipc.shmmax=67108864
kern.ipc.shmall=32768
# Enhance desktop responsiveness under high CPU use (200/224)
kern.sched.preempt_thresh=224
# Bump up maximum number of open files
kern.maxfiles=200000
# Disable PC Speaker
hw.syscons.bell=0
kern.vt.enable_bell=0
# Shared memory for Chromium
kern.ipc.shm_allow_removed=1

# https://www.c0ffee.net/blog/freebsd-on-a-laptop/
# increase UFS readahead
vfs.read_max=128
# enable IPv6 autoconfiguration
#net.inet6.ip6.accept_rtadv=1
# suspend on lid close
#hw.acpi.lid_switch_state=S3
# increase the nub's tracking sensitivity - tweak to your liking
#hw.psm.trackpoint.sensitivity=255
#hw.psm.trackpoint.upper_plateau=125
# disable the touchpad
hw.psm.synaptics.touchpad_off=1
#hw.psm.synaptics.min_pressure=220
# some tweaks to boost network performance over long, fat pipes
net.inet.tcp.cc.algorithm=htcp
net.inet.tcp.cc.htcp.adaptive_backoff=1
net.inet.tcp.cc.htcp.rtt_scaling=1
net.inet.tcp.rfc6675_pipe=1
net.inet.tcp.syncookies=0
net.inet.tcp.nolocaltimewait=1
kern.ipc.soacceptqueue=1024
kern.ipc.maxsockbuf=8388608
kern.ipc.maxsockbuf=2097152
net.inet.tcp.sendspace=262144
net.inet.tcp.recvspace=262144
net.inet.tcp.sendbuf_max=16777216
net.inet.tcp.recvbuf_max=16777216
net.inet.tcp.sendbuf_inc=32768
net.inet.tcp.recvbuf_inc=65536
net.local.stream.sendspace=16384
net.local.stream.recvspace=16384
net.inet.raw.maxdgram=16384
net.inet.raw.recvspace=16384
net.inet.tcp.abc_l_var=44
net.inet.tcp.initcwnd_segments=44
net.inet.tcp.mssdflt=1448
net.inet.tcp.minmss=524
net.inet.ip.intr_queue_maxlen=2048
net.route.netisr_maxqlen=2048