Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 2 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,3 @@
# ms912x driver for Linux

Linux kernel driver for MacroSilicon USB to VGA/HDMI adapter.

There are two variants:
- VID/PID is 534d:6021. Device is USB 2
- VID/PID is 345f:9132. Device is USB 3

For kernel 6.1 checkout branch kernel-6.1

TODOs:

- Detect connector type (VGA, HDMI, etc...)
- More resolutions
- Error handling
- Is RGB to YUV conversion needed?

## Development

Driver is written by analyzing wireshark captures of the device.

## DKMS

Run `sudo dkms install .`
# ms912x driver for Nix

Fork of https://github.com/rhgndf/ms912x, Linux kernel driver for MacroSilicon USB to VGA/HDMI adapter, (probably) adapted for Nix package manager.
41 changes: 41 additions & 0 deletions ms912x.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{ stdenv
, lib
, fetchFromGitHub
, kernel
}:

stdenv.mkDerivation rec {
name = "ms912x";
version = "1.0";

src = fetchFromGitHub {
owner = "rhgndf";
repo = "ms912x";
rev = "738aef1";
sha256 = "16d2cjnsd9cf482jc7crigq1qsk0g7973dkzrck9b95sfclj7l8n";
};

setSourceRoot = ''
export sourceRoot=$(pwd)/source
'';

nativeBuildInputs = kernel.moduleBuildDependencies;

makeFlags = kernel.makeFlags ++ [
"-C"
"${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
"M=$(sourceRoot)"
];

buildFlags = [ "modules" ];
installFlags = [ "INSTALL_MOD_PATH=${placeholder "out"}" ];
installTargets = [ "modules_install" ];


meta = with lib; {
description = "Drivers for MacroSilicon VGA Display Adapter";
homepage = "https://github.com/rhgndf/ms912x";
license = licenses.gpl2;
platforms = platforms.linux;
};
}