admiralakber / thinkpad-yoga-scripts

Thinkpad Yoga S1 scripts for GNU/Linux
http://blog.admiralakber.com/?p=400
GNU General Public License v3.0
147 stars 31 forks source link

Touchscreen recognition not working #14

Closed christoph-h closed 8 years ago

christoph-h commented 8 years ago

Hi, thanks a lot for these nice and handy scripts! On my Yoga, I had an issue with the touchscreen not being recognized in the wacom/thinkpad-yoga-prox.sh script. The reason is that xinput --list returns an empty list right after booting (I'm using the systemd setup as described) and only after a certain I get the right list:

==> /tmp/xinput_before <==
[EMPTY]
==> /tmp/xinput_after <==
⎡ Virtual core pointer                        id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ ELAN Touchscreen                          id=9    [slave  pointer  (2)]
⎜   ↳ Wacom ISDv4 EC Pen stylus                 id=11   [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=13   [slave  pointer  (2)]
⎜   ↳ Wacom ISDv4 EC Pen eraser                 id=15   [slave  pointer  (2)]
⎜   ↳ TPPS/2 IBM TrackPoint                     id=16   [slave  pointer  (2)]
⎣ Virtual core keyboard                       id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard                 id=5    [slave  keyboard (3)]
    ↳ Power Button                                id=6    [slave  keyboard (3)]
    ↳ Video Bus                                   id=7    [slave  keyboard (3)]
    ↳ Power Button                                id=8    [slave  keyboard (3)]
    ↳ Integrated Camera                           id=10   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard                id=12   [slave  keyboard (3)]
    ↳ ThinkPad Extra Buttons                      id=14   [slave  keyboard (3)]

(I'm running Ubuntu 15.04) I fixed this little issue in a pull request with repetitive calls to xinput until the touchscreen is found.

admiralakber commented 8 years ago

Cheers - merged.