# BRLtty / ModemManager - Services Interfering with Klipper

**URL:** <https://klipper.discourse.group/t/brltty-modemmanager-services-interfering-with-klipper/10611>\
**Category:** Knowledge Base\
**Created:** [September 21, 2023, 3:04pm UTC](https://klipper.discourse.group/t/brltty-modemmanager-services-interfering-with-klipper/10611 "2023-09-21T15:04:05Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [September 21, 2023, 3:04pm UTC](https://klipper.discourse.group/t/brltty-modemmanager-services-interfering-with-klipper/10611/1 "2023-09-21T15:04:05Z")

</div>

### Background

Some Linux distributions, particularly their desktop variants, may install services that interfere with connected printer boards. This can result in Klipper losing the ability to connect to the board or commands such as `ls /dev/serial/by-id` showing no results.  
So far, two services are known:

- ModemManager
- BRLtty

### How to Diagnose

The [How-To Trouble-Shoot](https://klipper.discourse.group/t/how-to-trouble-shoot/6326#linux-dmesg-5) article provides a detailed approach for diagnosing such events using the Linux `dmesg` command.

### Manual Process

To manually check for such processes and disable them use the following commands:

```auto
# List all brltty services (replace with "modemmanger" to check this)
sudo systemctl list-units | grep -i brltty
# For each item in the result list of the above command run
sudo systemctl mask brltty.path
sudo systemctl stop brltty.path
# "brltty.path" is only an example. Replace it with the first command's output

```

### Automatic Solution

This [shell script](https://github.com/Sineos/useful_bits/blob/main/Linux/disable_unwanted_services.sh) will automatically check if the services exist, disable them, and then “mask” them to prevent unintentional startups of these services by other services.  
Run this command:

```bash
curl -sf -L https://raw.githubusercontent.com/Sineos/useful_bits/main/Linux/disable_unwanted_services.sh | sudo bash

```

> ⚠ **WARNING:**
> 
> - This script requires root privileges and will error if not run as root
> - We have no intention of conducting any malicious activity on your installation. However, it is good practice to exercise caution when executing foreign scripts under root privileges.
> - If you do not feel comfortable with it, then follow the manual process

---

_[View the full topic](https://klipper.discourse.group/t/brltty-modemmanager-services-interfering-with-klipper/10611)._
