From d517a14b248bfaaa4a5e69b5e362e5c0519f7757 Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Fri, 9 Oct 2020 18:21:37 -0400 Subject: [PATCH] razer-cheryl2: Minimum edits to device description --- devices/razer-cheryl2/default.nix | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/devices/razer-cheryl2/default.nix b/devices/razer-cheryl2/default.nix index 93f955bd..ae782d3a 100644 --- a/devices/razer-cheryl2/default.nix +++ b/devices/razer-cheryl2/default.nix @@ -1,9 +1,5 @@ { pkgs, ... }: -/* - * This file has been generated by autoport. - * **Do not** open a Pull Request without having verified the port works. - */ { mobile.device.name = "razer-cheryl2"; mobile.device.identity = { @@ -13,14 +9,14 @@ mobile.hardware = { soc = "qualcomm-sdm845"; - ram = 1024 * 0/* (in MB) To be filled by the user */; + ram = 1024 * 8; screen = { - width = 0/* To be filled by the user */; height = 0/* To be filled by the user */; + width = 1440; height = 2560; }; }; mobile.boot.stage-1 = { - kernel.package = pkgs.callPackage ./kernel { kernelPatches = pkgs.defaultKernelPatches; }; + kernel.package = pkgs.callPackage ./kernel { }; }; mobile.system.android = { @@ -60,16 +56,13 @@ mobile.system.type = "android"; - /* The usb mode could not be detected. - * Assuming this is an older device, android_usb should be used. - * For a newer device, gadgetfs is to be used. - */ - mobile.usb.mode = null; - - /* To be changed by the author, though those may or may work with any device. */ + mobile.usb.mode = "gadgetfs"; # Google mobile.usb.idVendor = "18D1"; # "Nexus 4" mobile.usb.idProduct = "D001"; + mobile.usb.gadgetfs.functions = { + rndis = "gsi.rndis"; + }; }