Wednesday, May 29, 2019

How to Run Firefox on Wayland in Debian Buster

Debian Buster has an option to run Gnome on Wayland (a replacement for X*). As indeed did Stretch, but in Buster, it's possibly going to be the default.

I had assumed that, if I selected Wayland, all applications would use it, but apparently not. Applications that can't use Wayland can use a compatibility layer called XWayland.

It seems Firefox has had Wayland support since version 65, but the default is still for the program to use XWayland.

Debian Buster of course has ESR 60 at the time of writing, but I have been trying out Firefox downloaded from the Mozilla website from my /home directory, and that is currently at version 67. (That's to say, downloaded from Mozilla, to my /home directory, and run from there, if the previous sentence didn't make sense.)

Thanks to a post on the Debian User Forums, I discovered I could launch Firefox on Wayland using this command:
$ MOZ_ENABLE_WAYLAND=1 ~/Downloads/firefox-67.0/firefox/firefox
Of course, if you have unpacked Firefox to a different location, use that location.

Firefox runs (with some weird error messages in the terminal:
IPDL protocol Error: Received an invalid file descriptor ###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
But is it running on Wayland?

I found a suggestion to use Xeyes because, being based on X, Xeyes won't work on Wayland Windows. Indeed, the eyes follow the mouse cursor in the Firefox window when launched normally, but not with Wayland enabled.
*What do you mean, that doesn't explain anything? Well, if you want the full explanation of what Wayland is, it's here.


Monday, May 6, 2019

Things that are broken in Debian Buster

Bottom controls don't work in Videos (Totem) in Wayland in Buster. They work OK in Xorg. Clicking a video file will start the player, but it's not possible to interact with the progress bar, menu or volume buttons.

I'm not the first to notice this, and its not confined to Debian. The Antergos forum has a post on the issue.

Saturday, May 4, 2019

Is my computer up to it?

Firefox with a few tabs open:
CPU maxing out? 70% RAM usage?
OK let's close Firefox:
Well, that dropped off!
And open Chrome:
CPU maxed out! Ram a little lower.
And let it settle down with a few tabs open:
OK, so I need to get scientific and open Firefox and Chrome with the same tabs open, but it seems that I've found the reason why my installation of Debian Buster (Testing as of time of writing) runs slow.

Back in 2015 when I bought this laptop, many reviews complained of mouse pointer lag - in Windows. An update seemed to fix it, but today it's back to the same condition- laggy mouse,and slow to open programs.

Have web browser become heavier? Has Debian become more bloated?

To me it looks like the web browsers are the culprit.


Things that are fixed in Debian Buster - Cancel print job in Gnome

In over two years of using Debian Stretch, I only encountered one bug. It wasn't possible to cancel a print job from the Printers dialogue in Gnome.

I am happy to report it is possible to cancel a print job from the Printers dialogue in Gnome in Buster.

Yay.

Here's hoping that Buster is as bug free. (Just to be clear, I'm testing the pre-release version, called, appropriately, Testing.)


Debian Buster preview

Two and a half years ago, I updated this computer to Debian Stretch while it was still Testing (the pre-release version) but in freeze (a stage when no new packages are added and bugs are ironed out).

Stretch has been a rock solid and reliable Debian release, both on this machine and on a later purchase, now the main family computer. But with a new version approaching, I always get the urge to try it out.

So, a few days ago, I updated the older computer, now rarely used, to Buster, which again is still strictly Testing but in freeze.

I'll make the same warning as I did at that time: Buster is still in Testing and can break. If it breaks, you get to keep the pieces.

So here is Debian Buster:
I have to confess I ditched the doggy wallpaper straight away and used the Moonlight wallpaper by Juliette Taka Belin.
Back in 2016 I wrote "The update was pleasantly painless with no issues". This time I wasn't quite so lucky. I ran out of disk space during the installation, and got this message:
No space left on device
I had tried to check if there was enough space for the upgrade using a command I found here (which suggested I had just barely enough). This computer has a separate root partition, given the default size of 10GB by the installer. This default size is really too small nowadays- at least for a Gnome install update.

Luckily I was able to run apt-get clean and apt-get autoclean to make enough space to finish the upgrade. Although I was given an error message before I could continue:
dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem 
When the upgrade completed, I rebooted the computer but it froze with just the cursor visible in the top left of the screen. That's my installation borked, I though, and went to bed.

However, the next morning I found I could boot into Rescue Mode and get a command prompt. I cleaned up the disc and found I could load the default installation. Hurrah!

Now I have Gnome running reasonably well. It does seem a bit slower than Stretch at times, despite the claim that Gnome 3.30 is lighter on resources. I may try a clean install at some point to see if that makes any improvement. This is a very low spec machine, it has to be said.

The most obvious change in is a switch from an icon grid to a sidebar list in Gnome settings. There are also minor changes to the file manager, and the addition of a Night Light mode, which changes the screen to a sepia tone, which apparently reduces eye stain at night.

One bug I have found so far is that the Gnome file manager does not create thumbnails for image files. This is a known bug, and quite easy to rectify by installing libgdk-pixbuf2.0-bin.

For me,  Stretch was a big improvement over Jessie. This update by comparison seems to add only minor improvements. My impressions so far are good, but I can live with my Stretch install on my main computer for a while. I will see what bugs get knocked out of Buster (a few fleas?) before updating it.

At least having an old laptop around I can scratch my update itch without inflicting those fleas on the family.