You are not logged in.

#1 2023-05-25 00:12:42

felsel
Member
Registered: 2023-05-24
Posts: 3

Mouse moving cursur in opposite direction.

My mouse orientation is suddenly inversed after unplugging and reconnecting the external mouse. I updated/reinstalled Libinput, but the issue persist. Libinput debug-events confirm it.  I'm running Hyprland with an Nvidia GPU. From what I understand, 
Libinput settings for Wayland are configured through environment variables or using tools specific to the compositor Wayland compositor.
But I haven't touched the configuration for Hyprland. I even when through the whole Hyprland wiki and there's not even an option to invert the mouse direction in the first place. Libinput itself list the option Rotation as n/a. Any pointing to the general direction where I can look is appreciated.

Offline

#2 2023-05-25 07:01:35

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: Mouse moving cursur in opposite direction.

Libinput debug-events confirm it.

Confirmes what?
Are the printed events what you'd expect but don't see or is this inverted on the libinput level?
What about evtest ?

Are both axis affected?

reconnecting the external mouse

What are the internal devices? Touchscreen? Touchpad?

I'm running Hyprland with an Nvidia GPU.

Are other compositors/Xorg affected?

Offline

#3 2023-05-25 17:20:11

Flapper
Member
Registered: 2019-02-10
Posts: 28

Re: Mouse moving cursur in opposite direction.

I'm seeing a similar issue.

I'm giving hyprland a try, after using sway for several months.
I was using Libreoffice Calc, selected a cell and dragged down to increment cells, and it dragged up!

I didn't get this issue with sway, or with XFCE a few months ago, with same hardware.
Click and drag seems to go in normal direction in Writer etc

Using hyprland 0.25.0-1.
Intel i5

Offline

#4 2023-05-26 10:06:01

felsel
Member
Registered: 2023-05-24
Posts: 3

Re: Mouse moving cursur in opposite direction.

seth wrote:

confirmes what?
Are the printed events what you'd expect but don't see or is this inverted on the libinput level?
What about evtest ?

It confirms that this is at libinput level.  Using evtest, the REL of x-axis are negative when I move my mouse to the right and or down for the y-axis. I expected them to be positive.

seth wrote:

Are both axis affected?

Yes, both are affected.

I have a Legion laptop 5 pro laptop. With an integrated graphics card that I deactivated. Only using primary NVIDIA GTX 1660 ti (Nvidia-Open driver).

seth wrote:

Are other compositors/Xorg affected?

Same issue on Sway, so it's probably beyond Hyprland. I do not have an x11/XORG wm or DE.

seth wrote:

What are the internal devices? Touchscreen? Touchpad?

I'm also using a USB hub to connect my external mouse and keyboard. the keyboard works fine.

dmesg:

[  588.537252] usb 5-2: new high-speed USB device number 8 using xhci_hcd
[  588.679840] usb 5-2: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.11
[  588.679856] usb 5-2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[  588.679860] usb 5-2: Product: USB 2.0 Hub
[  588.730670] hub 5-2:1.0: USB hub found
[  588.731212] hub 5-2:1.0: 4 ports detected
[  589.130551] usb 5-2.1: new low-speed USB device number 9 using xhci_hcd
[  589.344934] usb 5-2.1: New USB device found, idVendor=1bcf, idProduct=08a0, bcdDevice= 1.04
[  589.344946] usb 5-2.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[  589.412958] input: HID 1bcf:08a0 Mouse as /devices/pci0000:00/0000:00:08.1/0000:05:00.4/usb5/5-2/5-2.1/5-2.1:1.0/0003:1BCF:08A0.0006/input/input26
[  589.413205] input: HID 1bcf:08a0 Keyboard as /devices/pci0000:00/0000:00:08.1/0000:05:00.4/usb5/5-2/5-2.1/5-2.1:1.0/0003:1BCF:08A0.0006/input/input27
[  589.467709] hid-generic 0003:1BCF:08A0.0006: input,hiddev96,hidraw1: USB HID v1.10 Mouse [HID 1bcf:08a0] on usb-0000:05:00.4-2.1/input0
[  589.657015] usb 5-2.2: new full-speed USB device number 10 using xhci_hcd
[  589.883078] usb 5-2.2: New USB device found, idVendor=05ac, idProduct=024f, bcdDevice= 1.06
[  589.883091] usb 5-2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  589.883095] usb 5-2.2: Product: KEYCOOL Keyboard
[  589.883098] usb 5-2.2: Manufacturer: Keychron K1
[  589.984446] apple 0003:05AC:024F.0007: Non-apple keyboard detected; function keys will default to fnmode=2 behavior
[  589.984522] input: Keychron K1 KEYCOOL Keyboard as /devices/pci0000:00/0000:00:08.1/0000:05:00.4/usb5/5-2/5-2.2/5-2.2:1.0/0003:05AC:024F.0007/input/input28
[  590.040813] apple 0003:05AC:024F.0007: input,hidraw3: USB HID v1.11 Keyboard [Keychron K1 KEYCOOL Keyboard] on usb-0000:05:00.4-2.2/input0
[  590.044437] apple 0003:05AC:024F.0008: Fn key not found (Apple Wireless Keyboard clone?), disabling Fn key handling
[  590.044448] apple 0003:05AC:024F.0008: Non-apple keyboard detected; function keys will default to fnmode=2 behavior
[  590.044550] input: Keychron K1 KEYCOOL Keyboard as /devices/pci0000:00/0000:00:08.1/0000:05:00.4/usb5/5-2/5-2.2/5-2.2:1.1/0003:05AC:024F.0008/input/input29
[  590.101275] apple 0003:05AC:024F.0008: input,hiddev98,hidraw4: USB HID v1.11 Keyboard [Keychron K1 KEYCOOL Keyboard] on usb-0000:05:00.4-2.2/input1

available devices:

/dev/input/event0:	Lid Switch
/dev/input/event1:	Power Button
/dev/input/event2:	Power Button
/dev/input/event3:	Video Bus
/dev/input/event4:	Video Bus
/dev/input/event5:	AT Raw Set 2 keyboard
/dev/input/event6:	Ideapad extra buttons
/dev/input/event7:	PC Speaker
/dev/input/event8:	MSFT0001:00 06CB:7F28 Mouse
/dev/input/event9:	MSFT0001:00 06CB:7F28 Touchpad
/dev/input/event10:	HID 1bcf:08a0 Mouse
/dev/input/event11:	HID 1bcf:08a0 Keyboard
/dev/input/event12:	HDA NVidia HDMI/DP,pcm=3
/dev/input/event13:	HDA NVidia HDMI/DP,pcm=7
/dev/input/event14:	HDA NVidia HDMI/DP,pcm=8
/dev/input/event15:	HDA NVidia HDMI/DP,pcm=9
/dev/input/event16:	ITE Tech. Inc. ITE Device(8910) Keyboard
/dev/input/event17:	HD-Audio Generic Mic
/dev/input/event18:	HD-Audio Generic Headphone
/dev/input/event19:	ITE Tech. Inc. ITE Device(8910) Wireless Radio Control
/dev/input/event20:	Keychron K1 KEYCOOL Keyboard
/dev/input/event21:	Keychron K1 KEYCOOL Keyboard

The affected device is /dev/input/event10. I don't know what event8 is, since 9 is the touchpad.

Sorry for the late response, I'm busy on weekdays.

Last edited by felsel (2023-05-26 17:58:39)

Offline

#5 2023-05-26 14:05:49

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: Mouse moving cursur in opposite direction.

Please edit your post, fix the quote and add "code" tags.

Afaiu the issue exists already w/ evtest?
That's the kernel level and either the HW is producing false events or it's some kernel module.

I'm also using a USB hub to connect my external mouse and keyboard. the keyboard works fine.

Yeah, ok - but what about the touchpad?
Also, since you mention it, what happens if you attach the mouse directly?

Edit: though either Flapper has a different issue or this is a really strange coincidence of hom switching to hyprland and running into the same bug at the same time.
==> Try the LTS kernel

Last edited by seth (2023-05-26 14:07:15)

Offline

#6 2023-05-26 18:53:48

felsel
Member
Registered: 2023-05-24
Posts: 3

Re: Mouse moving cursur in opposite direction.

Afaiu the issue exists already w/ evtest?
That's the kernel level and either the HW is producing false events or it's some kernel module.

The device was working correctly, but then all inputs on the USB hub stopped responding. I unplugged the USB hub and reconnected it. After I plugged it back in keyboard works fine but the issue with the mouse begins. the uptime of my computer before this issue was a couple of days. I didn't reset my computer for any new kernel-related modules to take effect (not sure if that is how it works).

Yeah, ok - but what about the touchpad?
Also, since you mention it, what happens if you attach the mouse directly?

the touchpad works fine. pointer goes in the correct direction. I did attach the mouse directly to all USB ports and same issue.

I do not believe Flapper is having the same issue as he only involves a single app. And he mentioned that he had the issue for a while. As I wrote earlier, the same issue happens on Sway not just Hyprland

I'm going to look for another mouse and explore the manufacturer's guide

Offline

Board footer

Powered by FluxBB