Kodi Community Forum
[Asrock] Resume suspend mode, is it possible with IR? - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
---- Thread: [Asrock] Resume suspend mode, is it possible with IR? (/showthread.php?tid=60127)

Pages: 1 2 3 4 5


[Asrock] Resume suspend mode, is it possible with IR? - SubSense - 2009-10-22

Finally I've got things working with my old IR receiver from the XBOX1 DVD kit, Using an usb adapter from Ebay and a Harmony One.
But is it possible to resume from suspend using Infrared?
I am trying to figure out 2 issues.

1- How to config a single button on my Harmony to shutdown XBMC on the Asrock?

2- How to configure a button to wake it up again.

Things are working great on the Logitech DiNovo Mini (Bluetooth). I just press the "s" + OK and XBMC is going to suspend. And every button on the DiNovo wakes it up again.


- RockDawg - 2009-10-22

I can only speak of the Asrock ION 330, and it does wake from suspend through IR. I have my Harmony remote configured to act as a Windows MCE remote and it has a power toggle button that both wakes and suspends. I suspect your problem is that the original Xbox remote wasn't used to power on/off the Xbox and therefore has no power button. I suspect there's a way to configure a button via LIRC, but I don't know anything about it since mine worked out of the box.


- SubSense - 2009-10-22

o.k. Good to know, so I can bring it alive with IR. The search can begin!
I've got turn off/on and PowerToggle buttons on my harmony configured, but they do nothing. I've added de the Game Console / xbox1 in the Harmony Software.

Anyone using the same setup?


- tehsoul - 2009-10-22

SubSense Wrote:o.k. Good to know, so I can bring it alive with IR. The search can begin!
I've got turn off/on and PowerToggle buttons on my harmony configured, but they do nothing. I've added de the Game Console / xbox1 in the Harmony Software.

Anyone using the same setup?

i am
and looking for the same solution :-)
also i noticed that when resuming from suspend, the remote doesn't work anymore Sad

i'm using the setup as described here:
http://www.xbmc.org/forum/showthread.php?t=39181&highlight=xbox+dvd+remote&page=2

if you have better suggestions... Smile


- SubSense - 2009-10-22

tehsoul Wrote:i am
and looking for the same solution :-)
also i noticed that when resuming from suspend, the remote doesn't work anymore Sad

i'm using the setup as described here:
http://www.xbmc.org/forum/showthread.php?t=39181&highlight=xbox+dvd+remote&page=2

if you have better suggestions... Smile

Try editing the following section in the file /etc/default/acpi-support

[code]
# Add services to this list to stop them before suspend and restart them in
# the resume process.
STOP_SERVICES="lirc"
[/code

I still can't wake the Asrock though...


- SubSense - 2009-10-22

I keep getting these messages in my log:
allthough the remote is working....
Code:
21:23:36 T:3043477392 M:1441132544   DEBUG: Failed to connect to LIRC. Retry in 20s.
21:23:40 T:2996816784 M:1441021952   DEBUG: Thread 2996816784 terminating (autodelete)
21:23:40 T:3043477392 M:1441021952   DEBUG: SECTION:UnloadDelayed(DLL: special://xbmc/system/ImageLib-i486-linux.so)
21:23:40 T:3043477392 M:1441021952   DEBUG: Unloading: ImageLib-i486-linux.so
21:23:56 T:3043477392 M:1441001472   DEBUG: Failed to connect to LIRC. Retry in 40s.
21:24:04 T:3043477392 M:1440071680  NOTICE: Samba is idle. Closing the remaining connections
21:24:36 T:3043477392 M:1440010240   DEBUG: Failed to connect to LIRC. Giving up.

Could it be the cause that I cant wake the Asrock?
Maybe a delete / flush and reinstall lirc?


- vikjon0 - 2009-10-22

Asrock ION 330 suspend / resume with MCE remote & XBMCbuntu with no additional tweaking. If it is this box you have I am not sure what the problem is. Maybe Bios update needed?


- SubSense - 2009-10-23

I've got the latest BIOS version. I think will begin from scratch.
Will the Asrock wake up with any button or is there a special one?


- brownstein - 2009-10-23

my asrock will not wake as well, I used XBMScript.sh to install, I am using the xbox dvd dongle and a harmony remote and have updated the lircd.conf to include the extra mce buttons and reflected them on the lircmap.xml as well as my remote.xml.

the buttons all work perfectly, the machine suspends on shutting everything down but will not wake, i have to walk up and press a button on the keyboard to wake the asrock and then my remote will not work anymore either. For now, I just have my machine set to shutdown instead of suspend and I walk up and press the button when I want to watch something. I would sure love to have wake working though, I have reinstalled I don't know how many times and tried every workaround listed in these forums but right now everything works great aside from that so I will wait patiently until someone posts a working solution.


- SubSense - 2009-10-23

I am having the exact same problem. Allmost all the butons work right now (Only the shutdown button isn't).
I will look no further until someone finds a fix for this. Maybe in de upcoming release...


- RockDawg - 2009-10-23

Again, I don't know much about this stuff, but my MCE receiver has a red lLED that flashes whenever any button on the remote is pressed. The LED even responds to other remotes although they don't control the computer. However, one thing I've noticed (same thing happens on my Windows computer) is that when the computer is asleep, the only button press it sees is the MCE power button. No other button press yields a response from the LED or wakes the computer. So my guess would be that something is different when it's sleeping and it seems to be needing a 'special' command to wake which the MCE power provides.

I realize you guys aren't MCE remotes or receivers, but I would assume that is your problem and you need to find out what that special command is and see if there's a way to send it from your remote.


- SubSense - 2009-10-25

Thank for this onformation, As soon as the "Lirc dead after resume bug" is fixed I will start my quest to find that specific code to wake xbmc.


- brownstein - 2009-11-07

Has anyone made any progress on this issue? My Asrock suspends perfectly fine but will not wake via the remote. Once I wake it with the keyboard, the remote is unresponsive until I restart XBMC.

Asrock 330
XBOX DVD Dongle
Harmony 520

hardware.conf
Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="None"
REMOTE_MODULES="lirc_atiusb lirc_dev"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF=""
REMOTE_LIRCD_ARGS="-r"

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="true"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Default configuration files for your hardware if any
LIRCMD_CONF="lircd.conf"

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="true"
START_LIRCMD=""

lircd.conf
Code:
#This configuration has been automatically generated via
# this config file was automatically generated
# using lirc-0.8.3-CVS(default) on Fri Feb  8 09:34:50 2008
#
# brand: Microsoft Xbox DVD Receiever (also works with generic)
# remote control: Xbox remote or any remote using RCA DVD player codes

begin remote

  name  XboxDVDDongle
  bits            8
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  gap          163983
  toggle_bit_mask 0x0

      begin codes
          LEFT                     0xA9
          UP                       0xA6
          RIGHT                    0xA8
          DOWN                     0xA7
          SELECT                   0x0B
          1                        0xCE
          2                        0xCD
          3                        0xCC
          4                        0xCB
          5                        0xCA
          6                        0xC9
          7                        0xC8
          8                        0xC7
          9                        0xC6
          0                        0xCF
          MENU                     0xF7
          DISPLAY                  0xD5
          REWIND                   0xE2
          FFWD                     0xE3
          PLAY                     0xEA
          PAUSE                    0xE6
          STOP                     0xE0
          SKIP-                    0xDD
          SKIP+                    0xDF
          TITLE                    0xE5
          INFO                     0xC3
          BACK                     0xD8
       LIVETV            0x18
       RECORDEDTV         0x65
       RECORD             0xe8
       VOLUP             0xd0
       VOLDOWN             0xd1
       CHANUP             0xd2
       CHANDOWN             0xd3
       MUTE             0xc0
       POWER             0xc4
       VIDEOS             0x07
       MUSIC             0x09
       PICTURES             0x06
       TV                 0x31


      end codes

end remote

Continued on next post...


- brownstein - 2009-11-07

lircmap.xml
Code:
<!-- This file contains the mapping of LIRC keys to XBMC keys used in Keymap.xml  -->
<!--                                                                              -->
<!-- How to add remotes                                                           -->
<!-- <remote device="name_Lirc_calls_the_remote">                                 -->
<!--                                                                              -->
<!-- For the commands the layout following layout is used                         -->
<!-- <XBMC_COMMAND>LircButtonName</XBMC_COMMAND>                                  -->
<!--                                                                              -->
<!-- For a list of XBMC_COMMAND's check out the <remote> sections of keymap.xml   -->

<lircmap>
    <remote device="mceusb">
        <pause>Pause</pause>
        <stop>Stop</stop>
        <forward>Forward</forward>
        <reverse>Rewind</reverse>
        <left>Left</left>
        <right>Right</right>
        <up>Up</up>
        <down>Down</down>
        <select>OK</select>
        <pageplus>ChanUp</pageplus>
        <pageminus>ChanDown</pageminus>
        <back>Back</back>
        <menu>PreviousMenu</menu>
        <title>Play</title>
        <info>More</info>
        <skipplus>Skip</skipplus>
        <skipminus>Replay</skipminus>
        <display>Teletext</display>
        <start>Home</start>
        <record>Record</record>
        <volumeplus>VolUp</volumeplus>
        <volumeminus>VolDown</volumeminus>
        <mute>Mute</mute>
        <power>Power</power>
        <myvideo>Videos</myvideo>
        <mymusic>Music</mymusic>
        <mypictures>Pictures</mypictures>
        <mytv>TV</mytv>
        <one>One</one>
        <two>Two</two>
        <three>Three</three>
        <four>Four</four>
        <five>Five</five>
        <six>Six</six>
        <seven>Seven</seven>
        <eight>Eight</eight>
        <nine>Nine</nine>
        <zero>Zero</zero>
        <red>Red</red>
        <green>Green</green>
        <yellow>Yellow</yellow>
        <blue>Blue</blue>
    </remote>
    
    <remote device="XboxDVDDongle">
        <play>PLAY</play>
        <pause>PAUSE</pause>
        <stop>STOP</stop>
        <record>RECORD</record>
        <forward>FORWARD</forward>
        <reverse>REVERSE</reverse>
        <left>LEFT</left>
        <right>RIGHT</right>
        <up>UP</up>
        <down>DOWN</down>
        <recordedtv>RECORDEDTV</recordedtv>
        <livetv>LIVETV</livetv>
        <select>SELECT</select>
        <back>BACK</back>
        <menu>MENU</menu>
        <title>TITLE</title>
        <info>INFO</info>
        <skipplus>SKIP+</skipplus>
        <skipminus>SKIP-</skipminus>
        <display>DISPLAY</display>
        <volumeplus>VOLUP</volumeplus>
        <volumeminus>VOLDOWN</volumeminus>
        <pageplus>CHANUP</pageplus>
        <pageminus>CHANDOWN</pageminus>
        <mute>MUTE</mute>
        <power>POWER</power>
        <one>1</one>
        <two>2</two>
        <three>3</three>
        <four>4</four>
        <five>5</five>
        <six>6</six>
        <seven>7</seven>
        <eight>8</eight>
        <nine>9</nine>
        <zero>0</zero>
        <myvideo>VIDEOS</myvideo>
        <mymusic>MUSIC</mymusic>
        <mypictures>PICTURES</mypictures>
        <mytv>TV</mytv>
    </remote>

    <remote device="Microsoft_Xbox">
        <play>PLAY</play>
        <pause>PAUSE</pause>
        <stop>STOP</stop>
        <forward>FORWARD</forward>
        <reverse>REVERSE</reverse>
        <left>LEFT</left>
        <right>RIGHT</right>
        <up>UP</up>
        <down>DOWN</down>
        <select>SELECT</select>
        <back>BACK</back>
        <menu>MENU</menu>
        <title>TITLE</title>
        <info>INFO</info>
        <skipplus>SKIP+</skipplus>
        <skipminus>SKIP-</skipminus>
        <display>DISPLAY</display>
        <one>1</one>
        <two>2</two>
        <three>3</three>
        <four>4</four>
        <five>5</five>
        <six>6</six>
        <seven>7</seven>
        <eight>8</eight>
        <nine>9</nine>
        <zero>0</zero>
    </remote>

    <remote device="PinnacleSysPCTVRemote">
        <play>Play</play>
        <pause>pause</pause>
        <stop>Stop</stop>
        <forward>FForward</forward>
        <reverse>Rewind</reverse>
        <left>Vol-Rew</left>
        <right>Vol+FF</right>
        <up>Chan+Play</up>
        <down>Chan-Stop</down>
        <pageplus>channel+</pageplus>
        <pageminus>channel-</pageminus>
        <select>middle</select>
        <back>undo</back>
        <menu>Menu</menu>
        <title>L</title>
        <info>Info</info>
        <skipplus>next</skipplus>
        <display>Fullscreen</display>
        <record>Record</record>
        <volumeplus>vol+</volumeplus>
        <volumeminus>vol-</volumeminus>
        <mute>Mute</mute>
        <power>Power</power>
        <one>1</one>
        <two>2</two>
        <three>3</three>
        <four>4</four>
        <five>5</five>
        <six>6</six>
        <seven>7</seven>
        <eight>8</eight>
        <nine>9</nine>
        <zero>0</zero>
    </remote>

    <remote device="anysee">
        <pause>pause</pause>
        <stop>stop</stop>
        <forward>f1</forward>
        <reverse>f2</reverse>
        <left>left</left>
        <right>right</right>
        <up>chan-up</up>
        <down>chan-down</down>
        <select>ok</select>
        <back>exit</back>
        <menu>menu</menu>
        <title>play</title>
        <info>info</info>
        <skipplus>jump-fwd</skipplus>
        <skipminus>jump-back</skipminus>
        <display>size</display>
        <start>star</start>
        <record>rec</record>
        <volumeplus></volumeplus>
        <volumeminus></volumeminus>
        <mute>mute</mute>
        <power>power</power>
        <one>1</one>
        <two>2</two>
        <three>3</three>
        <four>4</four>
        <five>5</five>
        <six>6</six>
        <seven>7</seven>
        <eight>8</eight>
        <nine>9</nine>
        <zero>0</zero>
        <red>red</red>
        <green>green</green>
        <yellow>yellow</yellow>
        <blue>blue</blue>
    </remote>
</lircmap>

relevant info from remote.xml
Code:
<keymap>
  <global>
      <remote>
      <play>Play</play>
      <pause>Pause</pause>
      <stop>Stop</stop>
      <forward>FastForward</forward>
      <reverse>Rewind</reverse>
      <left>Left</left>
      <right>Right</right>
      <up>Up</up>
      <down>Down</down>
      <select>Select</select>
      <pageplus>PageUp</pageplus>
      <pageminus>PageDown</pageminus>
      <back>ParentDir</back>
      <menu>PreviousMenu</menu>
      <title>ContextMenu</title>
      <info>Info</info>
      <skipplus>SkipNext</skipplus>
      <skipminus>SkipPrevious</skipminus>
      <display>FullScreen</display>
      <start>PreviousMenu</start>
      <livetv>XBMC.updatelibrary(video)</livetv>
      <record>XBMC.ReplaceWindow(ShutdownMenu)</record>
      <volumeplus>VolumeUp</volumeplus>
      <volumeminus>VolumeDown</volumeminus>
      <mute>Mute</mute>
      <power>XBMC.ShutDown</power>
      <recordedtv>XBMC.Reset</recordedtv>
      <myvideo>XBMC.ReplaceWindow(MyVideoLibrary,movietitles,return)
</keymap>

Feel free to pick apart my files and settings and recommend any changes, I have pretty much everything working how I want it aside from being able to wake the asrock.


- jonassw - 2009-11-07

If you're using Karmic Koala, try to do:
cat /proc/acpi/wakeup
It should return something like this:
Code:
Device  S-state   Status   Sysfs node
SMB0      S4     disabled  pci:0000:00:03.2
USB0      S4     enabled   pci:0000:00:04.0
USB2      S4     disabled  pci:0000:00:04.1
NMAC      S5     disabled  pci:0000:00:0a.0
PBB0      S4     disabled  pci:0000:00:09.0
HDAC      S4     disabled  pci:0000:00:08.0
XVR0      S4     disabled
XVR1      S4     disabled
P0P5      S4     disabled
P0P6      S4     disabled
P0P7      S4     disabled
P0P8      S4     disabled
P0P9      S4     disabled

If everything is disabled, then:
su -s
echo USB0 > /proc/acpi/wakeup
to toggle one of the USB devices. You might want to try all of them if there are several, since you'll need to toggle the one thats the actual remote control.

I had this exact issue when I upgraded Jaunty to Karmic. Everything was disabled by default, and thus the system didn't Wake-On-USB.


This forum uses Lukasz Tkacz MyBB addons.