Keepass Ctrl+Shift+u shortcut for Open URL doesn’t work

Some time ago, the Keepass shortcut for opening a URL stopped working. I recall at one point (maybe in Windows) it was <Ctrl>u. It’s now (in Ubuntu) <Ctrl><Shift>u. Pressing that while in the search bar or when highlighting an entry does not open the URL in your configured browser, however right-clicking on the entry and selecting Open URL does work.

The cause of this is a conflict with a global keyboard shortcut for Unicode input:
https://github.com/keepassxreboot/keepassxc/issues/13776
The linked bug report shows how to resolve the conflict. I’ll repeat that here:

Terminal command: $ ibus-setup
IBus Preferences / Emoji tab
Alter the “Unicode code point” keyboard shortcut to something other than its default <Ctrl><Shift>u

I selected <Ctrl><Alt>u.

Uncategorized

Comments (0)

Permalink

Troubleshooting new ASUS ZenWiFi BT6 WiFi Router

I replaced an older router with an ASUS ZenWiFi BT6. Despite being a highly rated router with newer technology, I initially had more trouble with it than with my older router. As it turns out, newer tech is more complicated, and getting it to work right requires learning about that new tech. Below is the equipment I have connected to the new router that had problems and the solutions to those problems.

These solutions involve multiple WiFi bands associated to the same SSID, network subnets, and WiFi Scheduling.

TL;DR: Set up your main WiFi network to use the bands your devices can use, and for devices with connection problems create a Guest network. When creating that network:

  • Turn off WiFi Scheduling (which is on by default)
  • Select a single 2.4 GHz WiFi band
  • If the device needs access to your local network, to connect to a NAS for instance:
    • Open “More Config.
    • Turn on “Use same subnet as main network” (which is off by default).  NOTE: This setting is not changeable after the network has been created. If you need to change it, you’ll have to delete and recreate the WiFi network. To check, log in to the router, select “Network” from the menu on the left, select the network from the list in the middle of the page. The title of the network at the top of the right column should be “Guest Network (Main Subnet)”.

There’s a bug with the web interface (Firmware Version:3.0.0.6.102_58624) you should be aware of.  On the Network page, there are two sets of networks, MAIN NETWORK and GUEST NETWORK.  Clicking the “Add a Network” button under the guest networks doesn’t do anything.  You have to select “Guest Network +” in the right-most column.

Roku

When attached to a WiFi network with multiple bands, the Roku would occasionally lose its connection and fail to reconnect.

Solution: Create a separate WiFi 2.4 GHz network, IoT is fine as it doesn’t need access to the local subnet. Since the Roku doesn’t need 5 or 6 GHz speeds, it makes sense to use 2.4 GHz because it has the best range. And since there’s only one WiFi band available, the Roku doesn’t ever connect to the weaker 5 or 6 GHz bands.

Denon AVR-X3700H with TIDAL and music playback from local NAS

Multiple bands on a single SSID would halt TIDAL playback roughly hourly, the same as for the Roku. My initial solution was to use the IoT network created for the Roku, but the receiver couldn’t play music from my NAS because it was isolated from the main subnet. I created a new 2.4 GHz-only network and set it to be part of the main network. The single WiFi band stopped playback interruptions and 2.4 GHz is plenty fast for music and has the best range. The only catch is my phone needs to be on the same WiFi network in order for the TIDAL app to see and connect to the receiver.

After fixing this, I found playback would stop every two hours and the receiver lost its network connection and could no longer see the network at all. This was caused by WiFi Scheduling being on by default with one-time access with a 2 hour time limit (also the default). You can turn WiFi Scheduling off after the network is created. See TL;DR above.

WiiM Ultra music streamer

The WiiM had the same problems as the Denon, and the fix is the same, using a single WiFi band network with WiFi Scheduling off and set up to be part of the main subnet.

Various laptops

I have multiple laptops that connect to WiFi for internet and local NAS access. Internet access was never a problem, but automounts using the NAS were. The problem was that some WiFi networks were, by default, not created as part of the main subnet. For those networks, there was no option to switch the subnet and they have to be recreated. See TL;DR above.

Uncategorized

Comments (0)

Permalink

Installing fonts with Ubuntu 24

In the past, fonts were installed by copying them to a common fonts directory and running fc-cache to make the system aware of the new fonts.  Since then, things have gotten easier with Font Manager (/usr/bin/font-manager).  To install a font:

  1. Run Font Manager
  2. If the button in the upper left corner does not say “Manage”, click it and select the “Manage” radio button
  3. Next to the “Manage” button, click the + button
  4. Select the font file(s) to install

That’s it.  Font Manager will load the font and display a sample of text in that font.  Note that Font Manager can install directly from zip files, so you don’t need to unzip them first.

Uncategorized

Comments (0)

Permalink

Thinkpad T560 Battery Usage Under Ubuntu 24

Information about batteries

List all power devices

$ upower -e
/org/freedesktop/UPower/devices/battery_BAT0
/org/freedesktop/UPower/devices/battery_BAT1
/org/freedesktop/UPower/devices/line_power_AC
/org/freedesktop/UPower/devices/DisplayDevice

Get information about one of the devices

$ upower -i /org/freedesktop/UPower/devices/battery_BAT1
native-path: BAT1
vendor: SANYO
model: 45N1775
serial: 219
power supply: yes
updated: Tue 31 Dec 2024 08:11:49 AM EST (25 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: discharging
warning-level: none
energy: 40.67 Wh
energy-empty: 0 Wh
energy-full: 60 Wh
energy-full-design: 60 Wh
energy-rate: 4.852 W
voltage: 11.286 V
charge-cycles: N/A
time to empty: 8.4 hours
percentage: 67%
capacity: 100%
technology: lithium-ion
icon-name: ‘battery-full-symbolic’
History (charge):
1735650649 67.000 discharging
History (rate):
1735650709 4.852 discharging
1735650679 5.101 discharging
1735650649 5.000 discharging

Charging Thresholds

Show the remaining battery percentage below which the battery will be charged.  The default is 0, which means the battery will always charge when on AC power.

$ cat /sys/class/power_supply/BAT1/charge_start_threshold
0

Change it to 5% so the battery won’t charge unless it has less than 5% of a full charge remaining :
$ sudo sh -c “echo 5 > /sys/class/power_supply/BAT1/charge_start_threshold”

Show the remaining battery percentage above which the battery will not be charged.  The default is 100, which means the battery will be charged until completely full.
$ cat /sys/class/power_supply/BAT1/charge_stop_threshold
100

Change it to 95%:
$ sudo sh -c “echo 95 > /sys/class/power_supply/BAT1/charge_stop_threshold”
Check what the battery is doing (returns discharging or charging):
$ cat /sys/class/power_supply/BAT1/status

References

How to Set Battery Charge Limit in Ubuntu 22.04 & 24.04

Uncategorized

Comments (0)

Permalink

Ubuntu 24.04 doesn’t wake up from suspend

Carmine, a Lenovo Thinkpad T560, stopped waking up from suspend after Ubuntu was upgraded from 22.04 to 24.04. After a suspend, the only recourse was to hold the power button down for five seconds until the laptop powered off, then restart it.
The fix is to update this line in /etc/default/grub:
 GRUB_CMDLINE_LINUX="intel_iommu=off"
Then run
 sudo update-grub
to generate the grub configuration.

Here is relevant information:
Bug 197029 – intel_iommu=on breaks resume from suspend on several Thinkpad models
Ubuntu 24.04 LTS does not wake up or repond after being idle for some time

Uncategorized

Comments (0)

Permalink

Upgrade Carmine from Ubuntu 22.04.5 to 24.04.1

Carmine is a Lenovo Thinkpad T560 laptop. It’s been running Ubuntu 22.04 for almost two years and was overdue for an upgrade to 24.04. The upgrade strategy for my machines is to keep two identically-sized partitions and copy the current partition to a backup partition before doing an upgrade. This makes sure I have a working system in case something goes wrong or a piece of software doesn’t work with the new version. This time, however, I didn’t do that because the partions were nearly full. Rather, I deleted the backup partion in LVM and added its space to the active one.

$ df -h
/dev/mapper/volgroup1-linux1 48G 43G 2.7G 94% /

$ sudo vgdisplay
--- Volume group ---
VG Name volgroup1
VG Size 112.46 GiB
VG UUID 6Jf0OZ-gKZU-vyqV-G06Y-tofU-IP3O-LMjwwX

$ sudo lvdisplay
--- Logical volume ---
LV Path /dev/volgroup1/swap
LV Name swap
VG Name volgroup1
LV UUID GR3Vhj-3DmU-VOUg-LO9u-Men4-GJHo-c7nYYQ
LV Size 16.00 GiB

--- Logical volume ---
LV Path /dev/volgroup1/linux1
LV Name linux1
LV UUID c3Ovej-FPO9-xte2-7W3B-3qMM-ZUnO-kzmBHy
VG Name volgroup1
LV Size 48.00 GiB

--- Logical volume ---
LV Path /dev/volgroup1/linux2
LV Name linux2
LV UUID cC2Z0d-r6Rh-Llkp-R7RP-02Fz-b5M1-xzdoGJ
VG Name volgroup1
LV Size 48.00 GiB

Logical Volume linux1 is used by the current OS. linux2 contains the backup of the prior Ubuntu version, 20.04.5. This can be verified by checking /boot/grub/grub.cfg. There isn’t enough space on these partitions for anything new, so I’m going to remove linux2 and add its space to linux1.
Use KDE Partition Manager (from package partitionmanager), which can operate on mounted partitions.
1) Delete linux2
2) Resize linux1 to use freed space
3) Apply changes
That’s it! Partition Manager automatically updates the filesystem to use the new space.
Next run the Ubuntu upgrade with Software Updater.
The installer said cheese is no longer supported, however it remained functional after the upgrade.
The installer also said it would remove GIMP and XSANE. I reinstalled these after the upgrade and they work fine.

Uncategorized

Comments (0)

Permalink

Resolving time issues with dual boot Windows and Linux

Unless you live in the GMT time zone, dual booting between Windows and Linux will cause your computer to display the wrong time each time you boot the other OS. This is because Linux (Ubuntu in this case) by default assumes the hardware clock is set to the UTC time zone and Windows assumes it’s set to the local time zone. One has to get changed, and because Windows is screwed up, it’s easier to tell Linux to use local time. The command to do this is:
timedatectl set-local-rtc 1 --adjust-system-clock
to confirm the change, run timedatectl

Reference: Gadget Gang

Uncategorized

Comments (0)

Permalink

Upgrade Carmine from Ubuntu 20.04 LTS to 22.04 LTS

/dev/volgroup1/ubuntu16.04 is really Ubuntu 20.04
/dev/volgroup1/ubuntu18.04 is the old Ubuntu 18.04 installation
Both logical volumes are the same size

Rename the old logical volume

First rename the old logical volume to reflect what will be stored there:
sudo lvrename volgroup1 ubuntu18.04 linux2

Back up the current OS

copy the contents of the current OS in ubuntu16.04 to linux2:
sudo dd if=/dev/volgroup1/ubuntu16.04 of=/dev/volgroup1/linux2 bs=1024k

Update the backup copy to be bootable

Mount the new volume:
sudo mkdir /media/linux2
sudo mount /dev/volgroup1/linux2 /media/linux2
Edit /media/linux2/etc/fstab and change / to point to /dev/mapper/volgroup1-linux2

Update Grub

Load Grub Customizer if you don’t already have it:
sudo apt install grub-customizer
Run Grub Customizer and check the entries for both logical volumes including the paths and LVIDs (which you can get from lvdisplay)
Rename the entries to Ubuntu primary (linux1) and Ubuntu alternate (linux2)
Don’t forget to save, which runs update-grub and install to MBR

Check both logical volumes are OK

Verify you can boot into primary and alternate

When running alternate, rename logical volume ubuntu16.04 to linux1, update its fstab and update Grub as above.

Now that there’s a backup copy of the current OS in Ubuntu alternate, it’s safe to boot into Ubuntu primary and begin the upgrade

Uncategorized

Comments (0)

Permalink

Upgrading from PHP 7.4 to 8.0

PHP 7.4 is no longer supported. My host offers 8.0, so I upgraded, but WordPress failed to run.

Starting State

WordPress version 6.1.1
PHP 7.4 FastCGI

Error Description

Upgrading to PHP 8.0 FastCGI caused WordPress to show:

There has been a critical error on this website. Please check your site admin email inbox for instructions.

None of the WordPress pages worked, including the recovery page that WordPress emailed to me, wp-login.php?action=enter_recovery_mode.

Diagnosis

To diagnose the problem, I turned on debug logs by adding these lines to wp-config.php:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );

This showed a fatal error in the wp-cache plugin. This was surprising because that plugin was disabled.

Solution

Moving the wp-cache directory from the plugins directory to another directory I created, plugins-old, fixed the problem.

Uncategorized

Comments (0)

Permalink

Open a File From the Command Line as if it were Double-Clicked in Nautilus

$ xdg-open {file-name}

Uncategorized

Comments (0)

Permalink