Scaling dual monitors on Ubuntu Desktop 20.04 without flickering mouse (KDE Neon)

I have a dual monitor set-up and, as such, I have 200% scaling on my primary screen (13 inch up to 4k) and 100% scaling on my second monitor.

Example:

#!/bin/sh
sudo xrandr --output DP-1 --off
sudo xrandr --output eDP-1 --primary --mode 3456x2160 --pos 0x0 --rotate normal --scale 0.9999x0.9999 --output DP-1 --mode 1920x1080 --pos 3456x0 --rotate normal --scale 2x2 --output HDMI-1 --off --output DP-2 --off --output DP-3 --off --output DP-4 --off

#randr --output eDP-1 --primary --mode 3456x2160 --pos 0x0 --rotate normal --scale 0.9999x0.9999 --output DP-1 --mode 1920x1080 --pos 3456x0 --rotate normal --scale 2x2 -r 59.94 --output HDMI-1 --off --output DP-2 --off --output DP-3 --off --output DP-4 --off

#!/bin/bash
DEVICE=$1
if [ "$1" == "" ] ; then
    DEVICE="DP-1"
fi
MODELINE=\"$(cvt 1920 1080 | grep -e "^#" -v | cut -d '"' -f 2-)
MODENAME=$(echo $MODELINE | cut -d " " -f 1)
MODEPARAMS=$(echo $MODELINE | cut -d " " -f 2-)
sudo xrandr --newmode $MODENAME $MODEPARAMS
sudo xrandr --addmode $DEVICE $MODENAME

xrandr –output DP-1 –off # for after setting you have the correct wallpaper format on secondary screen
–scale 0.9999×0.9999 on eDP-1 #for disableing flickering mouse
–scale 2×2 -r 59.94 # for secondary monitor 1920×1080

Install VMware Workstation 16.2.3 Pro for Linux on Ubuntu 20.04

First install Install gcc 11
Run the following command to add the Toolchain repository:

sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test

Install gcc 11:

sudo apt install -y gcc-11

Check gcc version to verify that the installation completed successfully:

gcc-11 --version

Nou you can install VMware Workstation 16.2.3 Pro for Linux

sudo ./VMware-Workstation-Full-16.2.3-19376536.x86_64.bundle

After install start VMware Workstation and it wil install the “vmmon and vmnet” running on:

OS: KDE neon User – 5.24 x86_64
Host: XPS 13 9310
Kernel: 5.15.27-xanmod1
Shell: bash 5.0.17
Resolution: 3456×2160
DE: Plasma
WM: KWin
WM Theme: Sweet-Dark
Theme: [Plasma], Breeze-Darker [GTK2/3]
Icons: PlasmaXDark [Plasma], PlasmaXDark [GTK2/3]
Terminal: konsole
CPU: 11th Gen Intel i7-1195G7 (8) @ 5.000GHz
GPU: Intel Device 9a49
Memory: 3494MiB / 31822MiB

Horizon Client in linux dark theme KDE Neon / Ubuntu 20.04

Close vmware horizon client.
open terminal

vi /usr/share/applications/vmware-view.desktop

Exec=vmware-view %u

Change it to:

Exec=env GTK_THEME=Yaru-light vmware-view %u

save

Restart app and now you should be able to view everything properly.

If you don’t have Yaru-light as a theme you may need to change it to what ever your OS light theme is named.

EDIT:

System versions

Horizon Client version: 2111 / build: 8.4.0
KDE Neon / Ubuntu 20.04 Linux kernel 5.15.22-xanmod1
KDE Plasma 5.24.1
Qt Vesrion 5.13.3

KDE Plasma 5.24 Released

KDE Plasma 5.24 is out and (as we’ve come to expect) it is chock full of performance improvements, user interface refinements, and even a few handy new features.

In this post I run through the most notable and noticeable changes shipping in KDE Plasma 5.24, plus tell you how you can try the release out first hand.

While we’re on the subject: if you’re a fan of KDE Plasma and you want to see more coverage of the DE on omg! do let me know in the comments. While Plasma is not a desktop environment I’m super familiar with (thus I don’t know my way around it very well) its ballooning popularity —even the Steam Deck uses it, well kinda— has me intrigued!

Lees verder

VMware Horizon 2111 Released

VMware Horizon 8 version 2111 provides the following new features and enhancements. This information is grouped by installable component.

Version numbering is based on the planned year and the month of the release. The actual release date can vary based on business needs and engineering schedule changes to address critical customer requirements. VMware Horizon 8 version 2111 provides the following new features and enhancements. This information is grouped by installable component.

Lees verder

How to run scrcpy wirelessly?

This application provides display and control of Android devices connected via USB (or over TCP/IP). It does not require any root access. It works on GNU/Linux, Windows and macOS.

https://github.com/Genymobile/scrcpy

Here are the steps:
1. Connect the device to the same Wi-Fi as your computer
2. Get your device IP address (in Settings ? About phone ? Status)
3. Enable adb over TCP/IP on your device: adb tcpip 5555
4. Connect to your device: adb connect DEVICE_IP:5555 (replace DEVICE_IP)
5. Unplug your device
6. Run scrcpy as usual

To switch back to USB mode: adb usb.

The default scrcpy bit-rate is 8Mbps, which is probably too much for a Wi-Fi connection. Depending on the use case, decreasing the bit-rate and the resolution may be a good compromise:

scrcpy --bit-rate 2M --max-size 800

or

scrcpy -b2M -m800

Ubuntu 20.04 / KDE Neon enable high quality audio

vi /etc/pulse/daemon.conf

daemonize = no
high-priority = yes
nice-level = -11
realtime-scheduling = yes
realtime-priority = 9
resample-method = soxr-vhq
avoid-resampling = true
enable-lfe-remixing = no
flat-volumes = no
rlimit-rtprio = 9
default-sample-format = float32le
default-sample-rate = 48000
alternate-sample-rate = 44100
default-sample-channels = 2
default-channel-map = front-left,front-right
default-fragments = 2
default-fragment-size-msec = 125
deferred-volume-safety-margin-usec = 1

Enable LDAC, APTX, APTX-HD, AAC support in PulseAudio Bluetooth

add-apt-repository ppa:eh5/pulseaudio-a2dp
apt update
apt install libavcodec58 libldac pulseaudio-modules-bt

JamesDSP For Linux Is An Audio Effect Processor For PipeWire Or PulseAudio (Equalizer, Bass Boost, More)

Add PPA Repo

Lees verder