And now that the camera is plugged, we need to enable it before we can use it in our python code.
So we are back to the Raspberry Pi desktop and here, well, depending on the mission that you have
right now, you would have to do a different configuration and how to know which version.
Well, you can open a terminal and just type C 18.
So cut slash EDC slash OS release so you can use tab for the completion here.
And let's look at this.
So I am currently running version 11, which is Raspberry Pi Ice Bullseye.
And it's also the version, as you can see here with the cloud wallpaper by default.
If you have version ten buster, we the temple.
So that's just a previous version.
But it's completely fine for this course.
You can continue with the version ten without any problem.
And so now I'm going to do the bull's eye configuration for the camera.
And if you have Buster, you can see also the timestamp to jump directly to when I explain the best
of configuration.
All right.
So let's start with Bullseye.
You can go to the raspberry.
So the rice spy config menu, press enter and we are going to go to interface options.
Press Enter legacy camera.
Presenter And would you like to enable.
Yes.
And then.
Okay, so you got to finish.
He's going to ask you to reboot.
You press?
Yes.
And then so here I am using Vinci.
So he's going to reboot.
So let's wait a few seconds here.
Okay.
And this is maybe all you're going to get when you go back to the DNC.
Desktop cannot currently show the desktop and this happens after you enable the legacy stack for the
camera on Bullseye and there is a way to fix this.
So we will need to actually.
So I'm going to close, Nancy, and we will need to access the Raspberry Pi using H and the terminal
to fix just one thing.
So let's open a terminal here.
I'm using C and D on windows and it's on this and let's do a H.
So by this is the username I've used before at 180, 268, 31 and 76.
This is the IP address for my Raspberry Pi.
So of course make sure you use the correct user and the correct IP address input.
Also the password.
And I am back to the raspberry base.
So Raspberry Pi is still running.
It's just that we don't have access to the desktop.
But the Raspberry Pi is running.
We can get access.
We've set a stage and we are going to modify it.
So let's do sudo nano.
We are going to modify the slash boot slash config file which sudo for admin privilege and let's use
nano to edit define cypress enter here and you're going to go down.
And you're going to find this here.
This option HDMI false hot plug is equal to one.
And you're going to end comment that one.
You're going to also end comment and HDMI group one and HDMI mode.
So which should be normally one like this?
Just that I had modified before, but that should be the default state.
And so this is going to be the fix for VMC.
So you kind of forced the HDMI display and that's going to fix to V and see.
All right.
So that's just basically a small hack, small fix, call it however you want to make it work.
So we have this option is equal to one and then add HDMI Group one and edge DMA mode.
I'm going to put 16 here and if we go to the Raspberry Pi documentation, this is actually the HDMI
mode with Integer.
My group is equal to one, so you can use so you can see I use 16 which corresponds to full HD and 60
hits.
So if you want to use a different resolution here and just use a different number also and so I'm just
going to use that one.
So we have those three options.
Now let's go down and let's go to the bottom.
You should find something like this by fall.
So maybe you have this and you have this light duty overlay is equal to this for F, K and S, these
three D and so this line you need to comment.
So let's comment this line because if you don't comment this when you actually run VSC, you may have
some troubles with the full screen mode for the incident.
And once you have done this, you can say We've controlled an S and we've control and X.
We are back to the terminal now.
What do we do?
We do a pseudo reboot.
Okay, and let's wait a bit that the connection is lost and then the Raspberry Pi boots again and connects
to the Wi-Fi.
Okay.
And now we should lose switching.
Presenter We should, of course, lose the connection.
One thing here is that after you have edited that fine and you removed the Raspberry Pi, you may take
a bit more time to actually boot and connect to the Wi-Fi, so a bit more time that you are used to.
So I recommend wait at least 2 minutes, two or 3 minutes maybe to make sure that the Raspberry Pi is
connected to Wi-Fi.
And now we can go back to the ANC and just open the Yankee client again.
And, well, we are back to the desktop and the camera is enabled just to be sure, if you open the
terminal and you type raspy still just like that, you should get this kind of message.
Okay.
If you get an error here which talks about the legacy stack, all we say is that the recipe still is
not found.
Then the camera is not correctly enabled, which if you have this, that's a success.
And now I'm going to show you how to enable the camera if you are still using Raspberry Pi OS with the
best version.
So and also the temple wallpaper here.
And so if you are using the bull's eye version and you just followed the previous instructions, well,
you can skip the end of the view and just go to the next lesson.
So no, the Raspberry Pi has boots.
You are back on the desktop.
I'm going to show you how to enable with the menu key and also from the demo.
So you go to programs is here Raspberry Pi configuration.
You go on in the faces and you can see a camera here.
So if it's disabled, you click on Enable.
It's already enabled for me and you click on okay.
Then if you want to use the terminal, you can also do sudo rossby dash config.
Okay.
Press enter and go to interface options.
So that's basically the same menu just from the terminal you click on.
So camera enter.
Would you like the camera interface to be enabled?
Yes.
Is enabled.
Okay.
And then right.
Arrow to go to select and finish.
Press enter and the camera is enabled.
So if your camera was previously disabled or if you just want to make sure it's working, just do a
pseudo product, enter and then just wait a few see.
So here I'm using V.
Okay, so I'm just waiting that the Raspberry Pi is going to boot again and the client is going to connect
automatically to Herzberg by again.