All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nathanaël/Thatoo <thatoo@leprette.fr>
To: dmitry.torokhov@gmail.com
Cc: linux-input@vger.kernel.org
Subject: Re: Fwd: Re: FocalTech touchpad stops working after suspend
Date: Fri, 30 Oct 2015 14:19:02 +0330	[thread overview]
Message-ID: <56334B1E.90201@leprette.fr> (raw)
In-Reply-To: <5628A193.5000308@leprette.fr>

[-- Attachment #1: Type: text/plain, Size: 4215 bytes --]

Hello everybody,

Thanks to Harris Anggara (harrisanggara) and Daniel Drake (dsdrake)
here, https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1490130 , I
could solve my problem by adding this patch to the kernel :
https://marc.info/?l=linux-input&m=144312209020616&w=2

Now i'm using kernel 4.2 for Ubuntu 14.04  with the patch. I had to
change the DMI_PRODUCT_NAME with K501LX (because that is my laptop
model). To identify your laptop model you can run
sudo dmidecode | grep Product\ Name

I tried directly with kernel 4.2 because before that, kernel 3.19 and
so, they need a driver for my touchpad. I followed the instruction here
to obtain the source of kernel 4.2 for Ubuntu 14.04,
https://wiki.ubuntu.com/Kernel/Dev/KernelGitGuide
git clone git://kernel.ubuntu.com/ubuntu/ubuntu-trusty.git
then from inside the folder you've just downloaded (cd ubuntu-trusty)
git tag -l Ubuntu-*
to know what is available for ubuntu 14.04
and then
git checkout -f -b temp Ubuntu-lts-4.2.0-6.6_14.04.1.1

After, to build the kernel, I followed this explanation,
https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel
fakeroot debian/rules clean
fakeroot debian/rules binary-headers binary-generic
then
cd ..
ls *.deb
    linux-cloud-tools-4.2.0-6-generic_4.2.0-6.6~14.04.1.1_amd64.deb
    linux-headers-4.2.0-6_4.2.0-6.6~14.04.1.1_all.deb
    linux-headers-4.2.0-6-generic_4.2.0-6.6~14.04.1.1_amd64.deb
    linux-image-4.2.0-6-generic_4.2.0-6.6~14.04.1.1_amd64.deb
    linux-image-extra-4.2.0-6-generic_4.2.0-6.6~14.04.1.1_amd64.deb
    linux-tools-4.2.0-6-generic_4.2.0-6.6~14.04.1.1_amd64.deb

I deleted this two files because I don't need them
    linux-cloud-tools-4.2.0-6-generic_4.2.0-6.6~14.04.1.1_amd64.deb
    linux-tools-4.2.0-6-generic_4.2.0-6.6~14.04.1.1_amd64.deb
and finally,
sudo dpkg -i linux*4.2.0-6.6~14.04.1.1*.deb
sudo reboot

Now it works nicely. The touchpad works fine, without the need to
install any driver and I can suspend the activity of my computer and
resume without loosing the touchpad. I hope the patch will be integrated
soon and I won't loose my touchpad again with updates in the future.

Thank you everybody,
Take care, always smiling,

Thatoo

Le 22/10/2015 12:12, Nathanaël/Thatoo a écrit :
> Hello,
>
> Harakhay, the guy who find a solution in here,
> https://bbs.archlinux.org/viewtopic.php?pid=1572218#p1572218 , told me a
> little bit more how he solved his problem :
>
> Everybody suggested him to add SUSPEND_MODULES="psmouse" in
> /etc/pm/config.d/modules, but it didn't help for him. So he found all
> modules dependent upon psmouse, and some dependent upon those modules as
> well. He had about 6 of them. Then he did this trick with all these
> modules (unload on suspend, load on resume), and he found out that it
> works. Then only thing he needed to do was to find out what module from
> those 6 is needed to be reloaded....
>
> Now, to try his solution, because i8042 doesn't works in my case, I need
> to how to find all modules dependent upon psmouse, and some dependent
> upon those modules as well...
>
> Does anyone can help me with that?
>
> Thank you
>
> Le 19/10/2015 13:37, thatoo@leprette.fr a écrit :
>> no, lsmod | grep i8042 , doesn't show anything.
>>
>> I guess everything is because of this sentence you wrote to me that I
>> don't understand, "make sure it is a module and not compiled into
>> kernel". What does it mean??
>>
>> Le 17/10/2015 21:31, Dmitry Torokhov a écrit :
>>> On Sat, Oct 17, 2015 at 09:11:44PM +0330, Nathanaël/Thatoo wrote:
>>>> I tried to follow the solution,
>>>>
>>>> - pm-utils was already installed
>>>>
>>>> - I created the file /etc/pm/config.d/modules
>>>> sudo gedit /etc/pm/config.d/modules
>>>> and I wrote
>>>> SUSPEND_MODULES="i8042"
>>>>
>>>> - Then I tried to suspend using "sudo pm-suspend" or the shortkey etc..
>>>> but nothing change.
>>>>
>>>> Maybe I have to write more inside /etc/pm/config.d/modules to "unload"
>>>> on suspend and then "reload" on resume, no?
>>>> Maybe just the line SUSPEND_MODULES="i8042" is not enough but what
>>>> should I write?
>>>> What means (make sure it is a module and not compiled into kernel)?
>>> Do you see anything if you do "lsmod | grep i8042"?
>>>
>>> Thanks.
>>>
>>>


[-- Attachment #2: 0x1BA5F17B.asc --]
[-- Type: application/pgp-keys, Size: 38619 bytes --]

      reply	other threads:[~2015-10-30 11:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-17 15:38 FocalTech touchpad stops working after suspend Nathanaël/Thatoo
2015-10-17 17:03 ` Dmitry Torokhov
     [not found]   ` <56228858.4030903@leprette.fr>
     [not found]     ` <20151017180146.GG13470@dtor-ws>
     [not found]       ` <56236AEE.6060300@leprette.fr>
2015-10-19 10:07         ` Fwd: " thatoo
2015-10-22  8:42           ` Nathanaël/Thatoo
2015-10-30 10:49             ` Nathanaël/Thatoo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56334B1E.90201@leprette.fr \
    --to=thatoo@leprette.fr \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.