BMW iDrive Screen Not Working? Black Screen, Reboot & Fix Guide

BMW iDrive Screen Not Working

A BMW iDrive screen that goes black, freezes, keeps rebooting or stops responding to touch is one of the most common electrical complaints we see in BMW repair in Dubai. On a modern BMW the iDrive screen is more than a radio. It shows the reversing camera and parking sensors, climate settings on many models, vehicle settings, Check Control warnings, service reminders, navigation, phone and Apple CarPlay. When it fails, a big part of how you use the car goes with it.

The key thing to understand is that the display itself is usually not the part that has failed. The screen is a monitor. It shows what the head unit sends it, and it depends on battery voltage, the vehicle network, software and connectors that are all hidden behind the dashboard. That is why replacing the screen first is one of the most expensive mistakes owners make. This guide explains how the iDrive system is built, why iDrive display problems happen, how a BMW specialist finds the real cause, and which fixes actually work, with a focus on driving and parking a BMW in Dubai and the UAE.

How the BMW iDrive System Works

To understand iDrive screen problems, it helps to know what sits behind the glass. Every iDrive setup, from the early systems to the latest curved display, is built from the same basic parts:

  • The head unit. This is the computer that runs iDrive. It processes navigation, media, phone, apps and vehicle menus, then sends the picture to the screen. BMW has used several generations: CCC, CIC, NBT, NBT Evo, MGU (iDrive 7) and the newer units behind iDrive 8, 8.5 and 9.
  • The Central Information Display (CID). The screen in the dashboard. On later cars it is a touchscreen, and on iDrive 8 and newer it is part of one curved glass panel shared with the instrument cluster.
  • The iDrive controller. The rotary knob and buttons on the centre console. Some versions have a touchpad on top for handwriting input.
  • The vehicle network. On most BMWs up to the F-series era, audio and video data travel around a fibre-optic ring called the MOST bus, linking the head unit, amplifier, telematics unit and other modules. Control data also travels on CAN bus. Newer generations rely more on Ethernet links.
  • Power management. The battery, the Intelligent Battery Sensor (IBS) and the power management software decide how much power infotainment is allowed to use. When voltage drops, BMW switches comfort and entertainment functions off to protect starting ability.

Because the screen sits at the end of this chain, a fault anywhere along it can show up as an iDrive display problem. A good first clue anyone can check is this: if the screen is black but you still hear audio, chimes and the radio, the head unit is probably alive and the fault is more likely the display, its video cable or its power supply. If the screen is black and there is no sound at all, the head unit, its power supply or the network is the more likely cause. Narrowing it down beyond that needs proper car diagnostics that prevent expensive repairs, not guesswork.

Common BMW iDrive Display Problems Owners Report

BMW iDrive Screen Black or Blank

The screen stays dark when the car is switched on, or it goes black while driving. Sometimes only the backlight glows faintly. A black iDrive screen can come from a blown fuse, low battery voltage, a failed display, a loose video cable, a crashed head unit or a broken MOST ring, which is why an experienced car electrician for modern luxury cars tests the circuits before replacing anything. In Dubai summer conditions, a screen that goes dark in a very hot car and comes back once the cabin cools is often thermal protection, not a failure (explained below).

The screen shows the BMW logo, loads, then restarts again every few seconds or minutes. A reboot loop usually points to corrupted software, unstable voltage, a failing head unit (internal memory, hard drive or power circuit) or a module on the network that keeps dropping out and dragging the system down with it.

iDrive Frozen, Lagging or Slow to Respond

Menus take seconds to open, the map stops moving, or the screen freezes on one image. This is commonly software related, but it can also be an early sign of a failing hard drive in older head units, or of overheating behind the dash.

BMW Touchscreen Not Working or Ghost Touch

The touchscreen does not respond, or it selects menus and plays tones on its own without being touched. BMW has published service information for NBT Evo cars where this “ghost” behaviour was caused by software, but heat damage, a damaged touch layer and liquid on the glass can cause the same symptom.

iDrive Controller Knob Not Working

The screen works, but the rotary knob, its buttons or the touchpad do nothing. Causes range from a blown fuse and mechanically sticking buttons to a software error in the touch controller, liquid spilled into the console, or a controller that does not match the head unit after a repair or retrofit.

iDrive Screen Dim, Flickering, Bubbled or Showing Lines

A faded or uneven image, flicker, lines, dead pixels or bubbles and “spider web” marks under the glass are display hardware problems. Bubbles and web patterns are typically delamination: the adhesive layer between the cover glass and the LCD panel breaks down, very often from the heat of Dubai’s harsh climate on luxury cars.

The rest of iDrive works, but one feature is missing or shows a black window. This is often a feature-specific fault: a missing activation code, a phone or cable issue, a failed camera or camera control module, or a region coding problem on an imported car.

Why BMW iDrive Display Problems Happen: The Root Causes

Heat Damage to the iDrive Screen and Head Unit in the UAE

Heat is the single biggest factor for BMW iDrive problems in Dubai. A car parked in the summer sun gets far hotter inside than the outside air, and the dashboard top, where the screen sits, takes the most direct sunlight. This is one of the clearest examples of how Dubai’s climate affects European cars.

BMW itself has issued service information explaining that the Central Information Display will reduce its brightness and may switch off completely when the cabin temperature rises very high, to protect the screen. Once the temperature drops, normal operation returns, and BMW states this is not a vehicle fault. So a screen that is black for the first few minutes in a sun-soaked car, then recovers as the AC cools the cabin, is doing what it was designed to do.

The problem is what years of this heat cycling does over time:

  • Display delamination. The bonding adhesive between the glass and the LCD softens and separates, causing bubbles, haze or web-like patterns that cannot be cleaned or polished away.
  • Solder joint fatigue. Every hot-cold cycle expands and contracts the circuit boards inside the head unit and display. Over time, joints crack and cause intermittent black screens, reboots and eventually total failure.
  • Hard drive wear. CCC, CIC, NBT and NBT Evo head units store maps, media and parts of the system on internal storage. Heat shortens the life of this storage, which is a common cause of slow loading and reboot loops.
  • Weak cabin cooling. A car with a struggling AC system keeps the dashboard electronics hot for longer on every drive. If your cabin never feels properly cold, book a car AC repair before the heat starts costing you electronics as well, and keep up with regular car AC maintenance so the system stays strong through summer.

Weak Battery and Low Voltage

BMW electronics are very sensitive to voltage. The power management system monitors the battery through the IBS, and when the charge is low it starts shutting down non-essential consumers. Infotainment is one of the first to go. Owners see this as a black screen after starting, iDrive that reboots when the engine cranks, or a Check Control message saying the battery is heavily discharged and that functions such as entertainment and climate have been switched off.

Several things cause low-voltage iDrive faults:

  • An ageing battery. Heat is hard on batteries, and in the UAE a battery often reaches the end of its useful life after two to three years, well before the same battery would in Europe. This is why car batteries drain faster in the UAE summer heat, and slow cranking and dim lights are the same warning signs of a failing battery seen across German luxury cars.
  • A battery that was not registered. When a new battery is fitted to a BMW, it must be registered to the car so the charging system knows it is new. If the type or capacity changes, it must also be coded. Skipping this leads to incorrect charging and repeated voltage-related faults.
  • The wrong battery type. Fitting a cheaper flooded battery where the car expects an AGM or EFB battery affects charging behaviour. BMW has even documented that the characteristics of EFB batteries can make the Remote Software Upgrade unavailable on some models.
  • Parasitic drain. A module that does not go to sleep, often an aftermarket dashcam, tracker or poorly wired retrofit, drains the battery overnight. The causes of parasitic battery drain on luxury cars are much the same on a BMW.
  • Alternator or ground problems. A weak alternator or a corroded ground connection can cause intermittent reboots while driving.

Software Faults, Failed Updates and Interrupted Programming

Modern iDrive systems run millions of lines of software, and software bugs are a genuine, documented cause of display problems. BMW has issued technical service information for:

  • NBT head units resetting intermittently or permanently, with the display inoperative and no audio, caused by a software error and corrected by reprogramming.
  • NBT Evo head units resetting and blanking the screen for several seconds when a phone was streaming video over Bluetooth and a call came in.
  • NBT Evo head units aborting during programming, leaving the screen lit blue and the unit not working, caused by an error in the bootloader software.
  • The newest head units (HU-H4 to HU-H6) showing intermittent or permanent black screens on the multifunction display, with fixes that include a 12V battery reset and software updates.

A failed or interrupted update is a common cause of a dead iDrive. Updates need stable voltage for the whole process. If the battery drops during programming, or someone switches the car off halfway through, the head unit can be left with incomplete software and no screen. That is why professional programming is always done with a dedicated power supply connected, never on the battery alone.

MOST Fibre-Optic Ring Breaks and Failed Amplifiers

On most BMWs built before the iDrive 7 generation, the head unit, amplifier, telematics unit and other media modules are linked in a ring by fibre-optic cable. Each module receives a light signal and passes it to the next. If one module loses power, fails internally, or a fibre gets bent, crushed or pulled out of its connector, the light stops travelling around the ring. The result is often a black iDrive screen, no sound, or a system that keeps restarting.

The module most often responsible is not the head unit at all. It is very frequently the amplifier, especially premium Harman Kardon and Bowers & Wilkins units mounted low in the boot or under a seat, where they are exposed to water. Owners replace the screen or the head unit and the problem stays, because the fault is elsewhere on the ring. A specialist BMW workshop finds it by reading the network faults and then bypassing modules one at a time with a fibre-optic loop.

Water Ingress and Moisture

Water and electronics do not mix, and BMW infotainment modules are often placed where water collects:

  • Blocked sunroof drains overflowing into the headliner, pillars or footwells.
  • Failed tail light or boot seals letting water into the spare wheel well, where amplifiers and other modules sit. Seals and panels that were not refitted correctly after accident and body shop repair are a common source.
  • AC evaporator drains blocking and leaking condensation into the passenger footwell. In the UAE, where the AC runs constantly, this is common.
  • High-pressure washing aimed at door seals, or over-wet interior shampooing that soaks the carpet and the modules underneath. Proper car detailing services use controlled extraction so carpets and the electronics under them stay dry.
  • Flood-affected cars. Heavy rain events in the UAE do happen, and cars that have stood in water can show iDrive faults months later as corrosion spreads through connectors.

Water damage often starts with intermittent faults that come and go with humidity, then becomes permanent once corrosion takes hold. Soaked carpets and seat foam usually need lifting and drying or replacing, which is work for a car upholstery team alongside the electrical repair.

BMW Head Unit Failure

Sometimes the head unit itself has failed. Typical internal failures include the hard drive or flash memory, the power supply circuit on the board, the graphics processor and cracked solder joints. Signs include a screen stuck on the BMW logo, a permanent reboot loop that survives a battery check and software update, a “no signal” message on the screen, and the unit no longer appearing on the diagnostic network.

A failed head unit does not always need a new one from BMW. Many can be repaired at component level, which is often far cheaper. What matters is that a BMW specialist confirms the head unit is really the fault before anything is replaced.

Display Panel, Video Cable and Connector Faults

The head unit sends its picture to the screen over a dedicated video cable. A connector that has worked loose after dashboard work, a pinched cable, corrosion on the pins or a failed connector on the screen itself will give a black or flickering screen while audio carries on as normal. Inside the display, the backlight, the LCD panel and the touch layer can each fail on their own. Delamination, dead pixels, lines and a dim, uneven image are all display hardware faults that software cannot fix.

Poor Coding, Retrofits and Aftermarket CarPlay Interfaces

BMWs are highly codeable, and coding apps and cheap cables are easy to buy. Coding changes the way modules behave, and incorrect values can leave the head unit or screen unable to start properly. Common problem sources include:

  • Coding the head unit or controller with values that do not match the car’s equipment.
  • Retrofitting a newer head unit or screen without the correct programming and activation codes.
  • Aftermarket Apple CarPlay and Android Auto boxes that sit between the head unit and the screen on the video line. A cable that is loose, not fully clicked in or connected the wrong way round gives a black screen. Poor power connections from these boxes can also drain the battery.
  • Large aftermarket “Android” replacement screens that remove factory functions and introduce their own faults.

A properly planned retrofit done by a team that codes BMWs every day avoids these problems, which is how we approach car modification and retrofit work in Dubai. Before adding cameras, screens or other aftermarket equipment, it is also worth knowing the car modification rules in Dubai.

Imported BMWs with the Wrong Region Settings

Dubai’s used car market includes many BMWs imported from Japan, the USA, Korea and Europe. Each market has its own iDrive region settings. A Japanese-market BMW, for example, tunes FM only up to 90 MHz, so most UAE radio stations are missing. Navigation maps and their activation codes are tied to a region, so an imported car may show maps of the wrong country or refuse to install Middle East maps.

Converting a car to the correct region needs the head unit coded for the new region, the right map version installed, and a valid navigation activation code (FSC) for the Middle East. Incomplete conversions are a known cause of screens that fade to black, navigation that will not load, and reboot loops. If you are buying a used BMW, a VIN check in the UAE shows where the car was first sold, so you can spot a non-GCC car before you buy.

Phone, Cable and Accessory Problems

Not every iDrive fault is in the car. A damaged USB cable, a phone software update, a full Bluetooth device list or a faulty phone can cause Apple CarPlay to drop, Bluetooth audio to cut out and, on some generations, the head unit to reset. These are the cheapest problems to rule out, so they should always be checked first when the fault only happens with one phone.

BMW iDrive Generations and Their Typical Display Faults

Knowing which iDrive generation your BMW has makes diagnosis much faster, because each one has its own weak points. Production dates overlap between models and markets, so the years below are approximate.

iDrive generation Approx. years Example models Typical display and system faults
CCC (Car Communication Computer) 2004 – 2009 E60 BMW 5 Series, E65 BMW 7 Series, E90 3 Series Slow DVD navigation, freezing, MOST ring breaks, unit failure from heat, controller faults
CIC (Car Information Computer) 2008 – 2013 E70 BMW X5, F01 7 Series, early F10 5 Series, E84 BMW X1 Hard drive wear, navigation loading loops, reboots, MOST ring and amplifier faults
NBT (Head Unit High) 2012 – 2016 F30 BMW 3 Series, F32 BMW 4 Series, F06/F12 BMW 6 Series, F15 X5 Reset loops from software, hard drive failure, “no signal” black screen, MOST faults
NBT Evo (Head Unit High 2) 2016 – 2019 G11/G12 7 Series, G30 5 Series, F20 BMW 1 Series LCI, F39 BMW X2 Ghost touch, Bluetooth-related resets, programming aborts, VIN-locked units, CarPlay activation
MGU (iDrive 7 / Operating System 7) 2019 onwards G20 3 Series, G05 X5, G07 BMW X7, F95 BMW X5 M Software black screens, failed remote updates, wireless CarPlay drop-outs, camera image faults
iDrive 8, 8.5 and 9 (curved display) 2021 onwards iX, i4, G70 7 Series, G60 5 Series, X5 and X7 LCI Software freezes, head unit section of the curved display going black, update-related faults

Two points from this table matter for repair decisions. First, CCC, CIC and NBT faults are more often hardware and age related, because these cars are now old enough for hard drives, solder joints and amplifiers to wear out. Second, NBT Evo and later units are tied to the car’s VIN. BMW introduced a “Trusted VIN” protection, so a head unit taken from another car locks itself when it detects a different VIN. Buying a used head unit from a scrapyard for these cars usually ends with a unit that does not work.

How a BMW Specialist Diagnoses iDrive Display Problems

Good iDrive diagnosis follows an order, from the cheapest and most common causes to the most expensive. Skipping steps is how owners end up paying for a screen or head unit they did not need.

  1. Understand the pattern. When does it happen: on start-up, when hot, over bumps, with one phone, after a battery change, after coding? Does audio still work? Does the controller still click through menus blind? Each answer narrows the search, the same way a technician approaches diagnosing common car problems.
  2. Test the battery and charging system. The battery is tested under load, not just for resting voltage, and the alternator output and grounds are checked. BMW’s diagnostic system includes a dedicated energy diagnosis test that looks at battery history, sleep current and charging behaviour.
  3. Read all modules with BMW diagnostic software. A full vehicle test with BMW ISTA at a BMW repair workshop in Dubai shows stored faults across every module, not just the head unit. Network faults, voltage faults and communication faults all point in different directions, which is why professional diagnostics for modern cars matter more than a generic code reader.
  4. Check the network. On MOST-equipped cars, the technician checks whether the ring is closed and which module breaks it, using a fibre-optic bypass loop to isolate modules one at a time.
  5. Check fuses, power supply and grounds to the head unit and display. A fuse can look good and still be faulty, so circuits are tested, not just inspected.
  6. Check the video link. The display, its cable and its connectors are tested to separate a dead screen from a head unit that is not sending a picture.
  7. Check the software level. The car’s software integration level is compared with the latest available for that model. Many iDrive faults are fixed by a software update alone.
  8. Isolate the faulty part. Only once the fault is pinned down is any part repaired or replaced.

Effective Fixes for BMW iDrive Display Problems

1. Soft Reset the BMW iDrive

A soft reset restarts the head unit without deleting your saved settings, much like restarting a phone. It clears temporary software hangs and is always the first thing to try.

  • Park the car safely with the ignition on.
  • Press and hold the volume / on-off button until the screen goes black and the BMW logo appears.
  • On most CIC and NBT cars this takes about 20 to 30 seconds. On NBT Evo, iDrive 7 and newer cars it can take up to about 70 seconds, so keep holding.
  • On older CCC cars, and some CIC cars, the reset uses the volume knob held together with the eject button or buttons.

If the screen works normally after the reset and the fault does not return, it was most likely a one-off software glitch. If it comes back within days, the reset has only hidden a deeper cause.

2. Let the Car’s Networks Go to Sleep

BMW modules sometimes need a full shutdown to restart cleanly. Switch the car off, close the doors, lock it and leave it untouched for 15 to 20 minutes so all control units go to sleep. Then unlock and start. This simple step clears some faults that a soft reset does not.

3. Test, Replace and Register the Battery

If the fault comes with slow cranking, battery warnings, or happens mostly at start-up, the battery is the first suspect. Replacing it with the correct type and capacity, then registering and coding it to the car, fixes a large share of iDrive reboot and black-screen complaints. It also protects every other module in the car.

4. Update the iDrive Software to the Correct Level

Where a known software bug is behind the fault, programming the car to the current software level is the proper repair, and checking the software level should be part of every BMW service in Dubai. Programming is done with BMW diagnostic software and a stable external power supply, so the update cannot be interrupted by a voltage drop. On newer models that support Remote Software Upgrade, a pending over-the-air update may also need to be completed. If a remote update fails repeatedly, the cause is often battery condition or a fault stored in power management, not the update itself.

5. Repair the MOST Ring, Amplifier or Wiring

When diagnosis shows a ring break, the failed module is repaired or replaced, or the damaged fibre or connector is repaired. If water caused the failure, the leak must be found and fixed first, otherwise the new amplifier or module will fail the same way. Corroded connectors are cleaned or replaced and the area is dried properly.

6. Repair or Replace the iDrive Display (CID)

When the fault is confirmed in the screen, for example delamination, a failed backlight, lines or a dead touch layer, the display is replaced. On many models a correct-specification screen fits and works without complex coding. On iDrive 8 and newer cars, the screen is part of the larger curved display assembly, which makes correct diagnosis before ordering parts even more important.

7. Repair or Replace the BMW Head Unit

If the head unit has failed internally, there are two routes: component-level repair of the existing unit, or a new unit. A repaired unit keeps the car’s own VIN data, which avoids the Trusted VIN lock on NBT Evo and later generations. A new unit must be programmed, coded to the car and given the correct activation codes for navigation and features such as Apple CarPlay. Fitting a used unit from another car is not a reliable fix on newer BMWs.

8. Fix the iDrive Controller or Touchpad

Controller faults are checked in a set order: fuse and power, software level of the controller, connector, then the controller itself. BMW has documented cases where touchpad faults were caused by software in the touch controller and fixed by programming with no parts replaced, and cases on older E-series cars where buttons stuck mechanically. Controllers damaged by spilled drinks usually need replacing.

9. Correct Region Coding and Navigation for Imported BMWs

For non-GCC cars, the head unit is coded to the correct region, the correct Middle East maps are installed and a valid navigation activation code is applied. Radio frequencies, language options and time settings are set at the same time. Done properly, this removes the screen fades, navigation errors and missing radio stations that come with partial conversions.

10. Remove or Properly Install Aftermarket Interfaces

If an aftermarket CarPlay box, screen or dashcam is involved, it is either reinstalled correctly, with secure video connections and a proper switched power supply, or removed so the car returns to factory condition for testing. Many “unfixable” iDrive faults disappear once a badly installed accessory is taken out of the system.

Mistakes That Make iDrive Problems Worse

  • Replacing the screen first. Without diagnosis, there is a good chance the screen was never the fault.
  • Disconnecting the battery again and again. This can clear symptoms temporarily, but it also wipes adaptations and can upset other modules. It does not fix the cause.
  • Jump-starting with cheap boosters or reversing leads. Voltage spikes can damage head units and other control units.
  • Using coding apps without understanding the values. One wrong value can stop the head unit from starting.
  • Running updates on a weak battery. An interrupted update can leave the head unit unusable.
  • Buying used head units for NBT Evo and later cars. VIN protection usually locks them.
  • Cleaning the screen with glass cleaner or alcohol. Ammonia and solvents damage the anti-glare coating and can attack the bonding layer at the edges. Use a clean, dry microfibre cloth or a screen-safe cleaner.
  • Ignoring early warning signs. An occasional reboot today is often a failing battery, a wet amplifier or a tired hard drive that will fail completely later.

How to Prevent BMW iDrive Display Problems in Dubai

Most iDrive failures in the UAE are made worse by heat, voltage and water. Controlling those three things is the best prevention:

  • Park in shade or covered parking where you can, and use a windscreen sunshade. Less heat on the dashboard means slower adhesive breakdown and less stress on solder joints.
  • Cool the cabin before using the screen heavily. Starting the AC first and giving the cabin a few minutes helps. A screen that dims or switches off when the car is very hot is protecting itself.
  • Keep the AC system healthy. Strong cabin cooling protects the dashboard electronics on every drive, and spring is the best time to check your car AC in Dubai before peak summer arrives.
  • Test the battery at every visit, for example at each BMW oil change, and replace it on condition rather than waiting for a no-start. Always have a new battery registered and coded.
  • Keep the car’s software up to date at service visits, and let remote updates finish with the car parked and the battery in good condition. This is part of regular BMW maintenance for longevity.
  • Keep water out. Clear sunroof drains, check boot seals and AC drains, and avoid soaking the carpets during interior cleaning.
  • Use good-quality cables and keep your phone updated for stable Apple CarPlay and Bluetooth.
  • Use experienced BMW installers for retrofits and coding, and keep a record of what was changed.
  • Have an imported BMW checked before you buy, including region coding and navigation activation. A pre-purchase car inspection in Dubai can include a full electrical scan.
  • Do not leave the car standing for weeks without a battery maintainer. Long periods of storage drain the battery and lead to voltage-related faults.

When to Take Your BMW to an iDrive Repair Specialist

A single freeze that a soft reset clears is not a reason to worry. Book an inspection with a BMW specialist when:

  • The screen stays black after a soft reset and a full sleep cycle.
  • The iDrive reboots repeatedly or gets stuck on the BMW logo.
  • The fault comes with battery warnings, slow cranking or other electrical faults.
  • There is no sound at all as well as no picture.
  • The reversing camera or parking sensor display has stopped working. You are now missing safety information as well as entertainment.
  • You see bubbles, lines or a faded image on the display.
  • The fault started after coding, a retrofit, a battery change or water getting into the car.

It is also worth remembering that iDrive shows Check Control messages for the rest of the car. With a dead screen, you may miss the warning signs that you need immediate BMW brake service, a BMW rear brake pad wear message, a coolant warning that comes before BMW engine overheating in Dubai, or gearbox messages that need BMW transmission repair. Engine faults like those covered in our guide to common BMW engine problems and solutions can go unnoticed for longer when the screen is down.

BMW iDrive Repair in Dubai at Carzilla, Al Quoz

Carzilla is a BMW garage and specialist workshop in Al Quoz, Dubai, repairing iDrive and infotainment faults on every generation, from CCC and CIC cars to the latest curved-display models. We use factory-level BMW ISTA diagnostics, test battery and power management properly, trace MOST network and amplifier faults, and carry out software programming, coding and region conversion for imported cars. Where a head unit or display has failed, we explain whether repair or replacement makes more sense before any work starts. The same BMW mechanics also handle BMW engine repair, so electrical and mechanical faults can be fixed under one roof.

Every job comes with Warranty on Repair, and we offer Free Pickup and Delivery* across Dubai, so you do not need to drive a car with a dead screen and no reversing camera to the workshop. You can also fix your car now and pay later with Tabby.

 

Book A Service Today At Carzilla Auto Center!

Call Now WhatsApp