You are not logged in.

#1 2025-02-08 12:42:00

blinkingbit
Member
Registered: 2023-02-03
Posts: 59

Enable controller input as dpms activity

I have found that most games prevent dpms by themselves but others don't. I wonder if there is a simple configuration to set a device input to count as activity in the system so the monitor doesn't enter standby or exits from it. I use xorg and no screensaver app other than the default.

If I use:

xset dpms force standby

I want that pressing any button or joystick wakes up the monitor.

I have found a SO answer but my controller doesn't appear in "xinput list" command. It's connected by bluetooth.

Any info about how xorg treats device activity could be helpfull too.

Offline

#2 2025-02-09 22:02:40

blinkingbit
Member
Registered: 2023-02-03
Posts: 59

Re: Enable controller input as dpms activity

Some updates because the rabbit hole feels endless:

I have found that xinput list doesn't show the controller because it's discarded. Using ls -la /dev/input/by-id and then using cat with the device event makes viable the creation of a script that listens there and fake a keyboard press. This is too hacky for my taste though.

The responsibility is thrown directly to applications, which usually disable the power management of the display while they are running. Some wrappers like gamemode do this. As I already had gamemode in my system, it was a bit weird that I got to experience this but looking at my journal I found the following:

Feb 09 11:35:17 NotYourUsualMachine xdg-desktop-por[1250]: Backend call failed: Cannot invoke method; proxy is for the well-known name org.freedesktop.ScreenSaver without an owner, and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag
[...]
Feb 09 21:48:38 NotYourUsualMachine gamemoded[176375]: ERROR: Failed to open file for read /sys/class/powercap/intel-rapl/intel-rapl:0/intel-rapl:0:0/energy_uj
Feb 09 21:48:38 NotYourUsualMachine gamemoded[176375]: ERROR: Failed to call Inhibit on org.freedesktop.ScreenSaver: No route to host
Feb 09 21:48:38 NotYourUsualMachine gamemoded[176375]:         org.freedesktop.DBus.Error.ServiceUnknown
Feb 09 21:48:38 NotYourUsualMachine gamemoded[176375]:         The name is not activatable

So there is a good-enough solution but seems like I have a dbus error. dbus-monitor output:

method call time=1739137737.654789 sender=:1.85 -> destination=org.freedesktop.ScreenSaver serial=2 path=/org/freedesktop/ScreenSaver; interface=org.freedesktop.ScreenSaver; member=Inhibit
   string "com.feralinteractive.GameMode"
   string "GameMode Activated"
error time=1739137737.654795 sender=org.freedesktop.DBus -> destination=:1.85 error_name=org.freedesktop.DBus.Error.ServiceUnknown reply_serial=2

I haven't found info about how org.freedesktop.ScreenSaver is supposed to work. I don't have any screen saver application, just the base dpms of x11. I have always thought that all org.freedesktop.* thingies are interfaces so I'm not sure if I should install something.

This could also be a thing with how proton/steam works.

Offline

#3 2025-02-10 12:04:17

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,976

Re: Enable controller input as dpms activity

Feb 09 11:35:17 NotYourUsualMachine xdg-desktop-por[1250]: Backend call failed: Cannot invoke method; proxy is for the well-known name org.freedesktop.ScreenSaver without an owner, and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag

You may need to install/configure a backend for xdg-desktop-portal, see https://wiki.archlinux.org/title/XDG_Desktop_Portal


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2025-02-10 18:47:16

blinkingbit
Member
Registered: 2023-02-03
Posts: 59

Re: Enable controller input as dpms activity

$ pacman -Q|grep xdg
python-pyxdg 0.28-4
xdg-dbus-proxy 0.1.6-1
xdg-desktop-portal 1.18.4-2
xdg-desktop-portal-gnome 47.2-1
xdg-desktop-portal-gtk 1.15.2-1
xdg-user-dirs 0.18-2
xdg-user-dirs-gtk 0.14-1
xdg-utils 1.2.1-1

