Linux Mint 17.1 Cinnamon 2.4 mouse cursor disappear at top of the screen - linux-mint

Cursor of mouse disappear(at last pixels of screen).
For example. Now all ok.
And if I move mouse to the top of the monitor it disappear.
But at the same time I can click on buttons on top panel.
Any ideas how to fix it?

Verbatim copy (Mint commented by me) of Heath Jones (hjones014) post on launchpad which solved the issue:
I finally remedied the problem, using the xorg-edgers ppa. This is what I did -
sudo apt-add-repository ppa:xorg-edgers/ppa
sudo apt-get update
goto additional drivers (driver manager on Linux Mint) and select driver 349.16 (at the moment of writing is 355)
reboot
goto software/updates (Software Sources->PPAs on Mint) and goto the "Other Software" tab and UNCHECK the xorg-edgers ppa. I DID NOT PURGE THIS PPA.
The reason why I nixed this ppa is because after selecting driver 349, the software updater would try to pull in other updates from the xorg-edgers ppa which kept crashing my system. This allowed me to keep the driver 349 and not pull in any other updates. If you do a ppa-purge, it will also nix the driver, hence why i just unchecked it in the sources tab.

Adding the option
Option "hw_cursor" "off"
on the Device section of /etc/X11/xorg.conf solves this issue but creates other (more annoying) issues. [Disclaimer] messing with the xorg.conf can screw up your graphics and you'd be unable to log in. Proceed with caution, backup your xorg.conf and know how to log in to your system with a live CD/usb or drop to a shell that doesn't need the X server.
Also, switching to the nouveau driver solves it too.
None of the aforementioned solutions are acceptable for me. I'll keep digging and update the answer.

Related

How can I get Eclipse IDE to default to "Selected lines" in the Find/Replace dialogue when multiple lines are selected?

When working in Eclipse and hitting Ctrl+F with lines of code selected, the default behavior I expect is for the Find/Replace dialogue to open with the "Selected lines" option and, perhaps, either buffer contents or a previous search query in the "Find" prompt. On my home machine, what happens instead is the entire selection gets automatically copied to the "Find" prompt and Scope is reset to "All" instead of "Selected lines" every time.
I somehow do have this working by default on my work machine: "Selected Lines" scope option is chosen automatically when more than one line is selected in the editor.
Possibly unrelated: I do have CDT installed and I work mostly with C++ in Eclipse. Home machine is running Ubuntu 18.10, work machine is running Ubuntu 18.04.
I tried:
Re-downloading Eclipse, reinstalling CDT & cmake4eclipse
Changing to a new Workspace in Eclipse (without copying settings)
Searching high and low online for recipes on how to control this.
How do I change the IDE at home to the desired "Selected Lines" behavior?
[Edit 1 hour later]: I am now almost convinced the issue has to do with the Ubuntu version somehow. I'm running 18.04 on my Laptop (same as my work computer) and I just upgraded CDT & Eclipse Platform to latest stable versions (9.7 and 4.11/2019-03, respectively), which I have everywhere else. The new "wrong" behavior didn't appear. I will also start a thread on the Eclipse forums or perhaps even open a bug report. I don't want to reinstall the whole system or downgrade it (slim chance of success) just to get this back; if it's an Eclipse bug, I'd rather work on fixing it.
[Edit 2 days later] The bug did not manifest on a fresh install of Ubuntu 18.10. I still have no idea what was different on the 'culprit' machine. I ended up wiping the drive and reinstalling 18.04 on the same machine and the problem went away.

eclipse - swt - using windowbuilder in xfce env

