LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

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

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


Hi,

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, 09:25 AM   #2
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,836

Rep: Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287
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)
 
  


Reply


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 03:51 AM
mouse keys as modifier keys (ctrl & alt) belda Linux - Desktop 3 06-25-2009 10:37 AM
mouse pointer moves up upon any mouse action in slackware 10.2 XavierKing Linux - General 2 07-20-2006 03:36 PM
disconnect USB mouse data from the mouse pointer Yeronimo Programming 0 04-07-2005 03:26 AM
The you have a Mouse Pointer Problem(mouse stick top left)here is the solution. dr4ven Linux - Hardware 0 05-25-2003 05:53 PM


All times are GMT -5. The time now is 01:58 AM.

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