NixOS on ARM/ODROID-HC4: Difference between revisions

imported>Erdnaxe
Add audio
imported>Erdnaxe
Link to nixos-hardware
Line 57: Line 57:


== Known issues ==
== Known issues ==
=== Fan doesn't work by default ===
=== Fan doesn't work by default ===
You need to use software fan control (via <code>fancontrol</code>) for this. Add the following to your <code>configuration.nix</code>:
You need to use software fan control (via <code>fancontrol</code>) for this.
<syntaxhighlight>
You may refer to [[https://github.com/NixOS/nixos-hardware/blob/master/hardkernel/odroid-hc4/default.nix nixos-hardware Odroid HC4 module]] for <code>fancontrol</code> configuration.
# Based on the config from https://www.armbian.com/odroid-hc4/. Made MINTEMP and MAXTEMP a bit more relaxed so the fan doesn't run on idle.
hardware.fancontrol = {
    enable = true;
    config = ''
    INTERVAL=10
    DEVPATH=hwmon0=devices/virtual/thermal/thermal_zone0 hwmon2=devices/platform/pwm-fan
    DEVNAME=hwmon0=cpu_thermal hwmon2=pwmfan
    FCTEMPS=hwmon2/pwm1=hwmon0/temp1_input
    MINTEMP=hwmon2/pwm1=55
    MAXTEMP=hwmon2/pwm1=65
    MINSTART=hwmon2/pwm1=20
    MINSTOP=hwmon2/pwm1=28
    MINPWM=hwmon2/pwm1=0
    MAXPWM=hwmon2/pwm1=255
    '';
};
</syntaxhighlight>


== No HDMI audio by default ==
== No HDMI audio by default ==