NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
« Previous 1 … 3 4 5 6 7 … 34 Next »
Wake after Suspend issue with dvbt devices (LE12 Kodi 21)

 
  • 0 Vote(s) - 0 Average
Wake after Suspend issue with dvbt devices (LE12 Kodi 21)
ShadowMask
Offline

Member

Posts: 58
Threads: 3
Joined: Apr 2019
#21
2024-02-07, 12:56 PM (This post was last modified: 2024-02-07, 12:57 PM by ShadowMask.)
(2024-02-07, 12:38 PM)satforall Wrote: I notice you are using Ubuntu 22.04. Is that the LTS HWE version.

I am just using LibreElec, for this test it was version 11.0.6, but The version 12 nightlies did the same. I don't know what kernel that version has?

(2024-02-07, 12:38 PM)satforall Wrote: internal PCI/e

It's a Hauppauge Quad TV internal PCI/e card.

Thanks
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,823
Threads: 954
Joined: May 2006
#22
2024-02-07, 01:21 PM (This post was last modified: 2024-02-07, 01:26 PM by mvallevand.)
I notice TVHeadend in LE  supplies a sleep.d file which does stop and start itself too. https://github.com/LibreELEC/LibreELEC.t...dend.power.

If you want to test something similar I will add it to to the LE 11 and 12 packages for everyone. NextPVR does not load modules so it should be straightforward
ShadowMask
Offline

Member

Posts: 58
Threads: 3
Joined: Apr 2019
#23
2024-02-07, 01:41 PM
(2024-02-07, 01:21 PM)mvallevand Wrote: I notice TVHeadend in LE  supplies a sleep.d file which does stop and start itself too. https://github.com/LibreELEC/LibreELEC.t...dend.power.

If you want to test something similar I will add it to to the LE 11 and 12 packages for everyone. NextPVR does not load modules so it should be straightforward

Happy to test it, thanks for looking further into this for me.

Thanks Martin
satforall
Offline

Member

Ireland
Posts: 149
Threads: 3
Joined: Aug 2022
#24
2024-02-07, 01:55 PM
(2024-02-07, 12:56 PM)ShadowMask Wrote:
(2024-02-07, 12:38 PM)satforall Wrote: I notice you are using Ubuntu 22.04. Is that the LTS HWE version.

I am just using LibreElec, for this test it was version 11.0.6, but The version 12 nightlies did the same. I don't know what kernel that version has?

(2024-02-07, 12:38 PM)satforall Wrote: internal PCI/e

It's a Hauppauge Quad TV internal PCI/e card.

Thanks

SSH into your system and run to check your kernel version.
Code:
uname -r
ShadowMask
Offline

Member

Posts: 58
Threads: 3
Joined: Apr 2019
#25
2024-02-07, 03:06 PM (This post was last modified: 2024-02-07, 03:11 PM by ShadowMask.)
(2024-02-07, 01:41 PM)ShadowMask Wrote:
(2024-02-07, 01:21 PM)mvallevand Wrote: I notice TVHeadend in LE  supplies a sleep.d file which does stop and start itself too. https://github.com/LibreELEC/LibreELEC.t...dend.power.

If you want to test something similar I will add it to to the LE 11 and 12 packages for everyone. NextPVR does not load modules so it should be straightforward

Happy to test it, thanks for looking further into this for me.


I removed my kodi service addon to make sure that wasn't doing the restarts then created /storage/.config/sleep.d and put the following script in there as nextpvr.power:

Code:
#!/bin/sh

SERVICE="service.nextpvr"

case "$1" in
  pre)
    if systemctl is-active "$SERVICE" &>/dev/null ; then
      systemctl stop "$SERVICE"
    fi
    ;;
  post)
    if systemctl is-enabled "$SERVICE" &>/dev/null ; then
      systemctl start "$SERVICE"
    fi
    ;;
esac


The power script works fine and I can now playback and record after suspend. I will try it with timed recordings throughout the week.

Interestingly, despite having tvheadend installed and it working fine with suspend, I had no sleep.d and had to create it, but it all seems to be working now.

(2024-02-07, 01:55 PM)satforall Wrote: SSH into your system and run to check your kernel version.
Code:
uname -r

Currently on LE12 and it's running 6.6.14, but I think my issue was different from yours as I've never been able to record after suspend until today, despite trying several times through the years
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,650
Threads: 767
Joined: Nov 2003
#26
2024-02-07, 05:50 PM
NextPVR has never attempted to do any power management stuff on Linux. It does on Windows, but not Linux.

I'll try to take a look this weekend, to see if I can have it cleanly exit DeviceHostLinux when the machine is put to sleep.
ShadowMask
Offline

Member

Posts: 58
Threads: 3
Joined: Apr 2019
#27
2024-02-07, 06:14 PM
(2024-02-07, 05:50 PM)sub Wrote: NextPVR has never attempted to do any power management stuff on Linux. It does on Windows, but not Linux.

I'll try to take a look this weekend, to see if I can have it cleanly exit DeviceHostLinux when the machine is put to sleep.

Thanks sub,
To be honest I've never had an issue with power management as it's quite easy to setup within kodi in LibreElec anyway, I think it just is the tuners not being in a clean state when the system wakes.

Thank you all for your help
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,650
Threads: 767
Joined: Nov 2003
#28
2024-02-07, 07:20 PM
In theory, when a stream is stopped, if there are no other active streams, the tuner is fully stopped and released, and should be in a good state for being suspended/resumed, but it's not something I've actively tested.
ShadowMask
Offline

Member

Posts: 58
Threads: 3
Joined: Apr 2019
#29
2024-02-07, 09:01 PM
(2024-02-07, 07:20 PM)sub Wrote: In theory, when a stream is stopped, if there are no other active streams, the tuner is fully stopped and released, and should be in a good state for being suspended/resumed, but it's not something I've actively tested.

Yes,
It seems like more of a timing thing for me, if I suspend the system manually directly after ending playback of a channel or recording, then I would always get this issue when resuming. But if the system went to sleep after idle time, it may or may not happen.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,823
Threads: 954
Joined: May 2006
#30
2024-02-08, 12:13 AM
Sub, it is definitely not released. I don't have tuner's primed but if I want to use dvbv5-scan I have to kill the child process.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (5): « Previous 1 2 3 4 5 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Guide data issue using NextPVR in a Proxmox LXC njc 10 803 2025-03-23, 01:40 PM
Last Post: njc
  Kodi Addon not connecting on server if vpn on sgar75 1 232 2025-01-27, 12:44 PM
Last Post: mvallevand
  Recording Plyback Timeline Issue JeffH 11 598 2025-01-17, 03:20 PM
Last Post: mvallevand
  Not Waking From Suspend dumfy 6 1,359 2024-12-04, 06:56 AM
Last Post: Evo_Evz
  Wake on suspend for recording flyingsubs 15 4,416 2024-12-03, 01:07 PM
Last Post: mvallevand
  Pi5 / Firefox 128.0 - ctrl key in devices screen does not work TheRealRoland 4 614 2024-08-02, 07:26 PM
Last Post: TheRealRoland
  "Unexpected error scanning for other devices" BlackJack 2 721 2023-07-15, 03:03 PM
Last Post: BlackJack
  Request for supporting Ceton devices on Linux dapharsyde 280 39,363 2023-04-02, 12:34 AM
Last Post: run088
  Yay! DST issue :-( TheRealRoland 3 717 2023-03-12, 04:45 PM
Last Post: mvallevand
  Recent streaming issue with Matt Huisman Aus TV streams ballfam 74 10,717 2023-03-08, 10:35 PM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode