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

Arch Linux

7781 readers
11 users here now

The beloved lightweight distro

founded 4 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 7 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 year 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.

[–] [email protected] 1 points 1 year 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 :)

[–] [email protected] 0 points 1 year 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

[–] [email protected] 0 points 1 year 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.

[–] [email protected] 1 points 1 year ago* (last edited 1 year 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!

[–] Supermariofan67 1 points 1 year ago* (last edited 1 year ago)

I think it would be IdleAction and IdleActionSec in /etc/systemd/logind.conf

See also https://wiki.archlinux.org/title/Power_management

[–] [email protected] 1 points 1 year ago

What DE/WM are you using right now?