# Libcamera & disable legacy camera stack?

**URL:** https://dietpi.com/forum/t/libcamera-disable-legacy-camera-stack/6477
**Category:** Troubleshooting
**Created:** [3 April 2022 08:01 UTC](https://dietpi.com/forum/t/libcamera-disable-legacy-camera-stack/6477 "2022-04-03T08:01:24Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![AnBad](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/a/3e96dc/32.png) [@AnBad](https://dietpi.com/forum/u/AnBad)
#### Post date: [3 April 2022 08:01 UTC](https://dietpi.com/forum/t/libcamera-disable-legacy-camera-stack/6477/1 "2022-04-03T08:01:24Z")

</div>

Hi there,  
I have installed libcamera. But it does not work.

> ERROR: the system appears to be configured for the legacy camera stack

So, where can I configure and disable the legacy camera stack?

I am running a Raspberry 3+ with 64bit Dietpi

Thanks

---

<div class="post-metadata">

### Author: ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)
#### Post date: [3 April 2022 15:17 UTC](https://dietpi.com/forum/t/libcamera-disable-legacy-camera-stack/6477/2 "2022-04-03T15:17:31Z")

</div>

See [DietPi-Config | RPi: Add modern RPi camera module support · Issue #5127 · MichaIng/DietPi · GitHub](https://github.com/MichaIng/DietPi/issues/5127)

> When enabling the camera module option, setting camera\_auto\_detect=1 or start\_x=1 based on whether full KMS is used or not.  
> When switching between fake KMS/full KMS/legacy and the camera module is enabled, switch between camera\_auto\_detect=1 and start\_x=1 accordingly.

You can enable this option in dietpi-config.  
But it also seems the new camera stack is not stable in every circumstance. [libcamera stack does not work in Bullseye with the RasPi Camera V2 and the HQ Camera - Raspberry Pi Forums](https://forums.raspberrypi.com/viewtopic.php?p=1958297)

---

<div class="post-metadata">

### Author: ![AnBad](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/a/3e96dc/32.png) [@AnBad](https://dietpi.com/forum/u/AnBad)
#### Post date: [7 April 2022 05:41 UTC](https://dietpi.com/forum/t/libcamera-disable-legacy-camera-stack/6477/3 "2022-04-07T05:41:01Z")

</div>

Thanks for the hint, I will try it in time and let you know

---

<div class="post-metadata">

### Author: ![AnBad](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/a/3e96dc/32.png) [@AnBad](https://dietpi.com/forum/u/AnBad)
#### Post date: [8 April 2022 09:42 UTC](https://dietpi.com/forum/t/libcamera-disable-legacy-camera-stack/6477/4 "2022-04-08T09:42:29Z")

</div>

Hi,  
seems that it works now.

I did the following setup:

1. Enable ‘8: RPi Camera’ at DietPi-Config/Display Options/
2. added ‘camera\_auto\_detect=1’ to the /boot/config.txt
3. Installed libcamera ‘apt install libcamera-apps-lite’

Thank you.