I have some problems with eclipse indigo x64 Linux; The problem is using windowbuilder (the SWT); I tried using gwt or swing but they both cause either windowbuilder freeze or even eclipse crash...
The alike issue it seems I found related info in official eclipse indigo offline Help which says :
How can I prevent the preview window from flashing under Linux using Metacity
In order to create the graphics that you see in the design view,
WindowBuilder Pro creates an off screen window containing the various
widgets and they takes a screen snapshot of them. This works very well
under Windows, OSX and some versions of Linux. Recent versions of the
Metacity window manager (more recent than 2.1.4), however, have been
modified/"fixed" to disallow windows to be opened off screen. This
forces the preview window to appear on screen leading to an annoying
flashing effect any time you make a change. The solution is to disable
the Metacity "fully_onscreen" constraint by patching the Metacity
source code and rebuilding and installing the patched version into
your system.
Here are the steps to follow:
Download the Metacity source code from ftp://ftp.gnome.org/pub/gnome/sources/metacity/
Unpack the source code tarball into any temporary directory.
Chdir into this directory (with the unpacked code).
Find window.c file and open it with your favourite texteditor.
Find a line with "window->require_fully_onscreen = TRUE;"
Replace it with "window->require_fully_onscreen = FALSE;"
Save the changes and close the editor.
Open a terminal and chdir into the directory with the source code (nice if you have already done this)
Run "./configure".
Run "make all".
Make sure that steps 9 & 10 completed without errors.
Become root (or execute the next command via "sudo" depending on the Linux you are running)
Run "make install" (or "sudo make install").
Save your work and close any application you are working with.
End your session (or press Ctrl-Alt-Delete to restart the x-server) and log in again.
You are done!
well seems like I have the snapshot really but, as I can get it, the snapshot doesn't want to dispose or similar so I have either resize the whole eclipse or press F5 to refresh (which works not at once);
I am not sure how to fix the issue in case I have xfce+adwaita installed? I don't have metacity installed; Seems like xfce works with gtk instead of metacity (correct me if I am wrong);
So my question is... how to fix the "window flashing or freezing" if I have :
xfce4
adwaita-dark theme
linux arch x64ce
Thanks
Try to install install libswt-gtk-3-jni and libswt-gtk-3-java.

How to disable sleeping on Raspberry pi

I am working on a project similar to the one at http://www.instructables.com/id/Raspberry-Pi-Wall-Mounted-Google-Calendar/?ALLSTEPS
Similarly, I need my pi to stay on constantly. I have the regular Raspbian OS installed and I am using Iceweasel browser to run a web application all day.
I have tried every single one of these suggestions from this link http://www.bitpi.co/2015/02/14/prevent-raspberry-pi-from-sleeping/
Yet the pi fails to stay on longer than 10 minutes. Any help would be greatly appreciated.
I installed xscreensaver
sudo apt-get install xscreensaver
Once installed, go to Rpi's desktop "Menu" (left top corner)
Go to preference --> screensaver.
You will see a screen saver main menu. In the mode drop-down menu, select "disable screensaver" then close the window.
Reboot the Raspberry PI.
It should work now.
You don't need to install lib, just edit lightdm
1 - Open lightdm using your prefer text editor, eg using default editor(nano).:
sudo nano /etc/lightdm/lightdm.conf
2 - Add this line
xserver-command=X -s 0 -p 0 -dpms
I recently installed Raspian Buster with Desktop (circa 2019-September) - the smaller install with the Desktop, but without the "recommended software". I found there are two settings that have to be changed as either one of them will blank the screen in ten minutes under the default settings.
set screen saver timeout to zero:
xset s 0
and set dpms (EnergyStar) to disabled:
xset -dpms
This way I haven't needed to install anything (no screensaver). It was confusing because I'd tried both items, but it wasn't until I learned they both were blanking the screen at ten minutes that I saw what was going on. As this has tested out OK, the next step for me is to put them into an autostart routine.
ps Verify your settings with
xset q
Without installing anything, official Raspberry Pi doc:
On the Console
If you are using the Raspberry Pi solely on the console (no desktop GUI), you need to set the console blanking. The current setting, in seconds, can be displayed using
cat /sys/module/kernel/parameters/consoleblank
Here, consoleblank is a kernel parameter. In order to be permanently set, it needs to be defined on the kernel command line.
sudo nano /boot/cmdline.txt
Add consoleblank=0 to turn screen blanking off completely, or edit it to set the number of seconds of inactivity before the console will blank. Note the kernel command line must be a single line of text.
https://www.raspberrypi.org/documentation/configuration/screensaver.md
Simply enter the config with sudo raspi-config and disable screen blanking in the display settings.
I've created a picture frame with a pi 3 and want to stop the screen going blank. I installed xscreensaver as in answer 22 and it's working a treat:
sudo apt-get install xscreensaver
After install, went to Rpi's desktop "Menu" (left top corner)
Went to preference ---> screensaver.
Then In mode : section, selected "disable screensaver" and closed.
Rebooted Rpi.
I had the same issue with Raspbian OS that was installed on raspberry Pi device. I just installed xscreensaver by using the following command in default Command panel.
sudo apt-get install xscreensaver
After installation is completed, Go to the menu in the left corner and select preference. First time you will see a pop up to enable xscreensaver on your screen. Just accept it. After that you can disable the screensaver.

WindowBuilder Pro – Incorrect display of content pane and element frames in the design view

I need some help with following problem:
Problem:
In the design view frames that appear around selected Swing-elements are not displayed at their correct positions. Also the content pane is not located at its right position inside the window (JFrame). It seems no matter whether layout is used (e. a. BorderLayout, GroupLayout).
For example, the frame of a selected button is display many pixels above or beside the button. In this case, if you want to select a GUI component by clicking it with your courser you should not click on the graphical representation of that element but some pixels above or where ever the frame could be – you have to consider the offset of the shifting.
By nearly every refresh of the design view (F5) or if you shift some components in the content pane the offset of the wrong placed frames changes for some pixels – sometimes the frames are above, sometimes below or beside.
Are there other persons with this problem?
Are there persons that don‘t have these problems with WindowBuilder Pro with Ubuntu 12.04?
What could cause this error and how it might be solved?
System environment under which the error occurs:
One desktop PC / One laptop
Ubuntu 12.04 (with Unity) / Kubuntu 12.04 (with KDE)
Oracle Java 7
Eclipse 64 Bit:
Eclipse 4.3 Java EE / Eclipse 4.3 Standard / Eclipse 4.3 Modeling Tools
Installed under „/opt/eclipse“. The error occurs, no matter whether the folders belong to root or to normal user.
WindowBuilder Pro 1.6.0 (Eclipse plugin installed with eclipse software manager)
I also tried WindowBuilder Pro in Ubuntu 13.04 in VirtualBox. But as soon I am moving the mouse on the palette eclipse crashes.
Hints:
The error seems to occur only, if the content pane is not correctly positioned inside the window (JFrame). Sometimes the content pane is out of place by a few dozen pixels, sometimes it is as wide as the JFrame itself, sometimes it is little bigger than the window.
The error does not occur with Windwos 7 and with Xubuntu 13.04 under otherwise identical conditions (I did not tested Xubuntu 12.04). But the error occures with Ubuntu 12.04 and Kubuntu 12.04.
My workaround is to use WindowBuilder Pro with Xubuntu 13.04 installed in VirtualBox. Of course this can not be a permanent solution, because I want to continue to use Ubuntu 12.04 LTS.
I have read http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.wb.doc.user%2Fhtml%2Ffaq.html.
Here the same problem is described, but there are no answers: https://stackoverflow.com/questions/15818379/windowbuilder-eclipse-away-from-the-actual-component?rq=1
Here a possible workaround is descibed: https://bugs.eclipse.org/bugs/show_bug.cgi?id=417224
I have been using Eclipse on Ubuntu for a while. I used both Eclipse Juno and Kepler on Ubuntu 12.04, 12.10, 13.04, 13.10, and 14.04. This error was there on all of those. I am used to living with it. I did not do a through research on that though.
I'm also having some other minor problems. One for example: The toolbars do not update themselves correctly. The buttons on the toolbar are not rendered, and they show up when the mouse hovers on it.
I found out that Eclipse is no as stable on Linux as it is on Windows.
I hope they post fixes on these issues soon.
I am using Ubuntu 15.04 and running Eclipse mars, I thought i was the only one with this problem but it has become a major issue! We can't keep running to virtual machines! There is a reason we ran away from windows to linux!! I have tried following up on some peoples discussions about how they solved their issues but apparently they don't seem to work, they added these lines to the eclipse.ini file
-Dorg.eclipse.swt.internal.gtk.cairoGraphics=false
-Dorg.eclipse.swt.internal.gtk.useCairo=false
Some people claim it has worked for them but others including me didn't find it usefull! Try it, maybe it will work for you

eclipse galileo not responding ubuntu 64-bit

I'm having a problem with eclipse galileo on ubuntu 64-bit system. when ever i open it the splash scree turns gray but keeps loading and then when eclipse opens it shows the secure storage password request and hangs. I dont know what could be wrong, it used to work fine before, if you have or had the same problem please tell me what to do
I have had this happen on Galileo (3.5) and Helios (3.6).
If you delete .eclipse you will lose all software installed through the Help | Install New Software menu option.
It is enough to delete the file ~/.eclipse/org.eclipse.equinox.security/secure_storage
Try clean $HOME$/.eclipse directory.
Its better to just rename at first.
See what happens
This happens to me whenever I shutdown eclipse with the history tab open.
While not the best solution, to solve it I start eclipse with sudo. I let it finish loading, then select a different tab than history. I Shutdown eclipse, then I recursively change the owner of the files in .metadata back to my main user.
In case you need the command: (in my case I run this from /home/wally/workspace)
sudo chown -R wally:wally .metadata
As far as I can tell, there's some race condition going on.
(also, it's likely that you won't use exactly "wally:wally" but "your username:your group)
Try this:
export GDK_NATIVE_WINDOWS=true
then run eclipse from command line from the same terminal window.
I would suggest removing openjdk from synaptic and install sun java. Once you do that , use "sudo update-java-alternatives --set java-6-sun" to use sun-java as the default JRE.
Eclipse used to work really slow for me, and this method worked. Maybe it helps you too.