NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
1 2 3 4 5 … 35 Next »
Suspend and Resume with the Hauppauge 2250 card

 
  • 0 Vote(s) - 0 Average
Suspend and Resume with the Hauppauge 2250 card
TV_Hacker
Offline

Junior Member

US
Posts: 1
Threads: 1
Joined: Jan 2026
#1
Yesterday, 01:03 AM
I was able to get wake from suspend working with the Hauppauge 2250 on Ubuntu 24.04 Linux.

The driver in use is saa7164.

The driver would lock up once the system went to suspend so resume would result in an unusable system.
I would have to completely power down the system to get it working again.
I thought I had it solved by unloading the driver, but the driver would fail when trying to reload upon resume. 
Solution was to clear memory cache before suspend.

Solution:

/usr/lib/systemd/system-sleep/saa7164_driver_handler.sh
Need execute permissions on the script:
(-rwxr-xr-x 1 root root 584 Jan  7 23:23 saa7164_driver_handler.sh)

#!/bin/bash
DRIVER="saa7164" # Replace driver_name with your specific driver

case "${1}" in
    pre)
        # Actions to take BEFORE suspend
        echo "Stopping nextpvr-server..."
        systemctl stop nextpvr-server
        echo "Unloading $DRIVER modules..."
        modprobe -r $DRIVER
        sync
        echo 3 > /proc/sys/vm/drop_caches
        ;;
    post)
        # Actions to take AFTER resume
        echo "Loading $DRIVER modules..."
        modprobe $DRIVER
        echo "Starting nextpvr-server..."
        systemctl start nextpvr-server
        ;;
esac

I also required the devices to be loaded before the nextpvr-server would be allow to start

In /usr/lib/systemd/system/nextpvr-server.service

[Unit]
Description=NextPVRServer
After=network-online.target
Wants=dev-dvb-adapter0-frontend0.device
After=dev-dvb-adapter0-frontend0.device
Wants=dev-dvb-adapter1-frontend0.device
After=dev-dvb-adapter1-frontend0.device
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 54,561
Threads: 973
Joined: May 2006
#2
Yesterday, 01:09 AM (This post was last modified: Yesterday, 01:20 AM by mvallevand.)
Just out of curiosity are you saying that running pkill DeviceHostLinux instead of stopping the server didn't work on sleep? I have the 2250 and it basically worked using something similar to your script based on this https://wiki.mythtv.org/wiki/Suspend_and_saa7164

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Hauppauge-HVR-850 not working Rooh2os 3 1,248 2025-06-08, 04:21 PM
Last Post: mvallevand
  Downloaded VOD cannot skip ahead/FF/RW/RESUME SysAdminZ 95 11,598 2025-03-28, 01:55 AM
Last Post: mvallevand
  Not Waking From Suspend dumfy 6 2,639 2024-12-04, 06:56 AM
Last Post: Evo_Evz
  Wake on suspend for recording flyingsubs 15 6,962 2024-12-03, 01:07 PM
Last Post: mvallevand
  Wake after Suspend issue with dvbt devices (LE12 Kodi 21) ShadowMask 41 10,148 2024-02-09, 07:11 AM
Last Post: ShadowMask
  TV card not available donbrew 10 2,231 2024-01-04, 09:04 PM
Last Post: donbrew
  Can't Remember How to Install Hauppauge Firmware Mark_S 2 1,942 2023-09-03, 12:18 PM
Last Post: Mark_S
  Raspberry Pi 4 & Hauppauge 950Q - Stuck on Live TV jogeedaklown 2 1,444 2022-01-06, 04:26 PM
Last Post: jogeedaklown
  Doesn't recognize DVB card Dis 50 11,250 2021-08-30, 06:01 PM
Last Post: Dis
  Multirec with Hauppauge koijh65 6 2,701 2021-03-09, 04:55 AM
Last Post: koijh65

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode