Bug 348031

Summary: replugging mouse re-enables touchpad; prevents shutdown/restart/logoff; programs won't open
Product: [Plasma] plasmashell Reporter: nathan.smith1199
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED FIXED    
Severity: major CC: ahartmetz, bshah, jan, justin.zobel, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.3.0   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description nathan.smith1199 2015-05-20 22:16:47 UTC
I currently (under settings>input devices>touchpad) have KDE set up to disable the touchpad upon plugging in the mouse.

If I unplug the mouse and then plug the mouse back in, both the mouse and the touchpad will be enabled.

After this, oddly, I am unable to shut down via KDE. If I short-press the power button, nothing happens. If I try to shut down via Kickoff, nothing happens visually, but most programs will no longer open. 

Of the ones I've tried, default KDE apps won't open. Libreoffice won't open. Chromium, however, will. Perhaps it has something to do with Qt?

Reproducible: Always

Steps to Reproduce:
1. Enable "Disable touchpad when mouse is plugged in" via Input Devices in settings. (Perhaps restart just to make sure the setting has fully been applied.)
2. Unplug mouse.
3. Plug mouse back in.
4. Attempt to shut down computer via Kickoff (bottom left corner) > Leave > Shut Down

Actual Results:  
Almost all programs will no longer open; computer cannot be shut down via Kickoff or short-press of power button.

Expected Results:  
All programs should be able to open; computer should be able to be safely shut down via Kickoff and via short-press of power button.

OS: Arch Linux 
 Kernel: x86_64 Linux 4.0.4-1-ARCH
 Uptime: 22m
 Packages: 1113
 Shell: bash 4.3.33
 Resolution: 1920x1080
 DE: KDE5
 WM: KWin
 GTK Theme:Not Found [GTK2], Not Found [GTK3]
 Icon Theme: Not Found
 Font: Not Found
 CPU: Intel Core i7-3610QM CPU @ 3.3GHz
 GPU: GeForce GTX 660M
 RAM: 1748MB / 16005MB
Comment 1 Jan Wiele 2015-11-03 21:57:38 UTC
I have a similar problem. After some while I cannot logout/shutdown/restart from a Plasma5 session. 

When I click the (logout/shutdown/restart) button, nothing happens (dialog disappears, workspace is shown). At this point, I am unable to start applications like konsole.

I have no idea what could cause this. Any hints how to debug this? 
I'm on Kubuntu 15.10, Plasma 5.4.2, Qt 5.4.2, Kernel 4.2.0-16-generic, 64Bit
Comment 2 Andreas Hartmetz 2016-02-04 01:42:16 UTC
The part about not being able to log out seems session management related - the session management protocol XSMP allows applications to cancel logout. Session management is generally somewhat broken in Qt currently, with one failure mode being undesired cancellation of session exit.
In some applications Qt tries to close all windows and if the appllication refuses that (it may do that in response to user input or due to some decision made purely internally), it's interpreted as the application refusing to close and also cancelling session exit. I am working on that. If the problem doesn't disappear by itself by fixing that, some more targeted bug hunting will be necessary.
Comment 3 Justin Zobel 2020-11-19 02:02:59 UTC
I've just tested this on Plasmashell 5.20.2 and I can't replicate the issue.

Can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved. I'm setting status to "needsinfo" pending your response, please change back to "reported" or "resolved" when you respond, thanks.
Comment 4 nathan.smith1199 2020-11-19 02:40:09 UTC
(In reply to Justin Zobel from comment #3)
> I've just tested this on Plasmashell 5.20.2 and I can't replicate the issue.
> 
> Can you please test and confirm if this issue is still occurring or if this
> bug report can be marked as resolved. I'm setting status to "needsinfo"
> pending your response, please change back to "reported" or "resolved" when
> you respond, thanks.

I'm unable to test this, as I no longer have this computer, so I'll just go ahead and mark this as resolved.