User talk:Kportertx

From ArchWiki

Script to disable mouse on acer aspire one

#!/usr/bin/python
import sys, os, subprocess #, time

disabled  = sys.path[0] + "/disabled"
if os.path.exists(disabled):
    os.remove(disabled)
    subprocess.Popen('sudo modprobe psmouse proto=imps',shell=True,stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
else:
    # Created disabled file
    subprocess.call(["touch", disabled])
    subprocess.Popen('sudo modprobe -r psmouse',shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

Start a discussion with Kportertx

Start a discussion