site  contact  history  index

JWM fixes windows drawing under tray and off screen

December 05, 2026 — BarryK

There are two problems that have been there forever with JWM. Firstly, a window drawing partly under the systray. Secondly, a child window drawing partly off the right side of the screen.

Using Claude AI, here is the solution to the first problem:

https://github.com/joewing/jwm/issues/685

And the second:

https://github.com/joewing/jwm/issues/686

Have compiled JWM in woofQ2 and created a PET; it will be in the next release of EasyOS.   

Tags: easy

EasyOS Excalibur-series version 7.5.7

December 02, 2026 — BarryK

Yes, we are still stuck with manual updating, as uploading to our file host ibiblio.org has been broken for a couple of weeks, with no end in sight.

See 7.5.4 blog announcement, also says how to do a manual update:

https://bkhome.org/news/202611/easyos-version-754-released.html

Changes since 7.5.5:

Download:

https://easyos.org/releases/7.5.7/

Forum feedback welcome:

https://forum.puppylinux.com/viewtopic.php?p=181050#p181050

Note that I will be traveling overseas tomorrow, and Easy development might be patchy for awhile. Note also, I am expecting a resolution to our online file hosting problem soon.   

Tags: easy

PKGget drag tabs divider crash fix

December 02, 2026 — BarryK

This crash was reported as fixed when changed to using the 'gtkdialog' source from woof-CE:

https://bkhome.org/news/202508/column-resize-now-works-in-pkgget.html

Hmmm, but now the crash has come back, as reported by forum member tallboy:

https://forum.puppylinux.com/viewtopic.php?p=180992#p180992

This is far from easy to fix. So, have given the problem to Claude AI. I uploaded a partial skeleton root filesystem, the gtkdialog source, and a photo of PKGget gui, then asked Claude:

"gtkdialog" is a binary executable to create GUIs for shell scripts. The example given here will display a GUI window.

To reproduce the problem, expand "rootfs-test.tar.gz" contents into a Linux root filesystem, then within the filesystem, run this:
# gtkdialog -f /tmp/petget/PPM_MAIN_GUI

Usage documentation for gtkdialog is in the rootfs-test tarball, at /usr/share/doc/gtkdialog

Try to drag the divider between "Package" and "Description" tabs, it does move, but immediately pressing the mouse left button also selects the first entry, which is package "alacarte_3.56.0-2". Upon release of the mouse button, a window pops up, titled "PKGget Package Manager: preinstall" starting with text "You have chosen to install package 'alacarte_3.56.0-2'" and the desktop then freezes. Mouse pointer moves but inoperable. I am able to kill the gtkdialog binary executable to recover mouse operation.
What is supposed to happen is that the divider will be dragged by the mouse pointer, the "alacarte_3.56.0-2" will not be selected.

There is a photo that shows what it will look like, "gtkdialog-gui.png"
Also, the source for gtkdialog is "gtkdialog-0.8.5.1.tar.gz"

Reply from Claude:

I'll start by extracting both tarballs into separate directories and looking at the GUI definition and the gtkdialog source.

Found the likely cause in gtkdialog's source: the tree runs its `button-release-event` actions for any release on the widget, including column-header resize drags. Checking GTK2 behaviour next, then I'll write a fix.

signals.c is patched (tree widgets now ignore press/release events that come from the column-header resize area). Now adding the second part to widget_tree.c: undoing the stray "first row selected" side effect after a divider drag.

I found the cause and wrote a patch, but I haven't compiled or run it. This sandbox has no GTK development headers, so the patch is untested. I did check that it applies cleanly to the original 0.8.5.1 source.

**Cause of the popup and freeze**

Your `PPM_MAIN_GUI` attaches these actions to `TREE1`:

```xml
<action signal="button-release-event">/usr/local/pkgget/installpreview.sh</action>
```

