Pulse-Eight / libcec

USB CEC Adapter communication Library http://libcec.pulse-eight.com/
Other
704 stars 282 forks source link

Wake PC on CEC input #623

Open pzich opened 1 year ago

pzich commented 1 year ago

If my PC enters the screensaver, I am unable to use CEC input (e.g. play pause, arrows) to wake it back up. I instead have to use keyboard/mouse/VNC to wake the device first.

Is it possible to make these inputs wake the PC? I thought this functionality had been added in 6.0.0 but it doesn't seem to be working for me.

satmandu commented 1 year ago

I would also like this to happen.

Thinking I might be able to use something like https://github.com/bramp/libcec-daemon with ydotool to move the mouse on HDMI activation.

pzich commented 5 months ago

@malard @opdenkamp could we get this functionality added?

malard commented 5 months ago

I will see if we can make time before end of the month!

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Peter Zich @.> Sent: Tuesday, January 16, 2024 9:18:30 PM To: Pulse-Eight/libcec @.> Cc: Martin Ellis @.>; Mention @.> Subject: Re: [Pulse-Eight/libcec] Wake PC on CEC input (Issue #623)

@malardhttps://github.com/malard @opdenkamphttps://github.com/opdenkamp could we get this functionality added?

— Reply to this email directly, view it on GitHubhttps://github.com/Pulse-Eight/libcec/issues/623#issuecomment-1894528014, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAEFI564XUCCSACRDORE6YLYO3VCNAVCNFSM6AAAAAARFR4R7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJUGUZDQMBRGQ. You are receiving this because you were mentioned.Message ID: @.***>

pzich commented 2 months ago

Any chance you can take a look this month?

Disgruntled-Duck commented 2 months ago

I have this same issue, I have to use VNC or IR to wake up my PC.

satmandu commented 2 months ago

So I'm wondering if libcec needs a hook into dbus or something to engage wake from sleep.

Libcec is happy to report data from the connected adapter, but I think dbus or something normally listens for certain devices... So the question is maybe, should libcec have a mode where it emulates a simple keyboard so that when a button on a remote is pressed, libcec reports it as a keyboard press on an attached keyboard.

satmandu commented 2 months ago

Basically it would be nice for the adapter to have a mode where it can do what this hardware does:

https://hackaday.io/project/168696-cec2usb

Disgruntled-Duck commented 2 months ago

I am sure this is a super niche case but I figured I would throw it out there anyway for anybody it may help. I use home assistant and integrated my TV into home assistant (you could also probably do an ICMP check). I also setup WoL in home assistant and on my mini PC. I then setup an automation that when the TV is detected on, send WoL to the PC. It has worked perfectly the last day.