Skip to content

Commit

Permalink
Merge pull request #17 from Xtr126/main
Browse files Browse the repository at this point in the history
Add "How to disable touchpad" guide
  • Loading branch information
electrikjesus authored Sep 11, 2024
2 parents 22c6658 + f95734d commit 9a9b4da
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@ icon: home
* [Troubleshooting - Remount as RW](knowledgebase/troubleshooting/remount-system-as-read-write.md)
* [Troubleshooting - Sound](knowledgebase/troubleshooting/sound-issues.md)
* [Troubleshooting - WiFi](knowledgebase/troubleshooting/wifi-issues.md)
* [Troubleshooting - Disable touchpad](knowledgebase/troubleshooting/disable-touchpad.md)
57 changes: 57 additions & 0 deletions knowledgebase/troubleshooting/disable-touchpad.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# How to disable touchpad
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 to access a root shell. Here's how to get root privileges.

1. **Open KernelSU:**
- **KernelSU** manager app is automatically installed in Bliss OS.

2. **Enable Superuser for Termux:**
- In the KernelSU interface, find **Termux** in the list of apps from superuser tab.
- Enable superuser for Termux.

### Step 2: Launch Termux and Switch to Root User

1. **Open Termux:**
- **Termux** is a terminal app which is automatically installed in Bliss OS.

2. **Open a root shell:**
- In Termux, type `su` and press **Enter** to open a root shell.

### Step 3: Identify the device file of the touchpad and trigger the uevent

To disable the touchpad, we need to identify which event device corresponds to it. There are two ways to do this:

#### Method 1: Using `getevent -pl`
1. In the superuser shell, run the command:
```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".

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 **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 display input events associated with that touchpad.
3. Once you've determined the correct event number **X** (eventX), press ctrl+c to interrupt the running getevent program and use the same command to disable it:
```bash
echo remove > /sys/class/input/eventX/uevent
```


Congratulations, now you should have successfully disabled your laptop's touchpad. 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 9a9b4da

Please sign in to comment.