grep -a2 TrackPoint /proc/bus/input/devices
Then append 1 to the inhibited button and include folder /sys/ before the location of the output of the S: section, example:
S: Sysfs=/devices/platform/i8042/serio1/input/input5
As root:
echo 1 > /sys/devices/platform/i8042/serio1/input/input5/inhibited
------------------------
echo "1" | sudo tee /sys`grep -a2 TrackPoint /proc/bus/input/devices | tail -1 | cut -d'=' -f2`/inhibited
create service?
[Unit]
Description=Disable Trackpoint
[Service]
ExecStart=/bin/sh -c "/usr/bin/echo 1 | sudo tee /sys`grep -a2 TrackPoint /proc/bus/input/devices | tail -1 | cut -d'=' -f2`/inhibited"
ExecStop=/bin/sh -c "/usr/bin/echo 0 | sudo tee /sys`grep -a2 TrackPoint /proc/bus/input/devices | tail -1 | cut -d'=' -f2`/inhibited
"
RemainAfterExit=yes
[Install]
WantedBy=sysinit.target
댓글 없음:
댓글 쓰기