laamaa / m8c

Cross-platform M8 tracker headless client
Other
419 stars 87 forks source link

NixOS / Wayland (Hyprland) No display? #169

Open DOSputin opened 1 month ago

DOSputin commented 1 month ago

Running on Nixos from flake,

Run m8c, with no apparent errors, however, never get a display up.

Last two lines on the console read;

INFO: Reset display
INFO: ** Hardware info ** Device type: Headless, Firmware ver 4.0.0

CTRL+C quits, and read:

^CINFO: Shutting down
INFO: Closing audio devices
INFO: Disconnecting M8

tweaking settings in the config.ini has no avail... just nada.

My shell sessions are via Alacritty btw.

Any ideas?

laamaa commented 1 month ago

Maybe try launching with SDL_VIDEODRIVER=wayland ./m8c to make SDL use Wayland?

DOSputin commented 1 month ago

Maybe try launching with SDL_VIDEODRIVER=wayland ./m8c to make SDL use Wayland?

hmmm... thanks for the reply!

but;

echo $SDL_VIDEODRIVER 
wayland

is the pre-existing system default env setting guess i should have included that in the issue OP. still haven't figured out wtf with wayland under NixOS.
m8c works totally fine on Debian / Wayland / Hyprland with basically same overall setup, so must be something with my NixOS config that i haven't figured out yet.

laamaa commented 1 month ago

Weird.. I haven't used NixOS myself so unfortunately don't have much other ideas :< I'll leave the issue open though if someone else wants to chime in