<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kodi.wiki/index.php?action=history&amp;feed=atom&amp;title=Archive%3AFix_TBS6981_Sleep_Issue</id>
	<title>Archive:Fix TBS6981 Sleep Issue - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kodi.wiki/index.php?action=history&amp;feed=atom&amp;title=Archive%3AFix_TBS6981_Sleep_Issue"/>
	<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Fix_TBS6981_Sleep_Issue&amp;action=history"/>
	<updated>2026-06-06T00:43:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Fix_TBS6981_Sleep_Issue&amp;diff=219724&amp;oldid=prev</id>
		<title>Karellen: Karellen moved page HOW-TO:Fix TBS6981 Sleep Issue to Archive:Fix TBS6981 Sleep Issue without leaving a redirect: Outdated</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Fix_TBS6981_Sleep_Issue&amp;diff=219724&amp;oldid=prev"/>
		<updated>2020-08-28T21:52:22Z</updated>

		<summary type="html">&lt;p&gt;Karellen moved page &lt;a href=&quot;/index.php?title=HOW-TO:Fix_TBS6981_Sleep_Issue&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;HOW-TO:Fix TBS6981 Sleep Issue (page does not exist)&quot;&gt;HOW-TO:Fix TBS6981 Sleep Issue&lt;/a&gt; to &lt;a href=&quot;/view/Archive:Fix_TBS6981_Sleep_Issue&quot; title=&quot;Archive:Fix TBS6981 Sleep Issue&quot;&gt;Archive:Fix TBS6981 Sleep Issue&lt;/a&gt; without leaving a redirect: Outdated&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:52, 28 August 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Karellen</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Fix_TBS6981_Sleep_Issue&amp;diff=56091&amp;oldid=prev</id>
		<title>&gt;Warrmr at 22:24, 27 December 2012</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Fix_TBS6981_Sleep_Issue&amp;diff=56091&amp;oldid=prev"/>
		<updated>2012-12-27T22:24:36Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:24, 27 December 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l27&quot;&gt;Line 27:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 27:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     ###################################################################################################################&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     ###################################################################################################################&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     #This script will cause the /sys/class/rc/rcX device to increment each time the system wakes, to get around this re-initiate ir-keytable pointing it to the new rcX device.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     # This script will cause the /sys/class/rc/rcX device to increment each time the system wakes, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                   #&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     # &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;-c &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;   &lt;/del&gt;Clears out the old IR-keytable&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    # &lt;/ins&gt;to get around this re-initiate ir-keytable pointing it to the new rcX device. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                                  #&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     # --Protocol sets the protocol to any of the ones that your system supports NEC, RC-5, RC-6, JVC, SONY, LIRC&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     # -c Clears out the old IR-keytable &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                                                                              #&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     # --sysdev=$(ls /sys/class/rc) sets ir-keytable to use the latest rcX device&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     # --Protocol sets the protocol to any of the ones that your system supports NEC, RC-5, RC-6, JVC, SONY, LIRC &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;     #&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     # -w loads a custom keymap file from /etc/rc_keytables/tbs_nec&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     # --sysdev=$(ls /sys/class/rc) sets ir-keytable to use the latest rcX device &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                                     #&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     ##################################################################################################################&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     # -w loads a custom keymap file from /etc/rc_keytables/tbs_nec &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                                                   #&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;#&lt;/ins&gt;##################################################################################################################&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     sudo ir-keytable -c --protocol=nec --sysdev=$(ls /sys/class/rc/) -w /etc/rc_keymaps/tbs_nec  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     sudo ir-keytable -c --protocol=nec --sysdev=$(ls /sys/class/rc/) -w /etc/rc_keymaps/tbs_nec  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         ;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         ;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>&gt;Warrmr</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Fix_TBS6981_Sleep_Issue&amp;diff=56090&amp;oldid=prev</id>
		<title>&gt;Warrmr: Created page with &quot;There is currently an issue with the TBS6981 where it does not currently support S3 sleep [REF] , meaning that if the system that the card is installed in is put into a hibernate...&quot;</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Fix_TBS6981_Sleep_Issue&amp;diff=56090&amp;oldid=prev"/>
		<updated>2012-12-27T19:03:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;There is currently an issue with the TBS6981 where it does not currently support S3 sleep [REF] , meaning that if the system that the card is installed in is put into a hibernate...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;There is currently an issue with the TBS6981 where it does not currently support S3 sleep [REF] , meaning that if the system that the card is installed in is put into a hibernate of sleeping state the card will not resume when the system wakes up.  To work around this issue a sleep/wake script will need to be run which unloads the card before hibernate and wakes it when the system resumes. &lt;br /&gt;
