You are not logged in.

#1 2021-05-06 12:54:29

Tar3k Hasan
Member
Registered: 2021-03-19
Posts: 22

USB Optical Mouse Problem

Hi Guys,
I'm using Arch Linux in a Dell Laptop. I don't use external mouse usually. But today I wanted play some games with my friends so tried to connect an external A4Tech mouse. But it is not working. Mouse is okay and I've used that mouse in windows before. I searched in google and other forums but no solution worked. When I connect mouse in my laptop my touchpad stops working But I can move my cursor using my mouse. But whenever I click my mouse buttons nothing happens. So I checked my xorg log in /var/log/Xorg.0.log after connecting my mouse in my laptop. Here is the log

[  2364.963] (II) This device may have been added with another device file.
[  2365.205] (II) config/udev: Adding input device A4Tech USB Mouse (/dev/input/event20)
[  2365.205] (**) A4Tech USB Mouse: Applying InputClass "evdev pointer catchall"
[  2365.205] (**) A4Tech USB Mouse: Applying InputClass "libinput pointer catchall"
[  2365.205] (II) Using input driver 'libinput' for 'A4Tech USB Mouse'
[  2365.206] (**) A4Tech USB Mouse: always reports core events
[  2365.206] (**) Option "Device" "/dev/input/event20"
[  2365.206] (**) Option "_source" "server/udev"
[  2365.273] (II) event20 - A4Tech USB Mouse: is tagged by udev as: Mouse
[  2365.273] (II) event20 - A4Tech USB Mouse: device is a pointer
[  2365.274] (II) event20 - A4Tech USB Mouse: device removed
[  2365.379] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:09DA:C10A.0002/input/input25/event20"
[  2365.379] (II) XINPUT: Adding extended input device "A4Tech USB Mouse" (type: MOUSE, id 18)
[  2365.381] (**) Option "AccelerationScheme" "none"
[  2365.384] (**) A4Tech USB Mouse: (accel) selected scheme none/0
[  2365.384] (**) A4Tech USB Mouse: (accel) acceleration factor: 2.000
[  2365.384] (**) A4Tech USB Mouse: (accel) acceleration threshold: 4
[  2365.452] (II) event20 - A4Tech USB Mouse: is tagged by udev as: Mouse
[  2365.453] (II) event20 - A4Tech USB Mouse: device is a pointer
[  2365.457] (II) config/udev: Adding input device A4Tech USB Mouse (/dev/input/event21)
[  2365.458] (II) No input driver specified, ignoring this device.
[  2365.458] (II) This device may have been added with another device file.

As per some forums said I xorg.conf with is in /etc/X11/xorg.conf.d. But there is only one config file in in which is 00-keyboard.conf. The content of this config file is

# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
       Identifier "system-keyboard"
       MatchIsKeyboard "on"
       Option "XkbLayout" "us"
EndSection

There is no mouse related config file or anything. What should I do? Do I need to add or change anything? Please help me out.
Thanks a ton

Last edited by Tar3k Hasan (2021-05-06 12:55:08)

Offline

#2 2021-05-06 15:44:31

tsweet64
Member
Registered: 2021-04-29
Posts: 14

Re: USB Optical Mouse Problem

Not sure if this would fix it, but check if `xf86-input-libinput` is installed.

Offline

#3 2021-05-06 15:48:03

seth
Member
Registered: 2012-09-03
Posts: 66,111

Re: USB Optical Mouse Problem

When I connect mouse in my laptop my touchpad stops working But I can move my cursor using my mouse. But whenever I click my mouse buttons nothing happens.

Does "xev -event button" register clicks?
Can you run "xwininfo" (or does that complain that the pointer can't be grabbed)?

Offline

#4 2021-05-06 16:02:04

Tar3k Hasan
Member
Registered: 2021-03-19
Posts: 22

Re: USB Optical Mouse Problem

tsweet64 wrote:

Not sure if this would fix it, but check if `xf86-input-libinput` is installed.

Yes It is installed.

Offline

#5 2021-05-06 16:25:34

Tar3k Hasan
Member
Registered: 2021-03-19
Posts: 22

Re: USB Optical Mouse Problem

seth wrote:

When I connect mouse in my laptop my touchpad stops working But I can move my cursor using my mouse. But whenever I click my mouse buttons nothing happens.

Does "xev -event button" register clicks?
Can you run "xwininfo" (or does that complain that the pointer can't be grabbed)?


Well I tried xwininfro and I got the output and it's working. But It does says that "pointer can't be grabbed". I tried to connect my mouse after plugging out my charging adapter. It sometimes works. But sometimes it does some weird work around when I connect the mouse like pasting my clipboard item, freezing in grab mode when I try to move the selected window and sometimes my when I plug in my mouse my touchpad stops working. I can still move the cursor but I can't click with my touchpad when my mouse is plugged in.

But I have still those same lines in /var/log/Xorg.0.log saying

[ 16859.848] (II) config/udev: Adding input device A4Tech USB Mouse (/dev/input/event21)
[ 16859.848] (II) No input driver specified, ignoring this device.
[ 16859.848] (II) This device may have been added with another device file.

Last edited by Tar3k Hasan (2021-05-06 16:32:24)

Offline

#6 2021-05-06 19:34:29

seth
Member
Registered: 2012-09-03
Posts: 66,111

Re: USB Optical Mouse Problem

It does says that "pointer can't be grabbed"

Good, because that means something™ is currently grabbing it and that's why clicks "don't work".

Run

xdotool key "XF86LogGrabInfo"

and check the tail of your xorg log - it contains all current grabs and something™ will hold an active grab on the pointer and the log will tell you what something™ is.

Offline

Board footer

Powered by FluxBB