# LED Shim and Kali Linux

**URL:** https://forums.pimoroni.com/t/led-shim-and-kali-linux/18062
**Category:** Support
**Created:** [October 17, 2021, 12:17pm UTC](https://forums.pimoroni.com/t/led-shim-and-kali-linux/18062 "2021-10-17T12:17:13Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![boster316](https://avatars.discourse-cdn.com/v4/letter/b/c68b51/32.png) [@boster316](https://forums.pimoroni.com/u/boster316)
#### Post date: [October 17, 2021, 12:17pm UTC](https://forums.pimoroni.com/t/led-shim-and-kali-linux/18062/1 "2021-10-17T12:17:13Z")

</div>

I am trying to get the Led Shim woring correctly with a Raspberry Pi 4 8GB running Kali Linux.  
I have followed instruction from the following website  
[https://projectarc.co.uk/fingers-in-many-pis/pimoroni-led-shim-on-kali-linux](https://projectarc.co.uk/fingers-in-many-pis/pimoroni-led-shim-on-kali-linux)

Everything appears to work fine, except for the rainbow…py file.  
It starts fine with the odd led not working and then gradually gets worse, (see attached image

 ![IMG_4455](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/e/e33f719849372c3eda84446d2418840a38a520af.jpeg)  
)

Appreciate if anyone can advise how to fix this issue.

---

<div class="post-metadata">

### Author: ![BruceB](https://avatars.discourse-cdn.com/v4/letter/b/c2a13f/32.png) [@BruceB](https://forums.pimoroni.com/u/BruceB)
#### Post date: [October 18, 2021, 8:39pm UTC](https://forums.pimoroni.com/t/led-shim-and-kali-linux/18062/2 "2021-10-18T20:39:10Z")

</div>

You may need to edit **/boot/config.txt.**  
The **dtparam** needs to have a baud rate of **400000** or less for LED Shim to work.

# Uncomment some or all of these to enable the optional hardware interfaces

dtparam=i2c\_arm=on,dtparam=i2c\_baudrate=400000  
#dtparam=i2s=on  
#dtparam=spi=on  
#dtparam=i2c\_arm=on,i2c\_arm\_baudrate=100000
