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 … 36 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: 2
Threads: 1
Joined: Jan 2026
#1
2026-01-11, 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
Offline

Posting Freak

Ontario Canada
Posts: 54,870
Threads: 982
Joined: May 2006
#2
2026-01-11, 01:09 AM (This post was last modified: 2026-01-11, 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
TV_Hacker
Offline

Junior Member

US
Posts: 2
Threads: 1
Joined: Jan 2026
#3
2026-01-25, 08:46 PM
For me it did not always work to just unload the driver before sleep and then reload on wake.
I had to add the line:
echo 3 > /proc/sys/vm/drop_caches

But I have discovered that does not always work either. Works most of the time.
I have not tried pkill DeviceHostLinux. (Not sure what the does?)

I have now decided the best course of action is not to allow Suspend. I have the computer shutdown at end of the day. Before shutdown it checks the nextpvr database for the next recording time and will set an rtc alarm to wake up for the next scheduled recording.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 54,870
Threads: 982
Joined: May 2006
#4
2026-01-25, 08:56 PM
DeviceHostWindows opens /dev/dvb/adapter.. and doesn't release it after recording so the pkill releases the adapter without shutting the backend down completely. Agreed it is not a good device to suspend.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Hauppauge on Debian jasonwilliams 3 248 2026-02-16, 02:26 PM
Last Post: mvallevand
  Hauppauge Dual HD tuner not scanning adwsail 4 195 2026-02-10, 05:59 PM
Last Post: bgowland
  Hauppauge-HVR-850 not working Rooh2os 3 1,328 2025-06-08, 04:21 PM
Last Post: mvallevand
  Downloaded VOD cannot skip ahead/FF/RW/RESUME SysAdminZ 95 12,714 2025-03-28, 01:55 AM
Last Post: mvallevand
  Not Waking From Suspend dumfy 6 2,758 2024-12-04, 06:56 AM
Last Post: Evo_Evz
  Wake on suspend for recording flyingsubs 15 7,312 2024-12-03, 01:07 PM
Last Post: mvallevand
  Wake after Suspend issue with dvbt devices (LE12 Kodi 21) ShadowMask 41 10,890 2024-02-09, 07:11 AM
Last Post: ShadowMask
  TV card not available donbrew 10 2,407 2024-01-04, 09:04 PM
Last Post: donbrew
  Can't Remember How to Install Hauppauge Firmware Mark_S 2 2,061 2023-09-03, 12:18 PM
Last Post: Mark_S
  Raspberry Pi 4 & Hauppauge 950Q - Stuck on Live TV jogeedaklown 2 1,544 2022-01-06, 04:26 PM
Last Post: jogeedaklown

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

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

Linear Mode
Threaded Mode