You are not logged in.

#1 2024-08-01 17:57:37

irritation
Member
Registered: 2024-08-01
Posts: 5

rofi stops working after laptop suspends (goes to sleep)

as the title says. I have reproduced this issue in dwm and awesomewm, and I have literally the exact same dwm setup on my old laptop with gentoo. Everything works fine there.

https://bbs.archlinux.org/viewtopic.php?id=288490

This topic seems to be talking about the exact same issue I have, but the solution does not work.

What happens is rofi launches, then if I select any program and try to open it, it does not open. I ONLY have this issue in drun mode, not in run mode.

Any thoughts would be appreciated.

Offline

#2 2024-08-01 20:30:27

seth
Member
Registered: 2012-09-03
Posts: 60,379

Re: rofi stops working after laptop suspends (goes to sleep)

How do you launch rofi, what if you launch it from an interactive shell, does it print any errors?
What's your $SHELL?

Offline

#3 2024-08-01 20:58:58

irritation
Member
Registered: 2024-08-01
Posts: 5

Re: rofi stops working after laptop suspends (goes to sleep)

If I launch it from a terminal emulator, assuming that is what you mean, it actually works just fine and prints no errors.  Which I thought was slightly weird.

ATM I am launching it by coding it into rc.lua for awesomewm. I don't really know what goes on under the hood there. Let me know if I can give you more info that would be relevant.

I'm just using bash. Thanks for responding.

Offline

#4 2024-08-01 21:33:43

seth
Member
Registered: 2012-09-03
Posts: 60,379

Re: rofi stops working after laptop suspends (goes to sleep)

That sounds awefully lot like the linked thread, how exactly do you "code it into rc.lua" and have you confirmed that "rofi -show drun <> /dev/null 2>/dev/null" doesn't help?

Offline

#5 2024-08-02 00:26:40

irritation
Member
Registered: 2024-08-01
Posts: 5

Re: rofi stops working after laptop suspends (goes to sleep)

rofi = "rofi -show drun <> /dev/null 2>/dev/null"

awful.key({ modkey,           }, "d", function () awful.spawn(rofi) end,

"rofi -show drun <> /dev/null 2>/dev/null" doesn't help.

I'm a bit curious at this point, but I don't know how to collect any info on what's happening.

Offline

#6 2024-08-02 06:23:14

seth
Member
Registered: 2012-09-03
Posts: 60,379

Re: rofi stops working after laptop suspends (goes to sleep)

G_MESSAGES_DEBUG=Dialogs.DRun rofi -show drun  -log /tmp/rofi.log

If it's not immediately clear where things might fail, draw a comparative log from a working interactive shell.

Offline

#7 2024-08-02 23:48:39

irritation
Member
Registered: 2024-08-01
Posts: 5

Re: rofi stops working after laptop suspends (goes to sleep)

I'm away for the weekend and I didn't bring my laptop. I'll have a look when I get back.

I appreciate your responses.

Offline

#8 2024-08-07 15:59:27

irritation
Member
Registered: 2024-08-01
Posts: 5

Re: rofi stops working after laptop suspends (goes to sleep)

I reinstalled arch (for an unrelated reason) and can no longer reproduce my problem. I was using lemurs login manager before, now I am using sddm. I was having some issues with lemurs. (a login script didn't work correctly)

I am slightly curious if lemurs was somehow causing this issue. However, I don't know why it would, and I can't produce the issue otherwise. Even if lemurs was causing the issue, that isn't an arch problem, that's a lemurs problem.

Thank you for taking the time to respond. The issue has resolved itself as far I have interest in investigating.

Offline

Board footer

Powered by FluxBB