Right click on the touchpad is being recognized as a left click

I have a Dell G3 3500 laptop. The bottom of it’s touchpad is divided into 2 parts—for left and for right clicks (tapping anywhere else is considered a left click). It works well on Windows, but on my Fedora 40 installation right clicks are being recognized as left clicks.

The following data was collected with xev:

Wired mouse (expected behavior):

Left click:

ButtonPress event, serial 44, synthetic NO, window 0x800001,
    root 0x4a0, subw 0x0, time 2107182, (177,161), root:(227,280),
    state 0x10, button 1, same_screen YES

ButtonRelease event, serial 44, synthetic NO, window 0x800001,
    root 0x4a0, subw 0x0, time 2107321, (177,161), root:(227,280),
    state 0x110, button 1, same_screen YES

Right click:

ButtonPress event, serial 44, synthetic NO, window 0x800001,
    root 0x4a0, subw 0x0, time 2109633, (177,161), root:(227,280),
    state 0x10, button 3, same_screen YES

ButtonRelease event, serial 44, synthetic NO, window 0x800001,
    root 0x4a0, subw 0x0, time 2109793, (177,161), root:(227,280),
    state 0x410, button 3, same_screen YES

Built-in touchpad:

Left click:

ButtonPress event, serial 38, synthetic NO, window 0x800001,
    root 0x4a0, subw 0x0, time 2277820, (130,163), root:(180,282),
    state 0x10, button 1, same_screen YES

ButtonRelease event, serial 38, synthetic NO, window 0x800001,
    root 0x4a0, subw 0x0, time 2277940, (130,163), root:(180,282),
    state 0x110, button 1, same_screen YES

Right click:

ButtonPress event, serial 44, synthetic NO, window 0x800001,
    root 0x4a0, subw 0x0, time 2111375, (177,161), root:(227,280),
    state 0x10, button 1, same_screen YES

ButtonRelease event, serial 44, synthetic NO, window 0x800001,
    root 0x4a0, subw 0x0, time 2111528, (177,161), root:(227,280),
    state 0x110, button 1, same_screen YES
gsettings set org.gnome.desktop.peripherals.touchpad \
    click-method "default"
2 Likes

Thanks, it works!

1 Like