- Official Post
pls test this image if this still works
LibreELEC-Generic.x86_64-8.0.1-pr-suspend-fix.img.gz
if so i pr the changes
pls test this image if this still works
LibreELEC-Generic.x86_64-8.0.1-pr-suspend-fix.img.gz
if so i pr the changes
any news ?
Hi,
I'm testing your version, and I think it is the stable version for suspend of TBS5281 dvb-c driver. I have modified the .config/sleep.d/89-tvheadend.power file as following:
#!/bin/sh
################################################################################
# This file is part of LibreELEC - https://LibreELEC.tv
# Copyright (C) 2016 Team LibreELEC
#
# LibreELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# LibreELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
. /etc/profile
oe_setup_addon service.tvheadend42
SERVICE="service.tvheadend42"
case "$1" in
pre)
if systemctl is-active "$SERVICE" &>/dev/null ; then
systemctl stop "$SERVICE"
for module in "cx231xx_dvb_ci cx231xx" ; do
rmmod $module
done
fi
;;
post)
if systemctl is-enabled "$SERVICE" &>/dev/null ; then
for module in "cx231xx cx231xx_dvb_ci" ; do
modprobe $module
done
systemctl start "$SERVICE"
fi
;;
esac
Display More
Please inform me if you will put this version to github or official download site of Libreelec8.x
great
btw you don't need to modify the scripts, just add it to here
Yes, but the problem was the rmmod sequence of cx driver. The REMOVE_MODULE variable uses same sequence of module name when system go to sleep and when go back from sleep.
Hi,
I try to solve the tvheadend.power script problem by using the bash array function, but the busybox bash doesn't support it. My colleague create a good solution of it by using a complex loop. I have tested it and works fine in Libreelec environment. This script solve proper sequence of the module insert and remove using the REMOVE_MODULES variable, witch can be edited from DVB setup of Kodi Tvheadend plugin.
#!/usr/bin/bash
################################################################################
# This file is part of LibreELEC - https://LibreELEC.tv
# Copyright (C) 2016 Team LibreELEC
#
# LibreELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# LibreELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
. /etc/profile
oe_setup_addon service.tvheadend42
SERVICE="service.tvheadend42"
Length=$(for i in `echo $REMOVE_MODULES`; do echo $i; done | wc -l)
case "$1" in
pre)
if systemctl is-active "$SERVICE" &>/dev/null ; then
systemctl stop "$SERVICE"
rmmod $(for j in `seq 1 $Length`; do for i in `echo $REMOVE_MODULES`; do echo $i; done | head -$j | tail -1; done)
fi
;;
post)
if systemctl is-enabled "$SERVICE" &>/dev/null ; then
modprobe $(for j in `seq 1 $Length`; do for i in `echo $REMOVE_MODULES`; do echo $i; done | tail -$j | head -1; done)
systemctl start "$SERVICE"
fi
;;
esac
Display More
If it is proper for you please put it in the distribution to /storage/.config/sleep.d directory.
Thanks
schneci