Mac mini (2018) Macmini8,1 Linux usb-c will not recognize certain usb device types

The Mac mini (2018) Macmini8,1 is running Linux with rEFInd. The mini has 2 usb-a 10 Gb/s ports, and 4 usb-c 10 Gb/s ports

Problem: On usb-c ports, “dangerous” devices are not recognized by the kernel, they are ignored on plugin like nothing happened

“dangerous” devices include storage Samsung T5/T7 or networking
Realtek 8153

“safe” devices like mouse, keyboard and display works

Everything works on usb-a ports

uname --kernel-release 
5.8.0-36-generic

to run with T2:

  • applesmc brcmfmac blacklisted
  • tg3 so buggy it is not used
  • csrutil disable
  • Startup Security Utility: No Security, Allow booting from external or removable media

How can any type USB device be made to work on usb-c ports?

macbook pro 13” 2018 (thunderbolt 3 / 4 slots) with 4K 60 hertz monitor

I have a dell 4k 60 hz monitor and I’m wondering if its possible to achieve the 60 hertz refresh rate with my 2018 macbook pro 13″ (thunderbolt 3 / 4 slots). Is the new Apple USB-C Digital AV Multiport Adapternot compatible for 60 hertz at 4k? Does anyone have any reputable alternatives?

Thanks!

applications – Can you swap Samsung A7 2018 camera to Samsung A11

I own a samsung a7 2018 which sadly broke and purchased a samsung a11, I was wondering if I can replace the rear camera of my SAMSUNG A11 and use the rear camera of Samsung A7 2018 as the replacement, since the older phone has a better reso than the newer one. Thank you!!

java – timing out on one case, USACO 2018 US Open Contest, Silver Problem 3. Multiplayer Moo1

Referring to this question: http://usaco.org/index.php?page=viewproblem2&cpid=836

Hi! So I’m working on this problem, and my approach was to search ever possible ways, but it time out on one case:enter image description here

And here is my code:

import java.io.*;
import java.util.*;

public class main {
    public static int()() grid;
    public static boolean()() went, went2;
    public static int cnt;
    
    public static void dfs1(int x, int y, int wanted) {
        if(x < 0 || y < 0 || x >= grid.length ||  y >= grid.length) {
            return;
        }
        
        if(went(x)(y) || grid(x)(y) != wanted) {
            return;
        }
        went(x)(y) = true;
        cnt++;
        
        dfs1(x + 1, y, wanted);
        dfs1(x - 1, y, wanted);
        dfs1(x, y + 1, wanted);
        dfs1(x, y - 1, wanted);
    }
    
    public static void dfs2(int x, int y, LinkedList<Integer> wanted) {
        if(x < 0 || y < 0 || x >= grid.length || y >= grid.length) {
            return;
        }
        
        if(went2(x)(y)) {
            return;
        }else if(!wanted.contains(grid(x)(y)) && wanted.size() >= 2) {
            return;
        }else if(wanted.size() < 2 && !wanted.contains(grid(x)(y))) {
            wanted.add(grid(x)(y));
        }
        
        cnt++;
        if(wanted.size() < 2) {
            went(x)(y) = true;
        }
        went2(x)(y) = true;
        
        dfs2(x + 1, y, wanted);
        dfs2(x - 1, y, wanted);
        dfs2(x, y + 1, wanted);
        dfs2(x, y - 1, wanted);
    }
    
    
    public static void main(String() args) throws IOException{
        //BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        BufferedReader input = new BufferedReader(new FileReader("multimoo.in"));
        PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("multimoo.out")));
        
        StringTokenizer st = new StringTokenizer(input.readLine());
        int n = Integer.parseInt(st.nextToken());
        grid = new int(n)(n);
        went = new boolean(n)(n);
        went2 = new boolean(n)(n);
        
        for(int i = 0;i<n;i++) {
            st = new StringTokenizer(input.readLine());
            
            for(int j = 0;j<n;j++) {
                int num = Integer.parseInt(st.nextToken());
                grid(i)(j) = num;
            }
            
        }
        
        
        int best = 0;
        //int best2 = 0;
        
        for(int i = 0;i<n;i++) {
            for(int j = 0;j<n;j++) {
                if(!went(i)(j)) {
                    cnt = 0;
                    dfs1(i, j, grid(i)(j));
                    if(cnt > best) {
        //              best2 = best;
                        best = cnt;
                    }
                }
            }
        }
        
        //best2 += best;
        //System.out.println(best);
        out.println(best);
        best = 0;
        
        went = new boolean(n)(n);
        
        
        for(int i = 0;i<n;i++) {
            for(int j = 0;j<n;j++) {
                if(!went(i)(j)) {
                    cnt = 0;
                    LinkedList<Integer> wanted = new LinkedList<Integer>();
                    wanted.add(grid(i)(j));
                    went2 = new boolean(n)(n);
                    dfs2(i, j, wanted);
                    best = Math.max(best, cnt);
                }
            }
        }
        
        //System.out.println(best);
        out.println(best);
        out.close();
    }

}

So my question was, how can I pass the one case? I sure I just need a little change somewhere, since I’m only having a time limit exceeded on one case. Thanks!

keyboard – Mac Mini 2018 (w/T2) Ignores Cmd-R, Option, and anything else on reboot

I have a 2018-era Mac Mini (Macmini8,1) running Catalina 10.15.7.

I am unable to get the system to recognize any commands I hold down during system reset. I have tried both my existing wireless keyboard (Microsoft with a USB dongle) and a plug-in USB keyboard. Regardless, if I hold down Option during boot, I get no menu. If I hold down Command-R, I get no Recovery mode. If I hold down Command-Option-P-R I do not get the behavior that indicates the NVRAM has been zapped. In all cases, I boot directly into the normal OS and log-in screen.

I did try the command line technique, but this did not solve the problem I’m after, as it’s not possible to adjust the System Security Tools when you do it this way. 🙁

Advice welcome–thanks!

Macbook Pro 2018 13-inch screen protector

Do I need a screen protector for long term usage because after 1 year of purchase , I have started noticing keyboard impressions on my macbook screen which are impossible to remove and also leave very tiny black dots on screen. Which is the best screen protector for Macbook Pro that won’t damage the screen if removed?
I am really worried about the screen for long term usage.

usb – Hub disconnect from MacBook Pro 2018 Touch Bar

I have a problem with my MBP 2018 Touch Bar.
Today I unplugged two hubs (with ethernet cable, HDMI, SD card reader and 4 USB ports)… and after this, when I plugged again the device the computer doesn’t detect it, and I lost my other screen, keyboard, wacom, etc. Basically my workstation has been fall out

I tried to restart de SMC and PRAM. I reinstalled the OS too (Catalina 10.15.7)

The hubs are this:
https://cutt.ly/ugjYdwg

I need to finish a work for a costumer tomorrow…

Please! Can anybody help me?

Thanks in advance.

display – Triple external monitor on 13″ Macbook Pro 2018

I’ve recently been given a 13″ Macbook Pro 2018 by work so that I can work from home. Just to note I am completely new to MacOS, but have a lot of sysadmin experience on other platforms.

I have a triple monitor set up with my Windows PC and I was hoping to use this with the new Macbook. But I looked online and it seems that this model is officially limited to two external monitors. However The limit is for two 4k monitors, and I want three 1080p which is a lower total pixel count than even one 4k screen so the MBP definitely has the power required for this.

Also I don’t need the built-in display as the MBP will be tucked away. Clearly the MBP can do three displays if we include the built-in one, so is there a way to redirect that to an external screen? Is there an official or unofficial way to make this work? Would using a thunderbolt based adapter allow more bandwidth so more screens? I’ve seen reports of USB3 (not type C) display adapters that can bypass this restriction. Or there’s this https://github.com/FD-/RPiPlay that would involve using a Raspberry Pi as an airplay receiver and using that as the third screen.

macbook pro – pink dots in the Macbbok pro 2018 touchbar model

Has anyone experienced pink dots as in the attached images in Macbooks? These dots are not visible in white backgrounds.

When I updated my OS, these dots got disappeared and after a few minutes they appeared again.
I own a 2018 pro touchbar model.

y][1]

What could be the issue here?