this post was submitted on 14 Oct 2023
14 points (100.0% liked)

Arch Linux

7739 readers
1 users here now

The beloved lightweight distro

founded 5 years ago
MODERATORS
 

Hey everyone.

Basically I need to do what the title says. I did have xfce4-power-manager installed and had it set there (had the setting disabled so that it wouldn't suspend after inactive), but xfce4-notifyd was creating problems with dunst which I installed and setup last night, so I removed xfce4-power-manager and xfce4-logind.

However now after a few minutes of not doing anything my PC sleeps. There must be a setting somewhere I can edit which is the same thing xfce4 uses to implement this, no? Either a file or another power manager software which will not cause problems with my dunst.

Thanks in advance for all your help and suggestions!

top 11 comments
sorted by: hot top controversial new old
[–] Psynthesis@beehaw.org 3 points 2 years ago (2 children)

Arch Wiki has a bunch you can try to dig through https://wiki.archlinux.org/title/Power_management However if it were me I'd just reinstall the power manager if that was easy for you to manage. You can turn off the xfce-4 notifier at that point since they both won't be able to access the dbus at the same time. Look at /usr/share/dbus-1/services/org.xfce.xfce4-notityd.Notifications.service Then change Name=org.freedesktop.Notifications to Name=org.freedesktop.NotificationsNone and reboot.

[–] promitheas@iusearchlinux.fyi 2 points 2 years ago

Ill try that, but I'll probably need some clarification about what exactly you mean. I read the wiki page and thats where I initially decided to use xfce4 power manager from. As for the rest could you please explain a bit deeper? Im relatively new to arch so I need steps broken down :)

[–] promitheas@iusearchlinux.fyi 1 points 2 years ago (1 children)

OK Im ready now :) If I install the xfce4-power-manager, how can I turn off the notifier and keep dunst as my notifier? Thanks

[–] Psynthesis@beehaw.org 2 points 2 years ago (1 children)

Open /usr/share/dbus-1/services/org.xfce.xfce4-notityd.Notifications.service in a text editor, like nano, vim, etc. For instance, in terminal type nano /usr/share/dbus-1/services/org.xfce.xfce4-notityd.Notifications.service This will open the file org.xfce.xfce4-notityd.Notifications.service In that file, find the line Name=org.freedesktop.Notifications Change that line to read Name=org.freedesktop.NotificationsNone Save the file, in nano it's ctrl+x it will ask if you want to modify file,type y for yes. Next it will ask if you want to keep file the same name, just hit enter. Then reboot your computer.

[–] promitheas@iusearchlinux.fyi 1 points 2 years ago* (last edited 2 years ago)

Thanks, will install xfce4-power-manager to try this and report back :)

Edit: This seems to work. I have both a power manager and dunst working. Thanks!

[–] anonymous_bot@lemmy.world 2 points 2 years ago (1 children)

What DE/WM are you using right now?

[–] promitheas@iusearchlinux.fyi 1 points 2 years ago

Im on bspwm

[–] p5f20w18k@lemmy.world 1 points 2 years ago (1 children)

Caffeine works good for me on i3

[–] promitheas@iusearchlinux.fyi 1 points 2 years ago (1 children)

From what Ive read caffeine seems to be for temporarily disabling suspend functionality in a specific context. e.g. when running a certain task. It doesn't disable the automatic suspend functionality in general, which is what I want. I have a "sleep" key on my keyboard which I use when I need to, but all other times I need my PC to be awake.

[–] p5f20w18k@lemmy.world 2 points 2 years ago (1 children)

It stops the auto sleep function for me when enabled, it has the option to be “on” and “on when x app is running”

You could even tell it to never let your system sleep when your wm is running

[–] promitheas@iusearchlinux.fyi 1 points 2 years ago

Ah ok cool. Ill try it out if disabling xfce4-notifyd doesn't work out. Thanks