4

I am using Xubuntu 12.04 in a remote environment. Of late, I am observing that sometimes the cursor turns into a hand and stops responding. I cannot do anything to fix it.

The only solution seems to be to terminate the XFCE session and re-login.

I am observing this when using a remote connection. Anyone seen this or know a solution or workaround? I am just frustrated with this problem coming up every so often.

The LD_PRELOAD method doesn't seem to work for me. Is there a command line way to generate AllowDeactivateHold?

Can we use xinput to create the effect of AllowDeactivateHold?

Jeff Schaller
  • 67,283
  • 35
  • 116
  • 255
boffin
  • 673

3 Answers3

3

There might be an application that grabbed the pointer but failed to release the grab. One thing you can do is configure your local Xserver to allow grabs to be manually deactivated by adding this to your ServerOptions section:

Option "AllowDeactivateGrabs" "true"

and then press Ctrl-Alt-Keypad-/ to break the grab. However, note that this particular option has been in flux lately (see this bug report).

Jim Paris
  • 14,337
  • This is a very convincing answer. Thanks for your attention. Do I add this entry in xorg.conf ? Is there another place I can do this... I am not a superuser on the machine. – boffin Oct 10 '12 at 19:34
  • Yeah, it's in xorg.conf. If you're not a superuser, you could just give the key combination a try to see if it's enabled (it used to be enabled by default). Another alternative, if you can figure out which program is doing these grabs, would be to use the LD_PRELOAD workaround shown in comments 4 and 5 of the bug report I linked. That essentially makes those functions no-ops so that the program simply can't do the grabs in the first place. Of course, this would first require that you find out what program is doing the grabs, which may be difficult. – Jim Paris Oct 10 '12 at 19:54
  • You mean ServerFlags section? Because I haven't seen any ServerOptions section documented. – baptx Aug 23 '23 at 23:15
  • Yes, I think you're correct. Not sure if something changed in the 11 years since I wrote this answer, or if it was always wrong.. – Jim Paris Aug 25 '23 at 00:31
  • 1
    It did not work for me and I read the option AllowDeactivateGrabs does not exist anymore. However another solution with setxkbmap / xdotool (https://unix.stackexchange.com/a/40472/19052) worked well and has the advantage that we don't need to edit xorg.conf (which requires Xfce session restart). I hope Xfce will fix this issue because it can happen often on a computer without a lot of RAM. – baptx Aug 25 '23 at 19:13
1

I've been seeing this every so often with my local Xfce 4.8 sessions on Debian 7. The workaround that I use is to press Alt-tab. This causes a different window to get the input focus, which is mildly annoying, but it gets things unstuck, and it's less disruptive than killing the session.

0

I think here you will have to get your hands dirty. I had previously hard about XFCE debugging which naturally tells you about why what is happening and how. But , i do not know much about that. So you can google it or you can use this link: http://spurint.org/projects/xfce4-debugging/

This link is quite good and it gives a very good idea about how to debug by using a how-to-do-it approach.

"Debugging crashing Xfce apps isn’t terribly difficult, and can be a big help to Xfce developers when they’re trying to fix bugs. If the problem you’re having is a crash of a particular application, usually you’ll want to get what’s called a ‘backtrace’ or ‘stack trace’ using a debugger, such as gdb."

  • I dont know if I can classify this as a crash. The mouse pointer moves around. The cursor turns into a hand and things are unclickable. Although, on the remote server, I am able to login using putty and access and kill applications. Although to get everything back to work I have to kill xfce4-session. Thanks for the link. I will try to find out more. – boffin Oct 10 '12 at 16:00
  • @boffin: Welcome – The Dark Knight Oct 10 '12 at 17:07