-
Notifications
You must be signed in to change notification settings - Fork 6
rmmod touch driver and bluetooth on sleep #20
Comments
Concerning the touchscreen, is this the same issue as discussed at nexus511/gpd-ubuntu-packages#10? This one I as seeing as well occasionally. I wasn't aware of any workaround. |
@Herst yes, and this will work on Ubuntu as a fix as well |
Yay, great! In that case you might want to let the people in the other thread let it know as well (and collect all the praise since not even Hans was yet successful in finding any fix). |
done @Herst I am sure if hans wants to put time into it he can make a proper fix, its the I²C bus that does not recover always when power to the chip is turned on or off (I will wager on at least). Fix will be in better recovery of the state of the chip, like cleaning registers and such. |
@sigboe I've added this as requested and it looks to be working well but one thing:
I don't think these are needed are they? As far as I'm aware i2c_algo_bit at least is used by i915 - not sure about i2c_cht_wc. As such - I doubt it will actually unload anyway - give it a shot on a running system. Let me know if you need any changes made. 👍 |
If they are not needed then they are not needed 👍 Since adding them there I presume they will be loaded after first resume. |
Hi guys, I have the same problem on ubuntu 16.04 in my Pocket with all kernels (from 4.12 to latest 4.15 from Hans). My fix in in two systemd units for unload/reload goodix kernel driver before sleeep/after resume. It can be usable for you. I created pull request to stockmind repo: EDIT: fix in /etc/suspend-modules.d/ not working sometimes in my case, but my solution is totally fix it in my case. |
@petrmatula190 I see your solution is aligned to best practice. However could you post the output of
It might be a typo in the text files, or maybe missing .conf ending. While your method is the one I initially looked into doing, the benefit of this implementation is the easy add and removal of modules. Since the kernel we are running is ever evolving and release candidate. While I will not feel offended or anything if your method is the one that will be used. |
@sigboe I tried it and folders /etc/suspend-modules and /etc/suspend-modules.d/ not exist in my ubuntu 16.04. But Hans (@jwrdegoede) create commit with fix for it in kernel: jwrdegoede/linux-sunxi@1f5c4f2 I am compiling this latest kernel now. I will share my results. EDIT: |
Since the package pulls the current |
@Herst Yes, testing it now to see if I can reproduce the bug without this fix and latest kernel. |
Have not experienced it yet, but I want to sleep trough the night to see what happens. Since that was the most likely point I got the issue before. |
@Herst and I want to try to crash the bluetooth driver that this workaround avoided And I dont have the signature to sign binaries for this repo, so I cant push binaries. |
@sigboe Ok. I had my Pocket in sleep until lunch (around 9 hours). But i need more time to testing too. I will se it in next week or two. |
@petrmatula190 (edit ops, I meant you) If that is okay with @voobscout @cawilliamson I am also looking forward to a new binary release, with the changes here I can drop hosting a separate repo just to make the ArchISO (fixes curtesy of @cawilliamson and some more easy work to be done). Also we need to push the microphone fix that was released, Ill look into that now. |
I see this issue as resolved with this commit ac1c6e2 |
I find that lots of time when sleeping for longer periods the touch screen driver does not recover. Same with bluetooth.
To fix this I modified a script that unloads the kernel driver while sleeping. Never had an issue after that.
@cawilliamson since you are so good with PKGBUILDs now. Could you pack this up? And maybe add it to the meta-package.
https://gist.github.com/sigboe/2602f9318b8f55ca92c7755a5b70644d
It depends on
gawk
and of course need to be executable, to add a module to the suspend list just do like thisand for good measure do the wifi too since its on the same chip
to do the touch screen a feel lines seams to help out.
The text was updated successfully, but these errors were encountered: