Skip to the files

apm-debian-wrapper

5 items
README.txt
THE apm WRAPPER -- AND WHAT REALLY BROKE THE POWER BUTTON ========================================================= apm-wrapper-card.sh the 178-byte shell wrapper that was /usr/bin/apm on the first edition's card apm-wrapper-card-archival.sh the same, from that edition's other tree apm.orig-card the community card's apm binary, 8,664 bytes, with the setuid bit the first edition gave it apm.orig-card-archival the same THE FOLDER'S NAME RECORDS A MISTAKE. This wrapper is not Debian's, and replacing it was not the fix. Psion's own image, found afterwards, settles it: Psion's /usr/bin/apm is BYTE-IDENTICAL to apm-wrapper-card.sh -- the standard OpenEmbedded wrapper -- and it calls /usr/bin/apm.orig, an 8,508- byte binary that Psion's tarball marks setuid root. WHAT ACTUALLY BROKE SUSPEND The community root filesystem the first edition was built on (gpe-fs-cf.tar.bz2) ships apm.orig WITHOUT the setuid bit: -rwxr-xr-x usr/bin/apm.orig 8664 (community) -rwsr-xr-x usr/bin/apm.orig 8508 (Psion) The desktop runs as user lx, so "apm -s" from the power button ran an apm.orig that could not ask the kernel to suspend. The first edition diagnosed it as "Linux ignores setuid on scripts" and replaced the wrapper with a binary. That cured the symptom for the wrong reason. The same trap waits for anyone who unpacks Psion's tarball on macOS or without root: the setuid bit is silently lost, and the button stops working again. The images in this release take every mode from the tarball's own listing. IF SUSPEND EVER STOPS WORKING ls -l /usr/bin/apm.orig # must be -rwsr-xr-x, owned by root Kept because a parked file is how a wrong diagnosis gets found and put right.