Skip to content

Commit

Permalink
Update disable-touchpad.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtr126 authored Sep 11, 2024
1 parent c66aee6 commit 1c05acc
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions knowledgebase/troubleshooting/disable-touchpad.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Accidental touches due to palm contact with the touchpad can be quite frustrating. Fortunately, the Linux kernel allows you to disable the touchpad or any input device temporarily using sysfs by triggering the uevent. This guide will walk you through the process.

### Step 1: Access a Root Shell
In order to disable the touchpad, you'll need superuser access. Here's how to get root privileges.
In order to disable the touchpad, you'll need to access a root shell. Here's how to get root privileges.

1. **Open KernelSU:**
- From the app drawer, locate and open **KernelSU** app.
Expand All @@ -14,7 +14,7 @@ In order to disable the touchpad, you'll need superuser access. Here's how to ge
### Step 2: Launch Termux and Switch to Root User

1. **Open Termux:**
- Go to the app drawer and launch **Termux**.
- **Termux** app is pre-installed in Bliss OS.

2. **Open a root shell:**
- In Termux, type `su` and press **Enter** to open a root shell.
Expand All @@ -28,29 +28,30 @@ To disable the touchpad, we need to identify which event device corresponds to i
```bash
getevent -pl
```
2. This command will list all input devices attached to the system along with their event IDs. Look for the touchpad device by identifying the descriptions, usually labeled as something like "touchpad" or "Synaptics."
2. This command will list all input devices attached to the system along with their event IDs. Look for the touchpad device by identifying the descriptions, usually labeled as something like "touchpad".

3. Once you've identified the correct event, note down the event ID (e.g., **eventX**, where X is the number associated with the touchpad).
4. To disable the touchpad, execute the following command:
```bash
echo remove > /sys/class/input/eventX/uevent
```
Replace **eventX** with the appropriate number identified earlier.
Replace **X** with the appropriate number identified earlier.
#### Method 2: Using `getevent -ql`
1. Alternatively, you can use the following command:
```bash
getevent -ql
```
2. Tap on the touchpad, and the command will show input events associated with that touchpad.
3. Once you've determined the correct event number (eventX), use the same command to disable it:
2. Tap on the touchpad, and the command will display input events associated with that touchpad.
3. Once you've determined the correct event number **X** (eventX), use the same command to disable it:
```bash
echo remove > /sys/class/input/eventX/uevent
```


By following these steps, you can successfully disable your laptop's touchpad on Bliss OS to avoid accidental touches. Should you need to re-enable the touchpad, a reboot of the system will restore its functionality, or you can trigger the uevent to re-add the device if needed:
Congratulations, now you should have successfully disabled your laptop's touchpad. Should you need to re-enable the touchpad, reboot the system or trigger the uevent to re-add the device:
```bash
echo add > /sys/class/input/eventX/uevent
```

0 comments on commit 1c05acc

Please sign in to comment.