Categories
Hardware Windows

Fix: Flickering monitors on Lenovo P15

I am currently using a Lenovo P15 laptop, the machine itself is very powerful but has a very annoying isse. When using external monitors, either via docking or directly connected. They will often flicker/disconnect around once per minute. Causing everything to jump around until Windows settles down again. In some cases, the monitors even have to be disconnected and reconnected again before Windows can use them again.

Luckily, this issue can be solved rather easily. In Windows services, find the service named “FirmwareSwitchService”, stop & disable it. If you lack admin permissions, ask your IT department to help you. As there are currently no other ways around this issue on P15 models.

Categories
Software

How to fix LockObtainFailedException on Solr start

If you have experienced a Solr crash during a commit (which, of course, is the worst possible time, Murphy`s law etc), you might have received a LockOptianFailedException when trying to start Solr. This makes it impossible to start Solr at all.

You can solve this by configuring Solr to delete any lock files when starting up,
you can also configure Solr to use a normal lock file instead, which you can manually delete if you prefer that.

Simply correct your solrconfig.xml to the following values, they are per default
commented out in solrconfig.xml.

<lockType>simple</lockType>
<unlockOnStartup>true</unlockOnStartup>

Categories
Linux

How to measure the temperature of your Raspberry PI

When running Raspian on your PI (and other distro`s for PI), an Raspberry PI specific application is installed, which let you monitor everything from volt-status, HDMI-status to the PI`s core temperature.

To check the core temperature, simply run the command  “/opt/vc/bin/vcgencmd measure_temp”

PS: Run the commando  “/opt/vc/bin/vcgencmd commands” to see all the data you can extract via that application.

Unfortunately, it does not appear to be possible to check the temperature elsewhere on the (physical) Pi, without getting a temperature sensor.

Categories
Linux Windows

How to install Raspian for Raspberry Pi from Windows

I am currently in the process of setting up a SETI@Home cluster running on Raspberry PI boxes. Currently i am working with three nodes, and i will expand it if is a success.

For OS, i use Raspian (Debian clone), combined with some cheap 8GB SDCards from a random cheap vendor.

In order to install the Raspian ISO image to a SD card, i use the application win32 disk imager, which simply takes a ISO image, and writes it to a designaded SD card.

It is worth noticing that this will cause the partition(s) on the SD card to not be any larger than the image itself. But you can fix this upon your first Raspberry PI boot, as the application “raspi-config” will be auto-started. (if not, start it)

Categories
Linux Uncategorized

Workaround for inotify on NFS-clients

I run multiple virtual machines which shares all their data via a NFS-server. I have an application that fetches files, and another server that watches for new files in a folder, using inotify. But i quickly noticed that inotify does not work over NFS. I “fixed” this by doing a simle workaround that finds all files in the watched folder, and simply touches them. This causes inotify to dectect those files.

Example:
find s -type f -exec touch {} \;

This works for me since i can simply run the command via cron, or via another scheduled job, but that does not mean that i works for your case. But perhaps it gives you some ideas.