gtkdialog connects that signal to the `GtkTreeView` as a whole, and it runs the action for every release event the tree receives. A `GtkTreeView` also receives events from its column-header resize areas. So letting go after dragging the divider runs `installpreview.sh` with whatever `$TREE1` holds, as if you had clicked a row. The preinstall window then opens while GTK still has the pointer grabbed for the resize. I haven't confirmed that grab is what freezes the desktop, but it fits the symptom: the pointer moves, nothing responds, and killing gtkdialog frees it.

**Why `alacarte_3.56.0-2` gets selected**

Pressing on the divider focuses the tree view. With nothing selected, GTK picks the first row. That is how `installpreview.sh` ends up with "alacarte" in `$TREE1`. I couldn't download the GTK source to confirm this, so it is from my recollection of GTK2 behaviour.

**What the patch changes**

- **`signals.c`:** `on_any_widget_button_pressed` and `on_any_widget_button_released` now return immediately for a `GtkTreeView` when the event did not come from the row area (`gtk_tree_view_get_bin_window`). Dragging a divider no longer runs any `button-press-event` or `button-release-event` actions. Clicks on rows work as before.
- **`widget_tree.c`:** On a header press it records whether anything was selected. After the release, if nothing was selected before, it clears the selection. This is a workaround for the focus side effect, since I can't stop GTK from selecting the row.

The patch also covers `TREE2`, the installed-packages list, because it uses the same signals.

To try it:

```
cd gtkdialog-0.8.5.1
patch -p1 < gtkdialog-tree-header-drag.patch
./configure && make     # or meson, as you normally build it
```

Then run `gtkdialog -f /tmp/petget/PPM_MAIN_GUI` in your rootfs and drag the divider. The rootfs binary links GTK 2 (`libgtk-x11-2.0`), so build against GTK 2 to match.

Two things I noticed in the GUI file:

- It points at `/usr/local/pkgget/installpreview.sh`, but the tarball only has `/usr/local/petget/installpreview.sh`. If that path is wrong on your system, the action fails quietly. Your report shows a preinstall window popping up, so it may exist there.
- The selection-clearing part is the one I'm less sure of. If the first row still ends up selected after you apply the patch, tell me and I'll adjust it. The release suppression in `signals.c` should still stop the popup and the freeze.

My reply:

Applied the patch and compiled gtkdialog. Pressing the mouse left button on the tab divider immediately highlights the "alacarte_3.56.0-2" entry. Dragging of the divider works. Release the mouse button and everything ok, except the menu entry remains highlighted, and a click anywhere else outside the menu entry causes it to be selected and the preinstall popup appears.

Claude reply:

Thanks, that narrows it down. The popup is gone, so the `signals.c` part works. My selection-clearing is what failed. GTK's own handler for the end of a column resize returns TRUE, and that stops later handlers on the signal. My `connect_after` release handler therefore never ran.

I'll switch to a different approach that never lets the row get selected in the first place.

I've updated the patch. It's still untested, because this sandbox can't build against GTK.

**Why my first selection fix failed:** I tried to clear the selection after the release. But GTK's handler for the end of a column resize returns TRUE, which stops any handler connected "after" it. My handler never ran, so the row stayed selected. The stuck selection then made your next click run `installpreview.sh` with `alacarte_3.56.0-2`.

**What the new version does** (the `signals.c` change is the same as before):
- **Press on a divider:** if nothing is selected, the tree's selection mode is switched to "none" before GTK's own handler runs. GTK then has no way to select the first row, so it should not highlight, even during the drag.
- **Release:** the original selection mode is restored. This handler is now connected normally, not "after", so it runs before GTK's handler can stop it.
- **A row is already selected:** nothing changes, and the selection is kept.

To use it, apply the new patch to the original 0.8.5.1 source, not on top of your already-patched tree. Alternatively, run `patch -R` with the old patch first. Then rebuild.

Test the same way: press and drag the divider, release, then click empty space. Nothing should highlight at any point, and no popup should appear until you click a row.

If the highlight still shows up on press, please tell me whether it's GTK 2 or GTK 3 and whether the tree is in a scrolled window. I'd then look at where the selection is made, rather than guess further.

There was a bit more to-and-fro after that, we ended up with two alternative fixes; patches for gtkdialog source and small change in one of the PKGget scripts.

I have implemented the fix. The latest gtkdialog will be compiled in woofQ2.    

Tags: easy

Yradio version 1.9.6-7

December 01, 2026 — BarryK

Forum member fredx181 has continued to improved Yradio:

https://forum.puppylinux.com/viewtopic.php?p=181010#p181010

EasyOS 7.5.5 has Yradio 1.9.6-5. Here is fredx181's post about 1.9.6-6:

https://forum.puppylinux.com/viewtopic.php?p=180562#p180562

Nice incremental improvements.   

Tags: easy

Norwegian keyboard layout fix

November 30, 2026 — BarryK

We have had this problem with the Norwegian keyboard for a long time, for example reported by forum tallboy:

https://forum.puppylinux.com/viewtopic.php?p=158593#p158593

Quoting tallboy:

I still have the same problem with my keyboard needing ASCII code to work on some keys, while others don't work at all.

We have worked on it, but no fix. Today, I thought, why not throw the problem at Claude AI. So far, I have been pretty much gobsmacked how clever Claude is, so decided give it a go. I uploaded a skeleton EasyOS rootfs and asked Claude:

This is a skeleton root filesystem for the EasyOS Linux distribution. A user with Norwegian layout keyboard has used the Xorg gui layout tool at usr/local/apps/XkbConfigurationManager/XkbConfigMngr but some keys on his keyboard do not work and he has to type ascii codes for them. Can you fix this?

Claude came up with a fix very quickly:

I'll extract the archive and look at the tool.

Checking the options scripts next, since AltGr (third level) keys are the usual casualty for Norwegian.

Status: the symbols and Lv3 script look stock, so I'm now checking the model chooser and the rules mapping.

Xvfb and setxkbmap are available, so I can test what each setting actually produces for Norwegian.

Running the actual scripts in a sandbox with a stubbed dialog to see what config they write for Norwegian.

The `==` is a dash-only failure in my sandbox (EasyOS uses busybox ash), so I'll use bash for the test.

The tool writes valid config, so the fault must be in what that config resolves to. Comparing what the keymap does with the keycodes a real evdev keyboard sends (AltGr = 108):

Verifying the fixed ApplyNow end-to-end on a legacy "xorg" config, then checking AltGr resolves correctly.

Fix works: AltGr is now keycode 108 (what the keyboard actually sends) and AltGr+7 gives `{`. Repacking the skeleton.

I've fixed it and repacked the skeleton, but I only tested the fix against the keymap compiler, not on a real Norwegian keyboard. The tool itself writes valid config. The problem was the keycode set that the `xorg` rules select.

**Cause:** the config tool and `10-evdev-puppy.conf` set `XkbRules` to `xorg`, which in this skeleton points to `base`. That uses the old `xfree86` keycodes, where AltGr is 113. A real keyboard through Xorg's evdev driver sends 108. I compiled the Norwegian keymap both ways to confirm.

So AltGr did nothing. Norwegian needs it for `@ $ { [ ] } \ ~ |`, which is why the user had to type ASCII codes. The arrow keys and KP_Enter are also remapped wrongly under those rules. The US layout needs none of these keys, so the problem only shows once someone picks Norwegian.

**Changes** (all in the tarball `rootfs-skeleton-easyos-fixed.tar.gz`):
- `XkbApplyNow` now runs `setxkbmap -rules evdev`, and rewrites an old `"XkbRules" "xorg"` line to `"evdev"` first.
- `XkbConfigMngr` does the same rewrite when it starts, so the fix also holds if the user skips "Yes" and waits for a reboot. This also repairs the user's existing config.
- `etc/X11/xorg.conf.d/10-evdev-puppy.conf` and the `.confMIX` copy now ship with `"XkbRules" "evdev"`.
- `usr/sbin/keymap-set` and `usr/sbin/quicksetup` also called `setxkbmap -rules xorg`, so I changed them to `evdev`. Otherwise they would have broken AltGr again after the tool fixed it. This is outside the Xkb tool, so revert it if you'd rather keep this change narrow.

**Check on the keymap:** with the evdev rules, AltGr is `ISO_Level3_Shift` on keycode 108 and AltGr+7 gives `{`. I also ran `XkbApplyNow` on a config containing `"xorg"` in a sandbox, and it came out as `"evdev"`. The test used bash because my sandbox shell is dash, which rejects the `==` in these scripts; EasyOS's busybox ash accepts it.

**Not changed:** `XkbVariantConfig` finds the chosen variant with a plain substring match. With several layouts, picking `1: nodeadkeys` could also match `11: …`. It doesn't affect a single Norwegian layout.

Yes, six files have been changed:

/etc/X11/xorg.conf.d/10-evdev-puppy.conf
/etc/X11/xorg.conf.d/10-evdev-puppy.confMIX
/usr/local/apps/XkbConfigurationManager/XkbApplyNow
/usr/local/apps/XkbConfigurationManager/XkbConfigMngr
/usr/sbin/keymap-set
/usr/sbin/quicksetup

I haven't looked at this fix in depth, and haven't tested it. Well, I don't have a Norwegian keyboard, but haven't tested if the fix breaks anything else. I have been so darn impressed with Claude, just taking this fix as good and have applied it. It will be in the next release of EasyOS.

One thought; EasyOS is staying with evdev, while many other Linux distributions have retired it, in favour of libinput, and if we go that path it might affect the above fixes. I need to do some more research about the difference between the two. Hey, why not ask Claude:

EasyOS is using evdev, but if in the future will change to using libinput, will the above fixes need to be reconsidered?

Claude reply:

No, the fixes should survive a move to libinput.

- **Keycodes:** the `evdev` in `-rules evdev` names the XKB keycode set, which is the kernel's event codes plus 8. It is not tied to the evdev driver. The libinput driver in Xorg produces the same codes. The legacy `xfree86` codes were only for the old `kbd` driver, so `evdev` rules are correct for either input driver.
- **XKB settings:** `XkbRules`, `XkbModel`, `XkbLayout` and `XkbOptions` are handled by the X server's XKB layer, not by the input driver. The tool's config entries and `setxkbmap` work the same under libinput. You would only change the `Driver "evdev"` line and the `MatchIsKeyboard` section header in `10-evdev-puppy.conf`.
- **Other changes in `10-evdev-puppy.confMIX`:** that file already moves the pointer, tablet and touchscreen sections to libinput but keeps the keyboard on evdev. The tool still finds `XkbLayout` there, so nothing else needs to change.

Three things are worth checking if you do switch:
1. **File names:** the scripts look for `10-evdev-puppy.conf` and read `/etc/X11/xkb/rules/evdev.lst`. If you rename the conf file or a future xkeyboard-config drops the `evdev` rules files, update those paths. Newer releases may merge `base` and `evdev`, so I'd confirm the files are still there after any upgrade.
2. **Wayland:** this tool only edits Xorg config, so it would not control the keyboard layout in a Wayland session.
3. **Rules name:** the `base` rules still use `xfree86` keycodes. Nothing in this fix needs them, but don't point anything back at `xorg` or `base`.

Then I asked:

EasyOS will be staying with Xorg, will not use Wayland

Claude reply:

Then the Wayland caveat doesn't apply, and the fix is complete as delivered. On Xorg with either evdev or libinput, `-rules evdev` and `XkbRules "evdev"` are the correct settings, and nothing else in the tool needs to change.

