Tuesday, 28 February 2017

BRiX BACE-3150, Mint 18.1 XFCE and Screen Tearing




I have written about this problem of horizontal tearing in text in several of the last few posts and it deserves a section on its own where I can mess with ideas.  This is the problem I am talking about.


At Feb 28 2017 this is where I am,

While trying various settings I found 'Synchronise drawing to the vertical blank'.  Now I'm not sure what this means and I will need to do some searching, but there seems to be some improvement.  Below is a screen shot.  It is in Settings, Window Manager Tweaks, and is the third item in the dialog below.


There is still some tearing in text initially, but seems to be disappearing on its own after half a second without my having to move the mouse.

One more setting to play with is under System Settings > Appearance.

There are a few things here like Subpixel Rendering that can improve the display of fonts on LCD displays.



UDDATE a couple of days later.  My Mint 18.1 XFCE is now Mint 18.1 Cinnamon for the moment.

Installing Cinnamon into XFCE and logging into Cinnamon, there is so far none of the text tearing that was plaguing XFCE, so it might just be a window manger problem or something to do with compositing, since as far as I know Cinnamon won;t work with Compiz or Compton.

I'm adding this update logged into Cinnamon and the text is still fine.  However, that doesn't solve all my problems.  I'm back to:

*     No mouswheel scrolling to change workspaces
*     No separate wallpaper for each desktop

So a little hunting around for something else and I found a setting that adds a desktop scroll area to the left and right edges of the screen.  I had just installed Docky so I could use its workspace swithcer applet, but now I can use the green area on the left and right.

That green shaded marker area can be adjusted for width or hidden.  It also works even if a window is under it, which means Docky will be staying in place to reserve space.  That way the scroll bar will still be accessible in a full screen window.


It lives in   System Settings > Extensions



And here's where you set it up.  There will be a warning about it not being compatible with Cinnamon.  I suppose now I will have to copy this into a new post about the Gigabyte BRiX and Mint 18.1 Cinnamon.








Mint 18.1 XFCE Single Click to open desktop icons

One of my last little annoyances about Mint with XFCE has been solved.

I like to use a single click to open files or activate icons.  In most Linux distributions this function is enabled and disabled in the file manager, and because the primary file manager also controls the desktop, changing to single click to open files in the file manager, makes that available on the desktop.

But not in XFCE.  So I was messing around planning to change the default icons that are displayed on the desktop.

I right clicked the desktop, chose the Desktop Settings Option, then Icons -  and there it was staring at me.

[]   Single click to activate items.

So now I have one more little thing sorted out.  Searching the net suggested that double clicking to open a folder or file on the desktop is just something we just have to learn to live with.  but it is not - now I know where to find it.


Monday, 27 February 2017

Gigabyte BRiX BACE-3150 Revisited Micro SD now works



NOTE !!  UPDATED  2017 March 2nd
Micro SD is now also working in Mint 17.3  See special post.

In July 2016 I wrote about the little Gigabyte BRiX  BACE-3150.  At the time it was brand new to me and I was running Linux Mint 17.3 KDE.  Yesterday I wrote about changing the operating system to Mint 18.1 and how I had to give up KDE because the latest version of KDE is loaded with flaws.


Today I would like to go over a few of my likes and dislikes about living with the BRiX because several people have asked me whether such a low powered computer is able to do any 'real' work.

So, first things first.  The BRiX BACE-3150 is really only a higher end intel Atom processor.  A Celeron.  But it happens to have a quad core and 64 bit architecture.  Considering that my 'desktop' computer experience goes back to Z80 processors running cp/m, and I remember just how much work we could do with those, I'm pretty impressed with the BRiX for general purpose computing.

What I am not impressed with is the lack of graphics support in Linux.  But the CPU?  With Mint 18.1 offering an intel microcode driver, the BRiX does most work really well.  I do a lot of work with graphics and a fair bit of video work.  It handles video editing nicely, although it could be faster.  But of course, if you want more power in a small package, there are other BRiX models with full blown i7 or AMD processors.

The graphics problem is rather petty.  It has to do with screen redraw when scrolling a page.  And it did not happen in Mint 17.3.  I first noticed it when I tested Mint 18.1 KDE and now it is in Mint 18.1 XFCE.



For example in Blogger as I type this, every now and then a line of text has little horizontal lines through it.  But the moment I scroll at all, it is crystal clear again.  I couldn't even take a screen shot of the problem because that also clears it,so here's a photo from my phone.   You can see on the line where it says BRiX.  As soon as the mouse takes focus or if I do anything that involves the screen - it goes away.  Again, this is only in Mint 18.1, it doesn't happen in 17.3.

UPDATE:
I'm not sure if this fixes the problem above, but so far it seems to reduce it.

While trying various settings I found 'Synchronise drawing to the vertical blank'.  Now I'm not sure what this means and I will need to do some searching, but there seems to be some improvement.  Below is a screen shot.  It is in Settings, Window Manager Tweaks, and is the third item in the dialog below.



As far as playing video goes, there's no problem.  No tearing, nothing.  It is just screen redraws and it doesn't matter if compositing is on or off, or if it is using Compiz or Compton, it works fine except for the little horizontal lines in the page.  It appears it could also be something to do with rendering for mouse focus and I'm still playing with settings.

Booting back into the Mint 17.3 partition, and that problem is gone.  But there are other reasons to put up with the graphics glitch that outweigh the small annoyance.

I am beginning to wonder if it is related to my use of HDMI output.  This model BRiX has only HDMI and VGA, where later models seem to have HDMI and Mini DP.

So, back in Mint 18.1 XFCE and the biggest change is that the BRiX Micro SD reader which had not worked before now works great.  That, along with the 4 USB 3.0 ports gave the BRiX the lead over every other PC I looked at when I needed a replacement work horse.  A trip to Harvey Norman and JB HiFi recently showed almost every computer and notebook still only had one USB 3.0 and the rest USB 2.0.

With cheap Micro SD cards up to 128GB and also 2TB USB hard drives under $100, the Brix is open to lots of storage and fast file transfers.  So the huge number of USB 3.0 ports and the fast Micro Sd are handy, but what is WRONG with the BRiX?

The fan is noisy.  I have heard that and it is partly true if you live in a hot climate as I do.  I set the fan to its high setting because the temperature in the room where the BRiX operates is over 30 degrees Celsius and I work it hard.  But it is far less intrusive than the other computers I use.

It sometimes goes to a weird greenish yellow screen for no apparent reason when running the HDMI output and refuses to come back to the desktop.

I found that plugging in the VGA cable (connected to the same monitor or TV) then switching to that display would let me log out.  And sometimes it wouldn't.  It was more noticeable when coming back to HDMI after using the TV/Monitor as a TV for a while.  Often the only way to get it working again was to kill the power and boot from scratch.

Since moving to Mint 18.1 I find a CTRL ALT DEL will bring up the log in screen and I can simply log in again.  I just realised that at present I have the VGA and HDMI cables both plugged into the BRiX, so I have to test the idea without the VGA plugged in tomorrow.

There's really not much else to complain about.  Just that funny lines thing on some screens / pages and the losing output on HDMI.

I get more work done in the BRiX than on any of my other devices and I am probably happier with it than with any single computer I remember buying, bearing in mind that I always buy simple low end computers with a view to working them hard then replacing them after three years.

Sunday, 26 February 2017

Linux Mint 18.1 XFCE and Gigabyte BRIX BACE-3150


Well, after discovering that Linux running KDE Plasma 5 is definitely and apparently permanently crippled, even on my more powerful systems, I decided that I will have to move the little Celeron powered BRIX away from KDE if I want to begin using mint 18.x.  So here I am back in Linux Mint XFCE after many years.  Because  the BACE-3150 is really not much more than a later version of a notebook Atom, it seemed like a good idea.

XFCE used to be good.  It was fast, clean and although it limited me in some things I wanted to do, it worked.  These days it works even better.  But it still limits some of the little things I like and simply doesn't have some of the polish of KDE.  but it also doesn't have the things I dislike about Gnome, Mate, Cinnamon etc.  And, typical of Clem and his dilligent hard working team - it is very stable.  Which reminds me - it is time for another donation.

Over the years when I have changed my computers to a new operating system, and once I establish that it is working nicely, I donate to support the effort.  It is no different than paying the licence fee for Windows or Mac when you buy a computer with those operating systems on it anyway.  I have also donated to the developers of the software I use most on these computers.

So I spent a few days messing with XFCE and I still can't get past the file manager limitations.  I tweaked Thunar but that was no good, so I installed Nautilus, PCFM, Double commander.  Now as I type this I have Dolphin installing so at least I might get my KIM system back again.  

Ok, Installing Dolphin was a lost cause.  So I am still left without a decent File Manager.  So far there's nothing I can do about that, but there are other things I really do love about XFCE that almost make up for the lousy file managers.  Honestly, Dolphin once it it tweaked with KIM is the main reason I use KDE.

One of my favourite XFCE things is that I can still customise the panel and menus easily.  Another is being able to scroll through my desktops using the mousewheel (mentioned in a previous post), and of course it is easier to see what desktop I am on since I can have a different wallpaper on each desktop.

Now, something I never used for a long time in KDE, and consequently never thought I would miss, is 'Activities.  But it will not be too hard to get used to doing without them again.  My short time trying to use Plasma 5 forced me to use Activities INSTEAD of work spaces, so I suppose I'm not giving up much.

Another interesting thing is that after I loaded the intel CPU driver microcode that showed up as an option in the repositories I suddenly had even better performance.  Unfortunately there's still no onboard graphics driver fix, but the CPU stuff flies.

And I'm not sure if it was just in the Mint 18.1 kernel, or if it was something to do with the microcode also, but the BRIX micro SD card reader now works.  Yet another good reason to upgrade from Mint 17.3 KDE.

I do miss some of the little tweaks I had made to KDE.  I am used to double clicking the tittie bar to roll up or roll down the window, and scrolling the mousewheel on the title bar to change the opacity of a window.

In XFCE, I have the scroll on the title bar rolling the window up or down instead.  And the reality is, while it was 'cute' to be able to change the opacity of a window, I rarely used it.  I do however roll windows up and down (sometimes called shade/unshade) frequently if I wad to tidy up a desktop or access an open file manager window.

UDDATE:
I have discovered that I can in fact double click on the title bar to shade a window.  So while I can't change opacity of the window with the mousewheel, I have two methods to shade/roll up a window to see or access what is behind it.

Thursday, 23 February 2017

LibreOffice suddenly very slow in Linux Mint 17 and 18

I have been having serious problems with LibreOffice taking forever to scroll pages and move or resize graphics recently.  I checked Google and found other people have been having this problem for a long time.

Suggestions to fix it range from making sure Hardware Acceleration is ENABLED or DISABLED, Enabling or Disabling GL, messing with memory and anti-aliasing.

None of that worked for me.  So I wondered if it was something to do with the version.  Had some update messed with things?

I downloaded the last version 4.x.x  but when I checked in Synaptic to remove version 5.3, I saw another version 1:5.1.4-0ubuntu1.  So once I removed version 5.3 I simply installed the other version in the repository.

Problem solved for now.  Everything is running smoothly again.  Now, I'm running what is apparently version 1:5.1.4-0ubuntu1, but help calls it Version: 5.1.4.2
Build ID: 1:5.1.4-0ubuntu1

Whatever it is, it seems to be working fine.  So there must be some sort of drama with Libre 5.3.

Now I have ot fixed in Mint 18.1 XFCE the next step will be to see if the same thing works in my old faithful Mint 17.3  KDE.


Mint 18 XFCE change desktops with mouse scroll wheel

Recently Mint 18.1 was released, so I decided it might be time to try KDE with Plasma 5 again.

It didn't take long to discover that this latest Plasma workspace is still almost useless on Linux with certain hardware.  It leaves mouse trails all over the screen when certain programs are open, especially the Dolphin file manager, and has a number of other annoyances.  As mentioned in a previous post, I like to use different wallpapers on my workspaces and this is still absent from the latest Plasma.  So while I was being frustrated I decided to visit an old friend.

XFCE has been around for a long time, and I used to use it on things like low powered computer and netbooks.  Since the current multimedia computer is a Gigabyte BRiX BACE3150, I thought I might have a look at Mint 18.1 XFCE edition, just for fun.

Now the BRiX has some shortcomings, and one of them is the Intel HD Graphics on board.  I'm not impressed that in some operations in one of my most frequently used programs, Libreoffice Draw, I cannot work with graphics.  Almost every other program works fine.  GIMP and Darktable, even Openshot for video editing.  But LibreOffice cannot resize a simple 150kb PNG logo.

So now we come to the subject of this post.  With XFCE I can have my different wallpaper on each desktop.  But with that I am so used to simply scrolling my mouse wheel on a blank area of the desktop to switch desktops.

Now installing a pager in the panel allows mousewheel switching, but that doesn;t solve the problem.

Luckily there is something called 'Window Manager Tweaks' built into Mint 18.1 XFCE.


And under the 'Workspaces' tab, right at the top is what we are looking for.

Now something else I discovered years ago is that I hate having to change the size of an open window to give myself a spot to scroll on.  That sort of defeats the purpose.

So I got into the habit of creating a little panel on the right (if you are left handed you'd probably do it on the other side) and when a window is maximized, it leaves a little strip down that side for me to scroll on.

When I am in KDE I have a few odd launchers on that panel, but this install of XFCE only has the bare panel.  Here's how it looks.  The small vertical grey rectangle to the right of 'bookmarks'.


Before I found the 'Tweak' settings I had a Workplace Switcher'  in that little side panel, and had the panel positioned about half way down the right hands side where I could conveniently scroll on it with the mouse.
That would still work for anyone with a desktop that doesn'e allow desktop scrolling to change workspaces.


Wednesday, 11 January 2017

Fix GTK fonts in KDE - A Better Way

Recently I managed to setup KDE to make fonts in a few of my non-KDE programs at least readable.  But it was a hit and miss approach.  Since then I have found a much cleaner solution that is in the Linux Mint repository and might be in most other repos.  Unlike my previous effort, this method is pretty consistent across my various GTK programs.

If you are running KDE4.x Plasma, either search in Synaptic for kde-gtk-config, and install it, or open a terminal and:

sudo apt-get install kde-gtk-config

Open:
System Settings > Application Appearance.

In the left pane choose GTK.

Among other things you can adjust the font.
Mine was some weird Ubutu font with a size of 14.  Changing it to the font and same size I use in my KDE-qt Programs worked perfectly and seems to stick across things like Synaptic, Chrome, GIMP  and Geeqie among others.

If you modified things according to my previous post you might also have to go to Fonts while you are in System Settings and drop Force Fonts DPI back to 96 or turn it off.

If you did sudo systemsettings and made the changes as root you will have to go back there and turn off Force fonts DPI or at least reduce it to the default (96).



Friday, 16 December 2016

no public key available for the following key IDs: 1397BC53640DB551 Mint 17.3 2016 December 16

 I have had a problem trying to refresh Mint Update and finally some searching has shown that apparently it was caused by some stupidity by Google.  Stupidity seems to be a regular feature of both Google and Facebook these days, but luckily people manage to find ways to fix their stuff ups from time to time.

In this case the refresh was throwing up an error message:
no public key available for the following key IDs:
1397BC53640DB551.

The fix appears to be to open a terminal and run the following command:

wget -qO- https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

Then do a refresh.


Friday, 18 November 2016

KDE - Easily FIX tiny fonts in Synaptic Package Manager

NOTE  This post has been updated with a better method on 11th January 2017.  The new method will work with KDE4.x, but requires installing a package that might not be in your repositories.  If it is, it makes life much simpler.

KDE is a lovely desktop to work with.  Correction, KDE 4.x is a lovely desktop to work with.  Plasma 5.x is so screwed up that all we can hope for is that someone decides to fork Plasma 4.x and maintain it.

In the mean time, for users of Mint 17.x KDE, one frustration is that as soon as we go into a non KDE program we end up with tiny little fonts on the screen.  In the image above, Synaptic Package Manager is showing with a Font Size of 9, and no amount of fiddling with font settings in KDE System Settigns, > Application Settings > Appearance > Fonts, will fix it.  Likewise, changing the settings in preferences in Synaptic makes no difference at all.

There are lots of posts from frustrated KDE users wanting a way to get Synaptic to have fonts consistent with the rest of their KDE desktop.  And despite all the weird and wonderful config file suggestions and deleting and reinstalling components, on my system one thing worked perfectly.  changing the fonts as ROOT.

Open a Terminal and use the command:     kdesudo  systemsettings

That will open the settings dialog.  In my case, as ROOT, the fonts were all Size 9.  My normal system fonts are about size 14 or 16 on my large LED monitors.



Find 'Fonts' in the left pane and choose Adjust All Fonts, and select a suitable size.  I chose Size 16 to be compatible with the screen I am using.



Choose Apply, and check the difference in Synaptic.
If Synaptic displays lines overlapping each other vertically, go back and put a tick in 'Force Fonts DPI', then Apply and restart Synaptic.  That should fix it.

Here's the Before and After - Font Size 9 as default, and Font Size 16 after.  Much nicer to work with.



Since posting this I have found a partial solution to some font problems in a few other non-KDE programs.

if you have a hidden file in yoiur home folder called        .gtkrc-2.0      you can edit it.  If it is not there. create it and make sure the settings below are in it.  Adjust the font size from 12 to whatever works for you.  Reboot the system then open some non KDE programs and see if it works.


# Configs for GTK2 programs

include "/usr/share/themes/oxygen-gtk/gtk-2.0/gtkrc"
style "user-font"
{
        font_name="Ubuntu Regular"
}
widget_class "*" style "user-font"
gtk-font-name="Ubuntu Regular 12"
gtk-theme-name="oxygen-gtk"
gtk-icon-theme-name="oxygen"
gtk-fallback-icon-theme="unity-webapps"
gtk-toolbar-style=GTK_TOOLBAR_ICONS
gtk-menu-images=0
gtk-button-images=0

.

Tuesday, 18 October 2016

Linux Mint KDE is Dead. Plasma 5 killed it.

One of the things I have enjoyed about Linux since I got my first copy on 3.5 inch Floppy Disk is that it can be configured to suit almost anybody's taste.  And my favourite desktop environment is KDE because it has always allowed me a wonderful flexibility in configuring my desktop to suit my work habits.

One of the greatest features of Linux has been the ability to have multiple work spaces (desktops), something that is beginning to find its way into Windows after about 20 years.  It is like having a collection of monitors on a single computer, so it is easy to have different desktops for separate tasks.   Something the KDE 'Plasma' desktop management has allowed us to do is have a different desktop wallpaper on each work space.  Not only that, but on different work spaces on different monitors.

That might sound a little like overkill, but having different wallpapers means I can tell at a glance which work space I am on by simply looking at the wallpaper.  Or I could until today!

I installed the latest Mint 18 KDE which uses Plasma 5.  And discovered that it is broken.  Not only is Plasma 5 broken, but the development team do not plan to fix the most important problem.  This is not a Mint team problem, it is a KDE Plasma problem.  So many things were wrong with Plasma 5 when I booted after the installation that I was shocked.  For a start, the interface is ugly.  Secondly it didn't work properly on my two monitor system.  And it will not allow me to set a separate work space wallpaper.  The drop down menu would not allow me to resize it, something that is simple to do in KDE 4.x.

A little hunting around on Google shows that people have been pleading with the team developing Plasma 5 to fix this issue and that the team has put it in the too hard basket.  They have simply broken something that worked perfectly and given us junk.  And not only junk.  It is ugly junk!

So if you currently use Mint 17.x KDE and are thinking about the move to Mint 18 KDE, all I can suggest is DON'T.

Download the Mint 18 Sarah KDE ISO, make a bootable USB and run it from there while you check out all the horrible new failures.  Try simple things like making a separate wallpaper on each desktop.  Check the ghastly things it can do to your fonts and menu system.  And look at the ugly window decorations.  If you use Activities, try switching activities on the activity pager and see if your monitors flicker like crazy.

If you are very lucky and the basics work, you'l just be missing the nice useful things like different wallpapers.  Despite the Plasma team saying they will not fix the broken wallpaper problem, there's a possibility they might eventually.  If they don;t - well - it simply means KDE as we know it, it dead...

Monday, 22 August 2016

ImageMagick collages

One of my pet projects is combining bash scripts with some graphic masks to create these using Imagemagick.






Thursday, 18 August 2016

Linux Mint Ubuntu FB Messenger App

Sometimes all I need is an easier way to type in Facebook Messenger than to use my phone.  If I am on the computer I can open my Facebook page, but then I am distracted by all the stuff happening there.  And there doesn;t seem to be a decent Facebook Messenger App for the LINUX desktop that actually works.

The simple way around it is to open www.messenger.com in a browser, then tear off the tab and move it to another desktop.  But I found another option that suits me better.

Most of us have a few browsers installed.  And I sometimes have a standalone browser that can be run from a folder.  Something light and quick.  Something like https://www.palemoon.org/

What I did was downloaded palemoon, opened www.messenger.com, logged in and set that to my home page.

Then as I am in Mint KDE, I resized the window and positioned it where I want it, then right clicked the Title Bar and chose  More Actions > Special Application Settings.

In there I checked the boxes for Position and Size and set both to 'Apply Initially'.
A few other tweaks in 'VIEW' got rid of the various tool bars and the status bar, making a nice clean Facebook Messenger App with very little effort.

And I should be able to just copy my PaleMoon folder to another computer and it 'Should' be ready to use there also.

Last, I dragged the    palemoon.bin file from the folder created when I extracted the Palemoon download file to my panel and changed the settings to show the FB Messenger Icon.

Somtething I noticed is that I am getting the message notification sounds even if this is on another work space.  So that's nice.

Now when I click the icon it already has my login details saved and is the size, shape and position I want.   And it does not interfere with my normal browsers!  Obviously I blurred the details.  But this is how it looks.



A little follow up.  The palemoon Messenger thing is working great.   It is the best way I have found to use FaceBook Messenger on a Linux desktop.  All notifications and stickers are working and it is actually better to use than using messenger on my phone or tables and far better than trying to use it inside my FB page.

I think I discovered the reason some of the FB Messenger Apps for Linux Desktop haven't been working.  I followed some basic python instructions to make a very simple App using Python 3 and Qt5.  And there was a package I needed that was not included in PyQt5 by default.

I ended up writing a simple browser to do the same thing as the PaleMoon idea above using PyQt5, and it worked more or less, but without sound notifications and every now and again it simply locked.  I couldn't find the missing libraries for this App either, which on my Mint 17 KDE simply hangs,  https://messengerfordesktop.com/ 

So for now, the solution above is simple, works really well and seems pretty well bulletproof.

I will do a few simple tweaks and update.  I can't see any reason PaleMoon can't be used to provide an up to date Skype interface too.

UPDATE !!!
I found another couple of advantages to using PaleMoon to run as as FaceBook Messenger App.
The most important one is that it is possible to use CTRL + and CTRL -  or CTRL and mousewheel to scroll the size of the messenger.  Not a big deal unless as I am right now, you are using the TV across the room as a computer monitor.