You are not logged in.

#1 2020-01-03 07:17:29

Bøtteknotten
Member
Registered: 2019-12-20
Posts: 8

Mouse pointer size too large after configuring monitors through X11

After configuring my monitors using /etc/X11/xorg.conf.d/91-screens.conf my pointer is almost three times it's normal size. Everything else looks normal. Anyone know how to set the cursor size?

I use the i3 window manager with the lightdm-gtk-greeter. I also have the xorg-server and xorg-xrandr packages installed.

$ cat /etc/X11/xorg.conf.d/91-screens.conf
Section "Monitor"
	Identifier "DP-1-1"
#	DisplaySize 595 335

	Option "PreferredMode" "2560x1440"
	Option "Rotate" "left"
	Option "Position" "0 0"
EndSection

Section "Monitor"
	Identifier "HDMI-1"
#	DisplaySize 518 324

	Option "PreferredMode" "1920x1200"
	Option "Primary" "true"
	Option "Position" "1440 680"
EndSection

Section "Monitor"
	Identifier "DP-1-8"
#	DisplaySize 595 335

	Option "PreferredMode" "2560x1440"
	Option "Rotate" "right"
	Option "Position" "3360 0"
EndSection

Offline

#2 2020-01-03 09:02:49

seth
Member
Registered: 2012-09-03
Posts: 51,050

Re: Mouse pointer size too large after configuring monitors through X11

Is the pointer set by lightdm?
You're creating a fairly large root window w/ emty and intersections…

Output of "xdpyinfo | grep resolution" and "xrandr -q"

Also try to remove lightdm from the equation and use startx/xinit.

You can define the cursor size when configuring stuff through xrdb, https://wiki.archlinux.org/index.php/Cu … _resources - maybe also XCURSOR_SIZE is interpreted.

Offline

#3 2020-01-06 07:53:31

Bøtteknotten
Member
Registered: 2019-12-20
Posts: 8

Re: Mouse pointer size too large after configuring monitors through X11

It's just a vanilla lightdm setup.
I'm not sure I can get away with a smaller root window as I have a portrait-landscape-portrait setup.

$ xdpyinfo | grep resolution
  resolution:    96x96 dots per inch
$ xrandr -q
Screen 0: minimum 320 x 200, current 4800 x 2560, maximum 16384 x 16384
HDMI-1 connected primary 1920x1200+1440+680 (normal left inverted right x axis y axis) 518mm x 324mm
   1920x1200     59.95*+
   1920x1080     60.00  
   1600x1200     60.00  
   1680x1050     59.88  
   1280x1024     60.02  
   1280x960      60.00  
   1024x768      60.00  
   800x600       60.32  
   640x480       59.94  
   720x400       70.08  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
DP-1-8 connected 1440x2560+3360+0 right (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440     59.95*+
   1920x1200     59.88  
   1920x1080     60.00    50.00    59.94  
   1680x1050     59.95  
   1600x900      60.00  
   1280x1024     60.02  
   1440x900      59.89  
   1280x720      60.00    50.00    59.94  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       60.00    59.94  
   720x400       70.08  
DP-1-1 connected 1440x2560+0+0 left (normal left inverted right x axis y axis) 518mm x 324mm
   2560x1440     59.95*+
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x800      59.81  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   640x480       75.00    72.81    66.67    60.00    59.94  
   720x400       70.08  

I don't have startx/xinit installed.

Offline

#4 2020-01-06 08:35:10

seth
Member
Registered: 2012-09-03
Posts: 51,050

Re: Mouse pointer size too large after configuring monitors through X11

It's just a vanilla lightdm setup.

That wasn't the question.

rephrase wrote:

Is the pointer already toobig™ in lightdm?

Your logical resolution is 96 dpi and the outputs are at 95, 109 & 125 dpi - that doesn't justify any HiDPI pointer in use, so something™ erroneously configures it and we need to isolate what something™ is before we can address it.
If it's set early on, you can probably mitigate it during the session using https://wiki.archlinux.org/index.php/Cu … _resources - but you'll have to run xrdb in lightdm's session-setup-script

I don't have startx/xinit installed.

So?

Offline

#5 2020-01-07 15:01:28

Bøtteknotten
Member
Registered: 2019-12-20
Posts: 8

Re: Mouse pointer size too large after configuring monitors through X11

Oh, sorry. I misunderstood. The first time I see the pointer is in the lightdm-gtk-greeter and it is already too big yes.

I meant to say I don't have xrdb installed in case you thought it was the culprit.

Observation:
If I remove config (/etc/X11/xorg.conf.d/91-screens.conf) and configure the screens using xrandr like so:

xrandr --output HDMI-1 --primary --mode 1920x1200 --pos 1440x680 --output DP-1-8 --mode 2560x1440 --pos 3360x0 --rotate right --output DP-1-1 --mode 2560x1440 --pos 0x0 --rotate left

...the pointer is smaller (also in greeter). I still think it's too large, but that might be just me.

Offline

#6 2020-01-07 15:04:00

Bøtteknotten
Member
Registered: 2019-12-20
Posts: 8

Re: Mouse pointer size too large after configuring monitors through X11

I added /etc/gtk-3.0/settings.ini like so:

[Settings]
gtk-cursor-theme-size = 16

This fixes the pointer in once I log in, but the size is still wrong in the greeter.

Offline

#7 2020-01-10 15:44:29

Bøtteknotten
Member
Registered: 2019-12-20
Posts: 8

Re: Mouse pointer size too large after configuring monitors through X11

This makes no sense. For this to work I need xrdb installed, /etc/gtk-3.0/settings.ini;

[Settings]
gtk-cursor-theme-size = 16

and ~/.Xresources:

Xcursor.size: 16

If I remove any of these it will not work. Changing the value in ~/.Xresources to i.e. 32 does not have any apparent effect, but removing the file breaks the setup.

Offline

Board footer

Powered by FluxBB