site  contact  subhomenews

Found cause of dead mouse at startup

July 04, 2025 — BarryK

Gradually fixing these bugs! I posted a list of issues several days ago:

Many bugs have been fixed, including the broken network tray applet, see recent post:

Another bug was the mouse pointer being frozen for several seconds after the desktop starts. I was immensely puzzled by that, until today...

I had a hunch that it might be something to do with udev, so compiled the Xorg server without udev support, thinking that is the most likely culprit. Good news, the devx sfs works. Also good news, the mouse pointer worked immediately.

Took a closer look at the kernel message log (ran dmesg), and saw this:

Starting hot-plug events dispatcher: udevd1 ... (warning).
Waiting 15 seconds and trying to continue anyway ... (warning).

A search revealed this warning about 15 second wait is in /etc/init.d/eudev

Looking at part of that script:

NAME="udevd"
DAEMON="/sbin/udevd"
DAEMON_ARGS="--daemon"
...
    log_daemon_msg "Starting $DESC" "$NAME"
    if start-stop-daemon --start --name $NAME --exec $DAEMON --quiet \
    -- $DAEMON_ARGS; then
      log_end_msg $?
    else
    log_warning_msg $?
    log_warning_msg "Waiting 15 seconds and trying to continue anyway"
    sleep 15
    fi

So, why does starting udevd return a non-zero error code?

Ah, of course. EasyOS starts 'udevd' in /etc/rc.d/rc.sysinit, so that /etc/init.d/eudev clashes. The eudev script needs to be removed!

Likely the package that has this script is 'eudev'. To confirm, reinstalled it:

# apt install eudev --reinstall

Then found the .deb at /var/cache/apt/archives -- yes, the .deb has etc/init.d/eudev

woofQ2 has a mechanism for modifying .deb packages when they install. woofq2/builtin/deb/fixes has these, as the folder name says, "fixes". So what I need to do is create a folder 'eudev' in there, then a file named 'FIXUPHACK', and in that file just have "rm -f etc/init.d/eudev"

OK, will do another build of EasyOS. OK, done, built Easy Excalibur version 6.101, booted it and the mouse pointer was movable immediately. Another bug bites the dust!    

Tags: easy