firmware & settings guide

Why Laser Engraving Corners Are Too Dark — and How M4 Dynamic Power Fixes It

Your laser engraving corners look darker — sometimes much darker — than the straight sections in between. This isn't a power or focus problem. It's a physics problem: the laser head has to slow nearly to a stop at every corner, but in the default mode the laser keeps firing at full commanded power. When speed drops to 10% of normal, the energy delivered per millimetre shoots up by 10×. The fix is two steps: enable GRBL laser mode ($32=1) and switch your engraving layers to M4 dynamic power, which automatically reduces laser output proportionally as the head decelerates — keeping energy density consistent across the whole path.

  • Root cause: laser head slows at corners; power stays full = energy pile-up
  • Energy spike: at 10% of feed rate, energy per mm is 10× higher with M3
  • Fix, step 1: enable laser mode — send $32=1 in the Console
  • Fix, step 2: uncheck "Constant Power Mode" per engraving layer in LightBurn (= M4)
  • LaserGRBL: enable Overscan as the equivalent compensation
  • Cutting layers: keep "Constant Power Mode" checked (M3) — corners matter less at cutting speeds
Without M4 dynamic power, a diode laser delivers up to 10× more energy per mm at corners than on straight sections — making them visibly darker regardless of your power and speed settings. — Laser Tinkerer, 2026

Why do laser engraving corners get darker?

The answer is in how energy density works. The energy deposited per millimetre of travel depends on two things: how powerful the laser is, and how fast the head is moving.

Energy per mm = Power (W) ÷ Speed (mm/s)

On a straight section at full speed, this ratio is constant and predictable. At a corner, the laser head has to decelerate, reverse direction, and accelerate again — the mechanics of the gantry physically cannot change direction instantly. During that deceleration, speed drops toward zero. If power stays constant, energy per mm rises toward infinity.

In practice, the peak is capped by the machine's minimum feed rate, but even a momentary slow-down from 3,000 mm/min to 300 mm/min means ten times more energy in that zone — enough to make corners noticeably darker, blurry, or slightly charred on wood.

This effect is worst on:

  • Vector outline engraving — the head constantly accelerates and decelerates on curves and corners
  • Raster scan line endpoints — the head is still decelerating as it exits and accelerating as it enters each scan line
  • Small text and tight curves — the head never reaches full speed, so the average feed rate is well below the commanded value
M3 vs M4 energy density along a laser path with a corner M3 — Constant Power M4 — Dynamic Power high energy (darker burn) Power: constant Corner energy: ×5–10 higher even energy (matched tone) Power: scales with speed Corner energy: same as rest
Energy deposition along a laser path. Left: M3 constant power — energy spikes at corners where the head slows. Right: M4 dynamic power — laser output scales with speed, keeping energy per mm even across the entire path.

Three GRBL operating modes — and which one you want for engraving

Your laser controller (GRBL firmware) has three relevant states. Which one you are in depends on the $32 parameter and the M-code sent by your software.

Mode How it works Corner behaviour Best for
Laser mode off
$32=0
GRBL treats the laser like a spindle: it pauses the head at every power change before moving on Burn spots at every power transition; worst possible result for engraving Nothing useful — do not use this for laser work
M3 — constant power
$32=1, LightBurn "Constant Power" checked
Laser fires at commanded power regardless of actual head speed; no pauses Darker at corners and scan-line endpoints because power stays full as the head slows Straight-line cutting where constant power through the kerf is desirable
M4 — dynamic power
$32=1, LightBurn "Constant Power" unchecked
Laser output scales linearly with actual feed rate; at half speed, laser fires at half power Even coverage — corners match straight sections because lower speed = lower power All engraving (raster and vector); vector outline work on curves

The short version: for engraving, you want M4. For cutting, you can use M3. LightBurn lets you set this per layer, so you can have M4 engraving layers and M3 cutting layers in the same job.

How to fix dark corners in LightBurn — step by step

There are two separate things to configure: the firmware parameter (done once) and the per-layer setting (done in every job file).

Step 1: Enable laser mode in firmware — send $32=1

Open LightBurn. Go to Edit → Machine Settings, or open the Console tab (Window → Console). Type the following and press Enter:

$32=1

Verify it saved: type $$ and press Enter. Find the line that reads $32=1 (Laser mode, bool). If it still shows $32=0, the command may not have sent — try again or check your firmware version (requires GRBL 1.1f or later).

