arch-linux-surface icon indicating copy to clipboard operation
arch-linux-surface copied to clipboard

Fix for touchscreen and "module not found" issues

Open dmhacker opened this issue 6 years ago • 17 comments

I've noticed a lot of issues regarding the touchscreen. If you are still have these issues, I would recommend rerunning the setup script via sudo sh setup.sh and selecting yes for option #2. This will edit the MODULES line in your /etc/mkinitcpio.conf and then execute a kernel modules rebuild to incorporate them.

Doing this process manually seems to have resolved some non-functional touchscreens, notably in issues #22 and #30. It also has the potential to resolve other issues as well, since it ensures that the surface_acpi battery detection module is also detected by the kernel.

New users running the setup script should just mark yes to all options. This post is mainly intended for prior users with touchscreen issues.

dmhacker avatar Sep 05 '19 01:09 dmhacker

If you are installing a kernel whose version is greater than or equal to 5.3.15, then you will need to follow these instructions again (run the setup script and only check 'y' for option 2). This will result in the correct modules being installed.

Additionally, firmware directory configurations have changed. Please select option 4 to ensure that the correct firmware is installed.

Please run the setup script AFTER you have installed the latest kernel. Reboot/power cycle afterwards.

Relevant issue: #73

dmhacker avatar Dec 13 '19 00:12 dmhacker

So, my touchscreen isn't working on Artix Linux using KDE:

  1. I ran the setup script
  2. selected yes for options 2 and 4
  3. installed the kernel and header, then rebooted
  4. found my touchscreen isn't working
  5. found this issue
  6. tried to run the script as sudo and su, where it told me not to do so and exited
  7. ran it normally and selected yes for options 2 and 4
  8. did NOT reinstall the kernel and header and rebooted
  9. found my touchscreen still isn't working.

So now I don't know whether it's KDE or the kernel.

Thank you kindly for the help!

shadowrylander avatar Feb 03 '20 01:02 shadowrylander

I think it’s kernel related issue as 5.4.6 breaks ipts as well in case with Debian based systems. So I guess we will have to wait for a fix and downgrade to 5.3.18 to make touchscreen work again.

xorpix avatar Feb 03 '20 08:02 xorpix

Right; used qzed's script recently and saw a note at the bottom after running it stating the latest release has touchscreen issues.

shadowrylander avatar Feb 04 '20 17:02 shadowrylander

Yes, @xorpix is correct. Touchscreen will not work on 5.4.6; you must downgrade to 5.3.* kernels if you want IPTS support.

dmhacker avatar Feb 04 '20 19:02 dmhacker

Maybe someone could help me with compiling the latest 5.5.2 kernel and applying the newest ipts patches correctly. Because it seems that somethings goes wrong and patches are not applied.

xorpix avatar Feb 06 '20 10:02 xorpix

I’ve compiled 5.5.2 with working touchscreen

xorpix avatar Feb 07 '20 01:02 xorpix

post the update ?

A1111R avatar Feb 07 '20 17:02 A1111R

I will update this repository to support preliminary 5.5.* patches this week.

dmhacker avatar Feb 09 '20 22:02 dmhacker

Update: 5.5 patches/config have been added to the compilation setup utilities. See COMPILATION.md (run ./compile_setup 5.5 to build a 5.5.3 kernel). I've have a release build ready over the weekend.

dmhacker avatar Feb 14 '20 07:02 dmhacker

After you installed compiled version (5.5), add to grub or refind parameters this: ipts.singletouch

Then reboot the device. After that you will have touchscreen working. Please note, that multitouch is not supported. And if you have singletouch enabled, you won’t be able to use stylus at the same time. You have to choose what you prefer.

xorpix avatar Feb 14 '20 21:02 xorpix

After installing 5.5.4 prebuild kernel on surface go, no touchscreen is detected. I run setup script with all options to yes and still nothing.

gaou-piou avatar Feb 22 '20 19:02 gaou-piou

@gaou-piou 5.5 does not have full IPTS/touchscreen support. On 5.5 you can either enable stylus OR enable single-touch mode (they are exclusive). See @xorpix' comment and https://github.com/linux-surface/linux-surface/issues/94#issuecomment-590118336 for details. In the long run (as 5.3 is pretty outdated by now) we recommend the 4.19 (LTS) patches if you want full touchscreen support.

qzed avatar Feb 24 '20 17:02 qzed

See @xorpix' comment and linux-surface/linux-surface#94 (comment) for details.

Nice, I enabled single-touch mode via that. It works, isn't amazing (as far as touch support goes), but it'll do for now.

krhubbard2 avatar Mar 04 '20 09:03 krhubbard2

Touchscreen support comes again on linux 5.6

gaou-piou avatar Mar 22 '20 19:03 gaou-piou

Wait, like.. The old driver with GuC submission? 5.6-rc6?

xorpix avatar Mar 23 '20 01:03 xorpix

AFAIK IPTS won't be back on 5.6. There have been some issues on the Surface Go that might be resolved, though.

qzed avatar Mar 23 '20 13:03 qzed