You are not logged in.

#1 2023-04-12 00:16:35

jabuxa
Member
Registered: 2022-02-02
Posts: 15

Games with launchers can't run on xmonad

I'm pretty sure it's a problem between wine and xmonad. Most games with launchers make xmonad run at 100% cpu, basically crashing xmonad. Examples are: Guild Wars 2 Launcher, Battle.net launcher, league of legends installer (the client works "fine", but that's a problem for later)

It's reproducible with any config. I've tried reddit (which there is still a post about gw2 there that i made), irc, and everywhere I'm ignored.

Recently I tried messing with ewmh activation hook, since when gw2 launchs or any other launcher like that, windows' borders keep flickering as if they're being focused and unfocused really fast, which I thought maybe has to do with NET_ACTIVATE_WINDOW, but it doesn't seem like it.

guild wars 2 is quite a big game to install to try out, but battle.net is kinda small, and gw2 official installer through website also works to demonstrate it(lutris)

Offline

#2 2023-04-12 07:59:36

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,225

Re: Games with launchers can't run on xmonad

Try starting one of those launchers from an x-terminal and post the output it shows in that terminal.


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

#3 2023-04-12 15:45:27

jabuxa
Member
Registered: 2022-02-02
Posts: 15

Re: Games with launchers can't run on xmonad

Lone_Wolf wrote:

Try starting one of those launchers from an x-terminal and post the output it shows in that terminal.

https://0x0.st/HXn0.txt

edit: i can play the game "normally" if i run it in wine virtual desktop: https://imgur.com/a/VykAIbf , it is visually buggy yes but that's another issue. the focus of this thread is that launchers make xmonad unresponsive and crash

Last edited by jabuxa (2023-04-12 15:59:42)

Offline

#4 2023-04-13 10:52:02

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,225

Re: Games with launchers can't run on xmonad

One thing in the log that stands out is that the launcher wants to use gamemodeauto but can't .
Please install gamemode, then try again.


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

#5 2023-04-13 10:58:37

jabuxa
Member
Registered: 2022-02-02
Posts: 15

Re: Games with launchers can't run on xmonad

Lone_Wolf wrote:

One thing in the log that stands out is that the launcher wants to use gamemodeauto but can't .
Please install gamemode, then try again.

https://github.com/FeralInteractive/gamemode/issues/345

tl;dr: not an issue

Offline

#6 2023-04-13 11:54:22

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,225

Re: Games with launchers can't run on xmonad

The logs do show vulkan related messages, although they appear to be warnings.  Still it's worth investigating.

post the full output of

$ vulkaninfo --summary #comes-with__vulkantools__
$ lspci -k

How do you start xmonad ? (if startx or xinit post ~/.xinitrc  )


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

#7 2023-04-13 14:28:52

jabuxa
Member
Registered: 2022-02-02
Posts: 15

Re: Games with launchers can't run on xmonad

I don't see how kernel modules would make game launchers crash xmonad specifically. it works in any other de/wm I've tested.

vulkan also isn't the problem since the game runs fine on wine virtual desktop and with gamescope.

I do launch it through xinit.

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/Xresources
sysmodmap=/etc/X11/xinit/Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -n "`/etc/X11/chooser.sh`" ]; then
 command="`/etc/X11/chooser.sh`"
else
 failsafe="yes"
fi

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?* ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

if [ -n "$failsafe" ]; then
 exec dbus-launch --exit-with-session xmonad 
else
 exec $command
fi

Last edited by jabuxa (2023-04-13 15:26:01)

Offline

#8 2023-04-13 14:36:55

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,841

Re: Games with launchers can't run on xmonad

Please use bbcode code tags for pasting: https://bbs.archlinux.org/help.php#bbcode

Remove the explicit dbus-launch, while unlikely to the current issue it's likely to mask different issues.

Will go in a similar vein as https://wiki.archlinux.org/title/Xmonad … and_xmonad , try explicitly floating the launcher windows.

Last edited by V1del (2023-04-13 14:41:57)

Online

#9 2023-04-13 15:42:28

jabuxa
Member
Registered: 2022-02-02
Posts: 15

Re: Games with launchers can't run on xmonad

i've already set it explicitly with float, doesn't change anything. https://0x0.st/H8-3.txt

Offline

Board footer

Powered by FluxBB