I'm using the TBS-5281 dvb-c USB module with Tvheadend 4.2 in Libreelec 8.0.0 environment. This Libreelec version uses the Linux 4.9.8 version.
I would like to sleep the system is used by Kodi Krypton suspend power-off option, but the system is freezed. If I have disconnected the USB module from system the suspend process has worked correctly.
In next step I have rebooted and reconnected the USB hardware to Libreelec and I have tested the cx231xx module dependency tree by lsmod command:
lsmod | grep cx
cx231xx_dvb_ci 14873 0
tas2101 8235 1 cx231xx_dvb_ci
dvb_core 82018 1 cx231xx_dvb_ci
cx25840 138349 1
cx231xx 147335 1 cx231xx_dvb_ci
videobuf_vmalloc 4231 1 cx231xx
videobuf_core 14600 2 cx231xx,videobuf_vmalloc
cx2341x 15535 1 cx231xx
i2c_mux 4330 2 si2168,cx231xx
v4l2_common 3125 3 cx2341x,cx231xx,cx25840
tveeprom 13169 1 cx231xx
videodev 113087 4 cx2341x,v4l2_common,cx231xx,cx25840
rc_core 17350 4 `imon,rc_imon_pad,cx231xx
Display More
Before I removed from memory the dvb driver module I have stopped the tvheadend by using the following commands:
systemctl stop service.tvheadend42
systemctl is-active service.tvheadend42
inactive
After this randomly sometimes rmmod cx231xx_dvb_ci command answers:
rmmod: ERROR: Module cx231xx_dvb_ci is in use
or
Killed
I think it doesn't normal message, may be it is a Linux kernel module problem.
BTW I will use the `89-tvheadend.power` script file in /storage/.config.sleep.d for stopping and restarting the dvb modules, but until doesn't solve above problem I couldn't use it. The `REMOVE_MODULE` variable can be set in Tvheadend42 addon configuration panel which will be included the removing module name sequence.
. /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 $REMOVE_MODULES ; do
rmmod $module
done
fi
;;
post)
if systemctl is-enabled "$SERVICE" &>/dev/null ; then
for module in $REMOVE_MODULES ; do
modprobe $module
done
systemctl start "$SERVICE"
fi
;;
esac
Display More
Can somebody help me?
PS: I'm sending some additional information:
modinfo cx231xx
filename: /lib/modules/4.9.8/updates/cx231xx.ko
version: 0.0.3
license: GPL
description: Conexant cx231xx based USB video device driver
author: Srinivasa Deevi <[email protected]>
firmware: v4l-cx23885-enc.fw
srcversion: 69AE4B51D811435B01A920C
...
depends: videobuf-core,videodev,v4l2-common,tveeprom,cx2341x,videobuf-vmalloc,rc-core
vermagic: 4.9.8 SMP mod_unload
parm: pcb_debug:enable pcb config debug messages [video] (int)
parm: mpegbufs:number of mpeg buffers, range 2-32 (int)
parm: mpeglines:number of lines in an MPEG buffer, range 2-32 (int)
parm: mpeglinesize:number of bytes in each line of an MPEG buffer, range 512-1024 (int)
parm: v4l_debug:enable V4L debug messages (int)
parm: core_debug:enable debug messages [core] (int)
parm: reg_debug:enable debug messages [URB reg] (int)
parm: alt:alternate setting to use for video endpoint (int)
parm: tuner:tuner type (int)
parm: transfer_mode:transfer mode (1-ISO or 0-BULK) (int)
parm: disable_ir:disable infrared remote support (int)
parm: i2c_scan:scan i2c bus at insmod time (int)
parm: i2c_debug:enable debug messages [i2c] (int)
parm: isoc_debug:enable debug messages [isoc transfers] (int)
parm: card:card type (array of int)
parm: video_nr:video device numbers (array of int)
parm: vbi_nr:vbi device numbers (array of int)
parm: radio_nr:radio device numbers (array of int)
parm: video_debug:enable debug messages [video] (int)
Display More
modinfo cx231xx_dvb_ci
filename: /lib/modules/4.9.8/updates/cx231xx-dvb-ci.ko
license: GPL
author: Srinivasa Deevi <[email protected]>
description: driver for cx231xx based DVB cards
depends: cx231xx,dvb-core,tas2101
vermagic: 4.9.8 SMP mod_unload
parm: debug:enable debug messages [dvb] (int)
parm: adapter_nr:DVB adapter numbers (array of short)
modinfo si2168
filename: /lib/modules/4.9.8/updates/si2168.ko
firmware: dvb-demod-si2168-b40-01.fw
firmware: dvb-demod-si2168-a30-01.fw
firmware: dvb-demod-si2168-a20-01.fw
license: GPL
description: Silicon Labs Si2168 DVB-T/T2/C demodulator driver
author: Antti Palosaari <[email protected]>
alias: i2c:si2168
depends:
vermagic: 4.9.8 SMP mod_unload
Display More
modinfo si2157
filename: /lib/modules/4.9.8/updates/si2157.ko
firmware: dvb-tuner-si2141-a10-01.fw
firmware: dvb-tuner-si2158-a20-01.fw
license: GPL
author: Antti Palosaari <[email protected]>
description: Silicon Labs Si2146/2147/2148/2157/2158 silicon tuner driver
alias: i2c:si2141
alias: i2c:si2146
alias: i2c:si2157
depends:
vermagic: 4.9.8 SMP mod_unload
Display More