Hi, good evening.
As mentioned in the title of this thread, I’m having trouble selecting the CPU frequency.
To start with, as shown in the video, the maximum frequency of my laptop’s processor is 3.4 GHz — or am I mistaken?
It also shows that with Turbo Boost enabled, the maximum allowed frequency is 2701 MHz. However, in the list of available frequencies provided by sysctl, 2701 MHz doesn’t appear.
And when I try to select any of the available ones from the list, it doesn’t let me, as shown in the video.

I’m trying to understand what’s going on, since I’m currently tweaking the acadapter script in powerd for power management. This is how I have the script set up at the moment:
#!/bin/sh -
#
# $NetBSD: acadapter,v 1.4 2010/12/31 09:29:43 jruoho Exp $
#
CURRENT_FREQ=$(sysctl -n machdep.cpu.frequency.current)
TARGET_HIGH=2701
TARGET_LOW=600
case "${2}" in
pressed)
logger -p info "${0}: Conectado a corriente: evaluando frecuencia actual (${CURRENT_FREQ} MHz)..." >&1
if [ "$CURRENT_FREQ" -le "$TARGET_LOW" ]; then
logger -p info "${0}: Ajustando frecuencia a alto rendimiento ($TARGET_HIGH MHz)" >&1
/sbin/sysctl -w machdep.cpu.frequency.target=$TARGET_HIGH
else
logger -p info "${0}: Frecuencia ya está optimizada ($CURRENT_FREQ MHz)" >&1
fi
for intf in $(/sbin/ifconfig -l); do
/sbin/ifconfig $intf -powersave >/dev/null 2>&1
done
# Activar brillo máximo de la pantalla
/sbin/sysctl -w hw.acpi.acpiout15.brightness=100
# Iniciar cron (recoleccion de logs, mantenimiento)
#
/etc/rc.d/cron start
/etc/rc.d/cupsd start
/etc/rc.d/ntpd start
# Iniciar syncthing si no está corriendo
if ! pgrep -u skynet syncthing >/dev/null 2>&1; then
su -l skynet -c "$HOME/.local/scripts/syncthing-wrapper.sh &"
logger -p info "${0}: Syncthing iniciado (corriente conectada)"
fi
exit 0
;;
released)
logger -p info "${0}: Desconectado de corriente: evaluando frecuencia actual (${CURRENT_FREQ} MHz)..." >&1
if [ "$CURRENT_FREQ" -gt 400 ]; then
logger -p info "${0}: Ajustando frecuencia a modo ahorro ($TARGET_LOW MHz)" >&1
/sbin/sysctl -w machdep.cpu.frequency.target=$TARGET_LOW
else
logger -p info "${0}: Frecuencia ya está optimizada para batería ($CURRENT_FREQ MHz)" >&1
fi
for intf in $(/sbin/ifconfig -l); do
/sbin/ifconfig $intf powersave >/dev/null 2>&1
done
# Ajustar brillo de pantalla bajo
/sbin/sysctl -w hw.acpi.acpiout15.brightness=20
# Detener servicios que escriben en el disco.
#
/etc/rc.d/cron stop
/etc/rc.d/cupsd stop
/etc/rc.d/ntpd stop
# Detener syncthing si está en ejecución
pkill -u skynet syncthing
logger -p info "${0}: Syncthing detenido (uso de batería)"
/usr/sbin/syslogd -s -f /etc/syslog.conf.battery
exit 0
;;
*)
logger -p warning "${0}: Evento no soportado ${2} en dispositivo ${1}" >&1
exit 1
;;
esac