Author Topic: Problem with lcdhost and screensaver  (Read 7004 times)

xiinator

  • Newbie
  • *
  • Posts: 20
Re: Problem with lcdhost and screensaver
« Reply #15 on: 2013-10-26 02:21:30 »
Are you asking for the background images? The first or second image?

Edit:: Well what do you know, suddenly my screensaver is working again. I'm back to version .25 and the screensaver is in fact working, even after reboots. It just magically started working, perhaps something happened in my installing/uninstalling (using iobit uninstaller) versions .25/.34 and reinstalling .25. Don't have a clue what could have fixed it.

Edit2:: Nevermind. After shutting down for the night and booting it up in the morning it is back to no screensaver. :o
« Last Edit: 2013-10-27 20:59:05 by xiinator »

xiinator

  • Newbie
  • *
  • Posts: 20
Re: Problem with lcdhost and screensaver
« Reply #16 on: 2014-06-27 19:15:21 »
So does anyone else have this issue? My screensaver continues to refuse to activate (on alpha 37).

novax1

  • Global Moderator
  • Sr. Member
  • ****
  • Posts: 371
Re: Problem with lcdhost and screensaver
« Reply #17 on: 2014-06-27 19:50:27 »
So does anyone else have this issue? My screensaver continues to refuse to activate (on alpha 37).

so that you can free installation errors relaizar this post
http://forum.linkdata.se/topicseen./lcdhost-discussion/lcdhost-not-displaying-g19-703.msg4920.html#new

xiinator

  • Newbie
  • *
  • Posts: 20
Re: Problem with lcdhost and screensaver
« Reply #18 on: 2014-06-27 23:46:32 »
Clean uninstall and reinstall did not help, sorry... still prevents windows from entering screensaver mode.

novax1

  • Global Moderator
  • Sr. Member
  • ****
  • Posts: 371
Re: Problem with lcdhost and screensaver
« Reply #19 on: 2014-06-28 06:06:08 »
Clean uninstall and reinstall did not help, sorry... still prevents windows from entering screensaver mode.

forgive me if my explanation is not clear but I have to translate.
LCDhos the installation does not create any vercion screensaver.
if you mean pictures showing your design, then try the all are with where I think the design file.
everything has queir in the same folder.
if it refers to windows screensaver, right click the  screen and in the window that opens will ha personalize  , and there comes out the options to disable the screen saver.

Zash

  • Newbie
  • *
  • Posts: 5
Re: Problem with lcdhost and screensaver
« Reply #20 on: 2017-11-23 01:44:01 »
Any progress on this?

My system will not sleep, activate screensaver, etc when LCDHost is active.

I used a powershell script to find out what the problem is using GetLastInputInfo and user32.dll. It turns out that LCDHost keeps sending the OS signals to indicate user is present, so the system never thinks it is idle. Idle counter is stopped. Exiting LCDHost immediately fixes the problem and starts the idle counter.

Script as below: rename to xxx.ps1, right click and select "run with powershell":

Code: [Select]
Add-Type @'
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;

namespace PInvoke.Win32 {

    public static class UserInput {

        [DllImport("user32.dll", SetLastError=false)]
        private static extern bool GetLastInputInfo(ref LASTINPUTINFO plii);

        [StructLayout(LayoutKind.Sequential)]
        private struct LASTINPUTINFO {
            public uint cbSize;
            public int dwTime;
        }

        public static DateTime LastInput {
            get {
                DateTime bootTime = DateTime.UtcNow.AddMilliseconds(-Environment.TickCount);
                DateTime lastInput = bootTime.AddMilliseconds(LastInputTicks);
                return lastInput;
            }
        }

        public static TimeSpan IdleTime {
            get {
                return DateTime.UtcNow.Subtract(LastInput);
            }
        }

        public static int LastInputTicks {
            get {
                LASTINPUTINFO lii = new LASTINPUTINFO();
                lii.cbSize = (uint)Marshal.SizeOf(typeof(LASTINPUTINFO));
                GetLastInputInfo(ref lii);
                return lii.dwTime;
            }
        }
    }
}
'@
while($true){
Start-Sleep -s 1
$Last = [PInvoke.Win32.UserInput]::LastInput
$Idle = [PInvoke.Win32.UserInput]::IdleTime
$LastStr = $Last.ToLocalTime().ToString("MM/dd/yyyy hh:mm:ss tt")
Write-Host ("Last user keyboard/mouse input: " + $LastStr)
Write-Host ("Idle for " + $Idle.Days + " days, " + $Idle.Hours + " hours, " + $Idle.Minutes + " minutes, " + $Idle.Seconds + " seconds.")
}

John_Edward

  • Newbie
  • *
  • Posts: 7
Re: Problem with lcdhost and screensaver
« Reply #21 on: 2017-12-17 23:31:27 »
I can confirm this as well - idle keeps resetting constantly when LCDhost is running (around every 18 seconds or so), closing it fixes the problem. I tested with a blank layout with no plugins loaded as well and it didn't fix the issue. Couldn't be bothered to crawl to unplug my G15 to see if disconnecting the display would fix it.

Then again, it's very unlikely that sirreal would fix this even if we could precisely pinpoint what is it that does it, but the sources are up on Github for anyone mad enough to have a go. Two years so far with nothing though, so my hopes are rather low.

I just put my computer to sleep when I'm not using it and for times I need to keep it on, I just close my monitors by myself anyway.

Zash

  • Newbie
  • *
  • Posts: 5
Re: Problem with lcdhost and screensaver
« Reply #22 on: 2017-12-30 08:06:25 »
Thanks for the reply.

I wish to perform tasks while idle, such as start cryptominers, and then exit/stop once there is user input.

Currently, I see no way to do this while LCDHost is running :(

Unfortunately, any task which requires the system idle condition is broken, not just sleep.

Any advice anyone? Perhaps there is some way of telling windows to ignore user input from LCDhost?
« Last Edit: 2017-12-30 09:14:43 by Zash »

 

anything