The only upkeep is the one from before. If a future xkeyboard-config update drops or renames the `evdev` rules files, the `evdev.lst` path in the scripts and the `evdev` rules name would need updating. I'd check after any xkeyboard-config upgrade.

...so, we have some guidance if switch to libinput.

If you are thinking it's a worry how clever Claude AI is, join the club.        

Tags: easy

More source packages ported from OE to woofQ2

November 30, 2026 — BarryK

The EasyOS Scarthgap-series is built with packages compiled in a port of OpenEmbedded. Although the Excalibur-series is built with Devuan DEB packages, it also has some of the binary packages from Scarthgap.

I have been gradually working through, recompiling the Scarthgap packages in woofQ2, so compiled to run in Exacalibur. These are now PET packages. Here are pictorial views showing packages that are now compiled in woofQ2:

img1

And inside the "other" folder:

img2

Still some more to port.   

Tags: easy

evince2 gtk2-based version 2.32.3

November 29, 2026 — BarryK

Finding a PDF viewer has been an ongoing saga. I posted about preferring the old gtk2-based Evince:

https://bkhome.org/news/202510/ye-olde-gtk2-evince-is-better.html

The current release of EasyOS, 7.5.5, has Papers PDF viewer. That is gtk3-based and has a reasonable window border-width for grabbing and resizing.

However, today hit a problem; opened a pdf document and got a never-ending "Loading document" -- cancel it, and document has actually loaded. Same thing with another PDF. Currently the Internet connection is not working, so it looks like Papers is trying to connect to something remote ...not good.

So, have decided to take on maintaining the old gtk2 Evince, with the help of Claude. Have made some improvements, now compiling it with:

# ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --without-keyring --disable-scrollkeeper --enable-dvi --enable-djvu --disable-nautilus  --disable-dbus --with-gtk=2.0 --enable-comics --without-gconf --enable-pixbuf --disable-gtk-doc-html --disable-help --with-gtk-unix-print --enable-impress --disable-static

This will be in the next release of Easy. Version is now 2.32.3, source will be in woofQ2, will upload soon. Calling the package "evince2".   

Tags: easy

ext4 patch for Limine 12.11.2

November 29, 2026 — BarryK

We have a ext 2/3/4 patch for Limine v12, tested on Limine 12.3.3 and 12.9.4; however. compile fails on limine 12.11.2, as reported:

https://github.com/Limine-Bootloader/Limine/issues/721

A bit beyond me to rework the ext patch, so took the help of Claude AI, asked this:

Limine is a bootloader, there is a third-party patch, attached, and a compile script. Compile version 12.11.2 fails with the message reported at the Limine github issues:
https://github.com/Limine-Bootloader/Limine/issues/721
Can you think of any way to reduce the size of the Limine code, or the patch, without compromising functionality?


Here is Claude's reply:

I'll start by unpacking the files into separate directories and reading the compile script and the issue.

Quick status: I've reproduced the setup. The patched stage 2 is about 27.2 KB compressed against a 28,160-byte limit, so I'm now working out the exact overshoot and what to trim.

My build is 188 bytes over the limit (the reporter's toolchain was 1 byte over, so toolchain variance alone is about 190 bytes). Now I'll read the ext driver for savings.

Allocations are zero-filled, so I can rely on that. Now I'll write the compact driver: keep the struct definitions (they cost no code), keep the first ~219 lines, and replace all the logic.

`-Os` makes no real difference (26,903 vs 26,913), so build flags aren't a lever here. I'll look at where the remaining bytes in the ext driver actually go.

`mtools` isn't installed here, which only affects the UEFI CD image and not the code. I'll leave that one option out and keep both UEFI ports so the driver is still compiled for them.

I rewrote the ext driver more compactly. With it, 12.11.2 builds in my environment with a 124-byte margin. I did not boot it, only built it and tested the driver on a host machine.

**Cause:** the failing `TIMES value -1 is negative` line is a size check in `stage1/hdd/bootsect.asm`. The decompressor plus the compressed stage 2 must fit in 28,160 bytes (`63*512 - 4096`), because stage 2 has to fit in the 63-sector gap before the first partition. Unpatched Limine 12.11.2 is 26,078 bytes, so the ext driver was the 2 KB that tipped it over. In my build the original patch came to 28,348 bytes, 188 over. The reporter's toolchain was only 1 byte over, so it differs from mine by about 190 bytes.

**Result:** the patched build is now 28,036 bytes. That is 312 bytes smaller than before, and in the reporter's toolchain it should leave about 300 bytes of headroom. It built cleanly with your exact `--enable-bios --enable-bios-cd --enable-bios-pxe --enable-uefi-ia32 --enable-uefi-x86-64`, but I left out `--enable-uefi-cd`, which needs `mtools` (not installed here).

**What I changed** (only `ext2.s2.c` and a one-liner in `file.s2.c`):
- **Block lookup:** the whole-file block map is gone. A block is now looked up on demand, with one loop covering single, double and triple indirection, so the map-building and cleanup code disappears.
- **Group descriptors:** the two near-identical 32-bit and 64-bit inode lookups are now one.
- **Shared helpers:**
  - A single function follows symlinks for both directory components and the final file.
  - One helper checks the ext superblock.
  - One `goto fail` exit replaces five copies of the cleanup code.
- **Memory:** the per-directory-entry allocation is replaced with a static buffer, and the label and GUID queries share one static superblock instead of two 1 KB stack copies.
- **What didn't help:** `-Os`, per-function `minsize`, and replacing divisions with shifts each saved under 25 bytes or made it larger, so I left them out.

**Testing:** I built a host harness and compared the original driver and the new one on real ext2, ext3 and ext4 images, with 1K and 4K blocks and a 64-bit ext4. The new driver passes all 114 checks (original: 94 of 114). The checks cover:
- files up to 70 MB;
- partial reads;
- absolute, relative, chained and mid-path symlinks;
- case-insensitive lookup;
- label and GUID;
- failure cases.

The negative cases and label/GUID output are identical to the original's.

**Behaviour changes:**
- **Fixed, relative symlinks:** these panicked or resolved wrongly in the original, including a relative symlink directly under `/`.
- **Fixed, large ext2/3 files:** reads past about 66 MB were wrong.
- **Fixed, directory lookup:** it no longer matches deleted entries (inode 0).
- **Fixed, 64-bit ext4:** it now reads the correct high half of the inode-table address (offset `0x28`).
- **Fixed, labels:** a 16-character label is no longer over-read.
- **Changed, error messages:** the "not a directory/regular file" messages are merged into one and slightly reworded.

The patch is attached; it applies cleanly to the pristine tarball. The one thing I couldn't do here is boot-test it, so please try it in QEMU or on a real BIOS machine with an ext4 `/boot`.

Still open:
- **Stack protector:** exempting the driver from `-fstack-protector-strong` would save a bit more, but it weakens hardening, so I didn't.
- **Symlink loops:** the driver has no loop guard (`a`→`b`→`a`), as in the original.
- **Headroom:** upstream says stage 2 space is tight, so the next release may overflow again.


Interesting sizes:

With original ext patch:
limine-12.9.4/common-bios/stage2.bin.limlz size: 25546 bytes

With new "-slim" patch:
limine-12.11.2/common-bios/stage2.bin.limlz size: 26842 bytes

allowed max size: 28160 bytes (63*512 - 4096)

So, the original patch was fine for limine 12.9.4. The stage-2 size grew a lot after that

For reference, a fix for v12 was posted by zepto here, for the original ext patch:

https://forum.puppylinux.com/viewtopic.php?t=17629

Ongoing discussion here:

https://forum.puppylinux.com/viewtopic.php?t=17781

Important, I have not yet tested this patch! Will report back to the above forum thread.   

Tags: easy