[nvidia-prime]Freeze while using touchpad

Bug #1220426 reported by Loris Zinsou
This bug affects 232 people
Affects Status Importance Assigned to Milestone
X.Org X server
Fix Released
Critical
xorg-server (Ubuntu)
Fix Released
Low
Unassigned
Trusty
Triaged
Undecided
Unassigned

Bug Description

Using Asus N43SL laptop as an example, with nvidia-prime installed, so the dedicated NVIDIA graphics card (GT 540m) is in use, once in a while, my screen will freeze when I use my touchpad.

WORKAROUND: Use USB mouse.

WORKAROUND: Uninstall nvidia-prime and use integrated graphics.

WORKAROUND: Do a VT switch via Ctrl+Alt+F1 then Ctrl+Alt+F7.

In the attached Xorg.0.log, you can see "synaptics: ETPS/2 Elantech Touchpad: touchpad found" each time I did a VT switch and regained control:
https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1220426/+attachment/3801516/+files/Xorg.0.log

The following upstream report has a patch that addresses this issue:
https://bugs.freedesktop.org/show_bug.cgi?id=86288

Revision history for this message
Loris Zinsou (nepenthes) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-prime (Ubuntu):
status: New → Confirmed
Erno Kuusela (erno-iki)
tags: added: saucy
Revision history for this message
Alberto Milone (albertomilone) wrote :

Whatever is causing this, it can't possibly be the nvidia-prime package, since it only contains helper scripts.

I'm reassigning this to the nvidia driver.

Changed in nvidia-graphics-drivers-319 (Ubuntu):
status: New → Confirmed
Changed in nvidia-prime (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Michael Kunzmann (mail-wz6bkyhu4uqpfausw0ege9b0y33eg) wrote :

Same here on precise.
Asus K53SV with Nvidia Optimus (GT 540m)

Revision history for this message
Loris Zinsou (nepenthes) wrote :

Any changes with nvidia 331.20 drivers ?

Revision history for this message
Michael Kunzmann (mail-wz6bkyhu4uqpfausw0ege9b0y33eg) wrote :

To me, there are no changes when using 331.20, same issue.

Revision history for this message
Alberto Milone (albertomilone) wrote :

@Daniel: any ideas?

NOTE: this happens with RandR offloading. (I can't reproduce it though)

Revision history for this message
Daniel Dadap (ddadap) wrote :

Sorry, I don't have any ideas. I don't think we've seen anything like this either; we'd probably need a machine that uses the same touchpad or touchpad driver.

If the Nouveau driver also supports the RandR 1.4 provider source capability, it might be an interesting experiment to configure PRIME with Nouveau -> modesetting to see if it's a generic interaction between the touchpad driver and RandR 1.4. Alternatively, it might be useful to attempt configuring an X screen on the Intel GPU using the modesetting driver and no offloading, to see if it's a general interaction between the touchpad driver and the modesetting X driver. That should be a lot easier to set up.

Or... another possibility would be to try configuring the offloading with the Intel driver as the provider output instead of the modesetting driver. I can't remember the specific problems we ended up having with the Intel driver that led us to recommend the modesetting driver in the README instead, but if the Intel driver works as an output for you, and the problem is due to an interaction between the modesetting and touchpad drivers, then this may be a way to avoid the problem.

These are all just wild guesses though; I don't have any good ideas as to why this might be happening.

Revision history for this message
Cieniek (cieniek) wrote :

I have exactly the same problem on Lenovo G700. If using GPU offloading and touch-pad it takes 5 to 120 s to experience a lock-up with that message in X-org log. Unexperienced user (not knowing about VT-switch) would think it's complete system freeze.

Revision history for this message
DataLynx Consulting LLC (eric-erdmann) wrote :

I'm having the same issues after upgrading to 13.10 and prime. The system locks most when accessing pull down menus Never happened under bumblebee but then again i was using 304 nvidia drivers. Also does the prime for 13.10 not have the extra menu in nvidia-settings to select PRIME Mode? discrete or Intel?

Changed in nvidia-prime (Ubuntu):
importance: Undecided → Critical
Changed in nvidia-graphics-drivers-319 (Ubuntu):
importance: Undecided → Critical
Revision history for this message
riccardo.merolla (riccardo-merolla) wrote :

Same problem on ubuntu 13.10 and nvidia-prime (319 and 319-update).

Screen freeze randomly when using touch pad, and to fast "unfreeze" the screen I've to switch to console terminal (Ctrl+Alt+F1) and back to graphical console (Ctrl+Alt+F7)

Asus K53S with Nvidia Optimus (GT 540m)

Changed in nvidia-prime (Ubuntu):
status: Invalid → Opinion
Revision history for this message
Dmitrii Motitskii (dmotitsk) wrote :

Same problem. Ubuntu 12.04 amd64, Elantech Touchpad, nvidia-331.20.

Screen freezes and I have to switch to VT and back.

Asus B400VC, Nvidia Optimus (GT 720M)

Revision history for this message
msbutton (msbutton) wrote :

the same problem here. ubuntu 13.10 with nvidia 331.38 on amd 64 bit (GTX 680)

Revision history for this message
Corollax (corollax) wrote :

Same problem here.

Running a 64-bit 3.11.0-15-generic kernel on Mint 16 (based on Ubuntu 12.10) and both 319.60 and 331.20 drivers.

/proc/bus/input/devices reports an "ETPS/2 Elantech Touchpad".

Revision history for this message
Corollax (corollax) wrote :

Sorry, not sure how to edit my last comment: I'm using an GeForce 630M.

Not sure if this helps, but it's strictly a visual freeze. The system will recognize inputs after the "freeze" -- the screen just doesn't update until you switch back and forth from the virtual terminals.

Hopefully that will help you debug the problem.

Revision history for this message
iuuuuan (ivan-janes) wrote :

Same here on Lenovo G710 on saucy 64bit with Nvidia 319, GeForce 720M and /proc/bus/input/devices reports "ETPS/2 Elantech Touchpad". Freeze behaviour is the same as reported by Corollax.

Revision history for this message
iuuuuan (ivan-janes) wrote :

I have created file /etc/modprobe.d/psmouse.conf with following entry:

options psmouse proto=imps

I have rebooted the notebook and had to increase pointer speed of trackpad under System settings > Mouse & Touchpad after reboot. So far I don't have any issues with trackpad freezing.

Default parameter proto for psmouse module is set to auto. The current value of the proto paramater of psmouse kernel module can be read from /sys/module/psmouse/parameters/proto file:

cat /sys/module/psmouse/parameters/proto

After creating /etc/modprobe.d/psmouse.conf file parameter is set to ImPS/2.

The idea for changing psmouse proto parameter came from https://answers.launchpad.net/ubuntu/+source/xserver-xorg-input-synaptics/+question/176273.

So the quick fix would be:
1.) Run following command from terminal:
echo "options psmouse proto=imps" | sudo tee /etc/modprobe.d/psmouse.conf >/dev/null

2.) Reboot the system or reload psmouse module from terminal with following commands:
sudo modprobe -r psmouse && sudo modprobe psmouse

3.) Increase the speed of pointer under System settings > Mouse & Touchpad

Can anyone else confirm this fix ?

Revision history for this message
Evgeniy (ekazak48) wrote :

this bug confirmed not only for 13.10... My laptop Acer Aspire 5750G has this problem too. Ubuntu 14.04 LTS Beta...
Driver for GeForce v331.38

Revision history for this message
pablo.t89 (pablo.t89) wrote :

This bug is assigned to nvidia-graphics-drivers-319, but it definitely affects (at least) nvidia-graphics-drivers-331 as well.

By the way, should it not be reported upstream? Does such a report exist yet?

Revision history for this message
Loris Zinsou (nepenthes) wrote :

nvidia has no public bug tracker. They seem to know about this bug though, because this bug report has been reported on their forum, and a support engineer asked for more information (which was provided, but not followed by any other message).

Revision history for this message
Asad (asadkn) wrote :

Same issue here on Ubuntu 13.10 Nvidia GT 750M using nvidia-331 and nvidia-prime. The same issue doesn't happen when using #18 fix or using an external mouse. I also have a touchscreen (eGalax Inc. eGalaxTouch EXC7910-1023-12.00.00) - I wonder if that can cause the issue.

Regarding #18 fix, any idea if touchpad scrolling can be enabled (using a Synaptics touchpad here)? I would rather have scrolling - sure the freezes are annoying but Ctrl + Shift + F1 and Ctrl + Shift + F7 quickly brings it back - better than having no touchpad scrolling.

Revision history for this message
pablo.t89 (pablo.t89) wrote :

I believe that so called "#18 fix" is not an actual solution. It disables multitouch features and makes your touchpad recognized as a normal mouse (and since touchpad doesn't come with separate physical scroll wheel, you won't get scrolling while using that option). You keep an ability to move your cursor and click, but that's not what I would call a "usable touchpad".

I wonder whether it's related specifically to the touchpad drivers, or is it just about the amount of cursor-related events which are sent to xorg? While it happens only with nvidia drivers, there migh be a possibility to fix it by pathing the touchpad-related protocols in psmouse kernel module or something in xorg (related to xrandr protocol, possibly?).

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers-331 (Ubuntu):
status: New → Confirmed
Revision history for this message
Seth Miers (miers-seth) wrote :

I have this problem on my ASUS UX32VD

Has anyone discovered a synaptics fix?

Revision history for this message
giamma (giamma-t) wrote :

I'm testing the new beta version of the nvidia drivers 337.12 installed via xorg-edgers
Cross your fingers but appereantly seems solved.
I've been testing it for a while, generally the freeze used to happen quickly.

Hope this helps

Revision history for this message
giamma (giamma-t) wrote :

No luck. It's always the same

tags: added: trusty
Revision history for this message
Bernardo Botella (contacuo) wrote :

Same here with a GT 780M and Ubuntu 14.04. By the way, if I close the laptop screen, wait until it goes to sleep and then I open the screen again, everything works again.

Revision history for this message
Timothy Lee (marlboromoo) wrote :

Same here with my ASUS S550C, Ctrl + Shift + F1 and Ctrl + Shift + F7 to bring it back.

Revision history for this message
Dmitriy Kodanev (dkodanev) wrote :

Asus K55VD, Xubuntu 14.04 LTS
I have swithed from bumblebee to prime and now having this issue.
Ctrl+Shift+FN helps but it's annoying.
I see it is too rather bug. And it is not fixed yet.
So probably I have to switch back to bumblebee...

Revision history for this message
Dmitriy Kodanev (dkodanev) wrote :

Sorry.
too rather bug -> rather old bug

Revision history for this message
giamma (giamma-t) wrote :

I switched back to nouveau, hope nvidia fixes this, it's a guilt not being able to use my video card properly

Revision history for this message
Dmitriy Kodanev (dkodanev) wrote :

It was interesting thing when I tried to switch back to bumblebee from nvidia-prime. I have done these steps:
sudo apt-get purge nvidia-prime
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install nvidia-331 nvidia-settings
sudo apt-get install bumblebee bumblebee-nvidia primus primus-libs-ia32

But then I started World of Goo (from Steam) using optirun. And when in game startscreen I've pointed to profiles icon - there has been a freeze again!
I removed bumblebee, primus, nvidia-331.
After that I installed nvidia-319-updates, then bumblebee and primus.
And now i have no freeze at all.

So I think the bug is not in nvidia-prime but in nvidia-331driver, because with nvidia-319-updates there's no freeze.

Revision history for this message
Aziz (azizth) wrote :

Seems a bug with synaptics: ETPS/2 Elantech Touchpad , not Nvidia.
I remove Nvidia drivers and use Xorg default driver. Same problem, randomly system freeze.

A solution will be nice because this problem touch lot of users.

Revision history for this message
Luis Condes Díaz (luis-condesdiaz) wrote :

Having what closely looks like this bug with 14.04 LTS and Nvidia 610M+Inter HD4000 combo in a asus K55VD laptop. I can confirm switching VT as a working workaround. Also using an Elantech Touchpad.

Revision history for this message
Minium (minium) wrote :

I can confirm that since following comment #18, which is around 6 hours of use,
I haven't had any screen freezes anymore. Thanks for that!

Revision history for this message
pablo.t89 (pablo.t89) wrote :

@up: Definitely, following comment #18 makes the screen freezes stop. So does not touching the touchpad at all. Unluckily, neither of those two options lets you use the actual touchpad features like multitouch gestures (e.g. two-finger scrolling).

Revision history for this message
Minium (minium) wrote :

Indeed, it renders the touchpad functionality useless. Is there at least a way to disable the touchpad
(now in mouse mode) during typing?

Revision history for this message
Andreas Persson (andreaspersson989) wrote :

I have the same problem on ubuntu 14.04 with elan touchpad. I use a optimus laptop with nvidia 640m gpu and intel gpu. Using the touchpad causes ubuntu to freeze, and it is possible to unfreeze going to and from a virtual console. I am using nvidia 331 and prime.

Revision history for this message
Viktor Samoylov (vicyn) wrote :

 same problem, i have Packard Bell EASYNOTE ENTV 11, ubuntu 14.04, ETPS/2 Elantech Touchpad, nvidia-graphics-drivers-331, nvidia-prime

Revision history for this message
novaBS (novabs) wrote :

Same problem over here, using Ubuntu 14.04, nvidia 331.67 and a touchpad on a Lenovo Ideapad U410. When using the Intel graphics nothing happens, but when using nvidia graphics the screen freezes, only when the touchpad is used. When using a mouse nvidia graphics can be used without a freeze.

Revision history for this message
Michael Steenbeek (gymnasiast) wrote :

Same problem here with Ubuntu 14.04 AMD64 on an Acer V3-571G with an Intel HD 4000 and an NVIDIA GT630M.
After VT-switching back and forth most of my screen stays black until its content gets updated. Flash videos don't update until I refresh the page. The flash thing also happens when just minimising the window. None of these things happen when I switch to the Intel chip.

Revision history for this message
Peter Slump (pnhers) wrote :

Same problem here:
ASUS K53SC
GeForce GT 520MX/PCIe/SSE2 => Nvidia-331.38
Ubuntu 14.04 AMD64
synaptics: ETPS/2 Elantech Touchpad

Revision history for this message
Mathias Einar Hole (mathias-hole) wrote :

Same problem:
ASUS N56JR
Ubuntu 14.04 AMD64
NVIDIA GeForce GTX 760M

Revision history for this message
nbubis (nbubis) wrote :

Same here on a thinkpad T430 with an NVIDIA NVS 5400M.

Revision history for this message
Pépou (yannickw24) wrote :

Same problem with Asus k53s. Very anoying !

Revision history for this message
Dusko (dsk-djr) wrote :

Same bug on Acer E1-570G, optimus nvidia 740M+intel integrated, with nvidia-331.38 driver and nvidia-prime, ETPS/2 Elantech touchpad.

Changed in nvidia-graphics-drivers-331 (Ubuntu):
importance: Undecided → Critical
Revision history for this message
Gustav Andersson (6-gustav-q) wrote :

Similar experience here. Ubuntu 14.04 64bit running on DELL M3800 laptop. Random freezes when using touchpad. I have Nvidia driver 331.38.

Revision history for this message
Gustav Andersson (6-gustav-q) wrote :

...and I want to add to my previous comment that, as previously reported, switching to console and back again unfreezes the system. (ctrl+alt+(fn)+F1 and ctrl+alt+(fn)+F7)

Revision history for this message
Brendan Reilly (brendan-reilly) wrote :

Same issue here. Asus N550JK (Nvidia GTX 850m)

nvidia-331

Revision history for this message
despian (mfamphlett) wrote :

Same issue here.

Laptop: Clevo W230ST (GTX 765M)
Driver version: 337.12

I'm running Arch but since it's an upstream issue I cant report it on their bug tracker. Had a look in the Nvidia forums but couldn't find the post Loris Zinsou (the-lz-himself) referred to. Anyone else know if Nvidia is looking into this?

Revision history for this message
despian (mfamphlett) wrote :

Found the thread: https://devtalk.nvidia.com/default/topic/595378/linux/ubuntu-13-10-nvidia-prime-suspend-resume-bug-touchpad-bug/2/?offset=22#4225154

