Header Image - FOSS adventures

Monthly Archives

3 Articles

Dual boot issues and the Black Screen of Death

by Martin de Boer

As is the case for many open source enthusiasts, I am the go-to person in my family for solving PC issues. I enjoy messing with computers and solving technical challenges. Over the last few weeks, I had a lot of Windows encounters. There are 3 reasons to write about this:

  1. I found a great tool to retrieve the Windows license key from openSUSE and I like to write about this tool
  2. I encountered a lot of driver issues on Windows, I like to share the problem and the way to solve it
  3. The grass is not greener on the other side

Dual boot issues

The first problem is self-inflicted. One of my family members has switched to openSUSE and is a happy user. Once openSUSE is installed, it proves to be rock solid. This doesn’t require much maintenance from my side. I recently proposed to upgrade this PC to the latest version of openSUSE, because Leap 15 is simply a fantastic release.

In this case, I wanted to do a clean install. I have performed upgrades to 42.2 and to 42.3 using the installation media. But I think it is a good idea to do a clean install every once in a while. This makes sure that there are only software packages installed that are really needed. During the installation, the openSUSE installer indicated that the EFI partition was not big enough. It was less than 256 MB of space. The only way to continue the installation was to remove it and to create a bigger EFI partition. However, I neglected that this would also delete the Windows EFI key and that Windows would not be able to recover / restore that. So after the openSUSE Leap 15 installation, there was no Windows in the GRUB2-EFI menu anymore.

My first thought was to burn the latest Windows 10 ISO to a disk and use this to restore the EFI key. However, the troubleshooting options of the Windows DVD didn’t manage to fix the issue. My only remaining option was to wipe the Windows 10 install and to reinstall it completely. I first made a backup of all the data in the user directory. And then I realized I would also need the Windows 10 license key…

Lucky for me (and all other Linux users) other people have encountered this problem before and they have created an amazing tool to recover the Windows 10 license key. It is called “chntpw” and is available from the openSUSE OSS repository. It is the offline NT Password and Registry Editor. I followed the instructions that I found online from a guy named Thomas and this worked like a charm. I think this is really amazing. I never knew about this tool, but I can imagine that it has helped a lot of people to recover from similar situations. The only remaining actions are now to install Windows 10 again (following these instructions) and to repair the UEFI/GRUB2/openSUSE boot scenario (following these instructions).

The Black Screen of Death is apparently a thing

I have encountered the Blue Screen of Death a numerous amount of times. The reason for that, is that I was an early adopter of Windows Vista. Windows Vista was very unstable at that time and would constantly freeze. An experience that led me to switch to openSUSE 11.2. In my work environment, I continued to use Windows (first 7, then 8, then 8.1, then 10). As is the case for most employers, there was no freedom to use something different. But I did encounter Blue Screens of Death less and less often, with every new Windows release.

Recently I decided to buy a proper gaming PC. (A review will follow at a later stage.) My ‘old’ PC was purchased 3 years ago. It is still a decently fast PC, as it has an Intel Core i5 4200U processor, 16 GB of RAM and a 256 GB SSD. So I decided to re-purpose this PC and find a good place for it. That ‘good place’ also meant that I needed to install Windows 10 on that PC. I had already burned the ISO. So I wiped all partitions and I performed the install of Windows 10. After boot, I started to install the usual FOSS software: LibreOffice, VLC, Clementine, ImageGlass, Darktable, OpenShot, GIMP, Krita, Inkscape, Scribus… and then the screen turned black. To never return again. This was my first encounter with an issue that seems to be widespread in the Windows world (post Windows 8): the Black Screen of Death.

Usually this involves some kind of driver issue. The question was which driver was the culprit. Most instructions start with updating the BIOS. However, the motherboard of this Zotac Sphere OI520 is custom. And so there are no BIOS updates available for this PC. I tried installing the official drivers for Windows 10 from the Zotac website. But none of them fixed the issue. I read a lot of forum posts that suggested to revert back to Windows 8.1. As I had kept the Windows 8.1 installation media that I had used for another family member, I tried that suggestion.

But also in Windows 8.1, the problem persisted. Only 1 minute after my first login, the screen would turn black to never return again. As everything worked as intended in Safe Mode, I soon realized that the Intel HD Graphics drivers were the cause of the problem. I tried to solve the problem by installing different versions of the Intel HD Graphics drivers. I tried installing the drivers from the Zotac Drivers DVD that I received in the box. I tried installing the latest drivers from the Zotac website. I tried installing the latest stable and beta Intel drivers from the Intel website that were listed as compatible with the i5 4200U processor. And I even tried to a manual install of the latest stable Intel drivers. Non of these solved the issue. In the end, the only remaining option was to disable the Intel HD Graphics drivers. This forced Windows to switch to the Microsoft Basic Display Adapter. Which allowed me to run Windows 8.1 in the normal mode.

I figured that this solution would also resolve the situation in Windows 10. So I decided to wipe the PC all over again, reinstall Windows 10 and apply the fix. In the end, the solution for my problem was to enable the bootmenupolicy legacy (see this instruction by Sahil Bali) and then boot into Safe Mode with F8 and disable the Intel HD Graphics driver (see the last part of this instruction). Although this seems easy to fix in hindsight, there is still something that troubles me:

  1. The problem occurred both in Windows 8.1 and Windows 10
  2. None of the official Intel Graphics drivers managed to fix the issue
  3. From forum posts all over the internet, this issue existed from 2012 until today

Conclusion

There are a lot of (older) discussions on the internet about Linux driver issues. From my experience over the last few years, I only encountered such issues in the area of Broadcom WiFi and Bluetooth drivers. Everything else was always detected without a problem. This recent experience showed me that on the Windows side, these issues are still around. People who buy a PC with Windows 10 pre-installed, will never encounter these issues, as they are handled by the OEMs. But if you upgrade such a PC to a newer version of Windows, you might run into them. For people that are less technical (and scared of the Windows Command prompt), this is something they simply will not be able to resolve themselves. On openSUSE Leap, there are no Intel HD Graphics issues (and I tested 13.2, 42.1, 42.2, 42.3 and 15). So the grass is definitely greener on the openSUSE side.

Published on: 30 August 2018

Designing your garden with Edraw Max

by Martin de Boer

I watch a lot of BBC Gardeners World, which gives me a lot of inspiration for making changes to my own garden. I tried looking for a free and open source program for designing gardens in the openSUSE package search. The only application that I found was Rosegarden, a MIDI and Audio Sequencer and Notation Editor. Using google, I found Edraw Max, an all-in-one diagram software. This included a Floor planner, including templates for garden design. And there are download options for various Linux distributions, including openSUSE.

Installation

You can download a 14-day free trial from the Edraw Max website.

The next thing to do, is use Dolphin and browse to your Downloads folder. Find the zipped package and double click it. Ark will automatically load it. Then click on the Extract button.

Now you can press F4 in Dolphin to open the integrated terminal. If you type in the commands as listed on the Edraw website, the application will install without an issue.

Experience

From the application launcher (start menu), you can now type Edraw Max and launch the application. Go to New and then Floor Plan and click on Garden Design.

On the left side, there is a side pane with a lot of elements that you can use for drawing (see picture below). Start with measuring your garden and with the walls, you can ‘draw’ the borders of your garden. On the right side, there is a side pane where you can adjust the properties of these elements. For instance you can edit the fill (color) of the element, the border (color) of the element and adjust the properties. I didn’t need the other parts of this right side pane (which included shadow, insert picture, layer, hyperlink, attachment and comments).

Now you can make various different garden designs! This is one of the 6 designs that I created for my own garden.

The last feature that I like to mention is the export possibilities. There is a lot of export options here, including Jpeg, Tiff, PDF, PS, EPS, Word, PowerPoint, Excel, HTML, SVG and Visio. In the unlicensed version, all exports work except for the Visio export. In the PDF you will see a watermark “Created by Unlicensed Version”.

Conclusion

As this is proprietary software, you will have to pay for it after 14 days. Unfortunately, the price is quite high. As a Linux user, you can only select the Lifetime license, which currently costs $ 245. It is a very complete package (280 different types of diagrams), but I find the pricing too high for my purposes. And there is no option to pay less. For professional users I can imagine that this price would not be a big issue, as the software will pay itself back when you get payed for making designs. For me personally, it was a very nice experience to use this limited trial and it helped me to think of different ways in which I can redesign my garden.

Published on: 16 august 2018

A FOSS alternative found!

Thanks to reddit user compairelapin, I have found an open source alternative. It is called Sweet Home 3D and its available in the openSUSE package search. In a future post, I will take a look at this software and compare it to Edraw Max.

Updated on: 17 august 2018

How to create great panorama photos with Hugin

by Martin de Boer

If you search online for “Best Panorama Stitching software 2018”, chances are very high that you find an article that mentions Hugin (1, 2, 3). The reason is that this is one of the best programs to stitch photos for Linux, MacOS and Windows. And it is free and open source! The criticism is that its aimed at professional users and that it can be a bit overwhelming for new users. This article will provide you with a rundown on how to use Hugin. I have used openSUSE Leap 15 as my operating system, but this tutorial will work across distributions and operating systems.

Tutorial

  1. Start the Hugin Panorama Creator. The Assistant tab is the first thing that you will see. Click on Load images.
    .

    .
  2. Select the images that you want to use to create a panorama.
    .

    .
  3. Next, click the Align button to auto-align the pictures.
    .

    .

    .
  4. Now go to the Projection tab. I recommend that you try different ways of projection. I mostly use the options Rectilinear, Cylindrical or Architectural. This really can’t go wrong, because you can always go back to the default, which is Rectilinear.
    .

    .
  5. Then go to the Move/Drag tab. I would recommend to only use this feature when the picture has an incorrect angle or is really off-center. It never hurts to try, but be aware that the buttons (Center / Fit / Straigthen) might deform the picture in a way that you don’t like. In that case, it is better to start all over again (Click on File –> New). There is no Undo button! In the example below, I use this feature to correct the angle of the panorama.
    .

    .
  6. Now it is time to perfect your panorama. Go to the Crop tab. I prefer to use the sliders inside the picture, to determine the correct borders (up, down, left and right). It gives you a lot of control over the final picture. You can also use the Autocrop button, but where is the fun in that?
    .

    .
  7. After all necessary adjustments are made, go back to the Assistant tab. Now click on the Create panorama button.
    .

    .
  8. Now you will be asked how to adjust for the differences in exposure. I will always start with either the first option (Exposure corrected, low dynamic range) or the second option (Exposure fused from stacks). This depends on my visual inspection of the photo’s. If I see a lot of differences (some are very bright, some are darker) I tend to choose the second option. If the differences are not so pronounced, I usually stick with the first option.
    .

    .
  9. You will be asked to save your project and save the picture. The project will always be saved as a .pto file. The picture can be saved in different formats. But I leave it on Tiff. After the panorama is created and if I am happy with the results, I use GIMP to convert the panorama to the Jpeg format.
    .

    .
  10. Hugin will now create the panorama. This can take a while, so you need to wait for a minute or maybe two. You can view the end result here in a higher resolution.
    .

    .

Manual alignment

Hugin has an advanced feature for manually aligning the pictures. Although this feature gives you a lot of control over the stitching of your photo’s, most of the time you don’t need to bother with it. In 98% of the times, Hugin does it automatically and does it well. But there are still situations where Hugin is not able to auto-align. And in these cases, you need to use the Panorama editor (View –> Panorama editor). In the Panorama editor you can manually determine the control points (the points that are the same in both pictures) for photo’s that need to be stitched side by side. It is not so hard, once you get the hang of it. You select the pictures that need to be next to each other with the drop down buttons. Then you click on a point that is very distinctive on both pictures. And then click on the Add button. Once you have ~10 control points between the 2 pictures, Hugin should be able to stitch them perfectly.

Conclusion

Hugin might seem a bit overwhelming for new users at first. But once you get the hang of it, it is an easy program to use. It allows you to capture that incredibly beautiful landscape in widescreen.

Published on: 1 August 2018