tuxedocomputers/tuxedo-control-center

tccd.service spams journal

Closed this issue · 3 comments

  • OS: Ubuntu 22.04
  • X-Session: GNOME and GNOME on Xorg

The service output spams the systems journal.

Verify with journalctl -b -u tccd

Jan 15 14:23:56 hostname systemd[1]: Started TUXEDO Control Center Service.
Jan 15 14:23:56 hostname tccd[156296]: Starting daemon v2.1.2 (node: v14.20.0 arch: x64)
Jan 15 14:23:56 hostname tccd[156296]: tuxedo-io ver 0.3.9 [ interface: uniwill ]
Jan 15 14:23:56 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:23:56 hostname tccd[156296]: Can't open display :0
Jan 15 14:23:56 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:23:56 hostname tccd[156296]: Can't open display :0
Jan 15 14:23:56 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:23:56 hostname tccd[156296]: Can't open display :0
Jan 15 14:23:56 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:23:56 hostname tccd[156296]: Can't open display :0
Jan 15 14:23:57 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:23:57 hostname tccd[156296]: Can't open display :0
Jan 15 14:23:57 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:23:57 hostname tccd[156296]: Can't open display :0
Jan 15 14:23:57 hostname tccd[156296]: Detected white only keyboard backlight
Jan 15 14:23:57 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:23:57 hostname tccd[156296]: Can't open display :0
Jan 15 14:23:57 hostname tccd[156296]: ODMPowerLimitWorker: Set ODM TDPs ["45 W","60 W","110 W"]
Jan 15 14:23:57 hostname tccd[156296]: Daemon started
Jan 15 14:24:00 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:24:00 hostname tccd[156296]: Can't open display :0
Jan 15 14:24:00 hostname tccd[156296]: Failed executing onWork() => Error: Command failed: export XAUTHORITY=/home/user/.Xauthority && xrandr -q -display :0 --current
Jan 15 14:24:00 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:24:00 hostname tccd[156296]: Can't open display :0
Jan 15 14:24:03 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:24:03 hostname tccd[156296]: Can't open display :0
Jan 15 14:24:03 hostname tccd[156296]: Failed executing onWork() => Error: Command failed: export XAUTHORITY=/home/user/.Xauthority && xrandr -q -display :0 --current
Jan 15 14:24:03 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:24:03 hostname tccd[156296]: Can't open display :0
Jan 15 14:24:06 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:24:06 hostname tccd[156296]: Can't open display :0
Jan 15 14:24:06 hostname tccd[156296]: Failed executing onWork() => Error: Command failed: export XAUTHORITY=/home/user/.Xauthority && xrandr -q -display :0 --current
Jan 15 14:24:06 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:24:06 hostname tccd[156296]: Can't open display :0
Jan 15 14:24:09 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:24:09 hostname tccd[156296]: Can't open display :0
Jan 15 14:24:09 hostname tccd[156296]: Failed executing onWork() => Error: Command failed: export XAUTHORITY=/home/user/.Xauthority && xrandr -q -display :0 --current
Jan 15 14:24:09 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:24:09 hostname tccd[156296]: Can't open display :0
Jan 15 14:24:12 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:24:12 hostname tccd[156296]: Can't open display :0
Jan 15 14:24:12 hostname tccd[156296]: Failed executing onWork() => Error: Command failed: export XAUTHORITY=/home/user/.Xauthority && xrandr -q -display :0 --current
Jan 15 14:24:12 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:24:12 hostname tccd[156296]: Can't open display :0
Jan 15 14:24:15 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:24:15 hostname tccd[156296]: Can't open display :0
Jan 15 14:24:15 hostname tccd[156296]: Failed executing onWork() => Error: Command failed: export XAUTHORITY=/home/user/.Xauthority && xrandr -q -display :0 --current
Jan 15 14:24:15 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:24:15 hostname tccd[156296]: Can't open display :0
Jan 15 14:24:18 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:24:18 hostname tccd[156296]: Can't open display :0
Jan 15 14:24:18 hostname tccd[156296]: Failed executing onWork() => Error: Command failed: export XAUTHORITY=/home/user/.Xauthority && xrandr -q -display :0 --current
Jan 15 14:24:18 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:24:18 hostname tccd[156296]: Can't open display :0
Jan 15 14:24:21 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:24:21 hostname tccd[156296]: Can't open display :0
Jan 15 14:24:21 hostname tccd[156296]: Failed executing onWork() => Error: Command failed: export XAUTHORITY=/home/user/.Xauthority && xrandr -q -display :0 --current
Jan 15 14:24:21 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:24:21 hostname tccd[156296]: Can't open display :0
Jan 15 14:24:24 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:24:24 hostname tccd[156296]: Can't open display :0
Jan 15 14:24:24 hostname tccd[156296]: Failed executing onWork() => Error: Command failed: export XAUTHORITY=/home/user/.Xauthority && xrandr -q -display :0 --current
Jan 15 14:24:24 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:24:24 hostname tccd[156296]: Can't open display :0
Jan 15 14:24:27 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:24:27 hostname tccd[156296]: Can't open display :0
Jan 15 14:24:27 hostname tccd[156296]: Failed executing onWork() => Error: Command failed: export XAUTHORITY=/home/user/.Xauthority && xrandr -q -display :0 --current
Jan 15 14:24:27 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:24:27 hostname tccd[156296]: Can't open display :0
Jan 15 14:24:30 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:24:30 hostname tccd[156296]: Can't open display :0
Jan 15 14:24:30 hostname tccd[156296]: Failed executing onWork() => Error: Command failed: export XAUTHORITY=/home/user/.Xauthority && xrandr -q -display :0 --current
Jan 15 14:24:30 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:24:30 hostname tccd[156296]: Can't open display :0
Jan 15 14:24:33 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:24:33 hostname tccd[156296]: Can't open display :0
Jan 15 14:24:33 hostname tccd[156296]: Failed executing onWork() => Error: Command failed: export XAUTHORITY=/home/user/.Xauthority && xrandr -q -display :0 --current
Jan 15 14:24:33 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:24:33 hostname tccd[156296]: Can't open display :0
Jan 15 14:24:36 hostname tccd[156296]: Authorization required, but no authorization protocol specified
Jan 15 14:24:36 hostname tccd[156296]: Can't open display :0
Jan 15 14:24:36 hostname tccd[156296]: Failed executing onWork() => Error: Command failed: export 

Hello, see the workaround: Issue #337

The workaround is neither a proper solution nor a solution for Wayland.

I wrote a systemd drop-in to prevent spamming w/o modifying X permissions:

# /etc/systemd/system/tccd.service.d/override.conf
[Service]
ExecStart=
ExecStart=/usr/local/sbin/tccd-wrapper --start

/usr/local/sbin/tccd-wrapper

#!/bin/sh
# Remove spammy Tuxedo Control Center output

TCCD_BIN=/opt/tuxedo-control-center/resources/dist/tuxedo-control-center/data/service/tccd
# shellcheck disable=SC2048 disable=SC2086
$TCCD_BIN $* 2>&1 | \
    grep -vE 'open display :0|Authorization required, but no authorization protocol specified|Command failed: export XAUTHORITY|^$'

fixed with latest release