Skip to content

vdb86/htpc-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

HTPC Setup

Experience and tweaks for my HTPC

I bought a GB-BTIP-N250 to build an HTPC to replace my Raspberry Pi 4 (with LibreELEC and Docker), which started occasionally freezing after 4+ years of running 24/7.

The initial idea was to run Linux Mint, but after 2 weeks of trying to get everything working, I was forced to give up — the drivers for the Intel N250 just aren't there yet. Maybe in 6 months or a year everything will work well.

I switched to Windows 11 Pro, and even though it uses a bit more resources than Linux Mint, everything works perfectly.


What I Set Up (and Why This Repo Exists)

  • Autologin with a local account
    In case the HTPC reboots, it will fully boot up and start all necessary programs automatically.

  • Fan control and CPU frequency
    The fans on this mini PC can get quite annoying — there's no BIOS control for TDP, and the CPU gets hot fast, ramping up RPM aggressively.
    I limited the CPU to 3.4GHz and installed Fan Control — this app is worth gold.
    Huge thanks to Rémi Mercier: https://github.com/Rem0o

  • Flex Launcher
    An excellent HTPC launcher with great configuration documentation.
    Big thanks to: https://github.com/complexlogic

  • Focus script for Flex Launcher
    Sometimes other apps would steal focus from Flex Launcher. I wrote a script (Flex.ps1) that runs in the background (low priority), checks every 30 seconds if Flex Launcher is running and focused, and restores focus if needed.
    Some apps launched from Flex are whitelisted to take focus. The script is included in the files folder.

    I converted the script to an .exe, so it starts automatically on boot.
    If you want to use it:

    1. Edit Flex.ps1 to fit your setup.
    2. Run it as-is or convert it to an .exe.
      See Convert to exe.txt for instructions (in the files folder).
  • CEC support with Pulse-Eight adapter
    I installed a Pulse-Eight USB CEC adapter and updated its drivers.
    If Kodi crashes on launch after this, just reinstall it — you won’t lose any data.

  • CEC Tray behavior
    After launching Kodi, CEC-Tray disappears from the taskbar — this is expected.
    Kodi uses the libCEC library exclusively, and only one application can access the adapter at a time.

    I wrote a script (StartKodi.ps1) that:

    • Launches Kodi
    • Starts CEC-Tray after Kodi exits

    I don't believe you need to change the script as it's quite simple, but check file paths to make sure they match your setup. The script is included in the files folder. You can run it as-is or convert it to an .exe.
    See Convert to exe.txt for instructions (in the files folder).

  • KDE Connect
    Installed KDE Connect so I can send web pages from my phone to the HTPC. They open in the default browser (Firefox with uBlock).

  • YouTube TV via browser
    Installed this Firefox extension:
    YouTube for TV

    Then installed Violentmonkey and added two user scripts (I've included them in the files folder):

    • Autologin - This selects the first profile in the login window and moves forward to the video.
    • Redirect - This receives the normal YouTube link and redirects it to YouTube.com/tv.

    Now, when I send a YouTube video to the HTPC, it opens in youtube.com/tv.

  • SMB transfer fix
    I noticed transfer speeds to my Synology NAS were slow (~16 MB/s).
    After researching, I found the issue was caused by Windows 11 and fixed it by disabling security signature enforcement.
    Source: Winaero

    Run this in an elevated command prompt:

    reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v RequireSecuritySignature /t REG_DWORD /d 0 /f

    Then reboot. Transfer speeds will go back to normal.

About

Experience and tweaks for HTPC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published