depois de jogar com xinput (xinput --list / xinput --list-props with_proper_id) Consegui consertar isso na mesma combinação laptop / Ubuntu alterando o arquivo python /opt/extras.ubuntu.com/touchpad-indicator/ compartilhar / touchpad-indicator / touchpad.py:
85,86d84
< # fix - only "device enabled" was set before
< ejecuta(('xinput set-prop %s "Synaptics Off" 0')%id)
93,94d90
< device_enabled = False
< synaptics_off = True
98,106c94,95
< # fix
< #return True
< device_enabled = True
< if line.lower().find('synaptics off')!=-1:
< if line.split(':')[1].strip() == '0':
< synaptics_off = False
< # fix - only "device enabled" was checked before
< #return False
< return device_enabled and not synaptics_off
---
> return True
> return False
118c107
< self.set_touchpad_enabled(id)
---
> print(self.set_touchpad_enabled(id))
O primeiro diff está no método "set_touchpad_enabled" e o segundo em "is_touchpad_enabled".
Os métodos alterados devem ter esta aparência:
def set_touchpad_enabled(self,id):
ejecuta(('xinput set-prop %s "Device Enabled" 1')%id)
ejecuta(('xinput set-prop %s "Synaptics Off" 0')%id)
def is_touchpad_enabled(self,id):
lines = ejecuta('xinput --list-props %s'%id)
device_enabled = False
synaptics_off = True
for line in lines.split('\n'):
if line.lower().find('device enabled')!=-1:
if line.split(':')[1].strip() == '1':
device_enabled = True
if line.lower().find('synaptics off')!=-1:
if line.split(':')[1].strip() == '0':
synaptics_off = False
return device_enabled and not synaptics_off
Espero que isso ajude.