Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PVR] Guide window: Goto 'now' on system resume from sleep. #17108

Merged
merged 1 commit into from
Jan 1, 2020

Conversation

ksooo
Copy link
Member

@ksooo ksooo commented Jan 1, 2020

This feature was requested several times in the forum.

Runtime-tested on latest Kodi master, macOS.

@Jalle19 @phunkyfish Got time for a quick code review?

Please note that this currently will not work on Android, due to incomplete power management implementation: https://github.com/xbmc/xbmc/blob/master/xbmc/platform/android/powermanagement/AndroidPowerSyscall.cpp#L30 is missing support to signal suspend/resume/... to the provided callback instance. Maybe @peak3d can take a look?

@ksooo ksooo added Type: Improvement non-breaking change which improves existing functionality Component: PVR v19 Matrix labels Jan 1, 2020
@ksooo ksooo added this to the Matrix 19.0-alpha 1 milestone Jan 1, 2020
@phunkyfish
Copy link
Contributor

phunkyfish commented Jan 1, 2020

I noticed this myself, although not on suspend/resume just when the TV is switched on (I don’t ever suspend my devices), it just takes the display out of dimming and if on the guide need to leave and re-enter it to refresh.

I wonder if this will also work for my use case when it’s running and just woken via CEC.

@ksooo
Copy link
Member Author

ksooo commented Jan 1, 2020

not on suspend/resume just when the TV is switched on

I don't think power manager provides something for this case:

class IPowerEventsCallback
{
public:
  virtual ~IPowerEventsCallback() = default;

  virtual void OnSleep() = 0;
  virtual void OnWake() = 0;

  virtual void OnLowBattery() = 0;
};

@phunkyfish
Copy link
Contributor

phunkyfish commented Jan 1, 2020

Ya, I would need to soak test it. Unless CEC mimics a wake. Not to hard to test for.

Copy link
Contributor

@phunkyfish phunkyfish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@ksooo
Copy link
Member Author

ksooo commented Jan 1, 2020

Jenkins WIN-UWP-64 error is unrelated.

@ksooo ksooo merged commit 7515b2f into xbmc:master Jan 1, 2020
@ksooo ksooo deleted the pvr-guide-window-resume branch January 1, 2020 21:42
@phunkyfish
Copy link
Contributor

It looks like CEC can call wake when deactivating the screen saver so this will most likely work for my use case too 😉

Nice

Maven85 pushed a commit to Maven85/kodi that referenced this pull request Jan 21, 2020
[PVR] Guide window: Goto 'now' on system resume from sleep.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: PVR Type: Improvement non-breaking change which improves existing functionality v19 Matrix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants