I’ve solved most of my monitor problems on Wayland by using Gamescope. For example Enlisted (native) will insist on spanning across my 2 1080 monitors, or Helldivers 2 won’t boot on fullscreen while showing a white line on borderless. Also most games won’t properly grab the cursor.
On any steam game add this as launch options:
gamescope -w 2560 -h 1440 -r 60 -f -e %command%
This will make the game think it’s always running in the foreground, and in the resolution/refresh rate you specify.
If you want to add extra commands, like mangohud or gamemoderun, put them before gamescope
Used to be really finnicky but lately (last 6 months let’s say) it’s worked just fine. The only downside is that it might get hanged in the background and steam will show the game still running.
It’s basically a compositor, on top or your main compositor. So games aren’t aware of the outer compositor (which will be Gnome or KDE or whatever) and just see a display with whatever dimensions you give to it.
It is because you have two monitors with different scaling, re your reply below. I have the same problem with my 4K and 1440p monitors as well (200% and 150% scaling, respectively). This has been a rather big problem IMO, so much so that I have not really used the scaling that much and instead relied on increasing font size.
The reason why is that games run through Xwayland, and X only has global scaling factor setting and not a per monitor one. Therefore they have to do some weird stuff that I can not adequately explain, but which is the reason for the applications thinking they are on a lower resolution than they really are.
I actually did a benchmark yesterday and it doesn’t really seem to matter performance wise (I thought they might both upscale and downscale, but that seems to not be the case from my testing). It is also possible to tinker with gamescope if any games do not display properly.
Are you using a scaling factor with x11 legacy apps set to be “scaled by system”? That runs them at a lower resolution and scales them up. You can fix it by either using Gamescope or changing it to x11 apps “scale themselves”.
Yes, this is it. I have a 1080p monitor and a 1440p monitor of the same size. Without scaling it does weird things when moving between monitors. It defaults to system scaling.
An update: I fiddled with connecting the L-Connect controller to splitters, and a PWM and RGB hub I have and the results are the same: the Lian Li fans are not recognized by the BIOS unless I unplug the USB connection on the Lian Li controller, which kills RGB. When I used the splitter, it actually made my other fans invisible to the BIOS too. Looking closer, I noticed the PWM connector from the Lian Li controller only has 2 pins so I’m assuming it just won’t work without the L-Connect 3 software. Bummer
I’m probably not getting NVIDIA for my next card, but this certainly is a step in the right direction. If they prove they can keep up with the Linux ecosystem and play nice (e.g. the debacle around Wayland), I’ll consider getting one.
For now, AMD provides a fantastic Linux experience and that’ll need to be matched for me to even consider NVIDIA. NVIDIA used to be way better on Linux, but they broke that trust and it’ll take a while for me to give them another shot.
Get yourself a splitter for the 4 pin fan cables. Disconnect one set of fans from the controller. Connect the unplugged set of fans directly to the splitter. Connect the controller to the splitter. Connect the splitter to the motherboard.
Your bios should now see your fans. You can create custom fans curves and dynamically control the speed of the fans.
It may not solve the problems you’re seeing, but it seemed worth sharing.
Thank you so much for the advice but the issue with the Lian Li Uni Fan v2 is that the fan connectors are proprietary and only fit into the controller. The only thing I could split is from the controller and I don’t think that would really change my current situation.
Sorry for the delayed response - I saw what you meant in the v2 manual about the proprietary connector and thought I would just leave it at that, but I had another thought.
It sounds like you do have some access to Windows/L-Connect, have you switched the fan profiles to sync with the MB? This should stick after a shutdown and not need to be re-set, you will lose the ability to create fan curves in L-Connect: https://lemmy.ml/pictrs/image/fac93968-ab47-407b-8e49-91577d8762d9.png
Also, are you connecting the UNI HUB directly to the MB pins, or is it running through a splitter or extender? It looks like the UNI HUB v2 does have a sense pin (the v1 does NOT, that’s the reason for the workaround I have to use); some additional extenders and splitters are missing the sense pin, so even though you can control the fan speed from BIOS, you can’t see the RPMs in BIOS so it might look like it’s not recognized.
Thank you for the continued effort to help! If I boot into windows and enable the “MB RPM Sync”, the fans are recognized by the BIOS and ramp up and down as needed. This setting does not persist after a shutdown tho. The only way I’ve found to consistently have the fans work as intended after a shutdown is to unplug the USB cable from the Lian Li controller, which kills RGB. I have the PWM connector from the controller going straight into one of the connectors on my mobo. I can tell that after a shutdown, the fans just rotate on their lowest setting, until I open L-Connect 3 again on windows or disconnect the usb port. I’m attempting to implement this: github.com/kryzaach/Lian-Li-Unifan-Sync but think I have it placed in the wrong location, as it errors out immediately.
Geeze, that’s extremely frustrating… they really switched up the headaches between v1 and v2. I’m sorry I couldn’t be more help! Hopefully you can find a software solution to get it going.
I don’t mean to repeat troubleshooting you’ve already done with the python script, apologies in advance if this is stuff you’ve already done. If it’s erroring immediately, you may want to double check that you have pyUSB in place and UDEV rules to get access to the device if you’re not running the script as root.
edit: You may also need to check that your Vendor ID and Product ID match what the script was written for, given that there seem to be some different iterations of Lian Li’s hardware just in general.
Thank you so much for continuing to try and help. It’s greatly appreciated. I am very new to Linux so while I can do some basics, this is very helpful. I installed pyUSB but still get an error when running the script. I have the script placed in my home folder. Should it be elsewhere? The error I get is “No module named ‘usb’. I did adjust the script to have my controller’s proper identification so feels like I’m missing a small piece of the puzzle!
I’m not familiar with Nobara, but I can at least show how I would install pyUSB for use in Debian:
If you follow the instructions exactly as in the readme, it will error:
<span style="color:#323232;">$ pip install pyusb
</span><span style="color:#323232;">error: externally-managed-environment
</span><span style="color:#323232;">
</span><span style="color:#323232;">× This environment is externally managed
</span><span style="color:#323232;">╰─</span><span style="font-weight:bold;color:#a71d5d;">></span><span style="color:#323232;"> To install Python packages system-wide, try apt install
</span><span style="color:#323232;"> python3-xyz, where xyz is the package you are trying to
</span><span style="color:#323232;"> install.
</span><span style="color:#323232;">
</span><span style="color:#323232;"> If you wish to install a non-Debian-packaged Python package,
</span><span style="color:#323232;"> create a virtual environment using python3 -m venv path/to/venv.
</span><span style="color:#323232;"> Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
</span><span style="color:#323232;"> sure you have python3-full installed.
</span><span style="color:#323232;">
</span><span style="color:#323232;"> If you wish to install a non-Debian packaged Python application,
</span><span style="color:#323232;"> it may be easiest to use pipx install xyz, which will manage a
</span><span style="color:#323232;"> virtual environment for you. Make sure you have pipx installed.
</span><span style="color:#323232;">
</span><span style="color:#323232;"> See /usr/share/doc/python3.11/README.venv for more information.
</span><span style="color:#323232;">
</span><span style="color:#323232;">note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
</span><span style="color:#323232;">hint: See PEP 668 for the detailed specification.
</span>
Instead, I would create a virtual environment (I’m using virtualenv instead of venv)
Hmmm…. I’ve got those exact fans and the controller that comes with them - 10 fans to be specific, and they really haven’t given me any trouble at all. There are three sets of 3 daisy chained, and one single fan. They connect to a relatively new asus board. I’m running arch and openrgb from the aur.
The fans doing fan things (spinning), that just works. They ramp up and down based on the case fan connector from the mobo. One three pack is on the radiator to an aio cooler and that triplet ramps up and down based on the fan speed header for the cpu.
The LIGHTS are a different story. If I cycle power completely, they do the default rainbow puke when started back up. OpenRGB required a little configuration and playing around to get the number of lights correct, and synching properly-but it worked. (I can get you my settings in openRGB if that helps avoid the trial and error). Because my mobo still supplies power when I power down, the lights hold their last pattern when I reboot.
So in my experience-those fans spin without any software and light up at least rainbow puke without any software. You only need software to get different colors or to just override the fan header and set a manual speed.
I’m wondering what your computer/mobo is doing to stop that. Weird.
Thank you so much for the reply! I have an MSI B550 Tomahawk, so a fairly new board. I can definitely relate to the OpenRGB issues as well. I appreciate the offer for your config but I have the lights as stable as they’ll get I think. I just tested again to be sure and when I shut down the system and go to the BIOS, fan 5 isn’t recognized. Right when I log into windows and enable MB Sync in L-Connect 3, the BIOS sees the fans again. I have 2 fans under my GPU and one as exhaust so I’ve noticed higher temps when in Linux. Thank you again for the input. I’ll need to dig around a bit more I suppose.
“Fan 5 isn’t recognized”. This confuses me. Wouldn’t your motherboard only recognize the controller? For example I’m using two controllers. My motherboard sees a single cpu fan (the controller with 3 daisy chained fans on one port), and it sees a second chassis fan (the second controller with a 3 pack on one port, another three pack on the second port, and a single fan on the third port).
10 fans, 2 controllers, mobo only sees 2 “fans”. Here’s a video showing exactly how I wired mine up, and the type of fans and controllers (maybe we don’t have the same parts).
If I shut down, it sees no fans on that header. If I run L-Connect 3, it shows a single fan’s speed, which is ultimately the controller driving the three fans
Ah I see, #5 is just the header you’re using. You aren’t using 5 total. That makes more sense.
I don’t even have L-connect installed, but I did once upon a time. Maybe I changed a setting there and forgot about it, but I don’t think so. Either way it’s probably worth checking that your bios is set to “PWM” for that header, and that L-connect is set to “enable MB PWM Sync” under the fan/pump profile page. (Just from googling). Look for settings to turn off any L-connect interaction - forcing it to pay attention to the fan header?
I’m wondering if your controller is somehow set to ignore the header pins and run from just the usb port/L-connect. And maybe on a power cycle, your mobo thinks there’s no fan?
I dunno - I’m shooting in the dark now though. All I know is that my controller always shows up as a single fan, and all the attached fans run at the same speed - whatever the header calls for. No software installed, all wired connections are made, exhibits this same behavior regardless of OS, power cycles, reboots, etc.
Sorry I’m not more help - it’s frustrating when things that should “just work” don’t.
So you were right about one of my SATA connectors on my Lian Li controller being disconnected. I connected that but BIOS still doesn’t see the fans. Then I disconnected the USB connector from the Lian Li controller and my fans were recognized but no LED. I’m going to look into the other suggestion in this post. Thank you for taking the time to try and help!
As comment in another post said - this is for modules only. There’s still a ton of binary fluff that is the main cause of issues and that is not getting open sourced.
linux_gaming
Hot
This magazine is from a federated server and may be incomplete. Browse more on the original instance.