LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-04-2024, 02:26 AM   #1
vipul.g
LQ Newbie
 
Registered: Nov 2023
Posts: 4

Rep: Reputation: 0
No DBus signal available for Wake event in linux


I wanted to perform some task in my application, as soon as the application wakes from sleep mode. To do that I wanted to detect the wake event in my application.
In the 'org.freeDesktop.login1' interface, there is a signal 'PrepareForSleep' available to detect the sleep event, however, there is no counterpart DBus signal available to detect the wake event. Either it is not available or I m not able to find the signal.
Can someone help me?
 
Old 01-05-2024, 03:13 PM   #2
polpak
Member
 
Registered: Jan 2011
Location: Planet Earth, Australia, NSW
Distribution: GNOME openSUSE Leap/Ubuntu
Posts: 189

Rep: Reputation: 21
Please post which linux version you are using.





Without further information this may, or may not, relate to your problem...

My problem is with my new monitor [LG 24ML600M - B].

My computer starts up, then IF before log into computer within a few minutes it apparently decides to go into sleep mode...

Self needs learn how the Monitor can be awakened...
 
Old 01-09-2024, 06:30 AM   #3
vipul.g
LQ Newbie
 
Registered: Nov 2023
Posts: 4

Original Poster
Rep: Reputation: 0
I m using a laptop with Ubuntu version 20.04.

Command to reproduce Sleep/Wake :
  • "systemctl suspend" to sleep
  • any key to wake
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No DBus signal available for Wake event in linux vipul.gupta Linux - Kernel 1 12-11-2023 03:14 AM
Dbus error org.freedesktop.DBus.Error.NoReply whilie replying for file descriptor canitha Linux - Newbie 1 05-10-2017 07:36 AM
[SOLVED] using jack2-dbus, jack_control start gives error: DBus exception: org.jackaudio.Error Laertiades Linux - Newbie 7 05-10-2014 05:10 PM
dbus "rm /var/run/dbus/Desktop can't remove..." longus Slackware 6 12-15-2008 03:33 AM
Fedora Core 9 update dbus.exception & dbus.proxies & DBus.Error.AccessDenied errors trien27 Fedora 1 12-08-2008 11:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 03:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration