[XBMCBUNUTU] ION 330 Remote control takes long time working after resuming from s3
#1
Hi,

I have an Asrock ION 330 and just upgraded to XBMCUBUNTU 11.10. Installed on disk and everything works as expected. The only thing that happens (and this was also my case on 10.x), when I resume from S3, everything is up and running quite quickly. But I have an issue and that is that the remote control is not responding for a couple of minutes. XBMC itself is responsive, because I can do everything with the keyboard. It will start to respond when the screen flickers one time and it starts to update the media library.After this has happened, it all works as it should.

So my question is, why does it take so long before the media library is updating? Where is it waiting on? I first assumed it had something to do with the script in /etc/pm/sleep.d since there is the 99lirc-resume script that is responsible for loading my remote. But I don't know how to deal with this.

Here is my logfile (and I know it is not much) after resuming:
Code:
01:29:10 T:5168160  NOTICE: OnSleep: Stopping lirc
09:45:42 T:5168160  NOTICE: OnWake: Running resume jobs
09:45:42 T:5168160   ERROR: GLX: Same window as before, refreshing context
09:45:42 T:5168160   ERROR: Previous line repeats 1 times.
09:45:42 T:5168160  NOTICE: OnWake: Restarting lirc
09:45:42 T:5168160  NOTICE: OnWake: Restarting lcd
09:45:42 T:5168160  NOTICE: UpdateLibraries - Starting video library startup scan
09:45:43 T:3055545200  NOTICE: VideoInfoScanner: Starting scan ..
09:45:43 T:3055545200 WARNING: FillBuffer: curl failed with code 6
09:45:43 T:3055545200   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
09:45:43 T:3055545200   ERROR: Run: Unable to parse web site
09:45:45 T:5168160   ERROR: CheckDisplayEvents - no display event after 3 seconds
09:45:48 T:3055545200 WARNING: FillBuffer: curl failed with code 6
09:45:48 T:3055545200   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
09:45:48 T:3055545200   ERROR: Run: Unable to parse web site
09:45:55 T:3055545200   ERROR: GetDirectory - Error getting /media/USBDISK/Movies/Silent Hill/
09:45:56 T:3055545200   ERROR: CacheImage Unable to create new image special://masterprofile/Thumbnails/Video/7/78efbf03.tbn from image
09:45:56 T:3055545200   ERROR: DeleteFile - cant delete file </home/nims/.xbmc/userdata/Thumbnails/Video/7/78efbf03.tbn>. trying lower case </home/nims/.xbmc/userdata/thumbnails/video/7/78efbf03.tbn>
09:45:56 T:3055545200   ERROR: GetDirectory - Error getting /media/USBDISK/Series/Fringe/
09:45:56 T:3055545200   ERROR: GetDirectory - Error getting /media/USBDISK/Series/Gossip Girl/
09:45:56 T:3055545200   ERROR: GetDirectory - Error getting /media/USBDISK/Series/Grimm/
09:46:02 T:3055545200  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:20
09:46:20 T:2934958960  NOTICE: -->Python Interpreter Initialized<--
09:50:25 T:2925075312   ERROR: Repository Nuka1195's Unofficial Add-on Repository returned no add-ons, listing may have failed
09:50:27 T:2858507120 WARNING: FillBuffer: curl failed with code 22
09:50:27 T:2858507120   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
09:50:27 T:2858507120   ERROR: Open - failed to open source <http://passion-xbmc.org/addons/Download.php/script.tvtunes/script.tvtunes-1.9.6.zip.md5>
09:50:34 T:2858507120   ERROR: Repository Passion-XBMC.org Add-ons returned no add-ons, listing may have failed
To me it seems that nothing is written before the resume, so i checked pm-suspend.log

Code:
Wed May  2 09:40:23 CEST 2012: Awake.
Wed May  2 09:40:23 CEST 2012: Running hooks for resume
Running hook /etc/pm/sleep.d/novatel_3g_suspend resume suspend:

/etc/pm/sleep.d/novatel_3g_suspend resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/99video resume suspend:

/usr/lib/pm-utils/sleep.d/99video resume suspend: success.
Running hook /etc/pm/sleep.d/99lirc-resume resume suspend:
Loading lirc kernel modules
* Loading LIRC modules
   ...done.
* Unable to load LIRC kernel modules. Verify your
* selected kernel modules in /etc/lirc/hardware.conf

/etc/pm/sleep.d/99lirc-resume resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler resume suspend:

/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler resume suspend: success.
Running hook /etc/pm/sleep.d/97remount-network.sh resume suspend:
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mount error(101): Network is unreachable
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

/etc/pm/sleep.d/97remount-network.sh resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/95led resume suspend:

/usr/lib/pm-utils/sleep.d/95led resume suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/95hdparm-apm resume suspend:

/dev/sda:
setting Advanced Power Management level to 0xfe (254)
APM_level    = 254

/dev/sda:
setting Advanced Power Management level to 0xfe (254)
APM_level    = 254

/usr/lib/pm-utils/sleep.d/95hdparm-apm resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/94cpufreq resume suspend:

/usr/lib/pm-utils/sleep.d/94cpufreq resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/90clock resume suspend:

/usr/lib/pm-utils/sleep.d/90clock resume suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/75modules resume suspend:
Reloaded unloaded modules.

/usr/lib/pm-utils/sleep.d/75modules resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/60_wpa_supplicant resume suspend:
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory

/usr/lib/pm-utils/sleep.d/60_wpa_supplicant resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/55NetworkManager resume suspend:
Having NetworkManager wake interfaces back up...Failed.

/usr/lib/pm-utils/sleep.d/55NetworkManager resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/49bluetooth resume suspend:

/usr/lib/pm-utils/sleep.d/49bluetooth resume suspend: not applicable.
Running hook /etc/pm/sleep.d/10_unattended-upgrades-hibernate resume suspend:

/etc/pm/sleep.d/10_unattended-upgrades-hibernate resume suspend: success.
Running hook /etc/pm/sleep.d/10_grub-common resume suspend:

/etc/pm/sleep.d/10_grub-common resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00powersave resume suspend:

/usr/lib/pm-utils/sleep.d/00powersave resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00logging resume suspend:

/usr/lib/pm-utils/sleep.d/00logging resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/000kernel-change resume suspend:

/usr/lib/pm-utils/sleep.d/000kernel-change resume suspend: success.
Wed May  2 09:45:42 CEST 2012: Finished.
Do you think I should let run the lirc resum earlier, by changing 99 to 20 or so.
Reply
#2
I did some experimenting and found the cause of the problem. It seems that when this error occurs, my network is not ready yet on the box. Cifs is giving an error message and is actually stalling the pm/sleep.d cycle a lot because of network time-outs. When this cycles, XBMC is half responsive. The reason why my scripts where stalling is because I wanted to remount my network shares when resuming. This is because my network shares are not always available and a quick on / off would remount them.

So I removed my network mounting script and it seems that it this helped fix the problem.
Reply

Logout Mark Read Team Forum Stats Members Help
[XBMCBUNUTU] ION 330 Remote control takes long time working after resuming from s30