Real-time RGB lightbar control for PS5 DualSense & PS4 DualShock 4 โ with a live 3D controller view
Pick any color, run a lighting effect, watch your battery โ and see it mirrored on a 3D model of your actual controller, in real time.
๐ฌ๐ง English ยท ๐ธ๐ฆ ุจุงูุนุฑุจู
Don't have Python? No problem. Open PowerShell and paste this one line โ it installs Python (if you don't have it), downloads the app, installs everything, and opens it automatically:
irm https://raw.githubusercontent.com/u2n4/ps5-led/main/install.ps1 | iex๐ How do I open PowerShell?
- Press the Windows key.
- Type
powershell. - Click Windows PowerShell, paste the line above, press Enter.
- Wait. The app opens by itself when it's done. โ
If you see a message asking you to open a new PowerShell window, just close it, open PowerShell again, and paste the same line once more.
To run it again later, just paste the same line โ or use the shortcut printed at the end of the install.
๐ Manual install (for developers) is in Installation below.
- ๐จ 10 lighting modes โ Manual, Rainbow, Pulse, Flash, Breathing, Heartbeat, Wave, Gradient, Sequence, Random.
- ๐น๏ธ Live controller view โ an accurate DualSense rendering whose light bar mirrors the real one 100% in sync, in 5 official shell colors.
- ๐ Auto-detects your controller โ PS5 DualSense and PS4 DualShock 4 are both driven automatically.
- ๐ Battery monitor & alerts โ low-battery, plugged-in, and full-charge notifications.
- ๐พ Profiles โ save and switch named color/effect presets instantly.
- ๐ Bilingual UI โ English & Arabic (ุงูุนุฑุจูุฉ), switchable at runtime.
- ๐ช Fullscreen + tray โ runs fullscreen, minimizes to tray instead of quitting.
- ๐ Animated starfield background (toggleable).
- ๐๏ธ Headless / background mode โ drive the lightbar with no window via the CLI.
- ๐งฉ Single file, zero build step โ one
dualled_pro.py, pure Python + Tkinter.
Scope, honestly: PS5 LED is focused on lighting, battery, and presets. It is not a music-reactive / macro / scheduling suite โ it does one thing and does it cleanly.
| 3D sync view | Effects & profiles |
|---|---|
![]() |
![]() |
Requires Python 3.8+ and a controller connected over USB (Bluetooth works too on most setups).
# 1. Clone
git clone https://github.com/u2n4/ps5-led.git
cd dualled-pro
# 2. (recommended) virtual env
python -m venv .venv
# Windows:
.venv\Scripts\activate
# macOS / Linux:
source .venv/bin/activate
# 3. Install dependencies
pip install -r requirements.txt
# 4. Run
python dualled_pro.pyMinimal install (just enough to run):
pip install -U pydualsense hidapi
python dualled_pro.pyFor pydualsense to talk to a DualSense, Windows needs the WinUSB/libusb driver bound to the controller. The simplest path is Zadig: select the DualSense device โ install WinUSB. (PS4 / generic HID controllers usually work without this.)
Launch the GUI:
python dualled_pro.pyRun headless (no window โ uses your last saved settings):
# Drive the lightbar in the background
python dualled_pro.py --background
# Auto-stop after 30 minutes, then turn the lightbar off
python dualled_pro.py --background --stop-after 30 --off-on-exit| Flag | Description |
|---|---|
--background |
Run without the UI, using the last saved color/mode. |
--stop-after N |
Automatically stop after N minutes (background mode). |
--off-on-exit |
Turn the lightbar off when exiting. |
Config and logs live in your OS app-data folder (%APPDATA%\DualLED_Pro on Windows).
โโโโโโโโโโโโโโโ HID โโโโโโโโโโโโโโโโโ color/effect โโโโโโโโโโโโโโโโ
โ Controller โ โโโโโโโโบ โ PS5 LED โ โโโโโโโโโโโโโโโโบ โ Lightbar โ
โ PS5 / PS4 โ โโโโโโโโ โ engine + UI โ โ (real RGB) โ
โโโโโโโโโโโโโโโ battery โโโโโโโโโฌโโโโโโโโ โโโโโโโโโโโโโโโโ
โ mirror
โผ
โโโโโโโโโโโโโโโโโโโโ
โ Live 3D model โ same color, in sync
โโโโโโโโโโโโโโโโโโโโ
A background engine thread computes the current color (solid or animated effect) and pushes it to the physical lightbar over HID, while the Tkinter UI renders a 3D controller whose lightbar is tinted with the exact same value.
PRs and issues are welcome โ see CONTRIBUTING.md. Good first contributions: more controller models in the 3D view, extra effects, packaging recipes (PyInstaller spec, .app/AppImage), and translations.
MIT ยฉ u2n4
Built on pydualsense, hidapi. Not affiliated with or endorsed by Sony. PlayStation, DualSense, and DualShock are trademarks of Sony Interactive Entertainment.
ุชุญููู ูุญุธู ุจุฅุถุงุกุฉ ูุฏ PS5 (DualSense) ู PS4 (DualShock 4) โ ู ุน ุนุฑุถ ุซูุงุซู ุงูุฃุจุนุงุฏ ุญู ูููุฏ
ุงุฎุชุฑ ุฃู ูููุ ุดุบูู ุชุฃุซูุฑ ุฅุถุงุกุฉุ ุฑุงูุจ ุงูุจุทุงุฑูุฉ โ ูุดูููุง ูููุง ู ูุนูุณุฉ ุนูู ูู ูุฐุฌ ุซูุงุซู ุงูุฃุจุนุงุฏ ูููุฏ ุงููุนููุฉ ูุญุธุฉ ุจูุญุธุฉ.
- ๐จ 10 ุฃูุถุงุน ุฅุถุงุกุฉ โ ูุฏููุ ููุณ ูุฒุญุ ูุจุถุ ูู ูุถุ ุชูููุณุ ูุจุถุฉ ููุจุ ู ูุฌุฉุ ุชุฏุฑูุฌุ ุชุณูุณูุ ุนุดูุงุฆู.
- ๐น๏ธ ุนุฑุถ ุญู ูููุฏ โ ุฑุณู DualSense ุฏููู ุชุชุฒุงู ู ุฅุถุงุกุชู ู ุน ุงููุฏ ุงูุญููููุฉ 100%ุ ุจุฎู ุณุฉ ุฃููุงู ุฑุณู ูุฉ.
- ๐ ูุดู ุชููุงุฆู ูููุฏ โ ุชุญูู PS5 DualSense ู PS4 DualShock 4 ูุนู ู ุชููุงุฆูุงู.
- ๐ ู ุฑุงูุจุฉ ุจุทุงุฑูุฉ ูุชูุจููุงุช โ ุชูุจูู ุนูุฏ ุงูุฎูุงุถ ุงูุดุญูุ ุงูุชูุตููุ ูุงูุงูุชู ุงู.
- ๐พ ู ููุงุช ุชุนุฑูู โ ุงุญูุธ ูุจุฏูู ุจูู ุฅุนุฏุงุฏุงุช ููู/ุชุฃุซูุฑ ู ุญููุธุฉ ููุฑุงู.
- ๐ ูุงุฌูุฉ ุซูุงุฆูุฉ ุงููุบุฉ โ ุนุฑุจู ูุฅูุฌููุฒูุ ุชุชุจุฏูู ุฃุซูุงุก ุงูุชุดุบูู.
- ๐ช ู ูุก ุงูุดุงุดุฉ + ุชุตุบูุฑ ููุดุฑูุท ุจุฏูุงู ู ู ุงูุฅุบูุงู.
- ๐ ุฎูููุฉ ูุฌูู ู ุชุญุฑูุฉ (ูุงุจูุฉ ููุฅููุงู).
- ๐๏ธ ูุถุน ุฎููู ุจุฏูู ูุงุฌูุฉ ุนุจุฑ ุณุทุฑ ุงูุฃูุงู ุฑ.
- ๐งฉ ู
ูู ูุงุญุฏุ ุจุฏูู ุฃู ุจูุงุก โ
dualled_pro.pyููุทุ ุจุงูุซูู + Tkinter.
ุจุตุฑุงุญุฉุ ูุทุงู ุงูุจุฑูุงู ุฌ: PS5 LED ู ุฑููุฒ ุนูู ุงูุฅุถุงุกุฉุ ุงูุจุทุงุฑูุฉุ ูุงูุฅุนุฏุงุฏุงุช ุงูู ุญููุธุฉ. ู ู ุจุฑูุงู ุฌ ุชูุงุนู ู ุน ุงูู ูุณููู ููุง ู ุงูุฑููุงุช ููุง ุฌุฏููุฉ โ ูุณููู ุดู ูุงุญุฏ ููุณูููู ูุธูู.
| ุนุฑุถ ุซูุงุซู ุงูุฃุจุนุงุฏ ู ุชุฒุงู ู | ุงูุชุฃุซูุฑุงุช ูุงูุฅุนุฏุงุฏุงุช |
|---|---|
![]() |
![]() |
ู ุง ุนูุฏู ุจุงูุซููุ ุนุงุฏู. ุงูุชุญ PowerShell ูุงูุตู ูุฐุง ุงูุณุทุฑ ุงููุงุญุฏ โ ูุซุจูุช ุจุงูุซูู ูู ู ุง ูู ู ูุฌูุฏุ ูุญู ูู ุงูุจุฑูุงู ุฌุ ูุฑููุจ ูู ุดูุ ูููุชุญ ุงูุจุฑูุงู ุฌ ุชููุงุฆูุงู:
irm https://raw.githubusercontent.com/u2n4/ps5-led/main/install.ps1 | iexููู ุชูุชุญ PowerShellุ
- ุงุถุบุท ุฒุฑ Windows.
- ุงูุชุจ
powershell. - ุงูุชุญ Windows PowerShellุ ุงูุตู ุงูุณุทุฑ ูููุ ุงุถุบุท Enter.
- ุงุณุชูู. ุงูุจุฑูุงู ุฌ ููุชุญ ุจููุณู ูู ุง ูุฎููุต. โ
ูู ุทูุนุช ูู ุฑุณุงูุฉ ุชููู ุงูุชุญ ูุงูุฐุฉ PowerShell ุฌุฏูุฏุฉ โ ุณููุฑ ุงููุงูุฐุฉุ ุงูุชุญ PowerShell ู ุฑุฉ ุซุงููุฉุ ูุงูุตู ููุณ ุงูุณุทุฑ.
ูุชุดุบููู ู ุฑุฉ ุซุงููุฉ ุจุนุฏูู: ุงูุตู ููุณ ุงูุณุทุฑุ ุฃู ุงุณุชุฎุฏู ุงูุงุฎุชุตุงุฑ ุงููู ูุทูุน ูู ุจููุงูุฉ ุงูุชุซุจูุช.
ูุญุชุงุฌ ุจุงูุซูู 3.8+ ููุฏ ู ูุตููุฉ ุนุจุฑ USB (ุงูุจููุชูุซ ูุดุชุบู ุจุนุฏ ุนูู ุฃุบูุจ ุงูุฃุฌูุฒุฉ).
# 1. ุงูุณุฎ ุงูู
ุณุชูุฏุน
git clone https://github.com/u2n4/ps5-led.git
cd dualled-pro
# 2. (ูููุถูู) ุจูุฆุฉ ุงูุชุฑุงุถูุฉ
python -m venv .venv
.venv\Scripts\activate
# 3. ุฑููุจ ุงูู
ุชุทูุจุงุช
pip install -r requirements.txt
# 4. ุดุบูู
python dualled_pro.pyุชุซุจูุช ุณุฑูุน (ุฃูู ุดู ูููู ููุชุดุบูู):
pip install -U pydualsense hidapi
python dualled_pro.pyู ูุงุญุธุฉ ุฏุฑุงููุฑ ูููุฏูุฒ (ูุฏ PS5 DualSense): ุนุดุงู ู ูุชุจุฉ
pydualsenseุชูููู ุงููุฏุ ูููุฏูุฒ ูุญุชุงุฌ ุฏุฑุงููุฑ WinUSB/libusb ู ุฑุจูุท ุจุงููุฏ. ุฃุณูู ุทุฑููุฉ ุนุจุฑ Zadig: ุงุฎุชุฑ ุฌูุงุฒ DualSense โ ุซุจูุช WinUSB. (ูุฏ PS4 / ุงูุฃุฌูุฒุฉ ุงูุนุงู ุฉ ุบุงูุจุงู ุชุดุชุบู ุจุฏูู ูุฐุง.)
ุดุบูู ุงููุงุฌูุฉ:
python dualled_pro.pyุดุบููู ุจุฏูู ูุงุฌูุฉ (ูุณุชุฎุฏู ุขุฎุฑ ุฅุนุฏุงุฏุงุช ุญูุธุชูุง):
# ุชุดุบูู ุงูุฅุถุงุกุฉ ุจุงูุฎูููุฉ
python dualled_pro.py --background
# ูููู ุชููุงุฆูุงู ุจุนุฏ 30 ุฏูููุฉุ ููุทููู ุงูุฅุถุงุกุฉ
python dualled_pro.py --background --stop-after 30 --off-on-exit| ุงูุฃู ุฑ | ุงููุธููุฉ |
|---|---|
--background |
ูุดุชุบู ุจุฏูู ูุงุฌูุฉุ ุจุงุณุชุฎุฏุงู ุขุฎุฑ ููู/ูุถุน ู ุญููุธ. |
--stop-after N |
ูููู ุชููุงุฆูุงู ุจุนุฏ N ุฏูููุฉ (ูุถุน ุงูุฎูููุฉ). |
--off-on-exit |
ูุทููู ุงูุฅุถุงุกุฉ ุนูุฏ ุงูุฎุฑูุฌ. |
ุงูุฅุนุฏุงุฏุงุช ูุงูุณุฌูุงุช ุชูุญูุธ ูู ู
ุฌูุฏ ุจูุงูุงุช ุงููุธุงู
(%APPDATA%\DualLED_Pro ุนูู ูููุฏูุฒ).
โโโโโโโโโโโโโโโ HID โโโโโโโโโโโโโโโโโ ููู/ุชุฃุซูุฑ โโโโโโโโโโโโโโโโ
โ ุงููุฏ โ โโโโโโโโบ โ PS5 LED โ โโโโโโโโโโโโโโโโบ โ ุงูุฅุถุงุกุฉ โ
โ PS5 / PS4 โ โโโโโโโโ โ ู
ุญุฑูู + ูุงุฌูุฉ โ โ (RGB ูุนูู) โ
โโโโโโโโโโโโโโโ ุจุทุงุฑูุฉ โโโโโโโโโฌโโโโโโโโ โโโโโโโโโโโโโโโโ
โ ุงูุนูุงุณ
โผ
โโโโโโโโโโโโโโโโโโโโ
โ ูู
ูุฐุฌ 3D ุญู โ ููุณ ุงููููุ ู
ุชุฒุงู
ู
โโโโโโโโโโโโโโโโโโโโ
ุฎูุท (thread) ุจุงูุฎูููุฉ ูุญุณุจ ุงูููู ุงูุญุงูู (ุซุงุจุช ุฃู ุชุฃุซูุฑ ู ุชุญุฑูู) ููุฑุณูู ููุฅุถุงุกุฉ ุงููุนููุฉ ุนุจุฑ HIDุ ูุจููุณ ุงูููุช ูุงุฌูุฉ Tkinter ุชุฑุณู ูุฏ ุซูุงุซูุฉ ุงูุฃุจุนุงุฏ ุฅุถุงุกุชูุง ุจููุณ ุงูููู ุจุงูุถุจุท.
ุงูู PRs ูุงูู issues ู
ุฑุญูุจ ูููุง โ ุดูู CONTRIBUTING.md. ุฃููุงุฑ ููู
ุจุชุฏุฆูู: ูู
ุงุฐุฌ ูุฏ ุฅุถุงููุฉ ูู ุงูุนุฑุถ 3Dุ ุชุฃุซูุฑุงุช ุฌุฏูุฏุฉุ ูุตูุงุช ุชุบููู (PyInstaller / .app / AppImage)ุ ูุชุฑุฌู
ุงุช.
MIT ยฉ u2n4
ู
ุจูู ุนูู pydualsense ู hidapi. ุบูุฑ ุชุงุจุน ูุดุฑูุฉ Sony ููุง ู
ุนุชู
ุฏ ู
ููุง. PlayStation ู DualSense ู DualShock ุนูุงู
ุงุช ุชุฌุงุฑูุฉ ูู Sony Interactive Entertainment.


