TS_CONFIG(3)
π TS_CONFIG(3) β the tslib girlies' guide π
okay so bestie, welcome to tslib, section 3 of the manual (that's the library-functions girlies, not the commands, iykyk) π
this page is all about ts_config and ts_reconfig β the two functions that go read tslib's own configuration. no cap. π
β¨ NAME β¨
ts_config, ts_reconfig β read tslib's configuration π¦
πΈ SYNOPSIS πΈ
#include <tslib.h>
int ts_config(struct tsdev *dev);
int ts_reconfig(struct tsdev *dev);
likeβ¦ that's it. two little functions. two little icons. π
π DESCRIPTION π
so ts_config() loads and initialises every single module that's configured in the tslib configuration file TSLIB_CONFFILE β and yes, the details of that file live over in ts.conf(5), go look, it's giving very important. π
then there's ts_reconfig(), which is basically the glow-up button: it re-runs ts_config and updates the configuration if the configuration file has changed. not me checking if the config file changed and refreshing accordingly, obsessed. πβ¨
β RETURN VALUE β
- Zero gets returned on success β slay, we ate. π«Ά
- A negative value gets returned in case of an error β and that's the vibe check failing, bestie, sorry. π
π¦ SEE ALSO π¦
ts_read(3)ts_open(3)ts_setup(3)ts_close(3)ts.conf(5)
and that's the whole page, periodt. this came to you straight from the <b>tslib</b> manual, and yeah, it's <b>TS_CONFIG(3)</b> β so when you're deep in the group chat arguing about touchscreen config, you know exactly where to point. mwah. πππ¦
π¦ where this page comes from
- alpine 3.24: tslib-doc 1.24-r0 Β· LGPL-2.0-or-later
- arch rolling: tslib 1.24-1 Β· LGPL-2.1-only
- debian bookworm: libts0 1.22-1+b1 Β· LGPL-2.0-or-later
- debian trixie: libts0t64 1.22-1.1+b1 Β· LGPL-2.0-or-later
- epel 10: tslib 1.23-2.el10_2 Β· LGPL-2.1-only
- epel 9: tslib 1.22-5.el9 Β· LGPLv2
- fedora 43: tslib 1.23-2.fc43 Β· LGPL-2.1-only
- fedora 43: tslib 1.23-2.fc43 Β· LGPL-2.1-only
- fedora 44: tslib 1.24-2.fc44 Β· LGPL-2.1-only
- fedora 44: tslib 1.24-2.fc44 Β· LGPL-2.1-only
- nixos 26.05: tslib 1.24
- nixpkgs unstable: tslib 1.24
- opensuse-leap 16.0: tslib 1.22-160000.2.2 Β· LGPL-2.1-or-later AND GPL-2.0-only
- opensuse-leap 16.0: tslib 1.22-160000.2.2 Β· LGPL-2.1-or-later AND GPL-2.0-only
- opensuse-leap 16.0: tslib 1.22-160000.2.2 Β· LGPL-2.1-or-later AND GPL-2.0-only
- opensuse-leap 16.0: tslib 1.22-160000.2.2 Β· LGPL-2.1-or-later AND GPL-2.0-only
- ubuntu jammy: libts0 1.22-1 Β· LGPL-2.0-or-later
- ubuntu noble: libts0t64 1.22-1.1build1 Β· LGPL-2.0-or-later
- ubuntu questing: libts0t64 1.22-1.1build1
- ubuntu resolute: libts0t64 1.22-1.1build2 Β· LGPL-2.0-or-later
- ubuntu stonking: libts0t64 1.22-1.1build2 Β· LGPL-2.0-or-later
- Copyright (c) 2017, Martin Kepplinger <martink@posteo.de>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms