When trying to enable the discrete NVIDIA GPU of the Acer Nitro ANV15-41[ANV], the graphical login screen “hangs”: the OS works fine, but won’t accept keyboard or touchpad input, which makes it unusable. It took me a day of wrong paths taken to realise that X11 picks the wrong input devices.
The fix is to edit /etc/X11/xorg.conf and add:
Section "Device" Identifier "AMD iGPU" Driver "amdgpu" BusID "PCI:117:0:0"EndSectionSection "Screen" Identifier "Screen0" Device "AMD iGPU"EndSectionSection "InputClass" Identifier "libinput catchall" MatchIsPointer "on" MatchIsKeyboard "on" MatchIsTouchpad "on" Driver "libinput"EndSection
This explicitly tells X11 to use the libinput driver for all pointer, keyboard, and touchpad devices — overriding whatever incorrect defaults were causing the hang. The Device and Screen sections are needed because without them X11 may fail to initialise the display at all once an xorg.conf is present.
References
[ANV] Ubuntu on the Acer Nitro ANV15-41
https://blog.georgovassilis.com/2025/05/26/ubuntu-on-the-acer-nitro-anv15-41/