Help! Anyone knows of any mouse cursor lock to display software?

Big Linux noob here, apologies if this is the wrong place to ask this question

My situation and problem:

Im using a dual monitor display setup

Gaming becomes impossible without a reliable way of locking down the mouse cursor to the game output display

On my Windows 10 machine i solve this problem by using a program called "Dual monitor tools"

I tried running that program on here using wine but that doesn't work

I've been looking for a linux alternative and I can't seem to find anything except for a piece of software on the AUR called "jail" which I was unable to get working

Is there any software for this on linux? Specifically for locking the cursor to a particular monitor

garuda-inxi:

System:
Kernel: 6.1.11-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=ac3db51d-0458-4e6e-a36e-12defe2236f9 rw rootflags=subvol=@
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
loglevel=3 ibt=off
Desktop: KDE Plasma v: 5.26.5 tk: Qt v: 5.15.8 info: latte-dock
wm: kwin_x11 vt: 2 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop Mobo: ASUSTeK model: PRIME A320I-K v: Rev X.0x
serial: <superuser required> UEFI: American Megatrends v: 2203
date: 07/28/2020
CPU:
Info: model: AMD Ryzen 5 2600 bits: 64 type: MT MCP arch: Zen+ gen: 2
level: v3 note: check built: 2018-21 process: GF 12nm family: 0x17 (23)
model-id: 8 stepping: 2 microcode: 0x800820D
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 576 KiB desc: d-6x32 KiB; i-6x64 KiB L2: 3 MiB desc: 6x512 KiB
L3: 16 MiB desc: 2x8 MiB
Speed (MHz): avg: 1634 high: 2800 min/max: 1550/3400 boost: enabled
scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 1550 2: 1337
3: 2800 4: 1270 5: 1550 6: 1550 7: 1303 8: 1354 9: 1279 10: 1270 11: 1550
12: 2800 bogomips: 81436
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
vendor: Sapphire Nitro+ driver: amdgpu v: kernel arch: GCN-4
code: Arctic Islands process: GF 14nm built: 2016-20 pcie: gen: 3
speed: 8 GT/s lanes: 16 ports: active: DP-2 empty: DP-1, DVI-D-1,
HDMI-A-1, HDMI-A-2 bus-ID: 07:00.0 chip-ID: 1002:67df class-ID: 0300
temp: 47.0 C
Display: x11 server: X.Org v: 21.1.7 with: Xwayland v: 22.1.8
compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting,radeon
alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: :1 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
s-diag: 582mm (22.93")
Monitor-1: DP-2 mapped: DisplayPort-1 model: VG259QM serial: <filter>
built: 2021 res: 1920x1080 dpi: 90 gamma: 1.2 size: 544x303mm (21.42x11.93")
diag: 623mm (24.5") ratio: 16:9 modes: max: 1920x1080 min: 720x400
API: OpenGL v: 4.6 Mesa 22.3.4 renderer: AMD Radeon RX 570 Series
(polaris10 LLVM 15.0.7 DRM 3.49 6.1.11-zen1-1-zen) direct-render: Yes
Audio:
Device-1: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
vendor: Sapphire driver: snd_hda_intel v: kernel bus-ID: 3-2:3 pcie:
chip-ID: 041e:3256 class-ID: 0300 gen: 3 speed: 8 GT/s serial: <filter>
lanes: 16 bus-ID: 07:00.1 chip-ID: 1002:aaf0 class-ID: 0403
Device-2: AMD Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel
v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 09:00.3
chip-ID: 1022:1457 class-ID: 0403
Device-3: Creative Sound BlasterX G6 type: USB
driver: hid-generic,snd-usb-audio,usbhid
Sound API: ALSA v: k6.1.11-zen1-1-zen running: yes
Sound Server-1: PulseAudio v: 16.1 running: no
Sound Server-2: PipeWire v: 0.3.65 running: yes
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: ASUSTeK PRIME B450M-A driver: r8169 v: kernel pcie: gen: 1
speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 05:00.0 chip-ID: 10ec:8168
class-ID: 0200
IF: enp5s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
IF-ID-1: ipv6leakintrf0 state: unknown speed: N/A duplex: N/A
mac: <filter>
IF-ID-2: proton0 state: unknown speed: 10 Mbps duplex: full mac: N/A
Drives:
Local Storage: total: 4.08 TiB used: 817.78 GiB (19.6%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Kingston model: SUV400S37480G
size: 447.13 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: 56R8 scheme: GPT
ID-2: /dev/sdb maj-min: 8:16 type: USB vendor: Seagate
model: Expansion HDD size: 3.64 TiB block-size: physical: 4096 B
logical: 512 B type: N/A serial: <filter> rev: 1901 scheme: GPT
Partition:
ID-1: / raw-size: 446.83 GiB size: 446.83 GiB (100.00%)
used: 34.58 GiB (7.7%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 608 KiB (0.2%) fs: vfat dev: /dev/sda1 maj-min: 8:1
ID-3: /home raw-size: 446.83 GiB size: 446.83 GiB (100.00%)
used: 34.58 GiB (7.7%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-4: /var/log raw-size: 446.83 GiB size: 446.83 GiB (100.00%)
used: 34.58 GiB (7.7%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-5: /var/tmp raw-size: 446.83 GiB size: 446.83 GiB (100.00%)
used: 34.58 GiB (7.7%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 15.55 GiB used: 2.58 GiB (16.6%)
priority: 100 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 31.6 C mobo: N/A gpu: amdgpu temp: 46.0 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 752
Info:
Processes: 401 Uptime: 10h 22m wakeups: 0 Memory: 15.55 GiB
used: 6.95 GiB (44.7%) Init: systemd v: 252 default: graphical
tool: systemctl Compilers: gcc: 12.2.1 Packages: pm: pacman pkgs: 1398
libs: 436 tools: octopi,paru Shell: fish v: 3.6.0 default: Bash v: 5.1.16
running-in: konsole inxi: 3.3.25
Garuda (2.6.14-1):
System install date:     2023-02-13
Last full system update: 2023-02-13 ↻
Is partially upgraded:   No
Relevant software:       snapper NetworkManager mkinitcpio
Windows dual boot:       No/Undetected
Failed units:

Welcome to garuda
can you you provide your

garuda-inxi

as per the forum template

1 Like

Is that an auto generated reply? Guess im posting on the wrong place

No...
We need your garuda-inxi output from a terminal in order to reply to support requests.
System info from it helps to know what desktop environment you are using, etc....

4 Likes

That cant be a safe thing to share can it? Sorry im genuinely not trolling

There are like 300 lines of system info there and IP stuff

I posted it and then deleted it that looked sketchy as hell


Please, thats not a chat forum. Edit your post until nobody answer.
Greetings SGS

If you looked at any support other thread, or even the template you deleted, this is a very common thing to ask. garuda-inxi is just our spin of a regular inxi( to see what the system is using) that are always used for support request. There is no IP information in there, you can look for yourself.

4 Likes

I will be back! The winds whisper my name

Welcome @normiedev01. Check this out:

https://www.uninformativ.de/git/xpointerbarrier/file/README.html

https://aur.archlinux.org/packages/xpointerbarrier-git

3 Likes

I will check up on those thanks man

I don't know if this applies to X11 too, on Sway/Wayland I use a very simple trick: I temporarily alter one monitor logical position so that they are not contiguous, and the mouse remains trapped.

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.