Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

Double mouse cursor in XLibre in QEMU install

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
vmisev
n00b
n00b
User avatar
Posts: 5
Joined: Sun Aug 10, 2025 8:17 pm
Location: Belgrade, Serbia

Double mouse cursor in XLibre in QEMU install

  • Quote

Post by vmisev » Sun Aug 10, 2025 8:35 pm

Hi all, this my first post on Gentoo forums.
TL;DR: After swapping Xorg for XLibre (in QEMU install), only issue I'm seeing (for now) is a double mouse cursor, which is driving me crazy. IDK is that Gentoo/XLibre related or QEMU setting issue.

Longer version: I'm very interested in Gentoo, but I don't have much experience with it, nor I'm experienced in any other Linux – I've been FreeBSD user for last 20 years. Only recently I went with

Code: Select all

ACCEPT_KEYWORDS="~amd64"
in

Code: Select all

/etc/portage/make.conf
to get latest kernel&pkgs, and only after full upgrade to 6.15.9/KDE 6.4.4 I decided to try XLibre. All went well (I had problem with KDE Icons-Only Task manager, but after deleting

Code: Select all

~/.config/plasma-org.kde.plasma.desktop-appletsrc
it was regenerated to look as on every other OS), but double mouse cursor persisted – one on the left works, right one is just a ghost, and both look like 50% vertically squashed. Also, sddm mouse cursor sometimes looks okay, sometime is just equally spaced 4 black lines 3 pixels high with some white pixels thrown in.

virt-manager/qemu is run on Alt Sisyphus Linux (6.12.41/KDE 6.4.3), Gentoo VM is using OpenRC as init.

BTW, I followed Gentoo XLibre wiki to the letter, but after installing XLibre,

Code: Select all

emerge @x11-module-rebuild
succeeded only after I added

Code: Select all

USE="-xvfb*"
to the portage/make.conf

I'm at loss what I did wrong and where I should look for the solution for double mouse cursor annoyance. Also, which logs should I post?

Thanks in advance.
Top
vmisev
n00b
n00b
User avatar
Posts: 5
Joined: Sun Aug 10, 2025 8:17 pm
Location: Belgrade, Serbia

  • Quote

Post by vmisev » Tue Aug 12, 2025 11:22 pm

Update: some progress (but not totally): After removing Video QXL and adding Video Virtio in virt-manager/qemu settings for Gentoo, cursor looks normal in sddm (no more strange black lines with white pixels), after logging X cursor appears for a split second, and in Plasma there is only one mouse cursor now, but it was still 50% vertically squashed (X cursor, before KDE, was also 50% vertically squashed).

So, I disabled sddm to be able to test different options in ~/.Xresources and ~/.xinitrc and after numerous startx and 'KDE/Session/Log Out' looks like that only thing that allows for normal (not distorted) mouse cursors shape is "export XCURSOR_SIZE=28" in ~/.xinitrc. Looks like that "Xcursor.size: " in ~/.Xresources has no effect. I also tried with various xrandr options, but only thing that worked for me is setting env XCURSOR_SIZE equal (or greater than) 28. It's slightly too big for my taste, but much better than having two squashed ones.

I'll dig deeper and report if/when I found more.
Top
vmisev
n00b
n00b
User avatar
Posts: 5
Joined: Sun Aug 10, 2025 8:17 pm
Location: Belgrade, Serbia

  • Quote

Post by vmisev » Tue Aug 26, 2025 12:33 pm

Looks like that squashed mouse cursor has nothing to do with Gentoo, and that this is XLibre/QEMU thing (or a problem).

Just for fun, I installed XLibre in Fedora 42 (KDE) QEMU VM, and mouse cursor has exactly the same squashed shape as in Gentoo VM. BTW, getting XLibre to work (sorta) okay with KDE Fedora was much harder than in Gentoo, Fedora 42 ditched even Xorg, so I had to add/reinstall a lot of KDE/Plasma related x11 things and edit some .config files.

I think that Gentoo definitely climbed up to the position of my second fav Linux.
Top
stefan11111
Veteran
Veteran
Posts: 1024
Joined: Sun Jan 29, 2023 6:08 pm
Location: Romania
Contact:
Contact stefan11111
Website

  • Quote

Post by stefan11111 » Tue Aug 26, 2025 3:28 pm

Are you using the driver from Xlibre or from Xorg?
Try using the other one and see if things change.
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Top
vmisev
n00b
n00b
User avatar
Posts: 5
Joined: Sun Aug 10, 2025 8:17 pm
Location: Belgrade, Serbia

  • Quote

Post by vmisev » Wed Aug 27, 2025 12:47 am

stefan11111 wrote:Are you using the driver from Xlibre or from Xorg?
Try using the other one and see if things change.
As I said, I followed Gentoo Xlibre wiki, where is clearly stated:
"xlibre-server is not compatible with xorg-server. When switching to this overlay first fetch the XLibre server package and then remove the X.Org Server and drivers packages" /q.

What I did:

Code: Select all

eselect repository enable xlibre 
emaint sync -r xlibre 
echo "/::xlibre ~amd64" > /etc/portage/package.accept_keywords/xlibre 
emerge -f x11-base/xlibre-server 
emerge -C x11-base/xorg-server 
emerge -C x11-base/xorg-drivers 
emerge x11-base/xlibre-server 
echo 'USE="-xvfb*"' >> /etc/portage/make.conf # without this @x11-module-rebuild was failing 
emerge @x11-module-rebuild 
emerge @preserved-rebuild 
I don't think that one can have x11-base/xorg-drivers with x11-base/xlibre-server?
Top
vmisev
n00b
n00b
User avatar
Posts: 5
Joined: Sun Aug 10, 2025 8:17 pm
Location: Belgrade, Serbia

  • Quote

Post by vmisev » Sat Aug 30, 2025 3:04 pm

Update on (partial) progress for the "squashed" mouse cursor problem – what I did:
emerge --sync and --update few days ago, a lot of KDE stuff upgraded, then I commented out #USE="-xvfb*" and did again emerge @x11-module-rebuild, this time it went OK, installed and started qemu-guest-agent, added EvTouch USB Graphics Tablet and USB mouse in virt-manager, changed sddm and KDE resolution to 4:3 (1400x1050) and added 10-monitor.conf with this res - same result, without "export XCURSOR_SIZE=28" in .xinitrc mouse cursor was "squashed".
Only thing that allows for cursor of normal size and shape (same as on host and without "export CURSOR_SIZE=28") is changing Video from Virtio to VGA in virt-manager.
Next thing that I'll try is changing dist-kernel to genkernel and not using VirtIO drivers as modules, but to compile them into the kernel.
Top
Post Reply

6 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic