rvp Hi, thanks a lot for your reply.
For CPU frequency scaling, I’m using envsys and powerd, and I’ve explicitly set the default frequency to the system’s maximum detected value (2701) in sysctl.conf.
As for the filesystems, yes —everything is on locally connected disks.
Finally, here’s the rest of the setup I’m using: I have NetBSD installed on a ThinkPad X260 with an Intel Core i7-6600U processor and 16GB of RAM.
------ profile config -----
# $NetBSD: dot.profile,v 1.10 2018/03/01 06:12:09 snj Exp $
#
# This is the default .profile file.
# Users are expected to edit it to meet their own needs.
#
# The commands in this file are executed when an sh user first
# logs in.
#
# See sh(1) for details.
set -o allexport
set -o trackall
set -o noclobber # Impedir la sobreescritura de archivos con '>'
set -o notify
set -o braceexpand
# Idioma del sistema
LANG="es_ES.UTF-8"
LC_CTYPE="es_ES.UTF-8"
LC_COLLATE="C"
LC_TIME="es_ES.UTF-8"
LC_NUMERIC="C"
LC_MONETARY="es_ES.UTF-8"
LC_MESSAGES="es_ES.UTF-8"
LC_ALL=""
ENV=${HOME}/.kshrc
if [[ ! -f ${HOME}/.ksh_history ]]; then
> ${HOME}/.ksh_history
fi
# Crear directorio donde se guardaran archivos temporales
dir=/tmp/$(id -u)
if [[ ! -d "$dir" ]]; then
mkdir -p "$dir"
/sbin/chown -R $(whoami):$(id -gn) "$dir"
/bin/chmod -R 0700 "$dir"
fi
XDG_RUNTIME_DIR=${dir}
TMPDIR=${XDG_RUNTIME_DIR}
unset dir
CACHE="${HOME}/.cache"
[[ -z "$CACHE" ]] || rm -rf "$CACHE"
dir=$(mktemp -d /tmp/${LOGNAME}.XXXXXX)
/sbin/chown -R $(whoami):$(id -gn) "$dir"
/bin/chmod -R 0700 "$dir"
ln -sf ${dir} "$CACHE"
unset dir
# Crear directorio para construir paquetes usando pkgsrc
dir=/tmp/pkgs
if [[ ! -d "$dir" ]]; then
mkdir -p "$dir"
fi
unset dir
## Colores
BLUE=$(printf '%b' "\033[1;34m")
BOLD=$(printf '%b' "\033[1m")
CYAN=$(printf '%b' "\033[1;36m")
GRAY=$(printf '%b' "\033[0;37m")
GREEN=$(printf '%b' "\033[1;32m")
NORM=$(printf '%b' "\033[0m")
PINK=$(printf '%b' "\033[1;35m")
RED=$(printf '%b' "\033[1;31m")
WHITE=$(printf '%b' "\033[1;37m")
YELLOW=$(printf '%b' "\033[1;33m")
## Colores para los manuales
LESS_TERMCAP_mb=${RED} # Inicio texto en negrita
LESS_TERMCAP_md=${GREEN} # Inicio de texto resaltado
LESS_TERMCAP_se=${NORM} # Fin de texto resaltado
LESS_TERMCAP_me=${NORM} # Finaliza estilos aplicados
LESS_TERMCAP_us=${YELLOW} # Inicio de texto subrayado
LESS_TERMCAP_ue=${NORM} # Fin de texto subrayado
LESS_TERMCAP_so=$(printf %b "\033[1;44;33m") # Resaltar texto de fondo
PATH=/opt/ast/bin
PATH=${PATH}:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R7/bin
PATH=${PATH}:/usr/pkg/bin:/usr/pkg/sbin:/usr/local/bin:/usr/local/sbin
PATH=${PATH}:${HOME}/.local/bin:${HOME}/.local/sbin
PATH=${PATH}:${HOME}/.local/scripts
FPATH=${HOME}/.local/functions
CDPATH=.:${HOME}:${HOME}/Datos/:${HOME}/Dropbox/LaTeX/:${HOME}/Dropbox/Tareas/:${HOME}/pkgsrc:/usr/pkg:/etc
# Editor de texto predeterminado
if [ -n "$DISPLAY" ]; then
EDITOR=kak
VISUAL=kak
else
EDITOR=vi
VISUAL=vi
fi
HISTEDIT=${EDITOR}
LESS="-R"
PAGER=/usr/bin/less
BROWSER=${HOME}/.local/bin/firefox
READER=/usr/pkg/bin/zathura
IMAGEVIEWER=/usr/pkg/bin/nsxiv
FILE=/usr/pkg/bin/nnn
#--- Variable de entorno para nnn
NNN_OPTS='QUdrc'
NNN_OPENER=${HOME}/.local/scripts/opener
NNN_PLUG='p:preview-tabbed;i:viewer;n:nuke;t:preview-tui'
NNN_COLORS='2631'
NNN_TRASH=2 # Mover archivos a papelera en lugar de eliminar definitivamente
NNN_FIFO=/tmp/nnn.fifo
NNN_ARCHIVE="\\.(7z|a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|rar|rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)$"
NNN_BMS='x:~/.local/bin;d:~/Dropbox/Trabajo;D:~/Descargas;s:~/Datos/Capturas;p:~/.local/share/Trash/files;P:~/Datos/.Trash-1001/files;l:~/Dropbox/LaTeX/Tareas;c:~/.config' # Marcadores
# Inicio automático a X11
while [ "$(id -u)" -ne 0 ]; do
if [ -z "$DISPLAY" ] && [ $(tty) = "/dev/constty" ]; then
startx
fi
break
done
------ kshrc config -----
# $NetBSD: dot.shrc,v 1.3 2007/11/24 11:14:42 pavel Exp $
case "$-" in *i*)
# interactive mode settings go here
set -o allexport # Exportar todas las variables que se definan
set -o vi # Configurar modo de edición vi
set -o ignoreeof # Evitar cerrar shell con la combinación Ctrl D
autoload man # Cargar en memoria el comando man
# PS1
. ${HOME}/.local/functions/prompt
[ -L ${HOME}/.aliases ] && . ${HOME}/.aliases
ulimit -c 0 # No generar archivos de volcado de memoria
USER=$(id -un)
GROUP=$(id -ng $USER)
TERM=xterm-256color
COLORTERM=${TERM}
# historial de shell
HISTFILE=${HOME}/.ksh_history
HISTSIZE=1000
;;
esac
------ xprofile config -----
check_tool() {
type "$1" >/dev/null 2>&1
}
# Ajustes para X11
setxkbmap -layout us -variant intl
xset +dpms
xset s on
xset dpms 600 900 1200
xset m 6 2
xset r rate 250 25
check_tool unclutter && unclutter -root -idle 1 &
if [ -f "$HOME"/.config/redshift/redshift.conf ]; then
if check_tool redshift; then
redshift -c "$HOME/.config/redshift/redshift.conf" &
fi
fi
nohup matterbridge -conf $HOME/.config/matterbridge.toml &
xsetroot -cursor_name watch
xsetroot -cursor_name left_ptr
# Barra de estado (lemonbar) para ctwm
sleep 1; ${HOME}/.local/scripts/bar1.sh &
------ ctwm config -----
#
# $NetBSD: system.ctwmrc,v 1.19 2022/05/27 17:04:16 nia Exp $
#
# ctwmrc by nia
#
# An attempt to strike a usability balance that makes keys and buttons
# do the thing users of various operating systems expect them to do.
#
# Most things should be possible to accomplish with only the keyboard.
#
# Also, mostly inoffensive colours (avoiding potentially inaccessible
# combinations like red-green).
#
# don't use the default buttons or key bindings, we define our own
NoDefaults
DontShowWelcomeWindow
ShowWorkSpaceManager
WorkSpaceManagerGeometry "100x412-1-0" 1
ShowIconManager
IconManagerGeometry "130x512+0-0"
# 3D icon managers do not seemingly honor IconManagerHighlight,
# which makes them slightly less useful
UseThreeDBorders
UseThreeDTitles
RestartPreviousState
DecorateTransients
# allow the user to have their root window recolored as they choose
DontPaintRootWindow
# hide window contents while altering windows for performance
NoOpaqueMove
NoOpaqueResize
AutoOccupy
AutoRelativeResize
CenterFeedbackWindow
NoGrabServer
RaiseOnClick
DontMoveOff
MoveOffResistance 150
ConstrainedMoveTime 0
IgnoreLockModifier
# Not actually that random.
# Means that windows do not have to be placed by hand with a mouse,
# which helps if you are using a keyboard only.
RandomPlacement "on"
MoveDelta 3
ClearShadowContrast 40
DarkShadowContrast 60
MovePackResistance 100
RaiseWhenAutoUnSqueeze
ShortAllWindowsMenus
NoStackMode
StayUpMenus
WarpToDefaultMenuEntry
MenuShadowDepth 1
# warp through all windows in the current workspace
WindowRing
WarpRingOnScreen
NoTitleHighlight
TitleButtonShadowDepth 1
TitleShadowDepth 1
TitleButtonBorderWidth 0
TitlePadding 0
TitleJustification "left"
ButtonIndent 0
FramePadding 0
LeftTitleButton ":xpm:dot" = f.menu "titleops"
RightTitleButton ":xpm:resize" = f.resize
RightTitleButton ":xpm:cross" = f.delete
BorderShadowDepth 2
BorderResizeCursors
MaxIconTitleWidth 120
NoIconManagerFocus
IconManagerShadowDepth 1
IconifyByUnmapping
ReallyMoveInWorkspaceManager
MapWindowCurrentWorkSpace { "black" "firebrick" }
DontToggleWorkSpaceManagerState
DontWarpCursorInWMap
NoShowOccupyAll
ReverseCurrentWorkspace
StartInMapState
WMgrHorizButtonIndent 0
WMgrVertButtonIndent 0
WorkSpaces
{
"1" { "lavender" "black" "darkslateblue" "white" }
"2" { "lavender" "black" "darkslateblue" "white" }
"3" { "lavender" "black" "darkslateblue" "white" }
"4" { "lavender" "black" "darkslateblue" "white" }
"5" { "lavender" "black" "darkslateblue" "white" }
"6" { "lavender" "black" "darkslateblue" "white" }
"7" { "lavender" "black" "darkslateblue" "white" }
}
SaveWorkspaceFocus
Cursors
{
Frame "left_ptr"
Title "left_ptr"
Icon "left_ptr"
IconMgr "left_ptr"
Move "fleur"
Resize "fleur"
Menu "left_ptr"
Button "hand2"
Wait "watch"
Select "dot"
Destroy "pirate"
}
Color
{
BorderColor "firebrick"
BorderTileBackground "steelblue"
BorderTileForeground "steelblue"
DefaultBackground "grey70"
DefaultForeground "black"
TitleBackground "lavender"
TitleForeground "black"
MenuBackground "lavender"
MenuForeground "black"
MenuTitleBackground "darkorange2"
MenuTitleForeground "black"
MenuShadowColor "gray15"
IconBackground "black"
IconForeground "white"
IconBorderColor "gray45"
IconManagerBackground "lavender"
IconManagerForeground "black"
IconManagerHighlight "firebrick"
MapWindowBackground "lavender"
MapWindowForeground "black"
}
Monochrome
{
BorderColor "black"
BorderTileForeground "black"
BorderTileBackground "white"
TitleForeground "black"
TitleBackground "white"
MenuForeground "black"
MenuBackground "white"
MenuTitleForeground "black"
MenuTitleBackground "white"
MapWindowForeground "white"
MapWindowBackground "white"
}
syscmd(/usr/X11R7/libexec/ctwm_app_menu)
menu "appmenu"
{
"pkgsrc Applications" f.title
" Accessories" f.menu "Accessories"
" Games" f.menu "Games"
" Graphics" f.menu "Graphics"
" Internet" f.menu "Internet"
" Multimedia" f.menu "Multimedia"
" Office" f.menu "Office"
" Programming" f.menu "Programming"
" System" f.menu "System"
" Misc" f.menu "Misc"
}
menu "deskutils"
{
"Desktop utilities" f.title
" Calculator" !"xcalc &"
" Text editor" !"xedit &"
"" f.separator
" XEyes" !"xeyes &"
" OpenGL Gears" !"glxgears &"
" Spinning cube" !"ico -sleep 0.016 -obj cube -colors darkorange &"
"" f.separator
" Compositor (shadows)" !"pkill xcompmgr; xcompmgr -c &"
" Compositor (simple)" !"pkill xcompmgr; xcompmgr -n &"
"" f.separator
" Magnify" !"xmag -source 100x100 &"
" Kill window" !"xkill &"
}
menu "termutils"
{
"Terminal utilities" f.title
"" f.separator
" VIsual Editor" !"xterm -class UXTerm -e vi &"
" Tetris" !"xterm -class UXTerm -e tetris &"
"" f.separator
" Audio mixer" !"xterm -class UXTerm -e aiomixer &"
"" f.separator
" Top processes" !"xterm -class UXTerm -e top &"
" I/O stats" !"xterm -class UXTerm -e 'sysstat iostat' &"
" Network stats" !"xterm -class UXTerm -e 'sysstat ifstat' &"
" Disk usage" !"xterm -class UXTerm -e 'sysstat df' &"
}
menu "NetBSD"
{
"NetBSD" f.title
"" f.separator
" Terminal" !"uxterm &"
"" f.separator
" Applications" f.menu "appmenu"
" Desktop utilities" f.menu "deskutils"
" Terminal utilities" f.menu "termutils"
"" f.separator
" Restart CTWM" f.twmrc
" Quit" f.quit
}
menu "titleops"
{
"Window" f.title
"" f.separator
" Iconify" f.iconify
" Resize" f.resize
" Move" f.move
"" f.separator
" Occupy ..." f.occupy
" Occupy All" f.occupyall
"" f.separator
" Raise" f.raise
" Lower" f.lower
"" f.separator
" Zoom" f.fullzoom
" Zoom-V" f.zoom
" Zoom-H" f.horizoom
"" f.separator
" Kill" f.destroy
" Close" f.delete
}
IconManagerDontShow
{
"WorkSpaceManager"
"tabbed"
"xclock"
"bar.sh" # lemonbar status
}
OccupyAll
{
"XClock"
"xsm"
"xconsole"
"XVidCap"
"xmessage"
"bar.sh" # lemonbar status
}
AlwaysOnTop
{
"XEyes"
"XVidCap"
}
NoTitle
{
"TWM Icon Manager"
"WorkSpaceManager"
"XClock"
"xterm"
"uxterm"
"firefox"
"luakit"
"LibreOffice"
"zathura"
"nsxiv"
"Terminal Sheets"
"File Manager"
"Suckless IRC"
"mpv"
"GNU Image Manipulation Program"
"Open Image"
"tabbed"
"xmessage"
"bar.sh" # lemonbar status
}
WindowRingExclude
{
"TWM Icon Manager"
"WorkSpaceManager"
"XClock"
"xsm"
"xconsole"
"bar.sh" # lemonbar status
}
NoBorder
{
"TWM Icon Manager"
"WorkSpaceManager"
"xclock"
"bar.sh" # lemonbar status
}
AutoOccupy
{
"File Manager" {"1"}
"firefox" {"2"}
"luakit" {"2"}
"Suckless IRC" {"3"}
"Gimp" {"4"}
"xsane" {"4"}
"LibreOffice" {"6"}
}
AutoLower
{
"TWM Icon Manager"
"WorkSpaceManager"
"xclock"
"xsm"
"xconsole"
"bar.sh" # lemonbar status
}
AutoFocusToTransients # Las ventanas transitorias obienen el foco cuando se crean
{
"firefox"
"Gimp"
"LibreOffice"
}
## Atajos para programas
# Tecla Meta (Winbugs)
"Return" = mod4 : all : !"uxterm &"
"F1" = mod4 : all : !"uxterm -T 'File Manager' -e nnn -s trabajo &"
"F2" = mod4 : all : !"firefox &"
"F3" = mod4 : all : !"uxterm -T 'Suckless IRC' -e tmux attach-session -t irc &"
"F4" = mod4 : all : !"gimp &"
"F12" = mod4 : all : !"libreoffice &"
# Tecla Alt
"F2" = mod1 : all : !"luakit &"
"F9" = mod1 : all : !"xkill &"
# Tecla Shift
"Print" = s : all : !"image_ss -s"
# Tecla Ctrl
"Print" = c : all : !"image_ss -S"
"F4" = c : all : !"xsane &"
# Sin tecla modificador
"Print" = : all : !"image_ss -p" # Pantalla completa al portapapeles
"F7" = : all : !"calibre &"
"F8" = : all : !"irc.sh"
"F9" = : all : !"xinput --disable 7 && sleep 1 && xinput --enable 7"
"F12" = : all : !"cpu_freq"
# Sistema
# Se usan en combinación con la tecla Alt
"p" = mod1 | s : all : ! "doas /sbin/shutdown -p now"
"r" = mod1 | s : all : ! "doas /sbin/shutdown -r now"
# Se usan en combinación con la tecla Super (winbugs)
"r" = mod4 | s : all : f.restart
"q" = mod4 | s : all : f.quit
# Ocupar todos los escritorios virtuales
"a" = mod1 : all : f.occupyall
# Zooms
"comma" = c : all : f.fullzoom
"period" = c : all : f.zoom
Function "raise-move" { f.raise f.deltastop f.forcemove }
Function "raise-and-resize" { f.raise f.deltastop f.resize }
# These are basically essential for basic functionality.
Button1 = : title : f.function "raise-move"
Button2 = : title : f.function "raise-and-resize"
Button3 = : title | frame : f.menu "titleops"
Button1 = : frame : f.function "raise-and-resize"
Button1 = : icon | iconmgr : f.iconify
Button2 = : icon : f.move
Button3 = : icon | iconmgr : f.raiselower
Button1 = : root : f.menu "NetBSD"
Button2 = : root : f.menu "TwmAllWindows"
Button3 = : root : f.menu "NetBSD"
#
# Mod1 is the "Alt/Meta" key.
# Mod4 is the "OS" key.
#
Button1 = mod4 : window : f.forcemove
Button3 = mod4 : window : f.resize
"Up" = mod4 : all : f.upworkspace
"Down" = mod4 : all : f.downworkspace
"Left" = mod4 : all : f.prevworkspace
"Right" = mod4 : all : f.nextworkspace
"1" = mod4 : all : f.gotoworkspace "1"
"2" = mod4 : all : f.gotoworkspace "2"
"3" = mod4 : all : f.gotoworkspace "3"
"4" = mod4 : all : f.gotoworkspace "4"
"5" = mod4 : all : f.gotoworkspace "5"
"6" = mod4 : all : f.gotoworkspace "6"
"7" = mod4 : all : f.gotoworkspace "7"
"8" = mod4 : all : f.gotoworkspace "8"
"9" = mod4 : all : f.gotoworkspace "9"
"XF86AudioRaiseVolume" = : all : !"mixerctl -w outputs.master+=5"
"XF86AudioLowerVolume" = : all : !"mixerctl -w outputs.master-=5"
#
# "Windows" style keyboard shortcuts
#
"Tab" = mod4 : all : f.warpring "next"
"Tab" = mod4 | s : all : f.warpring "prev"
"space" = mod1 : window : f.menu "titleops"
"F4" = mod1 : window : f.delete
#
# "Mac" style keyboard shortcuts
#
"w" = mod4 : window : f.delete
"m" = mod4 : window : f.iconify
#
# "evilwm" style keyboard shortcuts
#
# it is useful to be able to spawn a terminal without clicking.
"slash" = mod4 : all : f.menu "TwmAllWindows"
"p" = mod4 : all : f.menu "NetBSD"
# vi-style directions
"j" = mod4 : window : f.jumpdown "10"
"k" = mod4 : window : f.jumpup "10"
"h" = mod4 : window : f.jumpleft "10"
"l" = mod4 : window : f.jumpright "10"
"j" = mod4 | s : window : f.changesize "bottom +10"
"k" = mod4 | s : window : f.changesize "bottom -10"
"h" = mod4 | s : window : f.changesize "right -10"
"l" = mod4 | s : window : f.changesize "right +10"
# Enviar ventana a espacio de trabajo N
define(`forloop',
`pushdef(`$1', `$2')_forloop(`$1', `$2', `$3', `$4')popdef(`$1')')
define(`_forloop',
`$4`'ifelse($1, `$3', ,
`define(`$1', incr($1))_forloop(`$1', `$2', `$3', `$4')')')
forloop(`N', 1, 9,
`Function "move-to-workspace-N" {
f.addtoworkspace "N"
forloop(`I', 1, 9, `ifelse(N, I, , ` f.removefromworkspace "I"')')
}')
"1" = mod4 | s : all : f.function "move-to-workspace-1"
"2" = mod4 | s : all : f.function "move-to-workspace-2"
"3" = mod4 | s : all : f.function "move-to-workspace-3"
"4" = mod4 | s : all : f.function "move-to-workspace-4"
"5" = mod4 | s : all : f.function "move-to-workspace-5"
"6" = mod4 | s : all : f.function "move-to-workspace-6"
"7" = mod4 | s : all : f.function "move-to-workspace-7"
------ /etc/powerd/scripts -----
#!/bin/sh -
#
# $NetBSD: acadapter,v 1.4 2010/12/31 09:29:43 jruoho Exp $
#
# Generic script for acadapter events.
#
# Arguments passed by powerd(8):
#
# device event
case "${2}" in
pressed)
logger -p info "${0}: Full performance mode" >&1
# Disable power saving mode on all network interfaces.
#
for intf in $(/sbin/ifconfig -l); do
/sbin/ifconfig $intf -powersave >/dev/null 2>&1
done
# Increase CPU frequency
/sbin/sysctl -w machdep.cpu.frequency.target=2701
exit 0
;;
released)
logger -p info "${0}: Power saving mode" >&1
# Enable power saving mode on all network interfaces.
#
for intf in $(/sbin/ifconfig -l); do
/sbin/ifconfig $intf powersave >/dev/null 2>&1
done
# Reduce CPU frequency
/sbin/sysctl -w machdep.cpu.frequency.target=600
exit 0
;;
*)
logger -p warning "${0}: unsupported event ${2} on device ${1}" >&1
exit 1
;;
esac
#!/bin/sh -
#
# $NetBSD: sensor_temperature,v 1.4 2012/04/10 13:58:52 jruoho Exp $
#
# Generic script for temperature sensors.
#
# Arguments passed by powerd(8):
#
# script_path device event sensor
case "${2}" in
normal)
logger -p warning "${0}: ($1) normal state entered [${3}]" >&1
exit 0
;;
critical)
logger -p warning "${0}: ($1) critical state entered [${3}]" >&1
/sbin/shutdown -p now "${0}: CRITICAL TEMPERATURE! SHUTTING DOWN."
exit 0
;;
critical-under)
logger -p warning "${0}: ($1) dropped below critical limit [${3}]" >&1
exit 0
;;
critical-over)
case "${1}" in
coretemp*)
logger -p warning "${0}: ($1) critical limit exceeded [${3}]" >&1
/sbin/sysctl -w machdep.est.frequency.target=800
;;
*)
logger -p warning "${0}: ($1) critical limit exceeded [${3}]" >&1
/sbin/shutdown -p now "${0}: CRITICAL TEMPERATURE! SHUTTING DOWN."
;;
esac
exit 0
;;
warning-under)
case "${1}" in
coretemp*)
logger -p warning "${0}: ($1) dropped below warning limit [${3}]" >&1
/sbin/sysctl -w machdep.est.frequency.target=2071
;;
*)
logger -p warning "${0}: ($1) dropped below warning limit [${3}]" >&1
;;
esac
exit 0
;;
warning-over)
logger -p warning "${0}: ($1) warning limit exceeded [${3}]" >&1
exit 0
;;
*)
logger -p warning "${0}: unsupported event ${2} on device ${1}" >&1
exit 1
;;
esac
------ envsys.conf ------
# $NetBSD: envsys.conf,v 1.13 2017/10/21 19:43:53 jmcneill Exp $
#
# ----------------------------------------------------------------------
# Configuration file for envstat(8) and the envsys(4) framework.
# ----------------------------------------------------------------------
# Bateria externa
acpibat0 {
sensor5 {
critical-capacity = 10;
warning-capacity = 20;
high-capacity = 5;
maximum-capacity = 20;
}
}
# Bateria interna
acpibat1 {
sensor5 {
critical-capacity = 10;
warning-capacity = 20;
high-capacity = 5;
maximum-capacity = 20;
}
}
# Temperatura de los nucleos
coretemp0 {
sensor0 {
critical-max = 100C;
critical-min = 95C;
warning-max = 90C;
warning-min = 85C;
}
}
coretemp1 {
sensor0 {
critical-max = 100C;
critical-min = 95C;
warning-max = 90C;
warning-min = 85C;
}
}
------ pkg_intall.conf -----
CACHE_INDEX=yes
CHECK_VULNERABILITIES=interactive
PKG_PATH=http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/10.1/All
------ sysctl.conf -----
#!/sbin/sysctl -f
#
# $NetBSD: sysctl.conf,v 1.8 2011/09/25 21:47:22 christos Exp $
#
# sysctl(8) variables to set at boot time.
# Default on panic: dump core and reboot. See savecore(8) for information.
# Switch this to 1 if you want to enter the kernel debugger on crashes
# instead. See ddb(4) for an introduction and also try the "help" command
# at the db> prompt.
# If you understand the implication and want to change the behaviour before
# /etc/rc.d/sysctl is run, use the kernel option DDB_ONPANIC, see options(4).
ddb.onpanic?=0
# Desactivar trackpad
hw.synaptics.movement_enable=0
# Ajustar brillo de pantalla predeterminado
hw.acpi.acpiout15.brightness=40
# Frecuencia CPU predeterminada
machdep.cpu.frequency.target=2701
# Volcado de kernel y limpieza en cada arranque
kern.defcorename=/tmp/%n.core
# Limite maximo para archivos abiertos por el sistema
kern.maxfiles=65536
------ rc.conf -----
# $NetBSD: rc.conf,v 1.97 2014/07/14 12:29:48 mbalmer Exp $
#
# See rc.conf(5) for more information.
#
# Use program=YES to enable program, NO to disable it. program_flags are
# passed to the program on the command line.
#
# Load the defaults in from /etc/defaults/rc.conf (if it's readable).
# These can be overridden below.
#
if [ -r /etc/defaults/rc.conf ]; then
. /etc/defaults/rc.conf
fi
# If this is not set to YES, the system will drop into single-user mode.
#
rc_configured=YES
critical_filesystems_local="OPTIONAL:/var OPTIONAL:/usr"
# Add local overrides below.
#
dbus=YES
sshd=YES
ntpdate=YES
ntpd=YES
wscons=YES
hostname=X260
random_file=/etc/entropy-file
clear_tmp=YES
if /sbin/sysctl -q hw.acpi.root; then
powerd=YES
fi
# Configuracion de red
ifconfig_iwm0="up"
wpa_supplicant=YES
wpa_supplicant_flags="-B -s -i iwm0 -D bsd -c /etc/wpa_supplicant.conf"
dhcpcd=YES
dhcpcd_flags="-qM iwm0"
dhcpcd_flags="${dhcpcd_flags} -b"
# Preferir IPv4 sobre IPv6
ip6addrctl=YES
ip6addrctl_policy=ipv4_prefer
# Gestionar frecuencia del CPU
envsys=YES
# Confifuracion predeterminada de audio
mixerctl=YES
# Habilitar CUPS
cupsd=YES
# Bloqueo de dominios no deseados
unbound=YES
unbound_flags="-c /etc/unbound/unbound.conf"
##########################################
# Concatenated disk drive
ccd=NO
# Protocolo de conexiones de red a punto (Point-to-Point Protocol)
ppp=NO
# Actualizar fontconfig cache durante el arranque
fccache=NO
# Desactivar limites y uso de disco
quota=NO
# Volcado de kernel del sistema
savecore=NO
# Controlador de disco criptografico
cgd=NO
# Controlador de disco RAIDframe
raidframe=NO