While you are in the Console, also confirm that $30 (spindle max RPM, which GRBL maps to max laser power) matches the S-Value Max in LightBurn's Device Settings. Both should be 1000. A mismatch causes incorrect power output regardless of M3/M4 mode.

Step 2: Set engraving layers to M4 in LightBurn

$32=1 enables laser mode, which is required for M4 to work — but it does not automatically switch to M4. You still need to check the layer setting.

In LightBurn, open the Cuts/Layers panel (usually on the right side). Click the layer you use for engraving. In the layer properties at the bottom, look for the Constant Power Mode checkbox:

Checkbox stateMeansUse for
Unchecked (default) M4 dynamic power — output scales with speed All engraving: raster fills, vector engraving, image engraving
Checked M3 constant power — output stays fixed regardless of speed Cutting layers, or situations where you want full power through every move

For engraving layers, leave it unchecked. That is all.

Note — why unchecked means M4: LightBurn calls M4 the "default" mode because it is better for engraving. The "Constant Power Mode" checkbox explicitly forces M3. So the less-obvious state (unchecked) is the correct one for most engraving work.

Step 3: Test on a scrap piece

Burn a simple square outline plus a small filled rectangle on a piece of scrap basswood. With M4 correctly configured, the corners of the square should match the mid-edge brightness. If corners are still darker, double-check that $32 really saved to firmware (send $$ and read the output).

How to fix dark corners in LaserGRBL

LaserGRBL has a different (but equivalent) solution: Overscan.

Overscan extends each scan line beyond the left and right edges of the image. The laser head starts moving before the laser turns on, so by the time it reaches the first pixel of the image, the head is already up to commanded speed. The laser turns off before the end of the line, and the head decelerates beyond the image boundary. The acceleration and deceleration happen outside the image area — so the engraved portion only ever sees the head at full commanded speed.

To enable it: when you import an image into LaserGRBL (File → Open), the import dialog has an Overscan field (in mm or as a percentage of image width). Set it to at least 5% of the image width, or about 3–5 mm as an absolute value. Larger overscan values reduce speed artifacts on slower scan rates.

LaserGRBL also benefits from having $32=1 set in firmware — open the Grbl Configuration panel (Tools → Grbl Configuration) and set $32 to 1.

When is M3 (constant power) the right choice?

M3 is appropriate for cutting, not engraving. The reason is slightly counterintuitive: for most cutting paths, the laser moves at a constant feed rate for most of the cut length. The head only decelerates significantly at corners if the cut path has sharp direction changes — and even then, you typically want full power through the corner to ensure a clean cut, rather than less power that might leave the kerf uncut.

The typical recommendation:

  • Engraving layers — M4 (Constant Power Mode unchecked in LightBurn)
  • Cutting layers — M3 (Constant Power Mode checked in LightBurn)
  • Vector outline engraving — M4 gives better results than M3 on curves

One exception: if you are cutting a design with many tight curves or intricate shapes (like stencils or detailed decorations), switching to M4 for the cutting layer too can actually improve edge quality, because M4 reduces power on the micro-deceleration at each curve — producing a slightly cleaner cut edge on some materials. Test on scrap before committing to a full job.

What $32=1 does — and what it does not do

There is frequent confusion about $32=1 because fixing it often makes a dramatic improvement — but people attribute the full improvement to laser mode alone, when it is actually the combination of laser mode plus M4 that solves corner darkness specifically.

Here is what each fix addresses:

FixWhat it solvesWhat it does not solve on its own
$32=1
(laser mode on)
Eliminates the pause-at-each-power-change problem — no more stuttering during vector work, no burn spots from the head stopping mid-move. Required for M4 to function at all. Does not fix dark corners — only prevents burn-spots from pauses. Corners can still be darker because M3 is still the default until you change the per-layer setting.
M4 dynamic power
(per-layer in LightBurn)
Fixes corner darkening and scan-line edge brightness by scaling output with head speed. Requires $32=1 to be active first. Does not fix burn-spots from pauses on its own (that is $32=1's job). Also does not fix focus problems or correct for slow minimum feed rate on cheap machines.

How to test whether M4 is working correctly

Run this test on a piece of scrap basswood or birch plywood — light, even-grained wood shows energy differences clearly.

  1. In LightBurn, create a square outline (30×30 mm) and a small filled square (20×20 mm) on the same layer.
  2. Set the layer to your normal engraving power and speed (e.g. 60% power, 3,000 mm/min).
  3. Burn the first test with Constant Power Mode checked (M3). Note the corner brightness.
  4. Burn a second test with Constant Power Mode unchecked (M4). Compare corners to edges.

With M3, you will typically see noticeably darker marks at each of the four corners of the square outline. With M4, the corners should match the straight edges — same tone, same depth. The filled square is less sensitive to this effect but may show brighter edges on entry/exit points with M3.

If M4 makes no visible difference, check that $32=1 is actually saved in firmware (not just sent once without being persisted). Some machines have write-protected firmware parameters — you may need to verify via the GRBL Console.

Wear your OD7+ laser safety glasses during all test burns.

How this relates to the material test grid generator

The Laser Tinkerer material test grid generator defaults to M4 for all GRBL engraving profiles. The reason is exactly this: test grids contain many small cells with frequent direction changes. Running a test grid with M3 would make the corners of each cell darker than the centres, masking the true relationship between power, speed, and engraving depth — the whole thing you are trying to measure.

When you download a G-code test grid from the generator, the header includes:

$32=1 ; enable laser mode
M4 ; dynamic power — scales with feed rate

If your machine does not respond correctly to M4 (some older or non-standard GRBL forks), use the SVG download from the generator and run it through LightBurn directly — you can then control M3/M4 via the per-layer setting.

Frequently asked questions

Why are the corners of my laser engravings darker than the rest?

The laser head has to slow down, stop, and reverse direction at every corner. Without dynamic power mode, the laser stays at full commanded power even as the head decelerates — delivering far more energy per millimetre at the corner than on a straight section. The fix is GRBL laser mode ($32=1) plus M4 dynamic power, which scales laser output proportionally with actual head speed.

What is the difference between M3 and M4 in GRBL laser engraving?

M3 is constant power mode: the laser runs at the commanded power level regardless of how fast or slow the head is moving. M4 is dynamic power mode: the laser output scales linearly with the actual feed rate. At 50% of commanded speed, M4 delivers 50% of commanded power — keeping energy density per millimetre constant across the whole path.

Where is the Constant Power Mode setting in LightBurn?

In the Cuts/Layers panel, click the layer you want to configure. The Constant Power Mode checkbox appears in the layer properties. Unchecked (default) uses M4 dynamic power — correct for engraving. Checked uses M3 constant power — use for cutting layers if you want full power through corners.

Does $32=1 fix dark corners on its own?

$32=1 enables GRBL laser mode, which is a prerequisite for M4 to work. Without it, M4 commands are silently ignored and the firmware behaves like a spindle controller, pausing at every power change. But $32=1 alone does not fix corners — you also need the engraving layer's Constant Power Mode to be unchecked (M4) in LightBurn.

How do I fix dark corners in LaserGRBL?

Enable the Overscan option when importing your image in LaserGRBL. Overscan extends each scan line beyond the image boundary so the laser head reaches full commanded speed before the laser turns on — avoiding the bright edges and dark entry points you get when the head is still accelerating. Set overscan to at least 5% of image width.

My machine uses xTool Creative Space / Lightburn with xTool — does M4 apply?

xTool machines (D1, D1 Pro, S10) use their own firmware and xTool Creative Space has its own power compensation built in — you do not set $32 or M3/M4 directly in xCS. If you use LightBurn with an xTool GRBL-based machine, the same rules apply: check whether the firmware supports $32=1 (most do) and leave Constant Power Mode unchecked for engraving layers. Consult the LightBurn setup guide for machine-specific steps.

Related guides

setup

LightBurn setup guide

GRBL parameters, device configuration, and first-run checklist for LightBurn with diode lasers.

image quality

DPI settings guide

Line interval, scan resolution, and how DPI interacts with material grain and laser spot size.

troubleshooting

Engraving quality guide

Fix banding, blur, burned edges, and inconsistent depth — the four root causes and their fixes.

troubleshooting

Prevent burn marks

Masking tape, air assist strategy, and power reduction to reduce scorching around engravings.

tool

Material test grid generator

Generate a test grid that reveals your machine's true power/speed response — defaults to M4.

Gear mentioned in this guide

As an Amazon Associate I earn from qualifying purchases.