We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

aoi
Posts: 9
Joined: Mon Jul 31, 2017 6:30 pm

Unmet dependencies for package xserver-xorg-input-tslib

Mon Jul 31, 2017 6:36 pm

Howdy folks,

I'd like to use the tslib input driver for X but I'm having trouble installing it on Raspbian Jessie.

Code: Select all

$ sudo apt-get install xserver-xorg-input-tslib
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  xserver-xorg-input-tslib : Depends: xorg-input-abi-21
E: Unable to correct problems, you have held broken packages.
Indeed xorg-input-abi-21 isn't available for installation:

Code: Select all

$ sudo apt-get install xorg-input-abi-21
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package xorg-input-abi-21 is a virtual package provided by:
  xserver-xorg-core 2:1.16.4-1+deb8u1 [Not candidate version]

E: Package 'xorg-input-abi-21' has no installation candidate
I wonder, who should I report this to, and can anyone suggest a workaround?

User avatar
ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6538
Joined: Fri Jul 29, 2011 5:36 pm

Re: Unmet dependencies for package xserver-xorg-input-tslib

Mon Jul 31, 2017 9:36 pm

In general, you'd report such issues here:
https://github.com/RPi-Distro/repo/issues

aoi
Posts: 9
Joined: Mon Jul 31, 2017 6:30 pm

Re: Unmet dependencies for package xserver-xorg-input-tslib

Mon Jul 31, 2017 10:27 pm

Thanks for that

It looks like the problem is not so simple. I forced installation of xserver-xorg-input-tslib but now attempting to load it with X gives me error:

Code: Select all

[  5751.396] (II) LoadModule: "tslib"
[  5751.396] (II) Loading /usr/lib/xorg/modules/input/tslib_drv.so
[  5751.397] (II) Module tslib: vendor="X.Org Foundation"
[  5751.397] 	compiled for 1.15.99.904, module version = 0.0.1
[  5751.397] 	Module class: X.Org XInput Driver
[  5751.397] 	ABI class: X.Org XInput driver, version 21.0
[  5751.397] (EE) module ABI major version (21) doesn't match the server's version (22)
[  5751.397] (II) UnloadModule: "tslib"
[  5751.397] (II) Unloading tslib
[  5751.397] (EE) Failed to load module "tslib" (module requirement mismatch, 0)
[  5751.397] (EE) No input driver matching `tslib'
Specifically the line "module ABI major version (21) doesn't match the server's version (22)"

So it looks like the package is not installable for good reason!

User avatar
ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6538
Joined: Fri Jul 29, 2011 5:36 pm

Re: Unmet dependencies for package xserver-xorg-input-tslib

Tue Aug 01, 2017 11:02 am

It's fairly simple. I believe it's just a matter of rebuilding the package against the appropriate version of xorg and updating the abi dependency, if it doesn't happen automatically. No need to report the issue elsewhere, that was just so that I don't forget about it. I'll fix it now.

User avatar
ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6538
Joined: Fri Jul 29, 2011 5:36 pm

Re: Unmet dependencies for package xserver-xorg-input-tslib

Tue Aug 01, 2017 11:19 am

I've noticed that the package is not available in Debian, and was wondering why.

I recommend taking a look at this:
https://bugs.debian.org/cgi-bin/bugrepo ... bug=736160

I've rebuilt and uploaded it, but won't guarantee that it works.

aoi
Posts: 9
Joined: Mon Jul 31, 2017 6:30 pm

Re: Unmet dependencies for package xserver-xorg-input-tslib

Tue Aug 01, 2017 12:43 pm

ShiftPlusOne thank you for taking the time to look at the issue.

I removed my compiled xf86-input-tslib attempt, and:

Code: Select all

sudo apt-get update
sudo apt-get install xserver-xorg-input-tslib
Then rebooted to be absolutely certain. In ~/.local/share/xorg/Xorg.0.log it seems to load successfully:

Code: Select all

[   137.289] (II) config/udev: Adding input device Pixart Imaging, Inc. Optical Touch (/dev/input/event3)
[   137.289] (**) Pixart Imaging, Inc. Optical Touch: Applying InputClass "tslib touchscreen"
[   137.289] (II) LoadModule: "tslib"
[   137.289] (II) Loading /usr/lib/xorg/modules/input/tslib_drv.so
[   137.290] (II) Module tslib: vendor="X.Org Foundation"
[   137.290] 	compiled for 1.18.4, module version = 0.0.1
[   137.290] 	Module class: X.Org XInput Driver
[   137.290] 	ABI class: X.Org XInput driver, version 22.1
[   137.290] (II) Using input driver 'tslib' for 'Pixart Imaging, Inc. Optical Touch'
[   137.290] (**) Pixart Imaging, Inc. Optical Touch: always reports core events
[   137.290] (**) Pixart Imaging, Inc. Optical Touch: always reports core events
[   137.292] (**) Option "config_info" "udev:/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:093A:8020.0004/input/input3/event3"
[   137.292] (II) XINPUT: Adding extended input device "Pixart Imaging, Inc. Optical Touch" (type: TOUCHSCREEN, id 6)
[   137.292] xf86TslibControlProc
[   137.292] (**) Pixart Imaging, Inc. Optical Touch: (accel) keeping acceleration scheme 1
[   137.292] (**) Pixart Imaging, Inc. Optical Touch: (accel) acceleration profile 0
[   137.292] (**) Pixart Imaging, Inc. Optical Touch: (accel) acceleration factor: 2.000
[   137.292] (**) Pixart Imaging, Inc. Optical Touch: (accel) acceleration threshold: 4
[   137.292] xf86TslibControlProc
Unfortunately the touchscreen fails to work and on the console I see these messages:

Code: Select all

xf86TslibControlProc
xf86TslibControlProc
selected device is not a touchscreen I understand
xf86TslibControlProc
However the package may work for others with different touchscreens.

User avatar
ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6538
Joined: Fri Jul 29, 2011 5:36 pm

Re: Unmet dependencies for package xserver-xorg-input-tslib

Tue Aug 01, 2017 12:56 pm

I think the software itself is abandoned and doesn't work with newer versions of Xorg without further tinkering.

Return to “Raspberry Pi OS”