Looks like Nvidia have field a bug (#1431527). I suggest everyone here post to that thread and submit a bug report at http://nvidia-submit.custhelp.com/

The more people that report the issue the more likely they will be to do something about it.

Revision history for this message
CzAR (c-anasrahman) wrote :

Same issue here

Laptop: Toshiba Satellite S50-A
Graphics Card: NVIDIA® GeForce® 710M

Driver: tried both Nvidia 331.38 and open source. no difference

doesn't happen when using usb mouse.

it also happens when waking up from suspend mode. can't use VT switching method then, unless i log in.

Revision history for this message
Chirality Dev Ent (chirality-dev-ent) wrote :

Have this issue with Toshiba Satellite S55 -- however, I am relatively certain that it has something to do with a integral touchpad-disable spot/button on the touchpad ( on my device in the upper left corner and marked with a glyph of a touchpad with a crossed circle over it ).

Problem did not occur while running nouveau driver prior to installing NVIDIA drivers, but I need CUDA on this system.

Revision history for this message
Anatoliy Dinis (adtwo) wrote :

Also effects my system, can be very annoying.

ASUS G750JM
NVidia GeForce GTX 860M

Happens using drivers 331.79, and 331.67.
I might try the Beta Drivers from NVidia's site.

VT switch only workaround so far.

Revision history for this message
Mark Crook (markcrooknz-b) wrote :

Same problem here.

NVidia proprietary driver 337.25
HP ENVY TS 15 Notebook PC
NVIDIA Corporation GK107M [GeForce GT 750M]
Ubuntu 14.04
3.13.0-29-generic

Can recover by closing & reopening lid to suspend & resume.

There is evidence that the system was partially responsive, although visibly frozen. For example, tapping trackpad to close a window froze the screen with window open, but resumed with the window closed. If playing a video at the time of the freeze, the audio would continue to play while screen frozen.

Revision history for this message
Andreas Persson (andreaspersson989) wrote :

I emailed nvidia and got this answer

Hi Sven,

Your issue was just referred to me.

This problem has already been reported to Engineering and will be fixed in the next 331* driver which is currently planned for early July.

Let me know if any more questions.

Best regards,

Mike
NVIDIA Customer Care

Revision history for this message
EDER SEGOVIANO ALONSO (esegoviano) wrote :

Same problem:

ETPS/2 Elantech Touchpad
Laptop: MSI CX61 2PC
Graphics Card: NVIDIA® GeForce® 620M
Ubuntu 14.04
331.79 driver (instaled via xorg edgers ppa)

I wish the 331 july release could solve the problem...

Revision history for this message
Pablo Acuña (pabloacuna88) wrote :

Same problem. Using kubuntu 14.04, Nvidia GeForce GT 650M. Screen freezes frequently using the trackpad. Using Ctr-Alt-f6 and then Ctr-Alt-f7 fixes the freeze.

Revision history for this message
giamma (giamma-t) wrote :

Hi,
Has anyone tried the new release of the nvidia drivers? There's no clear point about this bug in the changelog.
I'm waiting for the xorg edgers release to install because this bug affects my working laptop

Revision history for this message
Mark Crook (markcrooknz-b) wrote :

Issue still occurs with driver 331.89 released on 1st July. It seems to be less frequent.

NVidia Driver Version: 331.89
NVidia GK107M [GeForce GT 750M]
Ubuntu 14.04
Linux 3.13.0-30-generic

Revision history for this message
Andreas Persson (andreaspersson989) wrote :

I still have issues with the new driver 331.89. Not fixed yet.

Revision history for this message
Ken McWilliams (ken-mcwilliams) wrote :

The latest driver from nvidia which seems to be the superset of supported drivers as 331.89 is 340.24.
Using this new driver I have not yet had a freeze. Will follow up tonight if issue is resolved.

Install from this source: http://linuxg.net/how-to-install-the-nvidia-340-24-driver-on-ubuntu-14-04-ubuntu-13-10-ubuntu-12-04-and-derivative-systems/

I attempted a manual install from nvidia first by downloading the driver here: http://www.nvidia.com/download/driverResults.aspx/76884/en-us

I was able to get the driver to install (manual installation) however had low graphics issues and could not get the unity launcher to show, no tool bar and the right click didn't work either. After reverting my system and installing the PPA worked perfectly. I strongly recommend using the PPA (fist link over manual installation).

Ensure that this PPA supports your graphics by checking the nvida link.

Revision history for this message
Ken McWilliams (ken-mcwilliams) wrote :

Issue not resolved however I did test for a very considerable period of time before the issue surfaced. The issue seems to be greatly reduced but not removed.

Revision history for this message
Rob (robertdavidlee) wrote :

Nvidia GeForce GT 650M, Samsung Chronos 17" laptop.

Problem still occurs on 331.89 just as frequently as previous driver. Note to self, avoid Nvidia GPUs for future laptops.

Revision history for this message
Brendan Reilly (brendan-reilly) wrote :

Nvidia GTX 850M (Asus N550JK), using the 340 drivers and still having this issue.

Revision history for this message
kartik sankhla (kartik0025) wrote :

I did the #18 solution. Now I want to revert back the changes to use the touchpad features. How to do that ?

Revision history for this message
iuuuuan (ivan-janes) wrote :

To revert from #18 solution delete /etc/modprobe.d/psmouse.conf file with:

sudo rm /etc/modprobe.d/psmouse.conf

and reboot notebook or reload psmouse driver with

sudo modprobe -r psmouse && sudo modprobe psmouse

Changed in nvidia-graphics-drivers-319 (Ubuntu):
status: Confirmed → Triaged
Changed in nvidia-graphics-drivers-331 (Ubuntu):
status: Confirmed → Triaged
Changed in nvidia-prime (Ubuntu):
status: Opinion → Triaged
Revision history for this message
Red Cat (cred) wrote :

Same problem on Nvidia GT 740 (ASUS X75V), using the 331.38 drivers.

Revision history for this message
San Ponce de León (san-poncedeleon) wrote :

same issue on my Asus n46vm with Linux Mint 17 3.13.0-24-generic
NVIDIA Corporation GF108M [GeForce GT 630M]
nvidia drivers: 331.38.0ubuntu7 and updates

it only froze when i was using some web browser like firefox or chromium

i had to go back to the Nouveau driver

Revision history for this message
kartik sankhla (kartik0025) wrote :

dont go back to Nouveau driver, just press ctrl + alt + F1 and ctrl + alt + F7/F8 for the system work again. You wont sacrifice mouse scroll or graphics this way.

Revision history for this message
kartik sankhla (kartik0025) wrote :

and thanks #68

Revision history for this message
Raja (rts-b) wrote :

Hi All,

This is Raja from NVIDIA-Linux support team.

Can someone share the exact repro steps to reproduce this issue?

Also, Please do share the nvidia-bug report by triggering the nvidia-bug-report.sh from root user.

Here the notebook list, what we grep from this thread. Will try on one of the available notebook.

Acer Aspire 5750G
Acer E1-570G
Acer V3-571G
ASUS B400VC
ASUS G750JM
ASUS N43SL
ASUS N46VM
ASUS K53S
ASUS K53SC
ASUS K53SV
ASUS K55VD
ASUS N550JK
ASUS N56JR
ASUS S550C
ASUS UX32VD
ASUS X75V
Clevo W230ST
Dell M3800
HP ENVY TS 15
Lenovo G700
Lenovo G710
Lenovo Ideapad U410
Lenovo Thinkpad T430
MSI CX61 2PC
Packard Bell EASYNOTE ENTV 11
Samsung Chronos 17"
Toshiba Satellite S50-A
Toshiba Satellite S55

Revision history for this message
Flávio Augusto Ribeiro de Faria (flavioarfaria) wrote : Re: [Bug 1220426] Re: [nvidia-prime]Freeze while using touchpad

Raja, you can also add Dell Vostro 3300 to this list.

On Fri, Aug 8, 2014 at 7:01 AM, Raja <email address hidden> wrote:

> Hi All,
>
> This is Raja from NVIDIA-Linux support team.
>
> Can someone share the exact repro steps to reproduce this issue?
>
> Also, Please do share the nvidia-bug report by triggering the nvidia-
> bug-report.sh from root user.
>
> Here the notebook list, what we grep from this thread. Will try on one
> of the available notebook.
>
> Acer Aspire 5750G
> Acer E1-570G
> Acer V3-571G
> ASUS B400VC
> ASUS G750JM
> ASUS N43SL
> ASUS N46VM
> ASUS K53S
> ASUS K53SC
> ASUS K53SV
> ASUS K55VD
> ASUS N550JK
> ASUS N56JR
> ASUS S550C
> ASUS UX32VD
> ASUS X75V
> Clevo W230ST
> Dell M3800
> HP ENVY TS 15
> Lenovo G700
> Lenovo G710
> Lenovo Ideapad U410
> Lenovo Thinkpad T430
> MSI CX61 2PC
> Packard Bell EASYNOTE ENTV 11
> Samsung Chronos 17"
> Toshiba Satellite S50-A
> Toshiba Satellite S55
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1220426
>
> Title:
> [nvidia-prime]Freeze while using touchpad
>
> Status in “nvidia-graphics-drivers-319” package in Ubuntu:
> Triaged
> Status in “nvidia-graphics-drivers-331” package in Ubuntu:
> Triaged
> Status in “nvidia-prime” package in Ubuntu:
> Triaged
>
> Bug description:
> I'm using an Optimus laptop (Asus N43SL)
> nvidia-prime is installed, so my nvidia dedicated graphics card (GT
> 540m) is in use.
>
> Once in a while, my screen will freeze, only when I use my touchpad.
> This does not happen with my USB mouse.
> This does not happen either when I uninstall nvidia-prime and use my
> intel integrated graphics (HD3000).
>
> I can temporarily solve the issue by doing a VT switch.
>
>
> In the attached Xorg.0.log, you can see "synaptics: ETPS/2 Elantech
> Touchpad: touchpad found" each time I did a VT switch and regained control.
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-319/+bug/1220426/+subscriptions
>

Revision history for this message
Michael Steenbeek (gymnasiast) wrote :

Raja, the steps to reproduce:

1. Use of the laptop in your post and install Ubuntu.
2. Install the proprietary NVIDIA driver.
3. Switch to using the NVIDIA card using nvidia-settings.
4. Use the touchpad for a while.

Revision history for this message
Raja (rts-b) wrote :

Thanks Michael,

Could you please run the nvidia-bug report by triggering the nvidia-bug-report.sh from root user and share the same here?

Revision history for this message
Darren Wright (prostetnic-dw) wrote :

Hi,

just finished installing ubuntu 14.04 on my alienware mx17r3 with gt540 (Nvidia 331,38) and intel card. exactly the same problem. ctrl alt f1/f7 repairs it. but it's annoying.

also only seems to happen when using touchpad, external mouse or keyboard jumping and everything is fine

Made and attached bug report just in case

Revision history for this message
Darren Wright (prostetnic-dw) wrote :

Sorry, GT460M not GT540; Sorry it's been a long day

Revision history for this message
DavidJB (davidjb) wrote :

Raja, please add the Dell L702X to the list. Ironically, the bug was triggered whilst I was trying to write this comment.

NVIDIA Drivers 331.38, Ubuntu 14.04 x64, Geforce GT 555M.

Revision history for this message
Raja (rts-b) wrote :

Thanks Darren,

Is it possable to share the step by step reproduction steps to trigger this issue internally. Also, how frequently you are seeing this issue? Please help to share any other easy to trigger this issue.

Sent from my Android phone using TouchDown (www.nitrodesk.com)

-----Original Message-----
From: Darren Wright [<email address hidden>]
Received: Saturday, 09 Aug 2014, 3:51AM
To: Rajagopal TS [<email address hidden>]
Subject: [Bug 1220426] Re: [nvidia-prime]Freeze while using touchpad

Sorry, GT460M not GT540; Sorry it's been a long day

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1220426

Title:
  [nvidia-prime]Freeze while using touchpad

Status in “nvidia-graphics-drivers-319” package in Ubuntu:
  Triaged
Status in “nvidia-graphics-drivers-331” package in Ubuntu:
  Triaged
Status in “nvidia-prime” package in Ubuntu:
  Triaged

Bug description:
  I'm using an Optimus laptop (Asus N43SL)
  nvidia-prime is installed, so my nvidia dedicated graphics card (GT 540m) is in use.

  Once in a while, my screen will freeze, only when I use my touchpad.
  This does not happen with my USB mouse.
  This does not happen either when I uninstall nvidia-prime and use my intel integrated graphics (HD3000).

  I can temporarily solve the issue by doing a VT switch.

  In the attached Xorg.0.log, you can see "synaptics: ETPS/2 Elantech Touchpad: touchpad found" each time I did a VT switch and regained control.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-319/+bug/1220426/+subscriptions

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information. Any unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------

Revision history for this message
Darren Wright (prostetnic-dw) wrote :

Hello Raja,

needed sleep. Okay I did:

New install of Ubuntu 14.04
package updates + additional software (Nvidia 331.38 fom nvidia(Proprietary, tested)
reboot

now whenever I leave the touchpad enabled (FN+F12 on Mx17) and use it, i get random freezes whenever i actually move using the touchpad. (not sure if 100%related but seems to be)

disabled touchpad and no locks, reenabled and inside of 2 minutes it locked.

If you are trying to make this happen and you don't lock inside of 5 minutes with the t-pad, you dont have the issue I have..

I also went into BIOS and enabled the Intel only graphics, problem also gone. But kinda depressing for Left4Dead ;)

Revision history for this message
Raja (rts-b) wrote :

Thanks Deeran,

Could you please help to share the nvidia bug report oncethe issue reproduce?

Or please share the entire dmesg output, once the issue reproduce

Sent from my Android phone using TouchDown (www.nitrodesk.com)

-----Original Message-----
From: Darren Wright [<email address hidden>]
Received: Saturday, 09 Aug 2014, 12:21PM
To: Rajagopal TS [<email address hidden>]
Subject: [Bug 1220426] Re: [nvidia-prime]Freeze while using touchpad

Hello Raja,

needed sleep. Okay I did:

New install of Ubuntu 14.04
package updates + additional software (Nvidia 331.38 fom nvidia(Proprietary, tested)
reboot

now whenever I leave the touchpad enabled (FN+F12 on Mx17) and use it, i
get random freezes whenever i actually move using the touchpad. (not
sure if 100%related but seems to be)

disabled touchpad and no locks, reenabled and inside of 2 minutes it
locked.

If you are trying to make this happen and you don't lock inside of 5
minutes with the t-pad, you dont have the issue I have..

I also went into BIOS and enabled the Intel only graphics, problem also
gone. But kinda depressing for Left4Dead ;)

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1220426

Title:
  [nvidia-prime]Freeze while using touchpad

Status in “nvidia-graphics-drivers-319” package in Ubuntu:
  Triaged
Status in “nvidia-graphics-drivers-331” package in Ubuntu:
  Triaged
Status in “nvidia-prime” package in Ubuntu:
  Triaged

Bug description:
  I'm using an Optimus laptop (Asus N43SL)
  nvidia-prime is installed, so my nvidia dedicated graphics card (GT 540m) is in use.

  Once in a while, my screen will freeze, only when I use my touchpad.
  This does not happen with my USB mouse.
  This does not happen either when I uninstall nvidia-prime and use my intel integrated graphics (HD3000).

  I can temporarily solve the issue by doing a VT switch.

  In the attached Xorg.0.log, you can see "synaptics: ETPS/2 Elantech Touchpad: touchpad found" each time I did a VT switch and regained control.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-319/+bug/1220426/+subscriptions

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information. Any unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------

Revision history for this message
Darren Wright (prostetnic-dw) wrote :

Hi,

as a side note, it is happening much less with the usb mouse plugged in even when i use the T-Pad. If I remove the external mouse and continue using T-Pad then it takes around 5 clicks.

I'll add my dmesg log as next post

Sorry I am kinda new to Linux, takes me a while to figure out what you want..

Revision history for this message
Darren Wright (prostetnic-dw) wrote :

DMESG log

Revision history for this message
Carlos Fontinha (carlos-ar-fontinha) wrote :

Hi,

Some issue in clevo W355SSQ
-> Ubuntu 14.04.1 (last update)
-> nvidia GTX 860M
-> nvidia driver version 340.24 (last version)

Revision history for this message
Carlos Fontinha (carlos-ar-fontinha) wrote :

My output log:
-> dmesg -T -l err,crit,alert,emerg
[Sáb Ago 9 10:36:23 2014] vgaarb: this pci device is not a vga device
[Sáb Ago 9 10:36:24 2014] vgaarb: this pci device is not a vga device
[Sáb Ago 9 10:36:28 2014] dpm_run_callback(): pnp_bus_resume+0x0/0xa0 returns -19
[Sáb Ago 9 10:36:28 2014] PM: Device 00:07 failed to resume: error -19

Revision history for this message
Michael Steenbeek (gymnasiast) wrote :

Here is the output of nvidia-bug-report, as Raja requested.

Revision history for this message
Raja (rts-b) wrote :

Hi Carlos,

Can you please share the steps which you followed to trigger this issue?

Hi Darren,

Sorry, I was tried your steps at my end. But no luck. I didn't observed any hung after 20 to 30 clicks on touchpad.

Will keep on try at our end to reproduce this issue.

Hi All,

Please help to share your reproduction steps for reproduce this issue internally.

Also, Please use 331.89 + drivers to your notebooks and double confirm the result.

Revision history for this message
Loris Zinsou (nepenthes) wrote :

Hi Raja,
You don't actually need to click or tap the touchpad. Just use it like you would do in normal use.
After a random amount of time (30 sec to 3 hours or more), it WILL hang, i can assure you. Freeze will happen while you move your finger on the touchpad.
This is hard to reproduce in a lab because the amount of time is random, and it can take a very long time. But it will. That's why only people who actually use nvidia-prime on a daily basis see this bug.
The only known way to reproduce this bug :
1) don't try to make it happen
2) use your computer's touchpad in normal conditions : working on something else, web browsing...
3) it will hang.

Revision history for this message
Darren Wright (prostetnic-dw) wrote :

I can only concur with Loris. it's not clicking that causes the problem.

What I have however noticed is that also my normal mouse hangs up for a fraction of a second and then recovers and moves on.

maybe it isn't just T-Pad. or maybe I am getting paranoid..

Also, for the first time since install, I went an hour of T-Pad use without the bug happening again. but it came back..

Revision history for this message
ShamilaBW (shamilabw) wrote :

I have the same problem but on Linux Mint 17 Cinnamon

Here' s my System details

inix -Fxz

System:
Host: shamila-V3-571G Kernel: 3.13.0-24-generic x86_64 (64 bit, gcc: 4.8.2)
Desktop:
Gnome Distro: Linux Mint 17 Qiana
Machine:
System: Acer product: Aspire V3-571G version: V2.21
Mobo: Acer model: VA50_HC_CR version: Type2 - Board Version Bios: Acer version: V2.21 date: 12/16/2013
CPU:Dual core Intel Core i5-3210M CPU (-HT-MCP-) cache: 3072 KB flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 9976.54
Clock Speeds: 1: 1200.00 MHz 2: 1200.00 MHz 3: 1200.00 MHz 4: 1200.00 MHz
Graphics:
Card-1: Intel 3rd Gen Core processor Graphics Controller bus-ID: 00:02.0
Card-2: NVIDIA GK107M [GeForce GT 640M] bus-ID: 01:00.0
X.Org: 1.15.1 driver: nvidia Resolution: 1366x768@60.0hz
GLX Renderer: GeForce GT 640M/PCIe/SSE2 GLX Version: 4.4.0 NVIDIA 331.38 Direct Rendering: Yes
Audio: Card: Intel 7 Series/C210 Series Chipset Family High Definition Audio Controller driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture ver: k3.13.0-24-generic
Network: Card-1: Qualcomm Atheros AR9462 Wireless Network Adapter driver: ath9k bus-ID: 03:00.0
           IF: wlan0 state: up mac: <filter>
           Card-2: Broadcom NetLink BCM57785 Gigabit Ethernet PCIe driver: tg3 ver: 3.134 bus-ID: 02:00.0
           IF: eth0 state: down mac: <filter>
Drives: HDD Total Size: 1000.2GB (1.5% used) 1: id: /dev/sda model: ST1000LM024_HN size: 1000.2GB
Partition: ID: / size: 220G used: 15G (7%) fs: ext4 ID: swap-1 size: 10.00GB used: 0.00GB (0%) fs: swap
RAID: No RAID devices detected - /proc/mdstat and md_mod kernel raid module present
Sensors: System Temperatures: cpu: 69.0C mobo: N/A gpu: 0.0:59C
           Fan Speeds (in rpm): cpu: N/A
Info: Processes: 195 Uptime: 27 min Memory: 1478.6/7874.4MB Runlevel: 2 Gcc sys: 4.8.2 Client: Shell inxi: 1.8.4

Revision history for this message
ShamilaBW (shamilabw) wrote :

In addition to #91 see the nvidia bug report log.

It happens when using the touchpad normally after few minutes. The freeze does not happen when the USB mouse is attached, even when the touchpad is active and used.

VT switch unfreezes the system but usually happens again in a few minutes.

Revision history for this message
Owen (owenc34) wrote :

Found a fix:

On ubuntu...

1. Go to System Settings

2. Click Mouse and Touchpad

3. Go to touchpad

4. uncheck "disable touchpad while typing" and "enable mouseclicks with touchpad"

Hope you don't care about those features

Revision history for this message
Raja (rts-b) wrote :

Hi Shamila,

Thanks for the bug report. Could you please help to share your observation with 331.89 or latest drivers?
Here the link for 340.24_x86_64 [long live branch] http://www.nvidia.com/content/DriverDownload-March2009/confirmation.php?url=/XFree86/Linux-x86_64/340.24/NVIDIA-Linux-x86_64-340.24.run&lang=us&type=geforcem

Also Shamila / Darren and all,

Please help to increase the X log level and try to reproduce the issue. Here the link, which guide you: http://askubuntu.com/questions/55590/how-to-startx-with-logverbose-6-arguments

Once issue reproduced, please do share the latest logs.

NVIDIA-Bug-reprort logs, what ever we got, It doesn't have enough information to conclude whether it's NVIDIA driver issue or not.

Still in our end, we are trying to reproduce this issue locally.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers-343 (Ubuntu):
status: New → Confirmed
Revision history for this message
Raja (rts-b) wrote :

Hi All,

Any update on above request?

In our end we are trying to reproduce this issue on below Notebooks. No luck so far.

1) Aspire V3-571G
2) Dell AW M17xR4
3) ASUS G750JM

Revision history for this message
Szgalweb (szgalweb) wrote :

I have an Acer Aspire v3-472g-514h with an nVidia GeForce 840M GPU. I increased my loglevel to 6 and ran the script after the freeze. It happened at 2014 Aug. 14th, at 00:08. You can find nvidia-bug-report in attachment.?field.comment=I have an Acer Aspire v3-472g-514h with an nVidia GeForce 840M GPU. I increased my loglevel to 6 and ran the script after the freeze. It happened at 2014 Aug. 14th, at 00:08. You can find nvidia-bug-report in attachment. It was taken 6 minutes after the freeze at 00:14.

Revision history for this message
Hendrik Schrieber (hennekn) wrote :

Hi All,

I had this issue on a Acer Aspire 5750G. Today I updated my system with the latest NVIDIA driver 343 from the xorg-edgers repository. Because Ubuntu would not let me login (black screen after entering password in lightdm) after the update and command line switching did also not work I reset compiz and unity by following the instructions here (Fix 1 to 6): http://askubuntu.com/questions/449845/problems-after-upgrading-to-14-04-only-background-and-pointer-after-login

After I was able to use the newest driver I wasn't able to reproduce the bug after at least 2 hours of testing. Before the update the issue occured very frequently.

I will report if the bug reappears.

Revision history for this message
Szgalweb (szgalweb) wrote :

I uplodaded my /var/log folder. No, I don't care about "sensitive information", as this is a new and personal-purpose laptop.

Revision history for this message
Darren Wright (prostetnic-dw) wrote :

SOrry, I had 3 days away, I will try and do this today. Need to update
drivers first..

2014-08-14 6:43 GMT+02:00 Szgalweb <email address hidden>:

> I uplodaded my /var/log folder. No, I don't care about "sensitive
> information", as this is a new and personal-purpose laptop.
>
> ** Attachment added: "My entire /var/log folder"
>
> https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1220426/+attachment/4177148/+files/varlogfolder.tar.gz
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1220426
>
> Title:
> [nvidia-prime]Freeze while using touchpad
>
> Status in “nvidia-graphics-drivers-319” package in Ubuntu:
> Triaged
> Status in “nvidia-graphics-drivers-331” package in Ubuntu:
> Triaged
> Status in “nvidia-graphics-drivers-343” package in Ubuntu:
> Confirmed
> Status in “nvidia-prime” package in Ubuntu:
> Triaged
>
> Bug description:
> I'm using an Optimus laptop (Asus N43SL)
> nvidia-prime is installed, so my nvidia dedicated graphics card (GT
> 540m) is in use.
>
> Once in a while, my screen will freeze, only when I use my touchpad.
> This does not happen with my USB mouse.
> This does not happen either when I uninstall nvidia-prime and use my
> intel integrated graphics (HD3000).
>
> I can temporarily solve the issue by doing a VT switch.
>
>
> In the attached Xorg.0.log, you can see "synaptics: ETPS/2 Elantech
> Touchpad: touchpad found" each time I did a VT switch and regained control.
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-319/+bug/1220426/+subscriptions
>

Revision history for this message
Szgalweb (szgalweb) wrote :

Some more log files. The dmesg contains some info by me(time of freeze), you can grep them using "grep HUMANINFO ./dmesgoutput". X server loglevel was set to 255.

Revision history for this message
Hendrik Schrieber (hennekn) wrote :

No luck, issue is back. It happend after the system was running for about 5 to 6 h. I wasn't actually using it all the time but when it froze I was just surfing the web with Firefox. No USB devices were connected. I am also using Intel Graphics Driver Installer with current drivers.

I am attaching a NVIDIA bug report and dmesg.

Revision history for this message
Hendrik Schrieber (hennekn) wrote :
Revision history for this message
Human (bob-igo) wrote :

Is it possible that it only _seems_ to be touchpad related? I have noticed freezing in conditions that would normally cause the item I'm hovering over to change to produce graphical feedback, such as highlighting an icon in the unity launcher, a menu, etc. It's not consistently reproducible, but I haven't noticed the freeze occurring in scenarios where the mouse pointer doesn't hover over anything that changes state.

Can anyone else report whether or not they get freezes when the mouse pointer moves to specific types of on-screen elements?

Revision history for this message
Human (bob-igo) wrote :

Sorry. I withdraw my previous comment. _The minute_ after I commented, I got a freeze when my pointer hit a random blank spot in a pure text webpage.

Revision history for this message
Raja (rts-b) wrote :

Thanks all for your update. Finally we are able to reproduce this issue in our end. Filed bug to track this issue. Please keep this bug ID 200028951 for future reference.

Sent from my Android phone using TouchDown (www.nitrodesk.com)

-----Original Message-----
From: Human [<email address hidden>]
Received: Thursday, 14 Aug 2014, 11:52PM
To: Rajagopal TS [<email address hidden>]
Subject: [Bug 1220426] Re: [nvidia-prime]Freeze while using touchpad

Sorry. I withdraw my previous comment. _The minute_ after I commented, I
got a freeze when my pointer hit a random blank spot in a pure text
webpage.

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1220426

Title:
  [nvidia-prime]Freeze while using touchpad

Status in “nvidia-graphics-drivers-319” package in Ubuntu:
  Triaged
Status in “nvidia-graphics-drivers-331” package in Ubuntu:
  Triaged
Status in “nvidia-graphics-drivers-343” package in Ubuntu:
  Confirmed
Status in “nvidia-prime” package in Ubuntu:
  Triaged

Bug description:
  I'm using an Optimus laptop (Asus N43SL)
  nvidia-prime is installed, so my nvidia dedicated graphics card (GT 540m) is in use.

  Once in a while, my screen will freeze, only when I use my touchpad.
  This does not happen with my USB mouse.
  This does not happen either when I uninstall nvidia-prime and use my intel integrated graphics (HD3000).

  I can temporarily solve the issue by doing a VT switch.

  In the attached Xorg.0.log, you can see "synaptics: ETPS/2 Elantech Touchpad: touchpad found" each time I did a VT switch and regained control.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-319/+bug/1220426/+subscriptions

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information. Any unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------

Changed in nvidia-graphics-drivers-343 (Ubuntu):
importance: Undecided → Critical
status: Confirmed → Triaged
Revision history for this message
David Grzegovsky (plontaj) wrote :

Keyboard and touchpad is hanging.

Only what I can to do is to sleep computer if I don't have USB-mouse (power button only works and USB-mouse).

Nvidia drivers version: 304.117
Grph: geforce gt 240m
kernel: 3.2.0-4

Critical annoying.

Revision history for this message
iliya (iliyabo) wrote :

Same here. I have a lenovo z500 with nvidia optimus 645M. I noticed that freezes occur often while streaming videos.

Revision history for this message
Origin (origin) wrote :

Same here.

ASUS G750JM
GeForce GTX 860M

Ubuntu 14.04.1
NVIDIA binary driver version 340.32

Mouse pointer freezes spontaneously even if usb mouse attached.
:-(

Revision history for this message
rob (another-rob) wrote :

Same issue here on a Lenovo T520, NVIDIA 331 Drivers, Ubuntu 14.04

Revision history for this message
Joe (j-iacovelli) wrote :

Same issue ion my laptop Samsung NP300E5A-S0AIT with Optimus.

Joe (j-iacovelli)
Changed in nvidia-prime (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Jenni (m-jk-n) wrote :

Anyh chance to get the fixed nvidia-prime package ASAP?

Revision history for this message
Simon Ball (simon-ball2) wrote :

I have the same issue on a Dell XPS L502X with GT 525M running 14.04 LTS.
I have done the thing in #18 as I didn't know about the two finger scrolling anyway!

Revision history for this message
Nicolas F (nicolasf) wrote :

Why was this marked as Fix Released? I don't see any commits in the kernel source tree log of the elantech driver that point towards it being fixed, and the latest nvidia driver didn't fix it either. As far as I'm aware, this is still unresolved.

Andreas Moog (ampelbein)
Changed in nvidia-prime (Ubuntu):
status: Fix Released → Triaged
Revision history for this message
Aaahh Ahh (woohoomoo2u) wrote :

I too had this Problem, I know no-longer do. It seems that a recent upgrade has fixed the problem...
I'm on utopic.

Revision history for this message
Hendrik Schrieber (hennekn) wrote :

Great. If that's true the question is which package fixes the bug.

Since NVIDIA was able to reproduce this issue a while ago, any news on this or any hint which package is actually causing the bug?

It does not look like it is nvidia-prime according to the changelog.

It is just kind of disappointing when it takes over a month to fix critical bugs not to talk about non-critical but annoying bugs…

Revision history for this message
Daniel Dadap (ddadap) wrote :

It's unlikely to be due a change in the NVIDIA driver, since we (NVIDIA) have not yet identified a root cause for the touchpad freeze.

As this problem is highly sporadic, and can take several hours in some cases to reproduce, if it reproduces at all, we should probably wait for more confirmations that it is no longer reproducible in Utopic before concluding that it has indeed been fixed there.

Revision history for this message
Andrey Konstantinov (andreyinvolute) wrote :

Highly sporadic? I beg to differ. It can be reproduced easily after switching to the nVIDIA card and if you want to accelerate the rate at which it manifests, just play some Civilization V :) Still - I am very happy to hear that nVIDIA is watching the bug somewhat, hopefully the solution will be found at some point (and not just for Utopic but also at least for Trusty which is the latest LTS release)

Revision history for this message
Hendrik Schrieber (hennekn) wrote :

Ok, THAT is interesting. Maybe it is just a coincidence that you mention Civilization V but this was also when I encountered the bug for the first time. Since than it has also occurred when NOT playing that game but it was the first time.

On my system (Acer Aspire 5750G) the problem is also not "sporadic" but occurs very often, mostly after a few minutes. If using the workaround to switch to a different VT and switch back the bug will be back within seconds or minutes.

Revision history for this message
Hendrik Schrieber (hennekn) wrote :

I have no problems when using Nouveau or Bumblebee by the way.

Revision history for this message
Joseph (jefeatherston) wrote :

Having similary(same?) issue with Trusty and 3.16 kernel on ASUS N550JK

https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1371401

Revision history for this message
Nicolas F (nicolasf) wrote :

The bug, for me, is fairly easy to reproduce. The trick is to be actually using the device, by that I mean touchpad, for a while. In fact, I've set up a script to search my xorg log in regular intervals for the messages that occur on VT switches, which I only do when it freezes, and made it send to an IRC channel whenever it happened so my friends could see my suffering. They sarcastically told me that it was a great advertisement for nvidia-powered laptops.
I've also noticed that when I plug in a wacom tablet and use it for a while, and then touch the touchpad again after a bit, it very often leads to a freeze, as if the touchpad was just waiting for me to use it again. Though, this could be entirely psychological. I haven't gathered enough data to conclude it is in any way related.

However, I do have gathered enough data to confidently say it does not occur while the touchpad is not being touched. To show this, I've posted a graph here:
https://devtalk.nvidia.com/default/topic/766166/elantech-touchpad-related-nvidia-driver-freeze/#4278245

To reproduce it, I have a suggestion: Let one of your interns or someone else play spacechem for a while, with the touchpad. Spacechem includes enough dragging and dropping for the issue to be triggered. If that isn't enough, take upon the unpleasanr task of playing first person shooters on a touchpad.

Another thing I noticed is that kwin uses 100% CPU when I switch from the frozen X11 to a TTY.

Revision history for this message
Alvaro A. Novo (alvaro-a-novo) wrote :

The description by Nicolas F (#123), in particular regarding the wacon tablet and the touchpad, corresponds exactly to my woes with this bug.

I use the wacon tablet to work with Darktable and I have a Logitech DiNovo wireless keyboard, which incorporates a touchpad. However, I also have a Asus GX850 Laser mouse (cord). I hope that this strengthens the path to the patch.

Revision history for this message
Sebastian Meyer (wastl) wrote :

I confirm the freeze when using the touchpad and the nVidia GPU on my nVidia Optimus laptop (specifications below). I thus went to nvidia-settings and selected "Intel (Power Saving Mode)" in the "PRIME Profiles". Now, "prime-select query" prints "intel", the bug does not bother me any more, and the laptop has far more battery life.

Hardware
-------------
Lenovo ThinkPad T420s (4173-P41), see http://projektneptun.com/339.html

$ grep -i touchpad /proc/bus/input/devices
N: Name="SynPS/2 Synaptics TouchPad"

$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF119M [NVS 4200M] (rev ff)

Software
------------
Ubuntu 14.04.1 LTS, 64 bit
linux-generic kernel 3.13.0-32-generic

$ apt-show-versions nvidia-prime nvidia-331 nvidia-settings ubuntu-drivers-common bbswitch-dkms libvdpau1
bbswitch-dkms:amd64/trusty 0.7-2ubuntu1 uptodate
libvdpau1:amd64/trusty 0.7-1 uptodate
nvidia-331:amd64/trusty-updates 331.38-0ubuntu7.1 uptodate
nvidia-prime:amd64/trusty 0.6.2 uptodate
nvidia-settings:amd64/trusty 331.20-0ubuntu8 uptodate
ubuntu-drivers-common:amd64/trusty-updates 1:0.2.91.7 uptodate

Revision history for this message
Guglielmo Cola (guglielmocola) wrote :

Temporary fix proposed by Sebastian (#125) worked for me - ASUS K53SV. Now everything is fine. Using Noveau, instead, I can't resume from Suspend.

Thank you mate, this bug was driving me crazy.

Revision history for this message
Andrey Konstantinov (andreyinvolute) wrote :

I don't think that switching to Intel graphics can be called a fix (even a temporary one) and isn't available for owners of many laptops that do not support nVIDIA Optimus. You are simply disabling the nVIDIA card this way and with it, all the advantages that it brings (higher graphics performance). This should be done anyhow if your laptop is Optimus-enabled and you don't need the dedicated GPU's performance. You can also install "prime-indicator" package from ppa:nilarimogard/webupd8 to switch quicker - it's not as good as automatic on-the-fly switching on Windows but it does its job.

However, a real solution has to be found which will let us use the nVIDIA cards with official nVIDIA driver (not the buggy and underperforming noveau) without this freezing. I don't mean to devalue Sebastian's advice, since it can indeed help many people who aren't interested in using dedicated graphics, but I want to make it pretty clear that this is not a fix or even a workaround, since it switches the graphics card completely.

Revision history for this message
Guglielmo Cola (guglielmocola) wrote :

That's right, my comment was too enthusiastic. However, while we wait for the real solution, I think that Sebastien's suggestion could be included in bug description. It may help many (desperate) users who just need a system working decently and who are switching to different operating systems because of that.

Revision history for this message
Frej (frejmau) wrote :

I have the same bug. I just disabled touchpad both inside the OS and via Mobo Funtion key. Now it does not freeze and i just use a USB mouse.

Revision history for this message
Roman Kaufmann (roman-kaufmann-at) wrote :

For me the workaround suggested in post #18 did the trick. Worked on my laptop.

Revision history for this message
Robert Wikander (robert-wikander) wrote :

I'm using a Dell m3800 laptop which I just wiped to run Linux and this bug is extremely annoying. During a evenings work of 3-4 hours this happens once almost every hour. The only way I can get around it is by closing the lid, wait for laptop to go to sleep mode and then open it up again and "tada" then it works again.

Revision history for this message
bob justo (lejustes32) wrote :

I am using an ASUS X73S with intel i915 and nvidia GE GT 520M.
kernel 3.16.3
using the nvidia only with nvidia-prime
nvidia official drivers 343.22 (the last)
i don't use ubuntu but slackware and i have have also the bug , the freeze happens very often every hours.
 i had seen the trick suggested in post #18 works ! it's a good workout!
even if i lost the "two fingers" tracking , it's better than the CTRL + ALT+ F1 trick.
and i can work all day long without be annoyed.

Revision history for this message
bob justo (lejustes32) wrote :

confirmed ! after 2 days working, no more freeze with the trick #18!

Revision history for this message
Sax (lucasax93) wrote :

I have this bug on both 14.04 and 14.10, both suggested workarounds works but it's not acceptable as a fix. I'm using an ASUS F550LD (X550LD) with GTX 820m 331 driver. Updating drivers or kernel doesn't solve this issue. Can it be just a problem of X11?

Revision history for this message
Johann M. Santos (johann-santos) wrote :

I'm using Ubuntu 14.04 LTS (64-bit) on the following hardware:

Dell Vostro 5460
8 GB Memory
Processor -- Intel® Core™ i5-3230M CPU @ 2.60GHz × 4
Graphics Card -- GeForce GT 630M/PCIe/SSE2 with 2 GB dedicated video memory
500 GB Seagate hard drive

I have also been experiencing the 'freeze' at random intervals.

I can confirm that by avoiding the use of the touchpad, I haven't had my system freeze. I am using a wireless USB mouse instead. Not perfect but it gets the job done while waiting for a fix.

Revision history for this message
Alyonsjr (alyonsjr) wrote :

Worth noting, I suppose:

Lenovo Y50
GTX 860m w/ 331.89 drivers

Was experiencing this issue on 14.04. Removed the touchpad settings and just went with a mouse for a while.

Upgrade to 14.10 recognized touchpad, and installed drivers. 72+ hours now with no issues, and heavy usage.

Using KDE environment

Revision history for this message
chris (viscousplacebo-7) wrote :

I can confirm that this issue is NOT fixed in Utopic Unicorn

Im still having very frequent freezes on a laptop with:

07:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 840M] (rev a2)

And also a touchpad.

Using nvidia-331 driver.

Revision history for this message
chris (viscousplacebo-7) wrote :

I'd also like to add when it freezes I get:

[ 1156.830] (II) NVIDIA(0): Setting mode "NULL"
[ 1156.830] (EE) NVIDIA(0): Failed to initiate mode change.
[ 1156.830] (EE) NVIDIA(0): Failed to complete mode change
[ 1156.842] (II) intel(G0): switch to mode 1920x1080@60.1 on eDP1 using pipe 0, position (0, 0), rotation normal, reflection none
[ 1156.878] (--) synaptics: SynPS/2 Synaptics TouchPad: touchpad found

Revision history for this message
Sun Shiranui (happymaskmac) wrote :

Experiencing the same issue on elementary OS Luna. I'm using an Asus N550JK with a nvidia 850m and nvidia-319 drivers.

Revision history for this message
Nicolas F (nicolasf) wrote :

Still present with nvidia driver version 343.22

Revision history for this message
Mark Crook (markcrooknz-b) wrote :

Also still present with nvidia driver version 343.22
GeForce GT 750M/PCIe/SSE2
Intel® Core™ i7-4702MQ CPU @ 2.20GHz × 8
Ubuntu 14.04 LTS Linux 3.13.0-36-generic

Revision history for this message
Brendan Reilly (brendan-reilly) wrote :

Still present with me driver v. 343 in Utopic.

ASUS N550JK (Geforce 850m GTX)

Revision history for this message
difern (difern1991) wrote :

Its fucken bug!!!
I hate it!!!

Revision history for this message
Jenni (m-jk-n) wrote :

Please keep in mind that for the time being it's also possible to use Bumblebee, which has perfectly working Optimus support. NVidia Prime would be nicer, but considering the age of the bug I do not think a fix is coming anytime soon.

Revision history for this message
Nicolas F (nicolasf) wrote :

Bumblebee is only a workaround. If you use the nvidia gpu with the proprietary drivers with it, it will exhibit the same behaviour if an application uses the nvidia GPU, from what I've heard. Furthermore, Bumblebee does not have perfectly working optimus support. It appears to be bottlenecked somewhere that is not the GPU for me, probably because of virtualgl silliness. I appreciate the hint for anyone who's locking for a sort-of workaround, but I don't think it's time to lose hope just yet.

@bluevector: this is not a problem with opensource (as the nvidia driver is closed source) and it is not a problem with Intel graphics (as the nvidia drivers are causing the problem). It's entirely nvidia's job to fix it, as they've chosen to keep their drivers closed source, and thus forbidden everyone but them to fix the bug. It's entirely a problem caused by proprietary software. Please direct your hate-beams at nvidia.

Revision history for this message
Martin Spacek (mspacek) wrote :

I'm seeing something similar, but noticeably different on my Thinkpad W510 (Quadro FX 880M), Nvidia 331.38, Xubuntu 14.04 amd64. Maybe once a week, while using the synaptics touchpad in firefox, the entire screen turns a solid colour, either green or grey. Switcing virtual terminals doesn't seem to work, nor does closing the lid (doesn't suspend). After unplugging and plugging my external mouse, the red light on the mouse doesn't turn back on. So this seems like more of a hard lock. All I can do is a hard reset.

I was on a more recent nvidia driver until a while ago, from xorg-edgers, and I don't think I had the problem then, but it's hard to tell because it's so hard to reproduce. I had to go back to the default 331.38 for Trusty because of an OpenGL corruption problem in one of my programs.

Revision history for this message
Timur Fayzrakhmanov (timfayz) wrote :

The same problem Nvidia GT630M, Ubuntu 14.10, nvidia 331.89

Revision history for this message
ciaoquentin (ciaoquentin) wrote :

I did the "fixing" #18. I miss my scrolling. And I have no idea how i can cancel what i did.
Can someone tell me how to get to the stage before the "fixing #18" ?

Thanks

Revision history for this message
bob justo (lejustes32) wrote :

to remove the "fixing" #18. it's very easy

1)remove or move elsewhere /etc/modprobe.d/psmouse.conf
2.) Reboot the system or reload psmouse module from terminal with following commands:
sudo modprobe -r psmouse && sudo modprobe psmouse

Revision history for this message
Daniel Ricao Canelhas (daniel-canelhas) wrote :

Geforce GTX 680M
Ubuntu 14.10 x86_64

nvidia-prime 0.6.7
nvidia-343 343.22-0ubuntu1~xedgers14.10.1
xserver-xorg 1:7.7+7ubuntu2

$ sudo prime-select query
nvidia

Screen froze when fans could be heard spinning down shortly after login.
Seems like the gpu went to sleep, though I WAS using the touchpad at the time.

switching to tty-1 and back to tty-7 cleared it up.
Haven't experienced any more problems since, during this session.

Revision history for this message
Daniel Ricao Canelhas (daniel-canelhas) wrote :

ok, got a lot more screen freezes now, while running an openGL application.

Revision history for this message
ciaoquentin (ciaoquentin) wrote :

I didn't remove the fixing #18 yet.
And today my touchpad work perfectly normal...
Weird.

Revision history for this message
bob justo (lejustes32) wrote :

"And today my touchpad work perfectly normal..."

but you didn't have the "two fingers" tracking ?

Revision history for this message
ciaoquentin (ciaoquentin) wrote :

Bob, do you mean the "two fingers" scrolling ?
If yes, it's back like the other "click and select"...

tags: added: utopic
Revision history for this message
ciaoquentin (ciaoquentin) wrote :

Today the "fixing 18#" problem is back : no more scrolling etc...
when i try
rm /etc/modprobe.d/psmouse.conf
it says "permission not granted"
I don't know waht to do to get my touchpad scrolling.

Revision history for this message
bob justo (lejustes32) wrote :

"when i try
rm /etc/modprobe.d/psmouse.conf"

have you done it as root ?

try this!
sudo rm -f /etc/modprobe.d/psmouse.conf

Revision history for this message
ciaoquentin (ciaoquentin) wrote :

try this!
sudo rm -f /etc/modprobe.d/psmouse.conf

Bob, it doesn't bring anything

Revision history for this message
Howy (howy1979) wrote :

It can be reproduce on HP NB.

The log file collected by this command :
nvidia-bug-report.sh

VGA: GeForce 830M
VGA Version: 340.32
VBIOS Version: 82.08.14.00.69
Ubuntu : 14.04 (3.13.0-37-generic)

Revision history for this message
Howy (howy1979) wrote :
Revision history for this message
uzi3k (uzi3k) wrote :

Same issue for me on 14.10, nvidia-331, GTX860M (PC Specialist Optimus 13.3) happening every 30 mins or so. Does not occur with with intel card or USB mouse. Does it happen on other linux distributions?

Revision history for this message
Vivian Stewart (vivichrist) wrote :

I had this problem pop up a while back with my old Gateway NV49C and I solved it by deleting the nvidia-settings file from my home directory.

currently I have this problem with my new ASUS X550LNV laptop but because I could switch terminals to fix it, it never occured to me that the bug could be the same (the old gateway had dead fn keys).

Revision history for this message
Aditya M (adix-me) wrote :

Confirming Bug using nvidia-prime on Kubuntu 14.10 & Ubuntu 14.10 using driver Nvidia-331.89, GT540M (Optimus) and ELAN trackpad on Acer 5755G. The freezing occurs when running on battery power in about every 2 to 5 minutes of usage in my case, Switching to and from VT only solution. On AC power the freezing generally occurs only once or twice in 24 hours.

Revision history for this message
KhoPhi (khophi) wrote :

Nvidia GT820M Using Nvidia 340.29 installed via Additional Drivers in Settings.
Ubuntu 14.04 LTS.

It freezes when I try opening menus or some 5-10 minutes into using the laptop. Using an external mouse, and laptop never freezes even for a millisecond.

The mousepad is the culprit. If I don't use the mousepad, nothing happen, even though its not disabled.

It doesn't bother me much, as I carry my bluetooth mouse with me anywhere I go ('Blendering' sake) but will be nice to have a solution to it.

Revision history for this message
TommyE (thomasellinger) wrote :

Same here!

Laptop Type: Clevo P170 SM
Graphics: Nvidia GeForce GTX 860M (using driver version 340.32)

Issue appers sporadic, only when using trackpad. Mostly when it first appeared, issue returns every 2-5 Minutes.

Is there something I can contribute to help tracking down the cause of this bug? It's annoying and I would love to see this beeing fixed after such a long time!

Revision history for this message
Loris Zinsou (nepenthes) wrote :

@TommyE : As this bug only happens with nvidia's closed source driver, you can only hope that the company will do something to fix it.
They acknowledged the bug's existence nearly 1 year after it was reported, had trouble to find the pattern (probably because nobody runs a desktop linux with an Optimus graphics card at nvidia), and now, maybe they will try to fix it.

Revision history for this message
Andrey Konstantinov (andreyinvolute) wrote :

@Loris: perhaps something can be done about the touchpad drivers instead to work around this while nVIDIA is working on the fix - if at all. There is no such thing as Optimus for desktops (sadly) and all they had to do is take any laptop with hybrid graphics and install Ubuntu to test.

Revision history for this message
Nicolas F (nicolasf) wrote :

People could try out https://github.com/BlueDragonX/xf86-input-mtrack and see if they get any mileage out of that. It's generally better than synaptics if it had proper hysteresis, however, I ran into problems with defining soft button zones on my clickpad. (It arranged them vertically as opposed to horizontally.)

Revision history for this message
ACOSW (acosw) wrote :

Ubuntu 14.10
- nvidia-331,
- kernel 3.17
- GPU - GTX 850M
Confirm bug!

Revision history for this message
Renji (romd996) wrote :

I have a Sager 8268-s / Clevo 150 running Ubuntu 14.10, nvidia 343 for GTX 870M.

The screen freeze is guaranteed to happen. It seems to be triggered when I am using the nvidia GPU and the touchpad. Using the Intel Graphics via prime-select prevents the screen freeze. I don't know if touchpad details would help with fixing this nvidia bug.

The touchpad is
I: Bus=0011 Vendor=0002 Product=0007 Version=01b1
N: Name="SynPS/2 Synaptics TouchPad"
P: Phys=isa0060/serio2/input0
S: Sysfs=/devices/platform/i8042/serio2/input/input10
U: Uniq=
H: Handlers=mouse0 event14
B: PROP=9
B: EV=b
B: KEY=6420 30000 0 0 0 0
B: ABS=260800011000003

01:00.0 VGA compatible controller: NVIDIA Corporation GK104M [GeForce GTX 870M] (rev a1) (prog-if 00 [VGA controller])
 Subsystem: CLEVO/KAPOK Computer Device 5281
 Flags: bus master, fast devsel, latency 0, IRQ 56
 Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
 Memory at e0000000 (64-bit, prefetchable) [size=256M]
 Memory at f0000000 (64-bit, prefetchable) [size=32M]
 I/O ports at e000 [size=128]
 [virtual] Expansion ROM at f7000000 [disabled] [size=512K]
 Capabilities: <access denied>
 Kernel driver in use: nvidia

Revision history for this message
Nikhil Mahale (nmahale) wrote :

Hi guys,

This is a xserver issue where timers-list gets corrupted because of race condition.
nVidia X-driver uses timer to update scanout surface after regular interval, this timer gets removed from timers list because of this timers-list corruption and desktop gets freezed. This is only happening with touch pad because touch pad driver is also heavily using timers, which is easily triggering this race condition.

xserver goes through following race condition -

        WaitForSomething()
        |
        ----> // timers -> synaptics-1 -> nvidia-2 -> null
               while (timers && (int) (timers->expires - now) <= 0)
                   // prototype - DoTimer(OsTimerPtr timer, CARD32 now, OsTimerPtr *prev)
                   DoTimer(timers, now, &timers)
                   |
                   |
                   ----> OsBlockSignals(); .... SIGIO OS Signal comes just before blocking it,
                                                               .... synaptics-1 handler gets called.
                                                              // synaptics-1 gets served and scheduled again;
                                                              // timers -> nvidia-2 -> synaptics-1 -> null
                                                              ....
                             *prev = timer->next;
                              timer->next = NULL; // timers -> null
                              // timers list gets corrupted here and nvidia-2 gets removed from list.

Attaching patch to fix this issue, its working for me.

Revision history for this message
Kyrillos (kmossad) wrote :
Download full text (3.2 KiB)

Nice work Mikhil! Can't wait to try the patch! Thank you for your efforts.
Everyone has been waiting for a resolution for quite some time.
On Nov 13, 2014 3:01 AM, "Nikhil Mahale" <email address hidden> wrote:

> Hi guys,
>
> This is a xserver issue where timers-list gets corrupted because of race
> condition.
> nVidia X-driver uses timer to update scanout surface after regular
> interval, this timer gets removed from timers list because of this
> timers-list corruption and desktop gets freezed. This is only happening
> with touch pad because touch pad driver is also heavily using timers, which
> is easily triggering this race condition.
>
> xserver goes through following race condition -
>
> WaitForSomething()
> |
> ----> // timers -> synaptics-1 -> nvidia-2 -> null
> while (timers && (int) (timers->expires - now) <= 0)
> // prototype - DoTimer(OsTimerPtr timer, CARD32 now,
> OsTimerPtr *prev)
> DoTimer(timers, now, &timers)
> |
> |
> ----> OsBlockSignals(); .... SIGIO OS Signal comes
> just before blocking it,
> ....
> synaptics-1 handler gets called.
> //
> synaptics-1 gets served and scheduled again;
> // timers ->
> nvidia-2 -> synaptics-1 -> null
> ....
> *prev = timer->next;
> timer->next = NULL; // timers -> null
> // timers list gets corrupted here and
> nvidia-2 gets removed from list.
>
> Attaching patch to fix this issue, its working for me.
>
>
> ** Patch added: "0001-os-Fix-timer-race-conditions.patch"
>
> https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1220426/+attachment/4259702/+files/0001-os-Fix-timer-race-conditions.patch
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1220426
>
> Title:
> [nvidia-prime]Freeze while using touchpad
>
> Status in “nvidia-graphics-drivers-319” package in Ubuntu:
> Triaged
> Status in “nvidia-graphics-drivers-331” package in Ubuntu:
> Triaged
> Status in “nvidia-graphics-drivers-343” package in Ubuntu:
> Triaged
> Status in “nvidia-prime” package in Ubuntu:
> Triaged
>
> Bug description:
> I'm using an Optimus laptop (Asus N43SL)
> nvidia-prime is installed, so my nvidia dedicated graphics card (GT
> 540m) is in use.
>
> Once in a while, my screen will freeze, only when I use my touchpad.
> This does not happen with my USB mouse.
> This does not happen either when I uninstall nvidia-prime and use my
> intel integrated graphics (HD3000).
>
> I can temporarily solve the issue by doing a VT switch.
>
>
> In the attached Xorg.0.log, you can see "synaptics: ETPS/2 Elantech
> Touchpad: touchpad found" each time I did a VT switch and regained control.
>
> To manage notifications about this bug go to:
>
> https://bugs.launch...

Read more...

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "0001-os-Fix-timer-race-conditions.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Michael Steenbeek (gymnasiast) wrote :

Thanks Nikhil!
Could you tell me which package in my Ubuntu 14.04 I should use this patch on to test it? (I have patched source code before and I can recover my system if it goes wrong.)

Revision history for this message
Nikhil Mahale (nmahale) wrote :

Apply it on xorg-server-source version 1.15.1-0ubuntu2.1

Changed in nvidia-graphics-drivers-319 (Ubuntu):
status: Triaged → Invalid
Changed in nvidia-graphics-drivers-331 (Ubuntu):
status: Triaged → Invalid
Changed in nvidia-graphics-drivers-343 (Ubuntu):
status: Triaged → Invalid
Changed in nvidia-prime (Ubuntu):
status: Triaged → Invalid
Changed in xorg-server:
assignee: nobody → Nikhil Mahale (nmahale)
Revision history for this message
laurence dawney (lozdawney) wrote :

Hi all
Having the same (I think) issue with my dell inspiron 15 7537 running mint 17 KDE x64
In my case though it only started happening when I installed WINE. Without WINE the system works fine with every nvidia driver i have tested. It seems to be the open source opencl packages. If I have the nvidia packages installed issue does not happen but with open source opencl packages freeze comes back...
Basically I have to choose between nvidia drivers or WINE (since wine wont install without open source opencl and wont let me switch to nvidia ones....)
I have not tried using mouse instead of trackpad as I dont have a mouse to try lol so dont know if system will run fine or not with trackpad disabled.
Hope this helps!

i5-4200u
intel hd4400 + nvidia gt750m
6gb ddr3

Revision history for this message
laurence dawney (lozdawney) wrote :

Packages in question are:
ocl-icd-libopencl1
ocl-icd-libopencl1:i386

Removing those two and installing nvidia-libopencl1-331 makes my system work, but no WINE sux!

Revision history for this message
Nikhil Mahale (nmahale) wrote :

What is next step here? do I need to file bug against xorg-server and send my patch upstream?

Revision history for this message
Loris Zinsou (nepenthes) wrote :

Either this, or you can directly ask for a patch review on the Xorg development mailing list (make sure your patch works with the latest xorg/xserver development version): http://lists.x.org/mailman/listinfo/xorg-devel

Revision history for this message
In , Nikhil Mahale (nmahale) wrote :

https://bugs.launchpad.net/bugs/1220426

This bug is root caused in xorg-server os layer, attaching patch to fix it and sending it to xorg-devel list.

Revision history for this message
In , Nikhil Mahale (nmahale) wrote :

Created attachment 109479
[PATCH] os: Fix timer race conditions

Revision history for this message
Nikhil Mahale (nmahale) wrote :

Bug filed against xorg-server - https://bugs.freedesktop.org/show_bug.cgi?id=86288
And patch is sent for review to the Xorg development mailing list.

Renji (romd996)
Changed in xorg-server:
assignee: Nikhil Mahale (nmahale) → nobody
importance: Undecided → Unknown
status: New → Unknown
Changed in xorg-server:
importance: Unknown → Critical
status: Unknown → Confirmed
Revision history for this message
uzi3k (uzi3k) wrote :

Is there an easy way for a non technical layman user to apply this patch? Will it eventually come to ubuntu 14.04/14.10?

Revision history for this message
Balazs Scheidler (bazsi) wrote :

Layman terms (on trusty):

Download patch from the bugzilla and place it in a file, let's say "foo.diff"

$ apt-get build-dep xorg-server
$ apt-get source xorg-server
$ cd xorg-server-1.15.1
$ patch -p1 < ../foo.diff
$ fakeroot debian/rules binary

This should eventually build a couple of .deb packages with the patch incorporated. It is running for me just now. So no news if it worked or not.

Also, it might make sense to modify debian/changelog and add your own version to make it possible to see the change by judging the version number. (e.g. debchange -i, edit and save)

Revision history for this message
Balazs Scheidler (bazsi) wrote :

The patch seems to have solved it for me.

Revision history for this message
Andrew Zabavnikov (zabavnikov) wrote :

Is there anybody willing to set up a PPA?

Revision history for this message
laurence dawney (lozdawney) wrote :

+1 for ppa...

Revision history for this message
benoit PAUL (paul-benoit) wrote :

+1 for a ppa, or for a more detailed procedure to apply this patch. Even if I'm not developer, I can follow some detailed technical procedures, but this one is not enough detailed for me (and probably some users who are waiting a solution to resolve this bug).

Thanks by advance.

Revision history for this message
laurence dawney (lozdawney) wrote :

+1 once again lol benoit hit the nail on the head....
if not a ppa then better instructions!
I imagine us few commenting here are just a tiny proportion of the affected people looking for a fix!

Revision history for this message
Michael Steenbeek (gymnasiast) wrote :

If the instructions are too difficult for you, you really should ask yourself whether you want take the (quite substantial) risk of modifying core packages of your installation. If you make an error, you risk making your installation unusable.

Also, setting up a PPA isn't really worth the effort: a fix has been found now, which means that it shouldn't take that long until a fixed Xorg package finds its way trough the regular updates.

Revision history for this message
Andrew Zabavnikov (zabavnikov) wrote : Re: [Bug 1220426] Re: [nvidia-prime]Freeze while using touchpad

Well, but (for example) no comments on freedesktop's bug tracker.

On Tue, Nov 18, 2014 at 10:12 PM, Michael Steenbeek <
<email address hidden>> wrote:

> If the instructions are too difficult for you, you really should ask
> yourself whether you want take the (quite substantial) risk of modifying
> core packages of your installation. If you make an error, you risk
> making your installation unusable.
>
> Also, setting up a PPA isn't really worth the effort: a fix has been
> found now, which means that it shouldn't take that long until a fixed
> Xorg package finds its way trough the regular updates.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1220426
>
> Title:
> [nvidia-prime]Freeze while using touchpad
>
> Status in X.Org X server:
> Confirmed
> Status in “nvidia-graphics-drivers-319” package in Ubuntu:
> Invalid
> Status in “nvidia-graphics-drivers-331” package in Ubuntu:
> Invalid
> Status in “nvidia-graphics-drivers-343” package in Ubuntu:
> Invalid
> Status in “nvidia-prime” package in Ubuntu:
> Invalid
>
> Bug description:
> I'm using an Optimus laptop (Asus N43SL)
> nvidia-prime is installed, so my nvidia dedicated graphics card (GT
> 540m) is in use.
>
> Once in a while, my screen will freeze, only when I use my touchpad.
> This does not happen with my USB mouse.
> This does not happen either when I uninstall nvidia-prime and use my
> intel integrated graphics (HD3000).
>
> I can temporarily solve the issue by doing a VT switch.
>
>
> In the attached Xorg.0.log, you can see "synaptics: ETPS/2 Elantech
> Touchpad: touchpad found" each time I did a VT switch and regained control.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/xorg-server/+bug/1220426/+subscriptions
>

Revision history for this message
Andrew Zabavnikov (zabavnikov) wrote :

And, also, thread on xorg-devel mailing list is dead, apparently.

On Tue, Nov 18, 2014 at 10:22 PM, Andrew Zabavnikov <email address hidden>
wrote:

> Well, but (for example) no comments on freedesktop's bug tracker.
>
> On Tue, Nov 18, 2014 at 10:12 PM, Michael Steenbeek <
> <email address hidden>> wrote:
>
>> If the instructions are too difficult for you, you really should ask
>> yourself whether you want take the (quite substantial) risk of modifying
>> core packages of your installation. If you make an error, you risk
>> making your installation unusable.
>>
>> Also, setting up a PPA isn't really worth the effort: a fix has been
>> found now, which means that it shouldn't take that long until a fixed
>> Xorg package finds its way trough the regular updates.
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https://bugs.launchpad.net/bugs/1220426
>>
>> Title:
>> [nvidia-prime]Freeze while using touchpad
>>
>> Status in X.Org X server:
>> Confirmed
>> Status in “nvidia-graphics-drivers-319” package in Ubuntu:
>> Invalid
>> Status in “nvidia-graphics-drivers-331” package in Ubuntu:
>> Invalid
>> Status in “nvidia-graphics-drivers-343” package in Ubuntu:
>> Invalid
>> Status in “nvidia-prime” package in Ubuntu:
>> Invalid
>>
>> Bug description:
>> I'm using an Optimus laptop (Asus N43SL)
>> nvidia-prime is installed, so my nvidia dedicated graphics card (GT
>> 540m) is in use.
>>
>> Once in a while, my screen will freeze, only when I use my touchpad.
>> This does not happen with my USB mouse.
>> This does not happen either when I uninstall nvidia-prime and use my
>> intel integrated graphics (HD3000).
>>
>> I can temporarily solve the issue by doing a VT switch.
>>
>>
>> In the attached Xorg.0.log, you can see "synaptics: ETPS/2 Elantech
>> Touchpad: touchpad found" each time I did a VT switch and regained control.
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/xorg-server/+bug/1220426/+subscriptions
>>
>
>

Revision history for this message
laurence dawney (lozdawney) wrote :

well...
I may not be a developer/programmer but I am a competent pc/laptop technician. So perhaps you should ask yourself:
If these instructions are too vague for me (and others here) to follow, then are they sufficient??
With all due respect of course.....

We were just asking for help. Was it really that much to ask?? Just a few lines of text?
Thanks for all you have done tho. I am sure we can all be productive and happy while our laptops/pc's freeze up while we are using them, or while using low performing and buggy drivers.

Revision history for this message
laurence dawney (lozdawney) wrote :

That last comment of mine was for Michael Steenbeek (gymnasiast) by the way....

Revision history for this message
Michael Steenbeek (gymnasiast) wrote :

@lozdawney:
"I am sure we can all be productive and happy while our laptops/pc's freeze up while we are using them, or while using low performing and buggy drivers."

Personally I would rather have a laptop with an annoying problem that can be worked around with a mouse (!) than rendering my entire system unusable by wrongly applying a patch to such an important package. Patching important system parts is not an easy task, and when you do it yourself you should know what you're doing and know what to do when things go wrong. I was simply trying to help, no need to get aggressive.

Revision history for this message
despian (mfamphlett) wrote :

Just my 2 cents but I agree with Michael.

On 18 November 2014 19:47, Michael Steenbeek <email address hidden>
wrote:

> @lozdawney:
> "I am sure we can all be productive and happy while our laptops/pc's
> freeze up while we are using them, or while using low performing and buggy
> drivers."
>
> Personally I would rather have a laptop with an annoying problem that
> can be worked around with a mouse (!) than rendering my entire system
> unusable by wrongly applying a patch to such an important package.
> Patching important system parts is not an easy task, and when you do it
> yourself you should know what you're doing and know what to do when
> things go wrong. I was simply trying to help, no need to get aggressive.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1220426
>
> Title:
> [nvidia-prime]Freeze while using touchpad
>
> Status in X.Org X server:
> Confirmed
> Status in “nvidia-graphics-drivers-319” package in Ubuntu:
> Invalid
> Status in “nvidia-graphics-drivers-331” package in Ubuntu:
> Invalid
> Status in “nvidia-graphics-drivers-343” package in Ubuntu:
> Invalid
> Status in “nvidia-prime” package in Ubuntu:
> Invalid
>
> Bug description:
> I'm using an Optimus laptop (Asus N43SL)
> nvidia-prime is installed, so my nvidia dedicated graphics card (GT
> 540m) is in use.
>
> Once in a while, my screen will freeze, only when I use my touchpad.
> This does not happen with my USB mouse.
> This does not happen either when I uninstall nvidia-prime and use my
> intel integrated graphics (HD3000).
>
> I can temporarily solve the issue by doing a VT switch.
>
>
> In the attached Xorg.0.log, you can see "synaptics: ETPS/2 Elantech
> Touchpad: touchpad found" each time I did a VT switch and regained control.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/xorg-server/+bug/1220426/+subscriptions
>

Revision history for this message
laurence dawney (lozdawney) wrote :

Michael steenbeek, I will have in a few days, I have one coming in the post for the very purpose.

And just so you know, I am a recent migrator to linux, and I was one of those that just dived in...
I am still learning my way round it, and how to do more advaanaced tasks. And it is bugs and problems exactly like this one that I welcome for that reason, because doing it is exactly how I learn to do more.
And I dont much care if I nuke my system, I have it partition seperately to save all my data and setting etc so I can just re-install the parts I need to and BOOM computer back!

Waiting for an automatic update when I could be (a) getting it done sooner, and (b) learning something in the process....
just seems silly.
So maybe you have a right to judge what people should or should not do with their own machines if they want to, or maybe not.
Or maybe you just dont like sharing?

Revision history for this message
laurence dawney (lozdawney) wrote :

and you were wrong by the way, it's not aggresion. it's indignance....

Revision history for this message
Gregory Kramida (algomorph) wrote :

Look, guys, can you please stop arguing and instigating? I don't think this is not the place to do so.
I believe everyone here is doing what they can on a voluntary basis, I personally am grateful for whatever is being done. I reiterate that every message posted here is also getting sent to over a hundred subscribers of this bug. Everyone is busy doing their work. Please be considerate.

Revision history for this message
laurence dawney (lozdawney) wrote :

My apologies. I just don't people looking down their nose at me, or get on with being told what I can/can't/should/shouldn't do with my own property.
That was the greater part of why I migrated to linux.. I preferred the open source philosophy.

Revision history for this message
Niels Mayer (nielsmayer) wrote :

No arguing or instigating from me, just thanking, because perhaps this patch is working. The only part not explained is that you don't need to apply the resultant .deb files which aren't part of the current Xorg install. In my case, 14.04LTS, only needed " sudo dpkg -i ./xserver-common_1.15.1-0ubuntu2.3_all.deb ./xserver-xorg-core_1.15.1-0ubuntu2.3_amd64.deb "

after doing:

xorg-server (2:1.15.1-0ubuntu2.3) UNRELEASED; urgency=medium

  * Patched per Balazs Scheidler (bazsi) https://bugs.launchpad.net/bugs/1220426
    - Layman terms (on trusty): Download patch from the bugzilla and place
 it in a file, let's say "foo.diff"
    - $ apt-get build-dep xorg-server
    - $ apt-get source xorg-server
    - $ cd xorg-server-1.15.1
    - $ patch -p1 < ../foo.diff
    - $ fakeroot debian/rules binary
    - This should eventually build a couple of .deb packages with the
 patch incorporated. It is running for me just now. So no news if
 it worked or not.
    - Also, it might make sense to modify debian/changelog and add your
 own version to make it possible to see the change by judging the
 version number. (e.g. debchange -i, edit and save)

 -- Niels P. Mayer <npm@gnuvelle> Mon, 17 Nov 2014 14:56:45 -0800

--------------------
npm@gnuvelle:~/Downloads$ sudo apt-get build-dep xorg-server
...
npm@gnuvelle:~/Downloads$ cd xorg-server-1.15.1/
npm@gnuvelle:~/Downloads/xorg-server-1.15.1$ patch -p1 < ../nvidia-psmouse.patch
patching file os/WaitFor.c
npm@gnuvelle:~/Downloads/xorg-server-1.15.1$ fakeroot debian/rules binary
...
npm@gnuvelle:~/Downloads$ ll *.deb
-rw-r--r-- 1 npm npm 823370 Nov 17 15:09 xdmx_1.15.1-0ubuntu2.3_amd64.deb
-rw-r--r-- 1 npm npm 138496 Nov 17 15:09 xdmx-tools_1.15.1-0ubuntu2.3_amd64.deb
-rw-r--r-- 1 npm npm 683040 Nov 17 15:09 xnest_1.15.1-0ubuntu2.3_amd64.deb
-rw-r--r-- 1 npm npm 6128668 Nov 17 15:09 xorg-server-source_1.15.1-0ubuntu2.3_all.deb
-rw-r--r-- 1 npm npm 1645058 Nov 17 15:08 xserver-common_1.15.1-0ubuntu2.3_all.deb
-rw-r--r-- 1 npm npm 896566 Nov 17 15:09 xserver-xephyr_1.15.1-0ubuntu2.3_amd64.deb
-rw-r--r-- 1 npm npm 1312066 Nov 17 15:09 xserver-xorg-core_1.15.1-0ubuntu2.3_amd64.deb
-rw-r--r-- 1 npm npm 3874916 Nov 17 15:09 xserver-xorg-core-dbg_1.15.1-0ubuntu2.3_amd64.deb
-rw-r--r-- 1 npm npm 289522 Nov 17 15:09 xserver-xorg-dev_1.15.1-0ubuntu2.3_amd64.deb
-rw-r--r-- 1 npm npm 104410 Nov 17 15:09 xserver-xorg-xmir_1.15.1-0ubuntu2.3_amd64.deb
-rw-r--r-- 1 npm npm 827668 Nov 17 15:09 xvfb_1.15.1-0ubuntu2.3_amd64.deb

Revision history for this message
Erno Kuusela (erno-iki) wrote :

End users: Please use another forum (eg. ubuntuforums) for user discussion talking about workarounds, manually applying the patch, "me toos", or other peripheral discussions.

This bug tracker is about developing Ubuntu, and now you are with all this chatter spamming countless developers whose efforts should be focused on getting this fixed inside Ubuntu and in xorg. Not to mention all us end users monitoring this bug and waiting the packages to be fixed, at least 167 of us going by the "affects" count.

Revision history for this message
Stefan Stefanov (s-stefanov) wrote :

All due respect to the "countless" developers that took 14 months to fix a critical bug affecting god knows how many Ubuntu releases but their job doesn't end with writing a patch. The patch needs to be made available to the majority of users which do not have the tech skills to apply it - either by means of a temp PPA or by means of writing PROPER instructions for compiling, upgrading and most importantly DOWNGRADING if their patch goes ka-boom. I see this very rarely happening on Launchpad so yes - people have the right to ask here what to do with this piece of code.

My 2 cents

Revision history for this message
Kyrillos (kmossad) wrote :

Has anyone been able to successfully compile with the patch? Towards the
end when I compile i get an error that I can't seem to work around.

*dpkg-shlibdeps: error: no dependency information found for
/usr/lib/libGL.so.1 (used by
debian/xserver-xorg-core/usr/lib/xorg/modules/extensions/libglx.so)*

Would someone be able to guide me around this?

On Wed, Nov 19, 2014 at 2:29 AM, Erno Kuusela <email address hidden> wrote:

> End users: Please use another forum (eg. ubuntuforums) for user
> discussion talking about workarounds, manually applying the patch, "me
> toos", or other peripheral discussions.
>
> This bug tracker is about developing Ubuntu, and now you are with all
> this chatter spamming countless developers whose efforts should be
> focused on getting this fixed inside Ubuntu and in xorg. Not to mention
> all us end users monitoring this bug and waiting the packages to be
> fixed, at least 167 of us going by the "affects" count.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1220426
>
> Title:
> [nvidia-prime]Freeze while using touchpad
>
> Status in X.Org X server:
> Confirmed
> Status in “nvidia-graphics-drivers-319” package in Ubuntu:
> Invalid
> Status in “nvidia-graphics-drivers-331” package in Ubuntu:
> Invalid
> Status in “nvidia-graphics-drivers-343” package in Ubuntu:
> Invalid
> Status in “nvidia-prime” package in Ubuntu:
> Invalid
>
> Bug description:
> I'm using an Optimus laptop (Asus N43SL)
> nvidia-prime is installed, so my nvidia dedicated graphics card (GT
> 540m) is in use.
>
> Once in a while, my screen will freeze, only when I use my touchpad.
> This does not happen with my USB mouse.
> This does not happen either when I uninstall nvidia-prime and use my
> intel integrated graphics (HD3000).
>
> I can temporarily solve the issue by doing a VT switch.
>
>
> In the attached Xorg.0.log, you can see "synaptics: ETPS/2 Elantech
> Touchpad: touchpad found" each time I did a VT switch and regained control.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/xorg-server/+bug/1220426/+subscriptions
>

Revision history for this message
laurence dawney (lozdawney) wrote :

Same error I got... except my system also wanted "gl".........
found nothing on google. found nothing with apt-cache or apt-file either! If you find a solution please report back as freezing is driving me bonkers and bumblebee just wont work for me either

Revision history for this message
laurence dawney (lozdawney) wrote :

and amen stefan, amen.

Revision history for this message
Stephen Gustafson (sgustafso) wrote :

I have been testing nmahale's patch the last couple of days.
It does indeed seem to have fixed the freezing.. However, in place of the freezing, I'm seeing the touchpad periodically stop responding to scroll and RMB clicks. This happens with extreme frequency. Usually once I start doing a scroll with two fingers, I can only scroll very briefly before the scrolling locks up. This tends to happen most frequently when cycling between windows.

I've tested booting to an ubuntu iso via usb, and the problem goes away.

Things I've found that unfreeze the touchpad include toggling the touchpad off/on, either via key command (fn+F9 on my laptop) or via 'modprobe -r psmouse; modprobe psmouse', or hitting the enter key. This happens inside of all applications, including browsers and terminals.

Not seeing anything useful in the logs. It's possible that this is an unrelated problem, but I've only been seeing it when running the patched xorg.

Linux 3.13.0-39-generic #66-Ubuntu SMP Tue Oct 28 13:30:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
KDE 4.13.3

Revision history for this message
Nikhil Mahale (nmahale) wrote :

Thanks Stephen for testing my patch.
does anybody has found similar issue with patch?

Revision history for this message
Niels Mayer (nielsmayer) wrote :

Nikhil (nmahale) -- thanks for your patch. In https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1220426/comments/201 I believed it worked, now I'm certain it fixes the freezing problem.

However, like 'sgustafso', I too noticed the eventual disappearance two-finger scrolling. I'm now testing edge scrolling setting from "Unity Tweak Tool", which perhaps generates fewer events (?).

Also, curious as to the role of "smartscroll", which is on by default:
"smartscroll:Logitech Smartscroll autorepeat, 1 = enabled (default), 0 = disabled. (bool)"

root@gnuvelle:/sys/module/psmouse/parameters# ls
proto rate resetafter resolution resync_time smartscroll
root@gnuvelle:/sys/module/psmouse/parameters# cat *
auto
100
5
200
0
Y

Revision history for this message
Stephen Gustafson (sgustafso) wrote :

The scroll problems seem to be related to the 'idle time' support of syndaemon that disables the touchpad briefly after typing. If I hit 'enter' to free up scrolling, then disable that feature entirely (via the kde touchpad config, which I assume is restarting the daemon with new settings), all of the scrolling issues go away. However, if scrolling isn't working when I disable that feature, then scrolling never unlocks. So definitely seems like the timer associated with that interval is never completing.

Although, strangely, when I do disable the interval (via the kde touchpad config), the typing still causes scrolling to be temporarily disabled...

Will dig a little deeper. But in the meantime, the xorg patch + disabling syndaemon typing intervals is the winning combo.

Revision history for this message
Nikhil Mahale (nmahale) wrote :

guys I am not able to reproduce any such issue about two-finger scrolling with patch; can somebody tell me exact reproduction step of issue?

Revision history for this message
Patrick Mertens (pmertens16) wrote :
Download full text (3.5 KiB)

Ok guys, I've had the same issue for a while now on my Asus K53S running various versions of Ubuntu now.
I've applied the patch to my Elementary OS Freya machine just now, and so far (for ~30 mins) it's working beautifully (Note it has crashed very early for me, often after a few seconds).
I'm writing some more detailed instructions for you, as I had some issues during patching as well, but before you read this I want to clarify that I am by no means
an advanced Linux user. These noob-friendly instructions should work on any Ubuntu 14.04 based distros, but please correct me if there are some unnecessary steps or something is wrong:

0. Prerequisites (I don't think you really need those if you know what you're doing :P)
Make sure you have an Internet connection and about 2GB of free disk space in your home directory.
Install the nvidia-331.38 driver, go into the NVIDIA X Server Settings app and select the Intel GPU under "PRIME Profiles" (enter superuser password and logout/reboot needed afterwards).

1. Enable software sources
Go to your Software Updater, go to Settings and check "Source code" under "Ubuntu Software" and under "Other Software",
check all PPAs suffixed with the "(Source Code)" just to be on the save side. (I assume only the ../yourOS/branch/ubuntu trusty main ones really matter).

2. Downloading the patch
Download or copy the patch text file (https://launchpadlibrarian.net/190259378/0001-os-Fix-timer-race-conditions.patch) into your Downloads folder and name it "nvidia-psmouse.patch".

3. Patching and Installation
For all of these you need a terminal (Ctrl+Alt+T), commands are prefixed with "foldername$ " so you know where you are ;). As usual, close any other programm, blabla.

Switch to the directory where you placed the patch file:
~$ cd ~/Downloads

Run an apt update to be save (takes a few secs):
~/Downloads$ sudo apt-get update

Build the needed dependencies (takes a few minutes, type "Y" to all questions):
~/Downloads$ sudo apt-get build-dep xorg-server

Get the source code of the packages we're going to patch (may take a bit):
~/Downloads$ sudo apt-get source xorg-server

There should now be a new folder inside your Downloads directory, move into it:
~/Downloads$ cd xorg-server-1.15.1

Apply the patch:
~/Downloads/xorg-server-1.15.1$ sudo patch -p1 < ../nvidia-psmouse.patch

Compile the patched source (this takes a looong time and prints loads of stuff, be patient):
~/Downloads/xorg-server-1.15.1$ sudo fakeroot debian/rules binary

Once that has finished, the compiled .deb files are in your Downloads, move into that dir:
~/Downloads/xorg-server-1.15.1$ cd ..

There should now be 11 "*.deb" files in that folder (run ll *.deb to check).
As nielsmayer pointed out we need to install only two: xserver-common_1.15.1 and xserver-xorg-core_1.15.1 (The exakt file names vary depending on your distro! Just type the first few letters and hit the TAB key to get them typing this command):
~/Downloads$ sudo dpkg -i ./xserver-common_1.15.1-0ubuntu2.3_all.deb ./xserver-xorg-core_1.15.1-0ubuntu2.3_amd64.deb

Once that has finished you can reapply your NVIDIA GPU in the X Server Settings, reboot and if all worked well you should have...

Read more...

Revision history for this message
laurence dawney (lozdawney) wrote :

Thank you Patrick Mertens! I was about to throw in the towel an re-install win8.1...... you may yet have saved me a fate worse than downgrading to a calculator lolol trying your guide now, and if successful will report back results for the devs :)
Thanks again dude.. you rock! :)

Revision history for this message
laurence dawney (lozdawney) wrote :

Patch applied, tested and working perfectly :)
Been testing for over two hours now and hasn't missed a beat! no freezing, no issues of any kind with touchpad.
Thank you Nikhil Mahale for the patch and Patrick Mertens for the guide :)

Dell Inspiron 15 7537
intel 4400/nvidia GT750m
synaptics touchpad
Linux Mint 17 x64 KDE, kernel 3.17.4

Tested with nvidia-331 drivers, will try also 340 and 346 (xedgers) tomorrow
Thanks again guys! :)

bluevector (ballifatih)
Changed in nvidia-prime (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
laurence dawney (lozdawney) wrote :

ok, so this patch is definitely working this end.. no troubles at all now :)
Just in case anyone else wants to try it but would rather avoid the patching/compiling bit, I have uploaded the two needed packages to my 4shared account.

http://www.4shared.com/file/0NElCvFjba/xserver-common_1151-0ubuntu21_.html
http://www.4shared.com/file/urxSMN3Rba/xserver-xorg-core_1151-0ubuntu.html

Revision history for this message
Fethi DILMI (addictcook) wrote :

Confirming the bug with NVidia GTX 770 on MSI GT60-20C

Revision history for this message
Stephen Gustafson (sgustafso) wrote :

nmahale, on further inspection, I think the scrolling problems I was seeing were caused by conflicting services.
The kde touchpad config manages the feature of disabling the touchpad during typing by installing a 'kded' service. This basically consists of a QTImer tied to keyboard events to enable/disable the synaptics touchpad. Meanwhile, syndaemon has a similar feature built in, which is enabled by default (at a 2sec delay). This is why I was still seeing the feature in effect after disabling it in the kde touchpad config dialog.
So, seems likely that there's a conflict between these two daemons. I've encountered no problems since disabling the kded service (relying solely on syndaemon).

However, even if two services were running... it seems like they'd both operate by trying to enable the touchpad after a fixed interval. There shouldn't be a problem with two services trying to re-activate the touchpad at the same time, right? Two services sending an activation signal at the same time shouldn't cause the activation to be lost. Maybe there's some problem there worth exploring, but it's undesirable to have redundant services anyway...

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers-346 (Ubuntu):
status: New → Confirmed
Revision history for this message
Nikhil Mahale (nmahale) wrote :

Thanks Stephen for clarification.
I have sent patch for review on xorg-devel, let's see when that is getting merged with main-line.

Revision history for this message
Aaron Plattner (aplattner) wrote :

Fixing the bug status again. I don't know why this keeps getting reopened as an nvidia-prime or graphics driver bug.

Changed in nvidia-graphics-drivers-346 (Ubuntu):
status: Confirmed → Invalid
Changed in nvidia-prime (Ubuntu):
status: Confirmed → Invalid
Changed in nvidia-drivers-ubuntu:
status: New → Invalid
Revision history for this message
hypha (ramble-dalloway) wrote :

Thanks Nikhil Mahale! Can confirm that your patch solved the random freeze problem.

penalvch (penalvch)
no longer affects: nvidia-prime (Ubuntu)
no longer affects: nvidia-graphics-drivers-346 (Ubuntu)
no longer affects: nvidia-graphics-drivers-343 (Ubuntu)
no longer affects: nvidia-graphics-drivers-331 (Ubuntu)
no longer affects: nvidia-graphics-drivers-319 (Ubuntu)
Revision history for this message
penalvch (penalvch) wrote :

As per NVIDIA upstream, this was originating bug report for fix in https://bugs.freedesktop.org/show_bug.cgi?id=86288 -> Triaged.

affects: nvidia-drivers-ubuntu → xorg-server (Ubuntu)
Changed in xorg-server (Ubuntu):
status: Invalid → New
importance: Undecided → Low
status: New → Triaged
penalvch (penalvch)
description: updated
tags: added: cherry-pick
Revision history for this message
Thomas (camminady-thomas) wrote :

After doing an "sudo apt-get update/upgrade" the applied patch is no longer working. Is there any way around this?

Revision history for this message
Niels Mayer (nielsmayer) wrote :

To Thomas (camminady-thomas): just make sure not to upgrade recent upgrade packages: xserver-common xserver-xorg-core which would overwrite the patched packages.
Fortunately I noticed this would happen before I upgraded and intervened.

TBD: see if my instructions at #201 apply to the version-number presented in the new security patch for the X server.

Revision history for this message
Mike (mickael-saavedra) wrote :

I can confirm that the instructions you provided at #201 apply to the latest build for the X server. Too bad we still have to reapply the patch manually and recompile everything again so far.

Revision history for this message
Pépou (yannickw24) wrote :

This step :

Compile the patched source (this takes a looong time and prints loads of stuff, be patient):
~/Downloads/xorg-server-1.15.1$ sudo fakeroot debian/rules binary

Doesn't work anymore on my computer :(

make[1]: entrant dans le répertoire « /home/yannick/Dropbox/Documents/Ubuntu/Scripts/Patch nvidia/xorg-server-1.15.1/build-main »
make[1]: *** Pas de règle pour fabriquer la cible « nvidia/xorg-server-1.15.1/debian/tmp/main ». Arrêt.
make[1]: quittant le répertoire « /home/yannick/Dropbox/Documents/Ubuntu/Scripts/Patch nvidia/xorg-server-1.15.1/build-main »
make: *** [install] Erreur 2
rm stampdir/configure-main stampdir/configure-udeb
yannick@yannick-K53SD:~/Dropbox/Documents/Ubuntu/Scripts/Patch nvidia/xorg-server-1.15.1$

Revision history for this message
Aaron Plattner (aplattner) wrote :

Does it work if you use a path that doesn't have any spaces in it?

Revision history for this message
navidR (navidr) wrote :

@Patrick Mertens thank you for you great information , it would be great if you could provide compile step too , I didnt found anything useful in Makefile's

Revision history for this message
navidR (navidr) wrote :

sorry for commenting junks , It works now , ( I was looking for a "make compile" , instead of "fakeroot debian/rules binary"
, thanks @Patrick and @nmahal , good works

Revision history for this message
davide (davicaputo) wrote :

I experienced the same problem (with touchpad records in Xorg.0.log) on my laptop MSI GP60 2PE. This:
https://answers.launchpad.net/ubuntu/+source/xserver-xorg-input-synaptics/+question/176273
at #7 solved my problem.

I hope this helps.

Revision history for this message
Santiago Gala (sgala) wrote :

I'm seeing this very same bug on a fresh install on a Asus A53J, quite similar hardware (Elantech, NVIDIA Corporation GF119M [GeForce GT 520M] (rev a1))

Any possibility to have it solved without loosing features? It is very annoying see the touchpad freeze every few minutes. Removing the option to "deactivate while typing" reduces the freeze frequency, but I NEED the two finger scrolling for productivity, and this one makes it freeze less often, but still enough...

Revision history for this message
Erwan (oner) wrote :

Same bug after fresh linuxmint rebecca install, also Alt+Ctrl+Fx Alt+Ctrl+F7 to resume, no test with external mouse

Asus K93SV
NVIDIA Corporation GF108M [GeForce GT 540M] (rev a1)
 ETPS/2 Elantech Touchpad

Thanks for the .deb #215 from laurence
It fix the problem.. After that touchpad reaky sensible at scrolling, fix it changing in 2 fingers scrolling

http://www.4shared.com/file/0NElCvFjba/xserver-common_1151-0ubuntu21_.html
http://www.4shared.com/file/urxSMN3Rba/xserver-xorg-core_1151-0ubuntu.html

Thanks a lot

Revision history for this message
laurence dawney (lozdawney) wrote :

Hi Erwan
Glad it helped that I uploaded the patched packages :)
Thanks and kudos to the author of the patch, and the helpful guy who posted the clear instructions!

For the dev's...
On my hardware (specs n info on a previous post) I have no trouble at all so far with touchpad while using the patch. All is gravy...
 :)

Revision history for this message
laurence dawney (lozdawney) wrote :

Ooops..
Am now on 17.1 Rebecca, still no issues :)

Revision history for this message
Mauro S (mauro-salvini) wrote :

Clevo laptop, Ubuntu 14.10, NVidia GEForce GTX870M with nvidia 331.113-update drivers (selected from system settings) plus Intel integrated graphics, same issue.

VT switching and external USB mouse workarounds work.

I have another Clevo laptop identical but with NVidia GEForce GTX970M instead, nouveau drivers, no freezes using touchpad.

Unfortunately I cannot try nouveau on GTX870M because isn't supported.

Any news about applying laurence's patch to xserver?

Revision history for this message
laurence dawney (lozdawney) wrote :

Patch is not mine...
I just applied the patch to the packages and uploaded them for others to use!
Credit for the patch is not mine!

Revision history for this message
Mauro S (mauro-salvini) wrote :

Sorry.
My apologizes to the patch author. Credits to the patch to him.

Revision history for this message
Leslie Solorzano (zloy-smiertniy3) wrote :

Happens to me with my NVIDIA GeForce GT 750M. Happens even using usb mouse. I am using dual screen and one screen freezes the other dies. I am connecting by minhd port because my screen does not have hdmi enabled.

Revision history for this message
Deian (dan-koschier) wrote :

Bug confirmed on laptop ASUS U36JC with Nvidia GT218M [GeForce 310M].

Im on Ubuntu 14.10 and the provided debs caused the boot to fail, meaning that the system froze during boot.
I had to reinstall the original packages from a chroot environment in order to repair the system. Did anyone
experience these issue?

I downloaded the xserver-xorg-core sources through apt and applied the patch but I am not sure how to build
the ubuntu-style debs.

Revision history for this message
susis strolch (susis-strolch) wrote :

Same issue on laptop MEDION Erazer x7831 with Nvidia GK104M [GeForce GTX 880M] on Linux Mint 17.1 Cinnamon 2.4.6 64-bit. Nivdia driver is 340.76.

Revision history for this message
Matthew Haughton (snafu109) wrote :

A fix has been merged: http://cgit.freedesktop.org/xorg/xserver/commit/?id=fe4c774c572e3f55a7417f0ca336ae1479a966ad

This will be part of xserver 1.17. Hopefully the patch can be backported?

Revision history for this message
In , Matthew Haughton (snafu109) wrote :

Now patch is merged, should status be updated?

Reference: http://cgit.freedesktop.org/xorg/xserver/commit/?id=fe4c774c572e3f55a7417f0ca336ae1479a966ad

It would be great to update status so this flows to Ubuntu's bug tracker.

Revision history for this message
In , Aaron Plattner (aplattner) wrote :

Yeah, it should. Thanks for the ping.

Marking fixed with commit fe4c774c572e3f55a7417f0ca336ae1479a966ad
Author: Nikhil Mahale <email address hidden>
Date: Sat Jan 24 17:06:59 2015 -0800

    os: Fix timer race conditions

    Fixing following kind of race-conditions -

        WaitForSomething()
        |
        ----> // timers -> timer-1 -> timer-2 -> null
               while (timers && (int) (timers->expires - now) <= 0)
                   // prototype - DoTimer(OsTimerPtr timer, CARD32 now, OsTimerPtr *prev)
                   DoTimer(timers, now, &timers)
                   |
                   |
                   ----> OsBlockSignals(); .... OS Signal comes just before blocking it,
                                            .... timer-1 handler gets called.
                                                 // timer-1 gets served and scheduled again;
                                                 // timers -> timer-2 -> timer-1 -> null
                                            ....
                         *prev = timer->next;
                          timer->next = NULL; // timers -> null
                          // timers list gets corrupted here and timer-2 gets removed from list.

    Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=86288
    Signed-off-by: Nikhil Mahale <email address hidden>
    Reviewed-by: Julien Cristau <email address hidden>

    v2: Apply warning fixes from Keith Packard <email address hidden>

    Reviewed-by: Aaron Plattner <email address hidden>
    Signed-off-by: Aaron Plattner <email address hidden>
    Signed-off-by: Keith Packard <email address hidden>

 os/WaitFor.c | 41 ++++++++++++++++++++++++++---------------
 1 file changed, 26 insertions(+), 15 deletions(-)

Changed in xorg-server:
status: Confirmed → Fix Released
Revision history for this message
William Tyler Sontag (wtsontag) wrote :

I'm getting this problem since upgrading from nouveau to nvidia 331, how which version of xorg-server is this in? can someone link me to an article on how to update xorg-server to a pre-release version?

Revision history for this message
uzi3k (uzi3k) wrote :

Will this fix come to 14.04 automatically?

Revision history for this message
Matthew Haughton (snafu109) wrote :

Here's a debdiff with the upstream patch, for vivid.

org-server (2:1.16.2.901-1ubuntu5) vivid; urgency=low

  * debian/patches/os-fix-timer-race-conditions.patch: fix a race condition
    triggered when using certain touchpads with Nvidia GPUs (LP: #1220426)

Revision history for this message
Matthew Haughton (snafu109) wrote :

Sorry, not sure why the debdiff wasn't added directly to the previous comment. The debdiff in question was added as a patch and is titled "debdiff from xorg-server_1.16.2.901-1ubuntu4"

Also the first line of the changelog in the previous comment should start with "xorg-server" not "org-server". It's correct in the debdiff.

tags: added: patch-accepted-upstream pointer vivid
Revision history for this message
Andreas Persson (andreaspersson989) wrote :

I am now on ubuntu 15.04. but I still have the problem? When will the fix be commited? How do I manually commit the fix?

Revision history for this message
marco07 (mahmood-arbab) wrote :

Same issue here on a Lenovo thinkpad T540p, KUbuntu 14.04.2, Nvidia GT 730M using nvidia-331.113 driver. I can not install the two patches refered to in above post #232. Muon says a higher version of each package is already installed.

tags: removed: saucy
Revision history for this message
Matthew Haughton (snafu109) wrote :

I have created a PPA for those using Vivid. The only change is the addition of the upstream patch. https://launchpad.net/~snafu109/+archive/ubuntu/xorg-server

This may be useful for users on Utopic too since both use xserver-xorg 1.16, but there are no guarantees. I installed the package built for Vivid on my machine running Utopic and didn't experience any problems, and it fixed the freezing issue for me as expected.

I can't provide any support for this, sorry. But please comment if you're using Vivid and you try this, whether it does or does not fix the issue.

The debdiff I attached (see comment 247) contains the patch that was applied to the package provided in the PPA. If you try the PPA and it works, that validates the patch I provided.

Revision history for this message
Andreas Persson (andreaspersson989) wrote :

I am running ubuntu 15.04 vivid and have installed the ppa mentioned in #251.

I can confirm the patch is working so far. No freezes yet after I installed the patch. from the ppa .

Revision history for this message
Michael Carpenter (mcarpent) wrote :

I installed the patched debs from #251 on Utopic, as well as the nvidia drivers today. Everything seems to be working so far.

Thumbs up!

Revision history for this message
Dmitry Vasiliev (scythargon) wrote :

@mcarpent #253
Sorry, could you please explain how exactly you did it?

Revision history for this message
cl-netbox (cl-netbox) wrote :

Upgrading to xserver-common 1.16.1.901 and xserver-xorg-core 1.16.1.901 did not solve the problem.
Ubuntu 14.10 still randomly freezes on Clevo W370SS when using NVIDIA card and Synaptics Touchpad.

Revision history for this message
Matthew Haughton (snafu109) wrote :

@cl-netbox are you using the packages from my PPA, or the packages from vivid? i.e. is the full version number 2:1.16.2.901-1ubuntu4 (vivid) or 2:1.16.2.901-1ubuntu5 (my PPA)?

Revision history for this message
Alexander Baldwin (mynameiszanders-w) wrote :

Confirmed on HP ENVY 17 (J130EA) with 14.10 x64. VT switch workaround does not work, nor any patches I've tried.

Also seems to be the case on my desktop (custom build, non-nVidia graphics card, USB mouse and PS/2 keyboard).

Revision history for this message
Benjamin Lee (benjaminlee) wrote : Re: [Bug 1220426] Re: [nvidia-prime]Freeze while using touchpad

Alexander,

Have you tried with xorg-server 1.17.x?

sudo add-apt-repository -y ppa:mlankhorst/ppa
sudo perl -pi.vivid -e 's/utopic/vivid/' /etc/apt/sources.list.d/mlankhorst-ubuntu-ppa-utopic.list
sudo apt-get update
sudo apt-get -y install xserver-xorg-core

On Wednesday, 2015-03-04 at 07:29:13 PM, Alexander Baldwin scribbled:
> Confirmed on HP ENVY 17 (J130EA) with 14.10 x64. VT switch workaround
> does not work, nor any patches I've tried.
>
> Also seems to be the case on my desktop (custom build, non-nVidia
> graphics card, USB mouse and PS/2 keyboard).
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1220426
>
> Title:
> [nvidia-prime]Freeze while using touchpad
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/xorg-server/+bug/1220426/+subscriptions
>

--
Benjamin Lee mailto:<email address hidden>
Melbourne, Australia http://www.realthought.net
Linux / BSD / GNU tel:+61 4 16 BEN LEE

Open Source "para nuestro mundo"
__________________________________________________________________________
If you want to know how old a man is, ask his brother-in-law.

Revision history for this message
Gregory Kramida (algomorph) wrote :

Alexander,

what exactly is happening to your desktop? This bug is symptomatic on laptops with touchpads & nvidia graphics cards, USB mice seem to be the the work-around and non-NVidia cards seem to be OK. Perhaps it's a different bug that's affecting your desktop?

Revision history for this message
cl-netbox (cl-netbox) wrote :

@snafu109 I used 2:1.16.1.901-1ubuntu1
from xorg-edgers (copied from vivid).
I also tried 2:1.16.2.901-1ubuntu4
(original ubuntu vivid packages).

Revision history for this message
Matthew Haughton (snafu109) wrote :

@cl-netbox thanks. I just wanted to know if you've tried my PPA and were still affected by the issue. Since you haven't, so far that means 3 successes with vivid packages modified with the upstream patch (me, plus confirmations in #252 and #253) and no failures.

Revision history for this message
Nima (nima-slt) wrote :

Same problem:
Nvidia driver: 331.113
GeForce GT 740M
on Thinkpad Laptop of Lenovo E531

Revision history for this message
Zermelo (zerm3lo) wrote :

@snafu109

I'm guessing now but will the Vivid deb package work on Trusty?

Revision history for this message
Keith Helms (kfh-junk) wrote :

I recently installed Ubuntu 14.04.2 and the release notes include "In an effort to support a wider variety of hardware on an existing LTS release, the 14.04.2 point release will ship with an updated kernel and X stack by default. This newer hardware enablement stack will be comprised of the kernel and X stack from the Utopic 14.10 release. "

I was able to build and use the patch on my Xubuntu 14.04 system, but I get errors following the instructions on Ubuntu 14.04.2.

"sudo apt-get build-dep xorg-server" gives me:
The following packages have unmet dependencies:
 libegl1-mesa : Depends: libgbm1 (>= 7.11~1) but it is not going to be installed
 libqt5gui5 : Depends: libgbm1 (>= 8.1~0) but it is not going to be installed

If I download xorg-server-source, that's the 1.15.1 version and it doesn't match what I'm running (1.16.0), right? I tried downloading the xorg-server-source-lts-utopic package, but it won't build.

"sudo fakeroot debian/rules binary" gives me:
debian/rules:17: /usr/share/quilt/quilt.make: No such file or directory
make: *** No rule to make target `/usr/share/quilt/quilt.make'. Stop.

I tried adding the PPA using utopic main and when I selected the xorg-common package from it, it appeared it was going to uninstall dozens of packages, so I didn't proceed with that.

How do I get this working on 14.04.2?

Revision history for this message
Keith Helms (kfh-junk) wrote :

Okay, I got a lot further this time. Instead of

sudo apt-get build-dep xorg-server

I used

sudo apt-get build-dep xorg-server-lts-utopic

That installed a bunch of additional packages. When I executed the "sudo fakeroot debian/rules binary" command it ran for a few minutes, spit out thousands of lines of output, and appeared to compile dozens or hundreds of modules. However it got to a point where it failed with the following messages:

dh_shlibdeps
sed -i 's/libgl1-mesa-glx /libgl1-mesa-glx-lts-utopic /' -i debian/xserver-xorg-core-lts-utopic.substvars
sed: can't read debian/xserver-xorg-core-lts-utopic.substvars: No such file or directory
make[1]: *** [binary-deb] Error 2

Any suggestions of how to get past this?

Revision history for this message
Maarten Lankhorst (mlankhorst) wrote :

Try building with dpkg-buildpackage -b.

Revision history for this message
Keith Helms (kfh-junk) wrote :

Try building with dpkg-buildpackage -b.

That command appears to complete with no errors. Afterwards I have the following .deb files in the parent directory:

xorg-server-source-lts-utopic_1.16.0-1ubuntu1.2~trusty2_all.deb
xserver-xephyr-lts-utopic_1.16.0-1ubuntu1.2~trusty2_amd64.deb
xserver-xorg-core-lts-utopic_1.16.0-1ubuntu1.2~trusty2_amd64.deb
xserver-xorg-core-lts-utopic-dbg_1.16.0-1ubuntu1.2~trusty2_amd64.deb
xserver-xorg-dev-lts-utopic_1.16.0-1ubuntu1.2~trusty2_amd64.deb
xwayland-lts-utopic_1.16.0-1ubuntu1.2~trusty2_amd64.deb

The instructions from Patrick Mertens in posting #212 said

There should now be 11 "*.deb" files in that folder (run ll *.deb to check).
As nielsmayer pointed out we need to install only two: xserver-common_1.15.1 and xserver-xorg-core_1.15.1 (The exakt file names vary depending on your distro! Just type the first few letters and hit the TAB key to get them typing this command):
~/Downloads$ sudo dpkg -i ./xserver-common_1.15.1-0ubuntu2.3_all.deb ./xserver-xorg-core_1.15.1-0ubuntu2.3_amd64.deb

There is an xorg-core deb, but no xserver-common deb. Should I install the xephyr deb instead? The xwayland one?

Revision history for this message
chris (viscousplacebo-7) wrote :

Woooo! It seems to be fixed, on my Utopic installation, using the X server from the deb file
in post #251. Cheers guys!

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

vivid has 1.17 which includes the patch

Changed in xorg-server (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xorg-server (Ubuntu Trusty):
status: New → Confirmed
Revision history for this message
Ismael Figueroa (ifigueroap) wrote :

Any chance to have a backport to 14.04.2?

Revision history for this message
Siddharth (siddarth-kumart) wrote :

Same problem here. Laptop freezes randomly when using the Nvidia card as primary. Problem can be rectified by Ctrl+Alt+F1 and Ctrl+Alt+F7 combo. But it's so annoying since this process takes about a minute for the display o come back. I have switched to the Inbuilt Intel graphics due to this issue. Hopefully there will be fix out soon

laptop: Dell L502X
Graphics Card : GT 525M
OS : Ubuntu 14.04 LTS

Revision history for this message
Philippe Le Toquin (ppmt) wrote :

I am glad I finally found this bug...it has been bugging me for some time. I got around it by only using the Integrated Intel card by using the nvidia-setting but it s frustrating not to be able to use my Nvidia card

Laptop : Asus-G750JW
Video card : Nvidia GeForce GTX 860M

Driver is 331.113

using Ubuntu 14.10

Changed in xorg-server (Ubuntu Trusty):
status: Confirmed → Fix Committed
Revision history for this message
uzi3k (uzi3k) wrote :

Does fix committed mean that we will see this in 14.04?

Revision history for this message
Mauro S (mauro-salvini) wrote :

Clevo laptop, Ubuntu 14.10, NVidia GEForce GTX870M with nvidia 331.113-update driver, packages from PPA in comment #251 works fine.
Bug disappeared, now touchpad+Nvidia card works withut freezes.
Thanks

Revision history for this message
Rulon Oboev (rulon-oboev) wrote :

Ubuntu 14.10, same problem here.

GeForce 820M, nvidia 331.113-update

Revision history for this message
Emmet Caulfield (emmetcaulfield) wrote :

Me too: Ubuntu 14.04, GeForce GTX 680M, nvidia 346.46

Revision history for this message
Heinz Peter Hippenstiel (hphde) wrote :

Mh, I hate 4share - full of ads. I've compiled the files under MINT 17.1 and uploaded them to my space under http://j0t.de/gfx/ namely xserver-common_1.15.1-0ubuntu2.7_all.deb and xserver-xorg-core_1.15.1-0ubuntu2.7_amd64.deb

Looks good since two days for me. *thumbsup*

Don't forget to lock the versions or the next update will overwrite the files.

HP

Revision history for this message
Rowland Barkley (masterexorcist) wrote :

I am affected by this bug on a Dell E6520 using Ubuntu 14.04.

Use of the trackpoint freezes the system, maybe every minute. Pressing Ctrl-Alt F1 followed by Ctrl-Alt F2 unfreezes it. Only solution right now is an external mouse.

Revision history for this message
Bobrowicz Pawel (coolbober) wrote :

NVIDIA 740M same problem.

Changed in xorg-server (Ubuntu Trusty):
status: Fix Committed → Fix Released
Revision history for this message
Rowland Barkley (masterexorcist) wrote :

How can the fix be installed in Ubuntu 14.04?

"Additional Drivers" still only finds version Nvidia version 331.113

Revision history for this message
stephane (ste-goldstein) wrote :

Same for Asus K550JK (GTX 850M)
Ubuntu 14.04.2 fresh install.

@ Keith Helms #267
Have you managed to fix it in 14.04.02 ?

Revision history for this message
Sun Shiranui (happymaskmac) wrote :

I just checked and I'm still having this issue using elementary OS Freya (based on Ubuntu 14.04 LTS).

Revision history for this message
Ken (kenaycock) wrote :

Same problem, resolved via VT.

Ubuntu 14.04, 640M, 331.20 drivers.

Any chance the patch will get pushed to the official repos soon? (fingers crossed)

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

no reason to close this for trusty as noone has done the work to backport the commit there..

this is fixed in 15.04 and up, and will be included in the lts-vivid backport stack which is used by default in 14.04.3 installer images

Changed in xorg-server (Ubuntu Trusty):
status: Fix Released → Triaged
Revision history for this message
Sebastien Bacher (seb128) wrote :

(unsubscribing sponsors, there is nothing left to sponsor)

Revision history for this message
Kyle (agronick) wrote :

What would happen if I installed this on Freya? Would it break stuff?

Revision history for this message
Heinz Peter Hippenstiel (hphde) wrote :

Not one single freeze within the last six weeks! Yipieh!

I guess the packages I compiled will work under Ubuntu 14.04(.x) also since MINT 17.1 it's just another layer on top of it.

HP

Revision history for this message
Patrick Wiesen (patrick-wiesen) wrote :
Revision history for this message
Kyle (agronick) wrote :

I just wanted to update. Its not fixed on EOS Freya.

Revision history for this message
Heinz Peter Hippenstiel (hphde) wrote :

The freezes re-appeared about 10-14 days ago. I whent back to standard packages and try https://bugs.launchpad.net/xorg-server/+bug/1220426/comments/18

Revision history for this message
bob justo (lejustes32) wrote :

Upgrading to xorg-1.16.4, the big disappears!
NO more freeze within 8 days.

Revision history for this message
Jean Jordaan (jean-jordaan) wrote :

I'm on Asus UX303LB, with NVIDIA GM108M [GeForce 940M], using nvidia-346 version 346.59.
I don't see any correlation with touchpad use.
In my case, window or application switching (alt-tab) is often very unresponsive (e.g. have to hold down alt-tab for 14 seconds before the switcher appears) (about 10 seconds in, a half-faded-in switcher appears).
Also, switching workspaces is often super unresponsive, freezing before jerking to the next workspace, or freezing halfway between workspaces.
In all cases, normal functioning resumes after 5-10 seconds frozen.

Revision history for this message
Stefan (stefan-luer) wrote :

Solved for my HP Compaq nx6125.
No more freezes since I applied #18.
Thank you very much!!!

Revision history for this message
Vassil Filipov (vakko-vakko) wrote :

So i just experienced a freeze (I normally use the intel card and a mouse) and i found out about this bug; Why the hell haven't they merged the patch yet???! There's a patch for like 10 months and nothing happens? I just received an xorg update and thought that it would have the fix but NO it doesn't.. building now ... one can only guess how many people suffer from this and they don't even know how to apply a patch :(

Revision history for this message
Rowland Barkley (masterexorcist) wrote :

I am one of those who does not know how to apply a patch, so often have to get around this bug using Ctrl+Alt+F1 and Ctrl+Alt+F7, or external USB mouse. In general I am very pleased how much faster bugs get fixed in Ubuntu than in commercial operating systems. But this one has continued for over a year.

Revision history for this message
Alex Fisher (alefisherx) wrote :

#251 worked for me!
ThinkPad T440s/Ubuntu 14.04 LTS/Nvidia Geforce GT 730M/Driver Version: 346.82
#251's link explains how to do if you read if carefully.

Revision history for this message
Alex Fisher (alefisherx) wrote :

 said in #300 that it has been fixed but still it freezes from time to time, but much better than before.

Revision history for this message
James (jamesrobertmooney) wrote :

I have the same problem, or, at least, a similar one. My system is: HP Pavilion dm1 / Ubuntu 14.04.3 LTS / Radeon HD 6320 graphics / PS/2 Synaptics TouchPad.

My touchpad stops working periodically. A display swap (CTRL+ALT+f1 etc.) *sometimes* solves the problem, but I'm also finding that sometimes my keyboard stops working at the same time - which of course means that I can't swap displays using the keyboard. The problem does seem to be solved by connecting a USB mouse and a USB keyboard - but as it's a laptop I can't always do that.

I have tried the solution suggested at post #18. This worked very briefly, but before long the touchpad and (non-USB) keyboard stopped working again.

I have briefly looked at the solution suggested at post #251. Pardon my ignorance as a relative novice, but do I need to compile the package at https://launchpad.net/~snafu109/+archive/ubuntu/xorg-server ? I've added the PPA address as instructed, but I'm guessing that's not all I need to do?

If someone could help with this I'd be very grateful.

Revision history for this message
Chucky (lechuck) wrote :

Bug is still alive in october 2015: it is nearly 25 months old ! The problem still arises with a fully up to date 14.04.

Config here:
Nvidia GTX 950M + Integrated Intel
Asus ROG G551J

Revision history for this message
Chucky (lechuck) wrote :

Note: Bug is still alive in october 2015 - that is nearly 25 months old !

== My config
Fully up to date 14.04.
Nvidia GTX 950M + Integrated Intel
Asus ROG G551J
Elantech Touchpad

== Elantech Touchpad, the common hardware
After seeking on the net, I've find (here: https://devtalk.nvidia.com/default/topic/766166/elantech-touchpad-related-nvidia-driver-freeze/) that many people who experience the bug have an Elantech Touchpad and are using the synaptics drivers.

To check if you're in the same situation:
$ cat /sys/class/input/mouse0/device/name
->> ETPS/2 Elantech Touchpad

== Proposed workaround

It seems that the following workaround works, although I can't promise anything. We are however all expecting that NVidia developers fix their drivers properly.

    $ sudo apt-get remove xserver-xorg-input-synaptics-{your-flavour}
    $ sudo apt-get install xserver-xorg-input-mtrack-{your-flavour}

Hope you're doing better with that solution ;-)

Revision history for this message
Diego Martins (dondiego7) wrote :

I tried what @lechuck proposed and stopped the screen freeze, but my touchpad using mtrack didn't work quite well as it work using synaptics. ):

Revision history for this message
McLoy Loi Ivan (mcloy81) wrote :

sorry for my english , I'm Italian ...
1 year is that living with this bug or something . Continuous freeze random every day . But I do not have the touchpad . it is possible to have the same bug without it ? reading your comments I have tried to remove " xorg - input- synaptics " . it seems that by four days I have not had any freeze ....
linux mint cinnamon 17.2
nvidia gtx 460 Driver 346.87
Ps : is released update nvidia 346.96 has anyone tried it ?

Revision history for this message
DiegoAlberto (diegoalberto) wrote :

20 November 2015 and this issue persist on Ubuntu 14.04 based distributions.

My Setup:

N551JW
NVIDIA GTX 960m + Integrated Intel

Revision history for this message
MilkThief (evazzoler) wrote :

Same issue since I installed Ubuntu... Very annoying!
Lenovo T420
Nvidia NVS 4200M

Revision history for this message
Eldis (eldis.design) wrote :

I'm having this issue since the first boot of my new Dell Inspiron 5558 (with Nvidia GeForce 920M), and that's about 15 days already. Tried like millions of solutions including ones I found here, but nothing worked for me. Reinstalled Ubuntu for 20 times I think, from 14.04 to 15.10, tried UEFI and legacy boot (as someone somewhere suggested this as solution too), modified that one .conf file in modprobe.d as someone else suggested, added xorg-edgers repository and pulled the packages from it... I can't remember anymore what else I tried, but nothing helps.

Touchpad (pointer) freezes randomly without recognizable pattern. Sometimes right after the boot, sometimes 5 minutes after, sometimes one hour after, but eventually it will freeze, sonner or later. Sometimes it does not only freeze, it starts to act weird, opening right click menus while still frozen, like randomly generating all kinds of touchpad inputs. Sometimes it fixes itself after closing/opening laptop screen (going to suspend and waking), but this is not working every time also.

This is driving me insane. I love Ubuntu for years and I love my new DELL Inspiron, but having the laptop with defective touchpad defies its very purpose.

Revision history for this message
Eldis (eldis.design) wrote :

And one more thing.
In my case, there is NO difference whether proprietary or nouveau drivers are in use, the freeze will happen regardless. I just had to add this clarification, as I see people reporting this issue is happenning only on proprietary drivers, which is not true in my case.

Revision history for this message
João Carlos Teixeira de Melo Filho (jcarlos-teixeira) wrote :

Same problem on Dell 3443-a40 with 820m and Ubuntu 14.04 updated. Using nvidia-352 from ppa:xorg-edgers/ppa.

Revision history for this message
ohoboho (ohoboho) wrote :

Same on Assus K555L with KDE, the problem stooped or at least occurs rarely when ever you stop the turn of touch pad functionality on key enter form synaptic touch pad set up in System Settings->Input Device->Touchpad->l. Enable/Disable touch.
pad. And remove Disable touch pad when typing .
Hope it helps.

Revision history for this message
Eldis (eldis.design) wrote :

#313 This doesn't help in my case. Literally whatever I tried did't help till now. I'm testing the Win 10 Pro for the last two days, just to see if the same thing will happen, and yes, it does happen even on Win 10. Freezes occur less frequently, and are easily solvable by right then left button click on touchpad. It freezes whether Nvidia or integrated Intel graphics are in use.
It seems to me that this "elantech" touchpad is one @#&* of a touchpad, or the Nvidia card presence alone is making touchpad acts weird. Because, and I noticed that recently, even while in BIOS or live CD environment, touchpad freezes sometimes.

Revision history for this message
Minium (minium) wrote :

Hey guys,

since no fix for trusty has been released, I've taken matters into my own hands. My own repository includes the fixed discussed in comment #251. You use it as follows:

# sudo add-apt-repository ppa:minium/xorg-server
# sudo apt-get update && sudo apt-get upgrade

Cheers

Revision history for this message
Stefan (stefan-luer) wrote :

Said in #297 that it had been fixed but still it freezes from time to time, but much better than before. Applying #18 and #315 were not sufficient to solve it.

Revision history for this message
Václav Pavlík (pavl-va) wrote :

Same bug on HP Pavilion g6.
BUT I don't even have an Nvidia graphics card.
I have:
xorg and xserver-xorg both in version 1:7.7+1ubuntu8.1
xserver-xorg-input-synaptics 1.7.4-0ubuntu1

Not one of the proposed solutions has been successful for more than a few hours for me. The system also freezes quicker if I am on battery power. I even tried some workarounds to prevent USB powersave (since I thought I was the case), no luck.

Revision history for this message
Stefan (stefan-luer) wrote :

No freeze now for 9 days since installing nvidia-graphics-drivers-304-updates_304.131

Revision history for this message
Zayed Amer Al-Saidi (zayed-alsaidi) wrote :

This is bug is still persist in Kubuntu 16.4 LTS. Every time, when my laptop (HP Pavilion 15 Notebook PC) wake up from sleep the point freezes. To get it work again I do:

xinput set-prop 12 "Device Enabled" 1

where 12 in my touch-pad device number. and sometime ctrl+alt+f2 then ctrl+alt+f7 to get the pad accepting the clicking.

This is laptop has dual graphics cards (Nvidia GM108M [GeForce 840M] and intel) with default to Nvidia driver nvidia-361

Revision history for this message
Minium (minium) wrote :

I also still have it in Xubuntu 14.04.5 LTS with nvidia-355 drivers. I checked the sources of the current xorg-server package and the fix isn't adopted in them. Perhaps we could push somehow for it?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.