| 1 | # Troubleshooting/Known Issues |
| 2 | |
| 3 | ## The graph points look broken/strange |
| 4 | |
| 5 | It's possible that your graphs don't look great out of the box due to the reliance on |
| 6 | [braille characters](https://en.wikipedia.org/wiki/Braille_Patterns) to draw them. This could cause problems if |
| 7 | your terminal's font does not support them, or your terminal is not configured properly to draw them. |
| 8 | |
| 9 | <figure> |
| 10 | <img src="../assets/screenshots/troubleshooting/no_braille.webp" alt="Example of a terminal with no braille font."/> |
| 11 | <figcaption><sub>An example of missing braille fonts in Powershell</sub></figcaption> |
| 12 | </figure> |
| 13 | |
| 14 | Some possible solutions are included below. |
| 15 | |
| 16 | ### Use dot markers instead |
| 17 | |
| 18 | One alternative is to use the `--dot_marker` option to render graph charts using dots instead of the braille characters, |
| 19 | which generally seems better supported out of the box, at the expense of looking less intricate: |
| 20 | |
| 21 | <figure> |
| 22 | <img src="../assets/screenshots/troubleshooting/dots.webp" alt="Example of running bottom with the dot marker flag"/> |
| 23 | <figcaption><sub>Example using <code>btm --dot_marker</code></sub></figcaption> |
| 24 | </figure> |
| 25 | |
| 26 | ### Use a font that supports braille fonts |
| 27 | |
| 28 | Another (better) alternative is to install a font that supports braille fonts, and configure your terminal emulator to |
| 29 | use it. For example, installing something like [UBraille](https://yudit.org/download/fonts/UBraille/) or |
| 30 | [Iosevka](https://github.com/be5invis/Iosevka) and ensuring your terminal uses it should work. |
| 31 | |
| 32 | #### Linux/macOS/Unix |
| 33 | |
| 34 | Solutions mostly depend on what terminal emulator you are using, so unfortunately, I can't give specific instructions. |
| 35 | Here are some possible solutions: |
| 36 | |
| 37 | - Uninstalling `gnu-free-fonts` if installed, as that is known to cause problems with braille markers |
| 38 | - Installing a font like `ttf-symbola` or `ttf-ubraille` for your terminal emulator to try and automatically fall back to |
| 39 | - Configuring your terminal emulator to use specific fonts for the `U+2800` to `U+28FF` range. |
| 40 | - For example for kitty, do `symbol_map U+2800-U+28FF Symbola`. |
| 41 | |
| 42 | For some more possible solutions: |
| 43 | |
| 44 | - Check out [this issue](https://github.com/cjbassi/gotop/issues/18) from gotop about the same issue. |
| 45 | - See ratatui's [FAQ](https://ratatui.rs/faq/#some-characters-appear-to-be-missing--look-weird) (ratatui is the underlying |
| 46 | library bottom uses to draw things). |
| 47 | |
| 48 | #### Windows and Powershell |
| 49 | |
| 50 | **Note: I would advise backing up your registry beforehand if you aren't sure what you are doing!** |
| 51 | |
| 52 | Let's say you're installing [Iosevka](https://github.com/be5invis/Iosevka). The steps you can take are: |
| 53 | |
| 54 | 1. Install the font itself. |
| 55 | 2. Open the registry editor, which you can do either by `Win+R` and opening `regedit`, or just opening it from the Start Menu. |
| 56 | 3. In the registry editor, go to |
| 57 | |
| 58 | ``` |
| 59 | HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont |
| 60 | ``` |
| 61 | |
| 62 | 4. Here, add a new `String value`, and set the `Name` to a bunch of 0's (e.g. `000` - make sure the name isn't already used), then set the `Data` to the font name (e.g. `Iosevka`). |
| 63 | |
| 64 | <figure> |
| 65 | <img src="../assets/screenshots/troubleshooting/regedit_fonts.webp" alt="Regedit menu showing how to add a new font for Command Prompt/PowerShell"/> |
| 66 | <figcaption><sub>The last entry is the new entry for Iosevka</sub></figcaption> |
| 67 | </figure> |
| 68 | |
| 69 | 5. Then, open the Command Prompt/PowerShell, and right-click on the top bar, and open "Properties": |
| 70 | |
| 71 | <figure> |
| 72 | <img src="../assets/screenshots/troubleshooting/cmd_prompt_props.webp" alt="Opening the properties menu in Command Prompt/PowerShell"/> |
| 73 | </figure> |
| 74 | |
| 75 | 6. From here, go to "Font", and set the font to your new font (so in this example, Iosevka): |
| 76 | |
| 77 | <figure> |
| 78 | <img src="../assets/screenshots/troubleshooting/cmd_prompt_font.webp" alt="Setting a new font in Command Prompt/PowerShell"/> |
| 79 | </figure> |
| 80 | |
| 81 | ## Why can't I see all my temperature sensors on Windows? |
| 82 | |
| 83 | This is a known issue, some sensors may require admin privileges to get sensor data. |
| 84 | |
| 85 | ## Why don't I see dual batteries on Windows reported separately? (e.g. Thinkpads) |
| 86 | |
| 87 | This is a known issue which seems to be with how batteries are being detected on Windows. |
| 88 | |
| 89 | ## Why can't I see all my temperature sensors on WSL? |
| 90 | |
| 91 | This is a known limitation with WSL. Due to how it works, hosts may not expose their |
| 92 | temperature sensors and therefore, temperature sensors might be missing. |
| 93 | |
| 94 | ## Why does WSL2 not match Task Manager? |
| 95 | |
| 96 | This is a known limitation with WSL2. Due to how WSL2 works, the two might not match |
| 97 | up in terms of reported data. |
| 98 | |
| 99 | ## Why can't I see all my processes/process data on macOS? |
| 100 | |
| 101 | You may have to run the program with elevated privileges to work around it - for example: |
| 102 | |
| 103 | ```bash |
| 104 | sudo btm |
| 105 | ``` |
| 106 | |
| 107 | !!! Warning |
| 108 | |
| 109 | Please note that you should be certain that you trust any software you grant root privileges. |
| 110 | |
| 111 | There are measures taken to try to maximize the amount of information obtained without elevated privileges. For example, |
| 112 | one can modify the instructions found on the [htop wiki](https://github.com/hishamhm/htop/wiki/macOS:-run-without-sudo) |
| 113 | on how to run htop without sudo for bottom. However, **please** understand the potential security risks before doing so! |
| 114 | |
| 115 | ## My configuration file isn't working |
| 116 | |
| 117 | If your configuration files aren't working, here are a few things to try: |
| 118 | |
| 119 | ### Check the formatting |
| 120 | |
| 121 | It may be handy to refer to the automatically generated config files or the |
| 122 | [sample configuration files](https://github.com/ClementTsang/bottom/tree/main/sample_configs). The config files also |
| 123 | follow the [TOML](https://toml.io/en/) format. |
| 124 | |
| 125 | Also make sure your config option settings are in the right location - for example, to set your temperature type, you must |
| 126 | set it under the `[flags]` table: |
| 127 | |
| 128 | ```toml |
| 129 | [flags] |
| 130 | temperature_type = "f" |
| 131 | ``` |
| 132 | |
| 133 | Meanwhile, if you want to set a custom colour or styling scheme, it would be under the `[styles]` table - for example: |
| 134 | |
| 135 | ```toml |
| 136 | [styles.tables.headers] |
| 137 | colour = "LightBlue" |
| 138 | bold = true |
| 139 | ``` |
| 140 | |
| 141 | To help validate your configuration files, there is [JSON Schema](https://json-schema.org/) support if your IDE/editor |
| 142 | supports it. |
| 143 | |
| 144 | ### Check the configuration file location |
| 145 | |
| 146 | Make sure bottom is reading the right configuration file. By default, bottom looks for config files at these locations: |
| 147 | |
| 148 | | OS | Default Config Location | |
| 149 | | ------- | -------------------------------------------------------------------------------------------------------------------------------------- | |
| 150 | | macOS | `$HOME/Library/Application Support/bottom/bottom.toml`<br/> `~/.config/bottom/bottom.toml` <br/> `$XDG_CONFIG_HOME/bottom/bottom.toml` | |
| 151 | | Linux | `~/.config/bottom/bottom.toml` <br/> `$XDG_CONFIG_HOME/bottom/bottom.toml` | |
| 152 | | Windows | `C:\Users\<USER>\AppData\Roaming\bottom\bottom.toml` | |
| 153 | |
| 154 | If you want to use a config file in another location, use the `--config` or `-C` flags along with the path to the configuration file, like so: |
| 155 | |
| 156 | ```bash |
| 157 | btm -C path_to_config |
| 158 | ``` |
| 159 | |
| 160 | ## My installation through snap has some widgets that are blank/show no data |
| 161 | |
| 162 | Make sure bottom is given the correct permissions in order to collect data. [Snapcraft](https://snapcraft.io/docs/interface-management) |
| 163 | explains how to do so, but the TL;DR is: |
| 164 | |
| 165 | ```bash |
| 166 | sudo snap connect bottom:mount-observe |
| 167 | sudo snap connect bottom:hardware-observe |
| 168 | sudo snap connect bottom:system-observe |
| 169 | sudo snap connect bottom:process-control |
| 170 | ``` |
| 171 | |
| 172 | ## I don't see any NVIDIA GPU information while using a musl-based binary |
| 173 | |
| 174 | The underlying interface we use for NVIDIA GPU information, nvml, only works with `glibc` and does not work with `musl` at the moment (see [this forum post](https://forums.developer.nvidia.com/t/provide-driver-for-muslc-to-install-it-in-musl-distros/219586/7) for some more details). As such, bottom may fail to get NVIDIA GPU information when using a musl-based binary until this is resolved. This applies to Linux and Windows from my understanding. |
| 175 | |
| 176 | To resolve this, use `glibc`-based binary builds if possible (e.g. the `gnu` binaries/non-`musl` packages in [releases](https://github.com/ClementTsang/bottom/releases)). |
| 177 | |
| 178 | ## Still having issues? |
| 179 | |
| 180 | If you're still having issues, feel free to open a [discussion](https://github.com/ClementTsang/bottom/discussions/new/) |
| 181 | question about it, and I (or others) can try to help. |