You are not logged in.
Even if I'm being active, playing or watching a video, the screen gets suspended (I think that's how it's called when the screen gets dim after innactivity).
This happens on the headless mode (tty session), but is not a real problem. The problem is during the X session with startx.
I was hoping to find a way so it gets detected and doesn't suspend or, in the worst case scenario, to completely remove the suspend timer.
Last edited by stbug (2025-02-12 03:04:48)
Offline
what DE / WM are you using?
Offline
what DE / WM are you using?
I use the 2bwm on the X session, so I don't have any current desktop manager installed. I usually just use the tty as default and open an X session for some apps.
Last edited by stbug (2025-01-29 01:36:09)
Offline
How are you starting the session? Most screensaver blocking happens via a dbus call that mandates an intact login session, i.e. that the notes in https://wiki.archlinux.org/title/Xinit#xinitrc are followed and a user session properly established. Also not entirely sure whether systemd handles that interface directly itself or some power daemon is necessary that registers itself on the relevant dbus address.
Offline
The problem is during the X session with startx.
Also what exactly plays the videos? mpv? mplayer? …
Offline
Ah whoops, the note part regarding xinitrc still holds anyway ![]()
Offline
How are you starting the session? Most screensaver blocking happens via a dbus call that mandates an intact login session, i.e. that the notes in https://wiki.archlinux.org/title/Xinit#xinitrc are followed and a user session properly established. Also not entirely sure whether systemd handles that interface directly itself or some power daemon is necessary that registers itself on the relevant dbus address.
I don't know what do you mean when you say how I start my session, but I think you are refering to my ~/.xinitrc right?
2bwm &
xbindkeys
exec xterm -g 60x20+0+0 -fg white -bg blackOffline
OP wrote:The problem is during the X session with startx.
Also what exactly plays the videos? mpv? mplayer? …
It happens when I play videos from VLC Media Player, and the last time happend while playing DBZ Sparking Zero using Wine
Offline
Your xinitrc is broken, leading to a degenerated session lacking session bus integration => last link below.
nb. that VLC has a setting for this behavior, iirc it's off by default?
Offline
Your xinitrc is broken, leading to a degenerated session lacking session bus integration => last link below.
nb. that VLC has a setting for this behavior, iirc it's off by default?
Well, I don't know why is broken my xinitrc, but I copied all the lines from the original xinitrc and it now looks like this
#!/bin/sh
xrdb=xrdb
xinitdir=/etc/X11/xinit
xclock=xclock
xterm=xterm
twm=2bwm
xmodmap=xmodmap
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=$xinitdir/.Xresources
sysmodmap=$xinitdir/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
if [ -x /usr/bin/cpp ] ; then
$xrdb -merge $sysresources
else
$xrdb -nocpp -merge $sysresources
fi
fi
if [ -f $sysmodmap ]; then
$xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
if [ -x /usr/bin/cpp ] ; then
$xrdb -merge "$userresources"
else
$xrdb -nocpp -merge "$userresources"
fi
fi
if [ -f "$usermodmap" ]; then
$xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d $xinitdir/xinitrc.d ] ; then
for f in "$xinitdir/xinitrc.d"/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
$twm &
xbindkeys &
exec $xterm -g 60x20+0+0 -fg white -bg blackBut the problem persists. And I didn't find how to configure the iirc on vlc.
Offline
This block is crucial:
if [ -d $xinitdir/xinitrc.d ] ; then
for f in "$xinitdir/xinitrc.d"/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fiDid you check the video preferences?
Does eg. mpv succesfully block the screensaver/DPMS/suspend?
Offline
Did you check the video preferences?
Yes, but i can't find this iirc option
Offline
Offline
JAJAJAJAJAJJAJAJA, well I hate abbreviations then
I didn't check again with VLC after having fixed my .xinitrc, but it seems that Discord doesn't get dimmed for inactivity, so it may be a problem with wine
Offline
wine could pot. try to block DPMS itself, but is unlikely forwarding anything like this from windows clients.
You're aware that discord is in the repos?
And it depends on https://archlinux.org/packages/extra/x86_64/libxss/ …
Offline
try to block DPMS itself, but is unlikely forwarding anything like this from windows clients.
Ah well, that works for me. I don't really like it anyways so turning it off is okey
Thank you so much, I didn't even know how was it called
Offline