I have explicitly installed both xdg-desktop-portal and xdg-desktop-portal-gtk in case some initial config was missing but didn't work.

Also I have tried to overwrite the default config and tried to use gnome instead of gtk just in case one of them was having problems with the implementation:

cat .config/xdg-desktop-portal/portals.conf
[preferred]
default=gtk
org.freedesktop.impl.portal.Inhibit=gnome
org.freedesktop.impl.portal.ScreenSaver=gnome

But it didn't work. The message of the backend call failing keeps appearing. I have tried to debug this with d-spy but I couldn't manage to simulate a call.

I don't know if its relevant but systemctl output is the following (ignore mdmonitor fail, its an issue for another day big_smile):

  UNIT                                                                                                                                                                LOAD   ACTIVE SUB       DESCRIPTION
  home-blinkingbit-bigfiles.automount                                                                                                                                        loaded active running   home-blinkingbit-bigfiles.automount
  home-blinkingbit-gestion-docs.automount                                                                                                                                    loaded active running   home-blinkingbit-gestion-docs.automount
  home-blinkingbit-media-games.automount                                                                                                                                     loaded active running   home-blinkingbit-media-games.automount
  proc-sys-fs-binfmt_misc.automount                                                                                                                                   loaded active running   Arbitrary Executable File Formats File System Automount Point
  sys-devices-LNXSYSTM:00-LNXSYBUS:00-MSFT0101:00-tpm-tpm0.device                                                                                                     loaded active plugged   /sys/devices/LNXSYSTM:00/LNXSYBUS:00/MSFT0101:00/tpm/tpm0
  sys-devices-LNXSYSTM:00-LNXSYBUS:00-MSFT0101:00-tpmrm-tpmrm0.device                                                                                                 loaded active plugged   /sys/devices/LNXSYSTM:00/LNXSYBUS:00/MSFT0101:00/tpmrm/tpmrm0
  sys-devices-pci0000:00-0000:00:01.1-0000:01:00.0-0000:02:00.0-0000:03:00.1-sound-card0-controlC0.device                                                             loaded active plugged   /sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/0000:02:00.0/0000:03:00.1/sound/card0/controlC0
  sys-devices-pci0000:00-0000:00:01.2-0000:04:00.0-nvme-nvme0-nvme0n1-nvme0n1p1.device                                                                                loaded active plugged   Samsung SSD 970 EVO Plus 500GB 1
  sys-devices-pci0000:00-0000:00:01.2-0000:04:00.0-nvme-nvme0-nvme0n1-nvme0n1p2.device                                                                                loaded active plugged   Samsung SSD 970 EVO Plus 500GB 2
  sys-devices-pci0000:00-0000:00:01.2-0000:04:00.0-nvme-nvme0-nvme0n1-nvme0n1p3.device                                                                                loaded active plugged   Samsung SSD 970 EVO Plus 500GB 3
  sys-devices-pci0000:00-0000:00:01.2-0000:04:00.0-nvme-nvme0-nvme0n1.device                                                                                          loaded active plugged   Samsung SSD 970 EVO Plus 500GB
  sys-devices-pci0000:00-0000:00:02.1-0000:05:00.0-0000:06:07.0-0000:09:00.0-net-wlp9s0.device                                                                        loaded active plugged   Wi-Fi 6 AX200 (NGW)
  sys-devices-pci0000:00-0000:00:02.1-0000:05:00.0-0000:06:07.0-0000:09:00.0-ptp-ptp0.device                                                                          loaded active plugged   /sys/devices/pci0000:00/0000:00:02.1/0000:05:00.0/0000:06:07.0/0000:09:00.0/ptp/ptp0
  sys-devices-pci0000:00-0000:00:02.1-0000:05:00.0-0000:06:08.0-0000:0a:00.0-0000:0b:04.0-0000:0d:00.0-net-eno1.device                                                loaded active plugged   RTL8125 2.5GbE Controller
  sys-devices-pci0000:00-0000:00:02.1-0000:05:00.0-0000:06:08.0-0000:0a:00.0-0000:0b:0c.0-0000:10:00.0-usb1-1\x2d5-1\x2d5.2-1\x2d5.2:1.0-sound-card3-controlC3.device loaded active plugged   USB_PnP_Sound_Device
  sys-devices-pci0000:00-0000:00:02.1-0000:05:00.0-0000:06:08.0-0000:0a:00.0-0000:0b:0d.0-0000:11:00.0-ata3-host2-target2:0:0-2:0:0:0-block-sda-sda1.device           loaded active plugged   WDC_WD10EZEX-00BBHA0 NotYourUsualMachine:1
  sys-devices-pci0000:00-0000:00:02.1-0000:05:00.0-0000:06:08.0-0000:0a:00.0-0000:0b:0d.0-0000:11:00.0-ata3-host2-target2:0:0-2:0:0:0-block-sda-sda2.device           loaded active plugged   WDC_WD10EZEX-00BBHA0 NotYourUsualMachine:2
  sys-devices-pci0000:00-0000:00:02.1-0000:05:00.0-0000:06:08.0-0000:0a:00.0-0000:0b:0d.0-0000:11:00.0-ata3-host2-target2:0:0-2:0:0:0-block-sda-sda3.device           loaded active plugged   WDC_WD10EZEX-00BBHA0 NotYourUsualMachine:3
  sys-devices-pci0000:00-0000:00:02.1-0000:05:00.0-0000:06:08.0-0000:0a:00.0-0000:0b:0d.0-0000:11:00.0-ata3-host2-target2:0:0-2:0:0:0-block-sda.device                loaded active plugged   WDC_WD10EZEX-00BBHA0
  sys-devices-pci0000:00-0000:00:02.1-0000:05:00.0-0000:06:08.0-0000:0a:00.0-0000:0b:0d.0-0000:11:00.0-ata4-host3-target3:0:0-3:0:0:0-block-sdb-sdb1.device           loaded active plugged   ST1000DM010-2EP102 1
  sys-devices-pci0000:00-0000:00:02.1-0000:05:00.0-0000:06:08.0-0000:0a:00.0-0000:0b:0d.0-0000:11:00.0-ata4-host3-target3:0:0-3:0:0:0-block-sdb-sdb2.device           loaded active plugged   ST1000DM010-2EP102 2
  sys-devices-pci0000:00-0000:00:02.1-0000:05:00.0-0000:06:08.0-0000:0a:00.0-0000:0b:0d.0-0000:11:00.0-ata4-host3-target3:0:0-3:0:0:0-block-sdb-sdb3.device           loaded active plugged   ST1000DM010-2EP102 3
  sys-devices-pci0000:00-0000:00:02.1-0000:05:00.0-0000:06:08.0-0000:0a:00.0-0000:0b:0d.0-0000:11:00.0-ata4-host3-target3:0:0-3:0:0:0-block-sdb-sdb4.device           loaded active plugged   ST1000DM010-2EP102 4
  sys-devices-pci0000:00-0000:00:02.1-0000:05:00.0-0000:06:08.0-0000:0a:00.0-0000:0b:0d.0-0000:11:00.0-ata4-host3-target3:0:0-3:0:0:0-block-sdb.device                loaded active plugged   ST1000DM010-2EP102
  sys-devices-pci0000:00-0000:00:02.1-0000:05:00.0-0000:06:0c.0-0000:12:00.0-usb3-3\x2d10-3\x2d10:1.0-bluetooth-hci0.device                                           loaded active plugged   /sys/devices/pci0000:00/0000:00:02.1/0000:05:00.0/0000:06:0c.0/0000:12:00.0/usb3/3-10/3-10:1.0/bluetooth/hci0
  sys-devices-pci0000:00-0000:00:02.1-0000:05:00.0-0000:06:0d.0-0000:13:00.0-ata8-host7-target7:0:0-7:0:0:0-block-sdc-sdc1.device                                     loaded active plugged   WDC_WD20EZBX-00AYRA0 NotYourUsualMachine:1
  sys-devices-pci0000:00-0000:00:02.1-0000:05:00.0-0000:06:0d.0-0000:13:00.0-ata8-host7-target7:0:0-7:0:0:0-block-sdc-sdc2.device                                     loaded active plugged   WDC_WD20EZBX-00AYRA0 NotYourUsualMachine:2
  sys-devices-pci0000:00-0000:00:02.1-0000:05:00.0-0000:06:0d.0-0000:13:00.0-ata8-host7-target7:0:0-7:0:0:0-block-sdc-sdc3.device                                     loaded active plugged   WDC_WD20EZBX-00AYRA0 NotYourUsualMachine:3
  sys-devices-pci0000:00-0000:00:02.1-0000:05:00.0-0000:06:0d.0-0000:13:00.0-ata8-host7-target7:0:0-7:0:0:0-block-sdc.device                                          loaded active plugged   WDC_WD20EZBX-00AYRA0
  sys-devices-pci0000:00-0000:00:02.2-0000:14:00.0-nvme-nvme1-nvme1n1-nvme1n1p1.device                                                                                loaded active plugged   KINGSTON SFYRS1000G 1
  sys-devices-pci0000:00-0000:00:02.2-0000:14:00.0-nvme-nvme1-nvme1n1.device                                                                                          loaded active plugged   KINGSTON SFYRS1000G
  sys-devices-pci0000:00-0000:00:08.1-0000:15:00.1-sound-card1-controlC1.device                                                                                       loaded active plugged   /sys/devices/pci0000:00/0000:00:08.1/0000:15:00.1/sound/card1/controlC1
  sys-devices-pci0000:00-0000:00:08.1-0000:15:00.6-sound-card2-controlC2.device                                                                                       loaded active plugged   /sys/devices/pci0000:00/0000:00:08.1/0000:15:00.6/sound/card2/controlC2
  sys-devices-platform-serial8250-serial8250:0-serial8250:0.1-tty-ttyS1.device                                                                                        loaded active plugged   /sys/devices/platform/serial8250/serial8250:0/serial8250:0.1/tty/ttyS1
  sys-devices-platform-serial8250-serial8250:0-serial8250:0.2-tty-ttyS2.device                                                                                        loaded active plugged   /sys/devices/platform/serial8250/serial8250:0/serial8250:0.2/tty/ttyS2
  sys-devices-platform-serial8250-serial8250:0-serial8250:0.3-tty-ttyS3.device                                                                                        loaded active plugged   /sys/devices/platform/serial8250/serial8250:0/serial8250:0.3/tty/ttyS3
  sys-devices-pnp0-00:04-00:04:0-00:04:0.0-tty-ttyS0.device                                                                                                           loaded active plugged   /sys/devices/pnp0/00:04/00:04:0/00:04:0.0/tty/ttyS0
  sys-devices-virtual-block-md1.device                                                                                                                                loaded active plugged   /sys/devices/virtual/block/md1
  sys-devices-virtual-block-md2.device                                                                                                                                loaded active plugged   /sys/devices/virtual/block/md2
  sys-devices-virtual-block-md3.device                                                                                                                                loaded active plugged   /sys/devices/virtual/block/md3
  sys-devices-virtual-misc-rfkill.device                                                                                                                              loaded active plugged   /sys/devices/virtual/misc/rfkill
  sys-module-configfs.device                                                                                                                                          loaded active plugged   /sys/module/configfs
  sys-module-fuse.device                                                                                                                                              loaded active plugged   /sys/module/fuse
  sys-subsystem-bluetooth-devices-hci0.device                                                                                                                         loaded active plugged   /sys/subsystem/bluetooth/devices/hci0
  sys-subsystem-net-devices-eno1.device                                                                                                                               loaded active plugged   RTL8125 2.5GbE Controller
  sys-subsystem-net-devices-wlp9s0.device                                                                                                                             loaded active plugged   Wi-Fi 6 AX200 (NGW)
  -.mount                                                                                                                                                             loaded active mounted   Root Mount
  boot.mount                                                                                                                                                          loaded active mounted   /boot
  dev-hugepages.mount                                                                                                                                                 loaded active mounted   Huge Pages File System
  dev-mqueue.mount                                                                                                                                                    loaded active mounted   POSIX Message Queue File System
  home-blinkingbit-bigfiles.mount                                                                                                                                            loaded active mounted   /home/blinkingbit/bigfiles
  home-blinkingbit-gestion-docs.mount                                                                                                                                        loaded active mounted   /home/blinkingbit/gestion/docs
  home-blinkingbit-gestion-dumps.mount                                                                                                                                       loaded active mounted   /home/blinkingbit/gestion/dumps
  home-blinkingbit-media-games.mount                                                                                                                                         loaded active mounted   /home/blinkingbit/media/games
  home-blinkingbit-media.mount                                                                                                                                               loaded active mounted   /home/blinkingbit/media
  home-blinkingbit-proyects.mount                                                                                                                                            loaded active mounted   /home/blinkingbit/proyects
  home-blinkingbit-utils.mount                                                                                                                                               loaded active mounted   /home/blinkingbit/utils
  proc-sys-fs-binfmt_misc.mount                                                                                                                                       loaded active mounted   Arbitrary Executable File Formats File System
  run-user-1000-doc.mount                                                                                                                                             loaded active mounted   /run/user/1000/doc
  run-user-1000-gvfs.mount                                                                                                                                            loaded active mounted   /run/user/1000/gvfs
  run-user-1000.mount                                                                                                                                                 loaded active mounted   /run/user/1000
  sys-fs-fuse-connections.mount                                                                                                                                       loaded active mounted   FUSE Control File System
  sys-kernel-config.mount                                                                                                                                             loaded active mounted   Kernel Configuration File System
  sys-kernel-debug.mount                                                                                                                                              loaded active mounted   Kernel Debug File System
  sys-kernel-tracing.mount                                                                                                                                            loaded active mounted   Kernel Trace File System
  tmp.mount                                                                                                                                                           loaded active mounted   Temporary Directory /tmp
  systemd-ask-password-console.path                                                                                                                                   loaded active waiting   Dispatch Password Requests to Console Directory Watch
  systemd-ask-password-wall.path                                                                                                                                      loaded active waiting   Forward Password Requests to Wall Directory Watch
  init.scope                                                                                                                                                          loaded active running   System and Service Manager
  session-1.scope                                                                                                                                                     loaded active running   Session 1 of User blinkingbit
  alsa-restore.service                                                                                                                                                loaded active exited    Save/Restore Sound Card State
  apcupsd.service                                                                                                                                                     loaded active running   APC UPS Power Control Daemon for Linux
  avahi-daemon.service                                                                                                                                                loaded active running   Avahi mDNS/DNS-SD Stack
  bluetooth.service                                                                                                                                                   loaded active running   Bluetooth service
  dbus-broker.service                                                                                                                                                 loaded active running   D-Bus System Message Bus
  dhcpcd.service                                                                                                                                                      loaded active running   DHCP/ IPv4LL/ IPv6RA/ DHCPv6 client on all interfaces
  getty@tty1.service                                                                                                                                                  loaded active running   Getty on tty1
  kmod-static-nodes.service                                                                                                                                           loaded active exited    Create List of Static Device Nodes