&lt;br /&gt;
To check to see if your card is experiencing this issue run the dmesg command and you should see lines like this appearing in the logfile &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
[  232.785420] cx23885[0]: failed to set up deferred work for AV Core/IR interrupt. Interrupt is disabled and won&amp;#039;t be re-enabled&lt;br /&gt;
[  233.840125] cx23885[0]: failed to set up deferred work for AV Core/IR interrupt. Interrupt is disabled and won&amp;#039;t be re-enabled&lt;br /&gt;
[  234.773581] cx23885[0]: failed to set up deferred work for AV Core/IR interrupt. Interrupt is disabled and won&amp;#039;t be re-enabled&lt;br /&gt;
[  235.007368] cx23885[0]: failed to set up deferred work for AV Core/IR interrupt. Interrupt is disabled and won&amp;#039;t be re-enabled&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Open your favourite text editor and save the below script as 99_dvb ( or what ever you wish to call it ) &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;${1}&amp;quot; in&lt;br /&gt;
  hibernate|suspend)&lt;br /&gt;
    sudo service mythtv-backend stop					#Stop MythTV Backend&lt;br /&gt;
    sudo service lirc stop						#Stop LIRC&lt;br /&gt;
    sudo modprobe -r cx23885 dvb_core rc_tbs_nec tbsfe tbs6981fe        #Unload TBS6981 drivers&lt;br /&gt;
        ;;&lt;br /&gt;
  resume|thaw)&lt;br /&gt;
    sudo modprobe cx23885						#Reload TBS6981 drivers&lt;br /&gt;
    sudo service mythtv-backend start					#Reload MythTv Backend &lt;br /&gt;
    sudo service lirc start						#Reload LIRC&lt;br /&gt;
    &lt;br /&gt;
    ###################################################################################################################&lt;br /&gt;
    #This script will cause the /sys/class/rc/rcX device to increment each time the system wakes, to get around this re-initiate ir-keytable pointing it to the new rcX device. &lt;br /&gt;
    #  -c    Clears out the old IR-keytable&lt;br /&gt;
    # --Protocol sets the protocol to any of the ones that your system supports NEC, RC-5, RC-6, JVC, SONY, LIRC&lt;br /&gt;
    # --sysdev=$(ls /sys/class/rc) sets ir-keytable to use the latest rcX device&lt;br /&gt;
    # -w loads a custom keymap file from /etc/rc_keytables/tbs_nec&lt;br /&gt;
    ##################################################################################################################&lt;br /&gt;
    sudo ir-keytable -c --protocol=nec --sysdev=$(ls /sys/class/rc/) -w /etc/rc_keymaps/tbs_nec &lt;br /&gt;
        ;;&lt;br /&gt;
  *)&lt;br /&gt;
    ;;&lt;br /&gt;
esac&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
move the file to the /etc/pm/sleep.d directory set the file permissions to 775, change the ownership to the Root user. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
XBMC:/$ sudo mv /99_dvb /etc/pm/sleep.d/&lt;br /&gt;
[sudo] password for xbmc:&lt;br /&gt;
&lt;br /&gt;
XBMC:/$ sudo chmod 755 /etc/pm/sleep.d/99_dvb &lt;br /&gt;
XBMC:/$ sudo chown root:root /etc/pm/sleep.d/99_dvb &lt;br /&gt;
matt@XBMC:/$ ls -l /etc/pm/sleep.d/&lt;br /&gt;
total 20&lt;br /&gt;
-rwxr-xr-x 1 root root  210 Oct 14 18:37 10_grub-common&lt;br /&gt;
-rwxr-xr-x 1 root root  581 Oct  5 15:21 10_unattended-upgrades-hibernate&lt;br /&gt;
-rwxr-xr-x 1 root root  428 Dec 27 17:45 99_dvb&lt;br /&gt;
-rwxr-xr-x 1 root root 1354 Dec 13 08:29 99lirc-resume&lt;br /&gt;
-rwxr-xr-x 1 root root 1260 May 23  2012 novatel_3g_suspend&lt;br /&gt;
matt@XBMC:/$ &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>&gt;Warrmr</name></author>
	</entry>
</feed>