The small linux problem thread

Figure out the cable sizes and get what you need . The more complex /stuff in your pc the greater the need. Should help knock the noise down .

1 Like

Hey all, I’m new to the forum. Uncertain if this issue is big enough to deserve it’s own thread so I’m going to put it here.

I’ve been having some nasty screen tearing problems with a ~10 year old Acer monitor connected via HDMI. I’ve done a ton of digging online already for my Intel B580, and most solutions I see are for Nvidia hardware or Intel iGPU drivers. I know there was some discussion of the HDMI cartel causing problems with the Intel B580, but is this one of those problems I can throw software\a config file change at, or am I going to have to throw hardware at it?

I am running Linux Mint, and would rather not switch distributions, or use Wayland at the moment.

1 Like

WELCOME TO THE FORUM!

Super bummer

Honestly, Mint is probably not serving you well with an Intel GPU as intel is modifying and advancing their driver quickly and distros that don’t stay up to date with their kernel will miss out on a lot of the advancements and changes that come in mesa (intel GPU drivers).

If you are truly wanting to stick with Mint…

We’ll need to gather some data on the kernel, mesa and other setup of your distro config as you’ll more than likely need to update to a newer kernel as well as update mesa.

This script will gather the information required to understand the modifications required to update / configure your distro and report the results:

bash -c '
BOLD="\033[1m"; GREEN="\033[32m"; YELLOW="\033[33m"; RED="\033[31m"; RESET="\033[0m"
pass() { echo -e "  [${GREEN}PASS${RESET}] $1"; }
warn() { echo -e "  [${YELLOW}WARN${RESET}] $1"; }
fail() { echo -e "  [${RED}FAIL${RESET}] $1"; }

echo -e "\n${BOLD}=== Intel Arc B580 Diagnostics for Linux Mint ===${RESET}\n"

# 1. Session Type
echo -e "${BOLD}1. Display Server Session:${RESET}"
SESSION="${XDG_SESSION_TYPE:-unknown}"
if [ "$SESSION" = "x11" ]; then
    pass "Session type: X11"
else
    warn "Session type: $SESSION (X11 expected based on configuration)"
fi

# 2. Kernel Version
echo -e "\n${BOLD}2. Linux Kernel Version:${RESET}"
K_MAJOR=$(uname -r | cut -d. -f1)
K_MINOR=$(uname -r | cut -d. -f2)
K_VER=$(uname -r)
if [ "$K_MAJOR" -gt 6 ] || { [ "$K_MAJOR" -eq 6 ] && [ "$K_MINOR" -ge 12 ]; }; then
    pass "Kernel: $K_VER (Meets Battlemage >= 6.12 requirement)"
else
    fail "Kernel: $K_VER is too old! Battlemage requires Linux 6.12+ (Xe2 display engine unaccelerated)."
fi

# 3. Kernel Driver Binding
echo -e "\n${BOLD}3. Active Kernel Driver:${RESET}"
# Specifically locate discrete Arc Battlemage or any Intel display device
GPU_PCI=$(lspci -nn | grep -iE "vga|3d|display" | grep -iE "b580|battlemage|arc|intel" | tail -n1 | awk "{print \$1}")
if [ -n "$GPU_PCI" ]; then
    DRV=$(lspci -k -s "$GPU_PCI" | grep "Kernel driver in use" | awk -F: "{print \$2}" | xargs)
    if [ "$DRV" = "xe" ]; then
        pass "Kernel driver in use on $GPU_PCI: xe (Correct driver for B580)"
    elif [ "$DRV" = "i915" ]; then
        fail "Kernel driver in use on $GPU_PCI: i915 (Legacy driver cannot drive Battlemage Xe2)"
    else
        fail "Kernel driver in use on $GPU_PCI: ${DRV:-None} (GPU driver not bound)"
    fi
else
    fail "No Intel GPU detected on the PCI bus."
fi

# 4. OpenGL / 3D Hardware Acceleration & Mesa
echo -e "\n${BOLD}4. Graphics Acceleration & Mesa Stack:${RESET}"
if command -v glxinfo >/dev/null 2>&1; then
    RENDERER=$(glxinfo -B 2>/dev/null | grep -i "OpenGL renderer" | cut -d: -f2 | xargs)
    MESA_VER=$(glxinfo -B 2>/dev/null | grep -i "OpenGL core profile version" | grep -oP "Mesa \K[0-9.]+" || echo "unknown")
    
    if echo "$RENDERER" | grep -qi "llvmpipe"; then
        fail "Renderer: $RENDERER (Software rasterizer fallback! GPU acceleration is dead)"
    elif echo "$RENDERER" | grep -qiE "b580|arc|battlemage|intel"; then
        pass "Renderer: $RENDERER"
    else
        warn "Renderer: $RENDERER"
    fi

    MESA_MAJOR=$(echo "$MESA_VER" | cut -d. -f1)
    if [ "$MESA_MAJOR" != "unknown" ] && [ "$MESA_MAJOR" -ge 24 ]; then
        pass "Mesa version: $MESA_VER"
    else
        fail "Mesa version: $MESA_VER (Mesa 24.3+ or 25.0+ required for Xe2 Iris/ANV drivers)"
    fi