● mdmonitor.service                                                                                                                                                   loaded failed failed    MD array monitor
  polkit.service                                                                                                                                                      loaded active running   Authorization Manager
  rtkit-daemon.service                                                                                                                                                loaded active running   RealtimeKit Scheduling Policy Service
  sshd.service                                                                                                                                                        loaded active running   OpenSSH Daemon
  systemd-binfmt.service                                                                                                                                              loaded active exited    Set Up Additional Binary Formats
  systemd-fsck@dev-disk-by\x2duuid-324e0441\x2dc3b2\x2d4ffb\x2d8c8a\x2dfb0d9d1ea24a.service                                                                           loaded active exited    File System Check on /dev/disk/by-uuid/324e0441-c3b2-4ffb-8c8a-fb0d9d1ea24a
  systemd-fsck@dev-disk-by\x2duuid-55ead6c4\x2d20e8\x2d4ab2\x2daab4\x2d5e6e15e89e06.service                                                                           loaded active exited    File System Check on /dev/disk/by-uuid/55ead6c4-20e8-4ab2-aab4-5e6e15e89e06
  systemd-fsck@dev-disk-by\x2duuid-9c09de73\x2d3d6a\x2d4b1f\x2d9587\x2da72eceeaab8a.service                                                                           loaded active exited    File System Check on /dev/disk/by-uuid/9c09de73-3d6a-4b1f-9587-a72eceeaab8a
  systemd-fsck@dev-disk-by\x2duuid-A6ED\x2d14A0.service                                                                                                               loaded active exited    File System Check on /dev/disk/by-uuid/A6ED-14A0
  systemd-fsck@dev-disk-by\x2duuid-d59299ed\x2d5a22\x2d4d28\x2da2a4\x2d8e5615dcd06a.service                                                                           loaded active exited    File System Check on /dev/disk/by-uuid/d59299ed-5a22-4d28-a2a4-8e5615dcd06a
  systemd-fsck@dev-md1.service                                                                                                                                        loaded active exited    File System Check on /dev/md1
  systemd-fsck@dev-md2.service                                                                                                                                        loaded active exited    File System Check on /dev/md2
  systemd-fsck@dev-md3.service                                                                                                                                        loaded active exited    File System Check on /dev/md3
  systemd-journal-flush.service                                                                                                                                       loaded active exited    Flush Journal to Persistent Storage
  systemd-journald.service                                                                                                                                            loaded active running   Journal Service
  systemd-logind.service                                                                                                                                              loaded active running   User Login Management
  systemd-modules-load.service                                                                                                                                        loaded active exited    Load Kernel Modules
  systemd-random-seed.service                                                                                                                                         loaded active exited    Load/Save OS Random Seed
  systemd-remount-fs.service                                                                                                                                          loaded active exited    Remount Root and Kernel File Systems
  systemd-sysctl.service                                                                                                                                              loaded active exited    Apply Kernel Variables
  systemd-tmpfiles-setup-dev-early.service                                                                                                                            loaded active exited    Create Static Device Nodes in /dev gracefully
  systemd-tmpfiles-setup-dev.service                                                                                                                                  loaded active exited    Create Static Device Nodes in /dev
  systemd-tmpfiles-setup.service                                                                                                                                      loaded active exited    Create System Files and Directories
  systemd-udev-load-credentials.service                                                                                                                               loaded active exited    Load udev Rules from Credentials
  systemd-udev-trigger.service                                                                                                                                        loaded active exited    Coldplug All udev Devices
  systemd-udevd.service                                                                                                                                               loaded active running   Rule-based Manager for Device Events and Files
  systemd-update-utmp.service                                                                                                                                         loaded active exited    Record System Boot/Shutdown in UTMP
  systemd-user-sessions.service                                                                                                                                       loaded active exited    Permit User Sessions
  systemd-vconsole-setup.service                                                                                                                                      loaded active exited    Virtual Console Setup
  udisks2.service                                                                                                                                                     loaded active running   Disk Manager
  upower.service                                                                                                                                                      loaded active running   Daemon for power management
  user-runtime-dir@1000.service                                                                                                                                       loaded active exited    User Runtime Directory /run/user/1000
  user@1000.service                                                                                                                                                   loaded active running   User Manager for UID 1000
  -.slice                                                                                                                                                             loaded active active    Root Slice
  system-dirmngr.slice                                                                                                                                                loaded active active    Slice /system/dirmngr
  system-getty.slice                                                                                                                                                  loaded active active    Slice /system/getty
  system-gpg\x2dagent.slice                                                                                                                                           loaded active active    Slice /system/gpg-agent
  system-gpg\x2dagent\x2dbrowser.slice                                                                                                                                loaded active active    Slice /system/gpg-agent-browser
  system-gpg\x2dagent\x2dextra.slice                                                                                                                                  loaded active active    Slice /system/gpg-agent-extra
  system-gpg\x2dagent\x2dssh.slice                                                                                                                                    loaded active active    Slice /system/gpg-agent-ssh
  system-keyboxd.slice                                                                                                                                                loaded active active    Slice /system/keyboxd
  system-modprobe.slice                                                                                                                                               loaded active active    Slice /system/modprobe
  system-systemd\x2dfsck.slice                                                                                                                                        loaded active active    Slice /system/systemd-fsck
  system.slice                                                                                                                                                        loaded active active    System Slice
  user-1000.slice                                                                                                                                                     loaded active active    User Slice of UID 1000
  user.slice                                                                                                                                                          loaded active active    User and Session Slice
  avahi-daemon.socket                                                                                                                                                 loaded active running   Avahi mDNS/DNS-SD Stack Activation Socket
  cups.socket                                                                                                                                                         loaded active listening CUPS Scheduler
  dbus.socket                                                                                                                                                         loaded active running   D-Bus System Message Bus Socket
  dirmngr@etc-pacman.d-gnupg.socket                                                                                                                                   loaded active listening GnuPG network certificate management daemon for /etc/pacman.d/gnupg
  dm-event.socket                                                                                                                                                     loaded active listening Device-mapper event daemon FIFOs
  gpg-agent-browser@etc-pacman.d-gnupg.socket                                                                                                                         loaded active listening GnuPG cryptographic agent and passphrase cache (access for web browsers) for /etc/pacman.d/gnupg
  gpg-agent-extra@etc-pacman.d-gnupg.socket                                                                                                                           loaded active listening GnuPG cryptographic agent and passphrase cache (restricted) for /etc/pacman.d/gnupg
  gpg-agent-ssh@etc-pacman.d-gnupg.socket                                                                                                                             loaded active listening GnuPG cryptographic agent (ssh-agent emulation) for /etc/pacman.d/gnupg
  gpg-agent@etc-pacman.d-gnupg.socket                                                                                                                                 loaded active listening GnuPG cryptographic agent and passphrase cache for /etc/pacman.d/gnupg
  keyboxd@etc-pacman.d-gnupg.socket                                                                                                                                   loaded active listening GnuPG public key management service for /etc/pacman.d/gnupg
  sshd-unix-local.socket                                                                                                                                              loaded active listening OpenSSH Server Socket (systemd-ssh-generator, AF_UNIX Local)
  systemd-bootctl.socket                                                                                                                                              loaded active listening Boot Entries Service Socket
  systemd-coredump.socket                                                                                                                                             loaded active listening Process Core Dump Socket
  systemd-creds.socket                                                                                                                                                loaded active listening Credential Encryption/Decryption
  systemd-hostnamed.socket                                                                                                                                            loaded active listening Hostname Service Socket
  systemd-importd.socket                                                                                                                                              loaded active listening Disk Image Download Service Socket
  systemd-journald-dev-log.socket                                                                                                                                     loaded active running   Journal Socket (/dev/log)
  systemd-journald.socket                                                                                                                                             loaded active running   Journal Sockets
  systemd-rfkill.socket                                                                                                                                               loaded active listening Load/Save RF Kill Switch Status /dev/rfkill Watch
  systemd-sysext.socket                                                                                                                                               loaded active listening System Extension Image Management
  systemd-udevd-control.socket                                                                                                                                        loaded active running   udev Control Socket
  systemd-udevd-kernel.socket                                                                                                                                         loaded active running   udev Kernel Socket
  dev-disk-by\x2duuid-02b4d658\x2d90ec\x2d4d1e\x2d8204\x2d766f6a09fefe.swap                                                                                           loaded active active    /dev/disk/by-uuid/02b4d658-90ec-4d1e-8204-766f6a09fefe
  basic.target                                                                                                                                                        loaded active active    Basic System
  bluetooth.target                                                                                                                                                    loaded active active    Bluetooth Support
  cryptsetup.target                                                                                                                                                   loaded active active    Local Encrypted Volumes
  getty.target                                                                                                                                                        loaded active active    Login Prompts
  graphical.target                                                                                                                                                    loaded active active    Graphical Interface
  integritysetup.target                                                                                                                                               loaded active active    Local Integrity Protected Volumes
  local-fs-pre.target                                                                                                                                                 loaded active active    Preparation for Local File Systems
  local-fs.target                                                                                                                                                     loaded active active    Local File Systems
  multi-user.target                                                                                                                                                   loaded active active    Multi-User System
  network-online.target                                                                                                                                               loaded active active    Network is Online
  network.target                                                                                                                                                      loaded active active    Network
  paths.target                                                                                                                                                        loaded active active    Path Units
  remote-fs.target                                                                                                                                                    loaded active active    Remote File Systems
  slices.target                                                                                                                                                       loaded active active    Slice Units
  sockets.target                                                                                                                                                      loaded active active    Socket Units
  sound.target                                                                                                                                                        loaded active active    Sound Card
  swap.target                                                                                                                                                         loaded active active    Swaps
  sysinit.target                                                                                                                                                      loaded active active    System Initialization
  timers.target                                                                                                                                                       loaded active active    Timer Units
  tpm2.target                                                                                                                                                         loaded active active    Trusted Platform Module
  veritysetup.target                                                                                                                                                  loaded active active    Local Verity Protected Volumes
  archlinux-keyring-wkd-sync.timer                                                                                                                                    loaded active waiting   Refresh existing PGP keys of archlinux-keyring regularly
  fstrim.timer                                                                                                                                                        loaded active waiting   Discard unused filesystem blocks once a week
  man-db.timer                                                                                                                                                        loaded active waiting   Daily man-db regeneration
  shadow.timer                                                                                                                                                        loaded active waiting   Daily verification of password and group files
  systemd-tmpfiles-clean.timer                                                                                                                                        loaded active waiting   Daily Cleanup of Temporary Directories

Legend: LOAD   → Reflects whether the unit definition was properly loaded.
        ACTIVE → The high-level unit activation state, i.e. generalization of SUB.
        SUB    → The low-level unit activation state, values depend on unit type.

173 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

Last edited by blinkingbit (2025-02-10 18:48:52)

Offline

#5 2025-03-24 17:27:58

blinkingbit
Member
Registered: 2023-02-03
Posts: 59

Re: Enable controller input as dpms activity

The problem is still happening. Just a quick update relating this attempt to fix it with the installation and configuration of xdg-portal:

Also I have tried to overwrite the default config and tried to use gnome instead of gtk just in case one of them was having problems with the implementation:

cat .config/xdg-desktop-portal/portals.conf
[preferred]
default=gtk
org.freedesktop.impl.portal.Inhibit=gnome
org.freedesktop.impl.portal.ScreenSaver=gnome

Recently happened a bug related to how xdp reads portals configuration so by trying that I just made the problem worse. Firefox stopped inhibiting dpms while playing videos (and probably other apps that I'm not aware of too). Having those interfaces pointing to none fixed it.

Currently the only workaround for the original problem I found is simply calling xset s off -dpms; before any game or program I would use a controller in. Not a proper solution yet.

Last edited by blinkingbit (2025-03-24 17:29:28)

Offline

#6 2025-03-24 20:50:32

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,332

Offline

Board footer

Powered by FluxBB