Add support for wake_notification and sleep_notification on Linux
Categories
(Core :: Widget: Gtk, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox95 | --- | fixed |
People
(Reporter: Fallen, Assigned: stransky)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
3.55 KB,
patch
|
Details | Diff | Splinter Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
Comment 1•13 years ago
|
||
Reporter | ||
Comment 2•12 years ago
|
||
Comment 3•12 years ago
|
||
Comment 4•12 years ago
|
||
Comment 5•12 years ago
|
||
Comment 6•12 years ago
|
||
Comment 7•12 years ago
|
||
Comment 8•12 years ago
|
||
Reporter | ||
Comment 9•12 years ago
|
||
Updated•11 years ago
|
Reporter | ||
Comment 10•7 years ago
|
||
Updated•7 years ago
|
Comment 11•6 years ago
|
||
I noticed in Thunderbird (*) that notification sleep_notification and wake_notification don't occur for linux. Using a python script I can see that the DBUS logind does produce the expected result on sleep/hibernate and resume. However, I have no idea how to incorporate this dbus stuff into mozilla/tb.
I did find something that sounds similar here:
https://dxr.mozilla.org/comm-central/source/widget/gtk/WakeLockListener.cpp
This has something to do with inhibiting screen savers, I think. There is also dbus code for scanning wifi.
Any hint on this appreciated.
(*) The issue with tb is that if check for new mail is turned off, on resume it is possible a connection that use imap IDLE will never received emails until folders are clicked.
Comment 12•6 years ago
|
||
With this patch in place, thunderbird on linux now observes and detects the "sleep_notification" and "wake_notification" notification events when system hibernates (to disk) and resumes. I would hope this also works for Suspend/Sleep but haven't tried suspending to memory.
Reporter | ||
Comment 13•6 years ago
|
||
Given this is in toolkit it wouldn't even be specific to Thunderbird. I don't know my way around this code a lot, but I am happy to see progress on this issue. Karl, can you give Gene some advice to get this patch into a reviewable state?
Comment 14•6 years ago
|
||
Comment 15•6 years ago
|
||
Karl, Sorry for the delay in getting back to you and working on this again. Been busy with other TB items. Hopefully I or someone else can work on this asap. Thanks for the info.
Updated•3 years ago
|
Assignee | ||
Comment 17•3 years ago
|
||
Updated•3 years ago
|
Comment 18•3 years ago
|
||
Comment 19•3 years ago
|
||
bugherder |
Comment 20•3 years ago
|
||
Oh wow, I was not expecting to read my bugmail after the weekend and find this already finished. Thanks Martin! And thanks for the earlier patch, Gene.
Comment 21•3 years ago
|
||
Hi, it's not clear to me if this patch has an impact on end-user impact. Is there something worth mentioning in our release notes for Firefox 95? Thanks
Assignee | ||
Comment 22•3 years ago
|
||
(In reply to Pascal Chevrel:pascalc from comment #21)
Hi, it's not clear to me if this patch has an impact on end-user impact. Is there something worth mentioning in our release notes for Firefox 95? Thanks
Frankly I have no idea. I see the NS_WIDGET_SLEEP_OBSERVER_TOPIC [1] is used in deeps of network stack but I can't say what it really does there.
This change is a bit mysterious to me.
Description
•