Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

Double call to loginctl suspend when called from openbox

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
Rhiakath
Guru
Guru
User avatar
Posts: 573
Joined: Fri Feb 10, 2006 1:49 am
Location: Hell...

Double call to loginctl suspend when called from openbox

  • Quote

Post by Rhiakath » Tue Mar 24, 2026 12:36 pm

Heya.
This is a really weird issue I'm facing.
If I call loginctl suspend from the command line, it works perfectly fine, I press a key and the system wakes up. Cool.
if I call it from a keybind defined in openbox's rc file, it also works fine.
if I call it from within a bash script ( with it being the only thing being called ) that gets called from within openbox's rc file, it does suspend, I press a key to wake my pc up, it wakes up and immediately suspends again. If I press a key again, it wakes up normally.
I added some date calls inside the script, and can confirm it is indeed run twice. one when I call it, and the system suspends, and another when I wake up the system...

Can anyone point me to what is happening here?
pc-rhiakath ~ $ emerge -s happiness
Searching..
[ Results for search key : happiness ]
[ Applications found : 0 ]

-------------------------------------------

I see dead pixels...
Top
Hu
Administrator
Administrator
Posts: 24401
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Tue Mar 24, 2026 1:20 pm

If you comment out the script's call to loginctl and instead just append to a file each time the script runs, does openbox double-run that script, too? That would make testing easier, and would more clearly implicate that openbox is the guilty component.
Top
Post Reply

2 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic