Tag Archives: htpc

Linux: TVHeadend and systemd

I upgraded my HTPC to Debian Jessie, which uses systemd. As a result, though the timer script here still works, the pm-suspend scripts don’t. I changed to using systemd services.

/etc/systemd/system/resume.service:

Unit]
Description=User resume actions
After=suspend.target

[Service]
User=%i
Type=simple
ExecStartPre=/sbin/modprobe saa7164
ExecStart=/bin/systemctl start tvheadend

[Install]
WantedBy=suspend.target

/etc/systemd/system/suspend.service:

[Unit]
Description=User suspend actions
Before=sleep.target

[Service]
User=%i
Type=simple
Environment=DISPLAY=:0
ExecStartPre=/bin/systemctl stop tvheadend ; /home/hts/.epg/timer.sh
ExecStart=/sbin/rmmod saa7164

[Install]
WantedBy=sleep.target

The timer script referenced in the suspend service is the same one linked above.

Advertisements
Tagged , , ,

Linux: HTPC

I set up an HTPC. I wanted it to do several things:

  • Play my local and network music, TV, and movie files
  • Play and record over-the-air television
  • Stream videos from the internet
  • Play and stream Steam games
  • Do desktop browser things, including YouTube and Twitch

These are just my notes on what exactly I did, in case I ever need to reinstall or do it all again for some reason or another.

Continue reading

Tagged , , , , ,