else
    warn "glxinfo not found. Run \"sudo apt install -y mesa-utils\" to probe 3D acceleration."
fi

# 5. Resizable BAR (ReBAR)
echo -e "\n${BOLD}5. Resizable BAR (ReBAR):${RESET}"
if [ -n "$GPU_PCI" ]; then
    BAR_SIZES=$(lspci -v -s "$GPU_PCI" | grep -i "Region" | grep -i "size=" || true)
    if echo "$BAR_SIZES" | grep -qE "size=(12|16)G"; then
        pass "Resizable BAR: Enabled (Full VRAM address space accessible)"
    elif echo "$BAR_SIZES" | grep -qE "size=256M"; then
        fail "Resizable BAR: Disabled (256MB aperture limits Arc throughput severely)"
    else
        warn "Could not conclusively verify BAR size. Check UEFI for Above 4G Decoding and Re-Size BAR."
    fi
fi

# 6. TearFree / Xorg DDX Configuration
echo -e "\n${BOLD}6. X11 Configuration & TearFree:${RESET}"
TF_CONFIG=$(grep -ri "TearFree" /etc/X11/xorg.conf* 2>/dev/null || true)
if echo "$TF_CONFIG" | grep -qi "true"; then
    pass "TearFree configuration found: $TF_CONFIG"
else
    warn "No explicit TearFree snippet detected in /etc/X11/xorg.conf.d/."
fi

# Check if xrandr reports TearFree as an exposed property
if command -v xrandr >/dev/null 2>&1; then
    if xrandr --prop 2>/dev/null | grep -qi "TearFree"; then
        pass "xrandr reports TearFree property is supported by the active output."
    else
        warn "Active Xorg DDX driver does not expose a TearFree property via xrandr."
    fi
fi

# 7. Cinnamon Compositor VSync
echo -e "\n${BOLD}7. Cinnamon Compositor VSync:${RESET}"
if command -v gsettings >/dev/null 2>&1; then
    VSYNC_VAL=$(gsettings get org.cinnamon.muffin vsync 2>/dev/null || echo "not found")
    if [ "$VSYNC_VAL" = "\x27presentation-time\x27" ] || [ "$VSYNC_VAL" = "\x27always\x27" ]; then
        pass "Cinnamon Muffin VSync: $VSYNC_VAL"
    elif [ "$VSYNC_VAL" = "\x27none\x27" ]; then
        fail "Cinnamon Muffin VSync is explicitly set to \"none\""
    else
        warn "Cinnamon Muffin VSync setting: $VSYNC_VAL"
    fi
fi

echo -e "\n${BOLD}================================================${RESET}\n"
'
2 Likes

Thanks for taking the time to reply to my query.

Well, from that list I can already confirm several things I have enabled/changed from past tinkering.

  • I already attempted the xorg.conf.d TearFree solution, which didn’t fix anything
  • I changed the default Mesa driver to the kiska ppa Mesa driver
  • I have enabled Resizable Bar in the motherboard Bios
  • I am on Kernel version 7.0.0-38-generic
  • mesa-utils is installed

I also tried a different HDMI cable, for the heck of it.

As far as I can tell the only thing left to check from your bash snippits is Cinnamon’s Compositor Vsync, which I’ll try after I post this response (I’ll edit the results into this post).

Yeah, I know they’re making some really good progress, I’ve been able to experience them thanks to the aforementioned kiska ppa. I’ve had different issues with other distros I’ve tried or just didn’t like how some of them managed things.

A lot of distros are also defaulting to Wayland now, and some older software I use still breaks on it. It’s also kind of a matter of principle; big pushes to switch to something that had a really rough development history just don’t sit well with me. So I’m happy with ol’ reliable 'till I’m certain my workflow won’t bork somehow. If I can fix some screen tearing along the way, that’ll be even better.

Edit (results):

So it would seem Muffin removed their Vsync feature, I’ve switched to KDE Plasma (5.27.12), which also didn’t help. So it seems to not be DE related.

If you want to find a supported adapter, look on the HCL for Packet Injection tools like aircrack-ng. They list which wifi USB adapters and mpcie’s work on Linux. Pentesters have a need for current standards Like 6 and 7. Most of the list will cover a→ac.

Is it a driver issue or is it an unsupported monitor output?

AI’s Solution:

A B580’s HDMI 2.1 output is generally backward-compatible with older HDMI displays, though the display’s resolution and refresh rate will be limited by what it supports.
The display’s resolution and refresh rate will be limited by what it supports.
Screen tearing happens when the display refreshes partway through a new frame.
Try enabling V-Sync in the game or graphics settings, or use FreeSync/Adaptive-Sync if both the monitor and graphics card support it.

Changing the resolution to see if tearing persists: Lowering the resolution can raise the frame rate, and tearing may persist—or even become more noticeable—if frames still aren’t synchronized with the display.

I’ve built an old machine and I’m running Linux Mint XFCE on it. All seems to work fine, but when I connect to it using Remmina and XRDP the desktop does this…

Yes I could just not use Mint or XFCE, but I’m playing around and learning and so I’d like to try and fix it and hopefully learn something in the process.

Anyone know is up with this?

I’m not all that familiar with XFCE, so cannot readily tell what is supposedly wrong here.

However, XRDP is not like windows RDP:

  • It doesn’t attach to existing session
  • It opens its own session - to which one can re-connect remotely, or locally (via rdp client)

So if You do this:

  1. locally: login as user1
  2. remotely: connect as user1 via xrdp

Then there will be 2 session for user1, most desktop envs do not support this. Moreover, once this is done, some things might get “stuck”, sometime one has to reboot to restore “normality”.

The same would happen in this case:

  1. remotely: connect as user1 via xrdp
  2. locally: login as user1

I connected right after a reboot. I did not login on to the machine directly before hand. I don’t think multiple sessions will work here anyway. I think I could set it up to do that, but I don’t need to.

I have been using cachyos for some time. But I’m having fresync related flicker problem on some fullscreen apps.

I have a amd GPU connected to 144hz monitor via DP cable. Display vrr setting set to automatic.

Desktop Environment: KDE

Display compositor is Wayland.

I haven’t had success finding solution so far. Does anyone have a idea what coud be causing it?

So I’ve done a lot more research on the problem and I’ve narrowed it down to likely being an HDMI consortium issue, and HDMI just not playing well with Linux in certain scenarios. I am going to attempt to swap over to an XLibre setup and see if that fixes my problem, and in the worst case scenario switch to Fedora. My other machines run that, so it’s an easy jump.

Thanks again for the assistance.

Check your distro’s graphics driver install procedure. If they have a specific step by step process for installing and you just winged it with apt install && apt upgrade.

On my system I had to disable the existing graphics display and run in terminal mode after a reboot. Then follow the distro’s steps for installing the Graphics driver, starting with blacklisting the nouveau driver (Nvidia). You have AMD so you might have other steps to follow.

If you are using pipewire, you can make a rule for this or just a script to restart pipewire. You can also setup routing with wireplumber.

My guess is that since optical is a one way thing, the hardware is having the issue and switching channel orientation, maybe due to timing drift

I use optical into a 5.1 channel breakout box that sends to individual speakers. One way to fix signal drift and popping when the optical goes to sleep/low power from inactivity was to set a rule to always send a high frequency sound that is out of human range so that the output never goes to low power or off.

2 Likes

I like bwrap, but I feel if you’re not using seccomp with it you are leaving a notable amount of exploit surface on the table.

Except using seccomp with bwrap seems like a PITA. Is there an easy way?

(SystemD makes it simpler with SystemCallFilter and including some predefined groups.

)

; Sorry for locking up your sexp parsers.

I’ve been using Remmina and XRDP to connect to my little Dayz server for about 3 weeks now with no real issue.

The machine is running Mint (Zena) Xfce

This morning it’s just F’d and completely unusable. Every time the desktop has any kind of change to it, like the time changing in the top right corner, I get this reconnect flash. Below video shows what is happening every time I enter single character in the terminal.

I’ve tried updating everything, I’ve tried changing some settings in Remmina, but nothing seems to make any difference. I REALLY don’t want to have to format and reinstall everything AGAIN.

I only had a couple of hours to learn how to make a change to the Dayz server I wanted to make, but I’ve now spent all that time getting flash banged for 3 hours.

HTPC, Fedora 44, Pulse audio, toslink output

  • Pulse is working fine
  • converting Toslink back to SPDIF, the capture card grabs it fine
  • dnf update
  • dnf update & dnf upgrade
  • sudo dnf system-upgrade download --releasever=45
  • Try Bluetooth to the Fiio BR13, also nothing

spent an hour on this!

Amplifier wasn’t onf

A tried power filter for USB only, separate USB Toslink, and clip on ferrites. Nothing. Schiit Fulla just has to be chucked out the window I think. Still get noise or get channel flips.

1 Like

Oh man, I’m sorry to here that. That sucks.

Those are the same thing, this isn’t Debian.