Skip to content

About

PSP as a second display over USB (Generic USB Display), beside PSPLink or standalone

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

pspkit-sidecar

Use a PSP as a second Linux monitor over USB. Sidecar gives your desktop a 480 × 272 display. It can also run alongside PSPLink so you can keep using pspsh and host0: on the same cable.

Tested on PSP-1000 and PSP-2000. Press SELECT on the PSP to adjust brightness and idle dimming.

Illustration of a PSP beside a PC monitor, connected over USB and showing a second Linux workspace

Linux

You need a USB data cable, a PSP with custom firmware that supports kernel modules, and a Linux kernel with the gud driver. From the repository root, build both PSP files with the pspdev toolchain on your PATH.

make -C psp && make -C psp/app

Start from the PSP menu. Copy psp/app/EBOOT.PBP and psp/sidecar.prx into ms0:/PSP/GAME/SIDECAR/. Launch Sidecar, connect the USB cable and enable the 480 × 272 output in your desktop's display settings. HOME exits Sidecar.

Run alongside PSPLink

Start PSPLink on the console. Install usbhostfs_pc and pspsh on the host. The udev rule binds the PSP's display interface to GUD and gives the active desktop user access to its framebuffer.

sudo install -m 0644 linux/51-pspkit-sidecar.rules /etc/udev/rules.d/
sudo udevadm control --reload

Reconnect the PSP, then use the scripts from the repository root.

./tray/bench.sh start    # start or reuse usbhostfs and load the display
./sidecar.sh status      # check PSPLink and the display driver
./tray/bench.sh stop     # unload the display and keep PSPLink running

On Hyprland, Sidecar assigns the display its own workspace. If Hyprland skips the physical USB output, Sidecar streams a virtual output to the PSP using wf-recorder, Python 3 and a systemd user service. Other desktops can arrange the physical output if their compositor supports USB displays.

Install the optional system tray

The tray menu needs a StatusNotifierItem host, PyGObject and the Dbusmenu GLib introspection bindings. Link the unit from the checkout to start it with your graphical session.

mkdir -p ~/.config/systemd/user
ln -s "$PWD/tray/pspkit-sidecar-tray.service" ~/.config/systemd/user/
systemctl --user daemon-reload
systemctl --user enable --now pspkit-sidecar-tray.service

Omarchy

The bar widget places the PSP on any edge of the main monitor. Drag the PSP rectangle into position, then choose its scale and workspace. The default is workspace 9.

Omarchy Sidecar widget showing the PSP below the main monitor, at 80% scale on workspace 9

Install the bar widget

Complete the Linux PSPLink setup above and install the Hyprland streaming dependencies. From the repository root, run:

mkdir -p ~/.config/omarchy/plugins
ln -s "$PWD/omarchy" ~/.config/omarchy/plugins/chriopter.sidecar
omarchy plugin enable chriopter.sidecar --section right --before omarchy.monitor

For a manually powered PSP, run ./tray/bench.sh start and open PSP Sidecar in the bar.

Switch the PSP on through a relay

Configure your relay with pspkit-autoboot. Place its checkout beside Sidecar or set PSPKIT_AUTOBOOT=/absolute/path/to/autoboot.sh in ~/.config/pspkit-sidecar.env. PSP On power-cycles the console when needed. PSP Off shuts it down through PSPLink and leaves the relay on.

Development

The USB diagnostic sends test patterns and measures throughput. The DRM diagnostic checks framebuffer import and scanout. Both include build instructions. An optional Aquamarine patch adds native handling for display-only USB devices.

Sidecar uses Noralf Trønnes's GUD protocol and USB code modelled on PSPLink. Related projects include PSPdisp and pspdisp-linux. See the MIT license and PSPLink notice.

About

PSP as a second display over USB (Generic USB Display), beside PSPLink or standalone

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages