View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


Search this Thread
Old 11-05-2013, 07:12 PM   #1
LQ Newbie
Registered: Nov 2013
Posts: 4

Rep: Reputation: Disabled
Red face Unfreeze X11 mouse pointer and keys


I'm writing an application that uses Ogre3D as a toolkit to render some OpenGL. Currently, I have a deadlock in the code that I'm trying to find.

When that deadlock occurs, I loose all control over my desktop.
I do not see any mouse pointer, can not click on anything and can't use the keyboard.
The only solution is to switch to a tty and kill -9 the application,
which releases mouse and keyboard again.

However, having my app crash with a SEGFAULT makes it very hard to debug that situation. I'd like to use the debugger feature of KDevelop (which actually uses gdb) to track down the exact location of the bug in my code.

Of course, I'd need my mouse-pointer for that...

So, is there any way to force an application to release mouse and keyboard, even if it is not responsive/cooperative?
I googled around and tried "xdotool key XF86Ungrab", but that does nothing.

Any help is appreciated.
Old 11-06-2013, 10:25 AM   #2
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,570

Rep: Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468
I think you can try to use gdb on the tty without X - or - you can start another display (but I'm not really sure if it could work)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Mouse pointer starts trembling without provocation n stops only when mouse is shaken! TheIndependentAquarius Linux - Newbie 15 12-03-2010 04:51 AM
mouse keys as modifier keys (ctrl & alt) belda Linux - Desktop 3 06-25-2009 11:37 AM
mouse pointer moves up upon any mouse action in slackware 10.2 XavierKing Linux - General 2 07-20-2006 04:36 PM
disconnect USB mouse data from the mouse pointer Yeronimo Programming 0 04-07-2005 04:26 AM
The you have a Mouse Pointer Problem(mouse stick top left)here is the solution. dr4ven Linux - Hardware 0 05-25-2003 06:53 PM

All times are GMT -5. The time now is 01:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration