# Check if another compositor is runningecho $WAYLAND_DISPLAYecho $DISPLAY# Kill existing sessionpkill -x mango
Permission issues:
# Check seat permissionsls -l /dev/dri/groups # Should include 'video' and 'input'# Add user to groups if missingsudo usermod -a -G video,input $USER# Logout and login again
seatd not running:
# Start seatdsudo systemctl enable --now seatdsudo systemctl status seatd
Check logs:
mango 2>&1 | tee ~/mango.log
Black screen after starting Mango
This usually means Mango started but no programs launched.Quick fix:
Press Alt+Return to open a terminal (default: foot)Permanent fix:
Create autostart.sh:
journalctl -b -0 --user # User session logsjournalctl -b -0 | grep mango # System logs
Common causes:
Missing config file (Mango will still start)
Crash in autostart.sh
Permission errors
Test manually:
# From TTYmango
Error: 'bad display' when starting mmsg
mmsg cannot connect to Mango.Check:
echo $WAYLAND_DISPLAY # Should show "wayland-0" or similarecho $XDG_RUNTIME_DIR # Should be /run/user/YOUR_UIDls $XDG_RUNTIME_DIR/$WAYLAND_DISPLAY # Socket should exist
Fix:
# Ensure variables are setexport XDG_RUNTIME_DIR="/run/user/$(id -u)"export WAYLAND_DISPLAY="wayland-0"
# Reduce blur or disableblur=0# Or use optimized modeblur_optimized=1blur_params_num_passes=1
Check GPU drivers:
# Check current driverlspci -k | grep -A 3 -E "(VGA|3D)"# For AMD, ensure AMDGPU is used# For NVIDIA, use proprietary drivers
Multi-monitor issues
List outputs:
mmsg -O
Common issues:
Monitor not detected:
# Check kernel sees itls /sys/class/drm/dmesg | grep -i drm
Wrong resolution:
Mango auto-detects. If wrong:
# Use wlr-randr to checkwlr-randr# Set mode manually (may need wlr-randr or similar tool)
Monitor arrangement:
Currently manual via mmsg:
# Focus specific outputmmsg -s -o "HDMI-A-1" -t 1# Move window to outputmmsg -s -o "HDMI-A-1" -d "tagmon,left"
Blurry applications (HiDPI issues)
Set scale factor:Mango should auto-detect, but you can verify:
# Check current scalemmsg -g -A
For specific applications:
# Qt appsexport QT_SCALE_FACTOR=2# GTK apps (already handles wayland scaling)# Should work automatically# Electron appsexport ELECTRON_OZONE_PLATFORM_HINT=wayland
Add to autostart.sh or ~/.bashrc
XWayland apps don't display
Check XWayland:
# Verify XWayland is installedwhich Xwayland# Check if runningps aux | grep Xwayland# Check DISPLAY variableecho $DISPLAY # Should be something like :0
xkb_rules_layout=us# Or for multiple layouts:xkb_rules_layout=us,ru
Check current layout:
mmsg -g -k
For multiple layouts, use setxkbmap:
# In autostart.shsetxkbmap -layout "us,ru" -option "grp:alt_shift_toggle"
Trackpad not working properly
Configure trackpad in config.conf:
# Enable tap to clicktap_to_click=1# Natural scrollingtrackpad_natural_scrolling=1# Disable while typingdisable_while_typing=1# Two-finger right clicktap_and_drag=1
Note: Requires re-login to apply.
Keyboard repeat rate too fast/slow
Adjust in config.conf:
repeat_rate=25 # Characters per secondrepeat_delay=600 # Milliseconds before repeat starts
Input method (IME) not working
Mango supports text-input-v2 and text-input-v3.For fcitx5:
# Install fcitx5 with wayland supportyay -S fcitx5-im fcitx5-chinese-addons# Add to ~/.bashrc or ~/.profileexport GTK_IM_MODULE=fcitxexport QT_IM_MODULE=fcitxexport XMODIFIERS=@im=fcitxexport GLFW_IM_MODULE=ibus # For some apps# Start in autostart.shfcitx5 -d &