inputattach --daemon --w8001 --baud 19200 /dev/ttyS0
waferhead wrote:On Mint at least the input subsystem seems to automatically find and configure it relatively early in the boot sequence.
doktor5000 wrote:waferhead wrote:On Mint at least the input subsystem seems to automatically find and configure it relatively early in the boot sequence.
Then you should compare the relevant udev rules from Mint to the Mageia ones ...
waferhead wrote:There are no udev rules, First thing I looked at.
JMiahMan wrote:Just wondering..
does:
- Code: Select all
/usr/bin/isdv4-serial-inputattach /dev/ttyS0
Work as well?
0.214554] system 00:01: [mem 0xfed40000-0xfed44fff] has been reserved
[ 0.214557] system 00:01: Plug and Play ACPI device, IDs PNP0c02 (active)
[ 0.214645] pnp 00:02: Plug and Play ACPI device, IDs PNP0b00 (active)
[ 0.214682] pnp 00:03: Plug and Play ACPI device, IDs LEN0010 PNP0303 (active)
[ 0.214720] pnp 00:04: Plug and Play ACPI device, IDs IBM3780 PNP0f13 (active)
[ 0.214807] pnp 00:05: Plug and Play ACPI device, IDs WACf004 (disabled)
root@X200 ~ # pidof inputattach
root@X200 ~ # pidof isdv4-serial-inputattach
842
root@X200 ~ #
JMiahMan wrote:It still is for Mageia.. the needed systemd service and udev rule are being excluded in the xorg-x11-drv-wacom package from a commit about 3 years ago (I posted it above) and 2 years ago there was a similar bug filed to your issue that was never fixed. Also Fedora is still using the udev rule and systemd method and I would argue they're pretty on top of things with hardware (that have open drivers). So I wonder if you have counted udev (now a part of systemd) rules out too early.. udev loads pre pivot in the init.. with dracut now.. so it would be pretty early in the process.
Jul 13 22:28:14 X200 systemd-udevd[390]: Reading rules file: /lib/udev/rules.d/60-inputattach.rules
Jul 13 22:28:14 X200 systemd-udevd[390]: Reading rules file: /lib/udev/rules.d/60-libgphoto2-6.rules
Jul 13 22:28:14 X200 systemd-udevd[390]: Reading rules file: /lib/udev/rules.d/60-libsane.rules
Jul 13 22:28:14 X200 systemd-udevd[390]: Reading rules file: /lib/udev/rules.d/60-openobex.rules
Jul 13 22:28:14 X200 systemd-udevd[390]: Reading rules file: /lib/udev/rules.d/60-pcmcia.rules
Jul 13 22:28:14 X200 systemd-udevd[390]: Reading rules file: /lib/udev/rules.d/60-persistent-alsa.rules
Jul 13 22:28:14 X200 systemd-udevd[390]: Reading rules file: /lib/udev/rules.d/60-persistent-input.rules
Jul 13 22:28:15 X200 systemd[1]: wacom-inputattach@ttyS4.service: Trying to enqueue job wacom-inputattach@ttyS4.service/start/fail
Jul 13 22:28:15 X200 systemd[1]: systemd-timesyncd.service: Merged into installed job systemd-timesyncd.service/start as 57
Jul 13 22:28:15 X200 systemd[1]: systemd-hwdb-update.service: Installed new job systemd-hwdb-update.service/start as 181
Jul 13 22:28:15 X200 systemd[1]: home.mount: Merged into installed job home.mount/start as 23
Jul 13 22:28:15 X200 systemd[1]: console-setup.service: Merged into installed job console-setup.service/start as 34
Jul 13 22:28:15 X200 systemd[1]: systemd-machine-id-commit.service: Merged into installed job systemd-machine-id-commit.service/start as 43
Jul 13 22:28:15 X200 systemd[1]: network-pre.target: Merged into installed job network-pre.target/start as 54
Jul 13 22:28:15 X200 systemd[1]: plymouth-read-write.service: Merged into installed job plymouth-read-write.service/start as 10
Jul 13 22:28:15 X200 systemd[1]: friendly-recovery.service: Installed new job friendly-recovery.service/start as 229
Jul 13 22:28:15 X200 systemd[1]: media-win_x.mount: Merged into installed job media-win_x.mount/start as 29
Jul 13 22:28:15 X200 systemd[1]: systemd-fsck@dev-disk-by\x2duuid-2f18bc33\x2d0a13\x2d48cf\x2da089\x2df1689028db32.service: Merged into installed job systemd-fsck@dev-disk-by\x2duu
Jul 13 22:28:15 X200 systemd[1]: systemd-update-utmp.service: Merged into installed job systemd-update-utmp.service/start as 115
Jul 13 22:28:15 X200 systemd[1]: systemd-binfmt.service: Installed new job systemd-binfmt.service/start as 191
Jul 13 22:28:15 X200 systemd[1]: plymouth-start.service: Installed new job plymouth-start.service/start as 245
Jul 13 22:28:15 X200 systemd[1]: setvtrgb.service: Merged into installed job setvtrgb.service/start as 47
Jul 13 22:28:15 X200 systemd[1]: sysinit.target: Merged into installed job sysinit.target/start as 7
Jul 13 22:28:15 X200 systemd[1]: systemd-ask-password-console.path: Installed new job systemd-ask-password-console.path/start as 183
Jul 13 22:28:15 X200 systemd[1]: resolvconf.service: Merged into installed job resolvconf.service/start as 52
Jul 13 22:28:15 X200 systemd[1]: systemd-fsck-root.service: Installed new job systemd-fsck-root.service/start as 215
Jul 13 22:28:15 X200 systemd[1]: time-sync.target: Merged into installed job time-sync.target/start as 58
Jul 13 22:28:15 X200 systemd[1]: local-fs.target: Merged into installed job local-fs.target/start as 22
[color=#FF0000]Jul 13 22:28:15 X200 systemd[1]: wacom-inputattach@ttyS4.service: Installed new job wacom-inputattach@ttyS4.service/start as 175[/color]
Jul 13 22:28:15 X200 systemd[1]: sys-kernel-config.mount: Installed new job sys-kernel-config.mount/start as 220
Jul 13 22:28:15 X200 systemd[1]: systemd-tmpfiles-setup.service: Merged into installed job systemd-tmpfiles-setup.service/start as 64
[color=#FF0000]Jul 13 22:28:15 X200 systemd[1]: system-wacom\x2dinputattach.slice: Installed new job system-wacom\x2dinputattach.slice/start as 176[/color]
Jul 13 22:28:15 X200 systemd[1]: brltty.service: Installed new job brltty.service/start as 247
[color=#FF0000]Jul 13 22:28:15 X200 systemd[1]: wacom-inputattach@ttyS4.service: Enqueued job wacom-inputattach@ttyS4.service/start as 175[/color]
Jul 13 22:28:15 X200 systemd[1]: brltty.service: About to execute: /bin/sh -c 'grep -sq '^ *RUN_BRLTTY=no' /etc/default/brltty || exec /sbin/brltty -P /run/brltty.pid'
Jul 13 22:28:15 X200 systemd[1]: brltty.service: Forked /bin/sh as 615
Jul 13 22:28:15 X200 systemd[1]: brltty.service: Changed dead -> running
Jul 13 22:28:15 X200 systemd[1]: brltty.service: Job brltty.service/start finished, result=done
Jul 13 22:28:15 X200 systemd[1]: Started Braille Device Support.
[color=#FF0000]Jul 13 22:28:15 X200 systemd[1]: system-wacom\x2dinputattach.slice changed dead -> active
Jul 13 22:28:15 X200 systemd[1]: system-wacom\x2dinputattach.slice: Job system-wacom\x2dinputattach.slice/start finished, result=done
Jul 13 22:28:15 X200 systemd[1]: Created slice system-wacom\x2dinputattach.slice.[/color]
[color=#FF0000]Jul 13 22:28:16 X200 systemd[1]: wacom-inputattach@ttyS4.service: About to execute: /usr/bin/isdv4-serial-inputattach /dev/ttyS4
Jul 13 22:28:16 X200 systemd[1]: wacom-inputattach@ttyS4.service: Forked /usr/bin/isdv4-serial-inputattach as 842[/color]
Jul 13 22:28:16 X200 systemd[841]: accounts-daemon.service: Executing: /usr/lib/accountsservice/accounts-daemon
[color=#FF0000]Jul 13 22:28:16 X200 systemd[1]: wacom-inputattach@ttyS4.service: Changed dead -> running
Jul 13 22:28:16 X200 systemd[1]: wacom-inputattach@ttyS4.service: Job wacom-inputattach@ttyS4.service/start finished, result=done
Jul 13 22:28:16 X200 systemd[1]: Started inputattach for Wacom ISDv4-compatible serial devices.
Jul 13 22:28:16 X200 systemd[842]: wacom-inputattach@ttyS4.service: Executing: /usr/bin/isdv4-serial-inputattach /dev/ttyS4[/color]
Jul 13 22:28:17 X200 kernel: input: Wacom Serial Penabled 1FG Touchscreen Pen as /devices/pnp0/00:05/tty/ttyS4/serio2/input/input13
Jul 13 22:28:17 X200 kernel: input: Wacom Serial Penabled 1FG Touchscreen Finger as /devices/pnp0/00:05/tty/ttyS4/serio2/input/input14
# Attach Wacom W8001 devices
SUBSYSTEM=="tty", KERNEL=="ttyS[0-9]*", ATTRS{id}=="FUJ02e5", ACTION=="add|change", RUN+="/usr/bin/inputattach --daemon --baud 19200 --w8001 /dev/%k"
SUBSYSTEM=="tty", KERNEL=="ttyS[0-9]*", ATTRS{id}=="WACf00c", ACTION=="add|change", RUN+="/usr/bin/inputattach --daemon --baud 38400 --w8001 /dev/%k"
ACTION!="add|change", GOTO="wacom_end"
# Match all serial wacom tablets with a serial ID starting with WACf
# Notes: We assign NAME though we shouldn't, but currently the server requires it
# We assign the lot to subsystem pnp too because server reads NAME from
# the parent device. Once all that's fixed, as simple SUBSYSTEM="tty"
# will do and the ENV{NAME} can be removed.
SUBSYSTEM=="tty|pnp", SUBSYSTEMS=="pnp", ATTRS{id}=="WACf*", ENV{ID_MODEL}="Serial Wacom Tablet $attr{id}", ENV{ID_INPUT}="1", ENV{ID_INPUT_TABLET}="1", ENV{NAME}="Serial Wacom Tablet $attr{id}"
SUBSYSTEM=="tty|pnp", SUBSYSTEMS=="pnp", ATTRS{id}=="FUJ*", ENV{ID_MODEL}="Serial Wacom Tablet $attr{id}", ENV{ID_INPUT}="1", ENV{ID_INPUT_TABLET}="1", ENV{NAME}="Serial Wacom Tablet $attr{id}"
# comment out the next line if your distribution does not provide systemd
# If a /dev/ttySx device with the WACf name is detected, start the
# wacom-inputattach service with the kernel name as parameter
SUBSYSTEM=="tty|pnp", KERNEL=="ttyS[0-9]*", ATTRS{id}=="WACf*", TAG+="systemd", ENV{SYSTEMD_WANTS}+="wacom-inputattach@%k.service"
LABEL="wacom_end"
[Unit]
Description=inputattach for Wacom ISDv4-compatible serial devices
[Service]
Type=simple
ExecStart=/usr/bin/isdv4-serial-inputattach /dev/%I
Restart=on-success
cat <<'EOF' >> /lib/udev/rules.d/70-wacom.rules
ACTION!="add|change", GOTO="wacom_end"
# Match all serial wacom tablets with a serial ID starting with WACf
# Notes: We assign NAME though we shouldn't, but currently the server requires it
# We assign the lot to subsystem pnp too because server reads NAME from
# the parent device. Once all that's fixed, as simple SUBSYSTEM="tty"
# will do and the ENV{NAME} can be removed.
SUBSYSTEM=="tty|pnp", SUBSYSTEMS=="pnp", ATTRS{id}=="WACf*", ENV{ID_MODEL}="Serial Wacom Tablet $attr{id}", ENV{ID_INPUT}="1", ENV{ID_INPUT_TABLET}="1", ENV{NAME}="Serial Wacom Tablet $attr{id}"
SUBSYSTEM=="tty|pnp", SUBSYSTEMS=="pnp", ATTRS{id}=="FUJ*", ENV{ID_MODEL}="Serial Wacom Tablet $attr{id}", ENV{ID_INPUT}="1", ENV{ID_INPUT_TABLET}="1", ENV{NAME}="Serial Wacom Tablet $attr{id}"
# comment out the next line if your distribution does not provide systemd
# If a /dev/ttySx device with the WACf name is detected, start the
# wacom-inputattach service with the kernel name as parameter
SUBSYSTEM=="tty|pnp", KERNEL=="ttyS[0-9]*", ATTRS{id}=="WACf*", TAG+="systemd", ENV{SYSTEMD_WANTS}+="wacom-inputattach@%k.service"
LABEL="wacom_end"
EOF
cat <<'EOL' >> /lib/systemd/system/wacom-inputattach@.service
[Unit]
Description=inputattach for Wacom ISDv4-compatible serial devices
[Service]
Type=simple
ExecStart=/usr/bin/isdv4-serial-inputattach /dev/%I
Restart=on-success
EOL
JMiahMan wrote:BTW if you love Mageia to pieces and promise to use it for a while I'll build you a custom rpm to fix this.. PM me if you're interested.. or just wait.
#/lib/udev/rules.d/70-wacom.rules
ACTION!="add|change", GOTO="wacom_end"
# Match all serial wacom tablets with a serial ID starting with WACf
# Notes: We assign NAME though we shouldn't, but currently the server requires it
# We assign the lot to subsystem pnp too because server reads NAME from
# the parent device. Once all that's fixed, as simple SUBSYSTEM="tty"
# will do and the ENV{NAME} can be removed.
SUBSYSTEM=="tty|pnp", SUBSYSTEMS=="pnp", ATTRS{id}=="WACf*", ENV{ID_MODEL}="Serial Wacom Tablet $attr{id}", ENV{ID_INPUT}="1", ENV{ID_INPUT_TABLET}="1", ENV{NAME}="Serial Wacom Tablet $attr{id}"
SUBSYSTEM=="tty|pnp", SUBSYSTEMS=="pnp", ATTRS{id}=="FUJ*", ENV{ID_MODEL}="Serial Wacom Tablet $attr{id}", ENV{ID_INPUT}="1", ENV{ID_INPUT_TABLET}="1", ENV{NAME}="Serial Wacom Tablet $attr{id}"
# comment out the next line if your distribution does not provide systemd
# If a /dev/ttySx device with the WACf name is detected, start the
# wacom-inputattach service with the kernel name as parameter
SUBSYSTEM=="tty|pnp", KERNEL=="ttyS[0-9]*", ATTRS{id}=="WACf*", TAG+="systemd", ENV{SYSTEMD_WANTS}+="wacom-inputattach@%k.service"
LABEL="wacom_end"
[Unit]
Description=inputattach for Wacom ISDv4-compatible serial devices
[Service]
Type=simple
ExecStart=/usr/bin/isdv4-serial-inputattach /dev/%I
Restart=on-success
waferhead wrote:Got it working with a bit more editing to rid a stray EOF marker.
That copy paste bit doesn't work with bash running in konsole as root.
Return to Testing : Alpha, Beta, RC and Cauldron
Users browsing this forum: No registered users and 1 guest