-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove devices on detaching the Book clipboard #46
Comments
@steveniemitz, @xanf, @NickyTope I've now implemented basic support for this on the Since some things have changed (including directory layout for the modules), the "easy" way for loading/unloading the modules has also changed: https://github.com/linux-surface/surface-aggregator-module/wiki/Testing-and-Installing#buildtest-the-modules. Basically, run Installing the module via DKMS should also work, but at the moment some modules won't be auto-loaded yet (specifically keyboard, battery, and performance mode) due to me implementing a new device type. This requires some in-kernel support that I plan to add shortly. |
Hi @qzed apologies for going missing on these issues/features for the past month or so, have been working in an environment that has a windows only client and so not been keeping up to date here... I've tried to test the changes above just now but perhaps I am missing something? I have built and used the modules in the feature/sb3-v3 branch and they work great but do the keyboard / trackpad do not come back after a detach / reattach. after doing I get the below error when doing the insmod |
Which kernel version are you on? There are some incompatibilities with v4.19, so you'll have to go with non-lts. |
just upgrading from 5.7 to 5.8 and will retry there |
Is there any indication which symbol couldn't be found? Also have the previous modules been fully unloaded (check |
Ok, after upgrade to 5.8 and reboot, I no longer get the Unknown symbol error, the cleanup branch does not work for me though.. does a clean insmod with no output but still no keyb/trackpad lsmod shows 2 modules still loaded as below
|
Ah yeah, so it seems that the SID and GPELID modules don't get unloaded because they have been removed in the cleanup branch. You'll manually need to With the old SID module still loaded, it's pretty much guaranteed that the keyboard isn't working because the new device hub registers against the same platform device (so the SID module blocks that), and the device hub basically provides the device the keyboard driver loads against. |
Spot on !!! Can confirm this works with events coming back after reattach, will try suspend now also |
ok, after doing a |
So something on resume is hanging up the system? Can you check if normal suspend/resume works? |
Oh and did you test the touchpad, specifically gestures and multi-touch? |
Yes can confirm trackpad works with gestures after reattach, can scroll this window with two finger gesture perfectly!! |
Neat! Now only the suspend/resume thing remains. That's kind of a niche issue (and I think in general you should only detach the device if it's on), but I think we should still try to figure out what's going wrong there. |
Detaching the clipboard currently causes some issues regarding proper de-initialization/re-initialization of devices attached to the base on the Surface Book 3. When a base detachment has been detected, these devices should be removed via the drivers and re-added on attachment.
Affected devices are
The text was updated successfully, but these errors were encountered: