I have a computer with three gpu's, connected to three screens. One monitor has a keyboard attached to it, and is meant to be the main access terminal; the other two screens are display-only.
I've added the following autorun.lua file to the computer's hard drive, to mount the hard drive and set the appropriate primary gpu and screen:
local primaryGPUAddr = "3f5"
local primaryScreenAddr = "1a1"
local component = require("component")
component.setPrimary("gpu",component.get(primaryGPUAddr))
local gpu = component.gpu
gpu.bind(component.get(primaryScreenAddr))
local fs = require("filesystem")
local proxy = ...
fs.mount(proxy, "main")
print("Main Screen Bound") -- to test all went well
However, whenever I boot up my computer, autorun.lua doesn't always run---the primary GPU/screen is randomly chosen from among the three I have connected, the hard drive isn't mounted under "main", and I don't see that "Main Screen Bound" message (on any of the screens).
Oddly enough, sometimes it all works perfectly (including the mounting and the printed message), but it usually doesn't---and I'm left with my cursor blinking unhelpfully on one of the giant display screens on the opposite side of the room!
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
I have a computer with three gpu's, connected to three screens. One monitor has a keyboard attached to it, and is meant to be the main access terminal; the other two screens are display-only.
I've added the following autorun.lua file to the computer's hard drive, to mount the hard drive and set the appropriate primary gpu and screen:
However, whenever I boot up my computer, autorun.lua doesn't always run---the primary GPU/screen is randomly chosen from among the three I have connected, the hard drive isn't mounted under "main", and I don't see that "Main Screen Bound" message (on any of the screens).
Oddly enough, sometimes it all works perfectly (including the mounting and the printed message), but it usually doesn't---and I'm left with my cursor blinking unhelpfully on one of the giant display screens on the opposite side of the room!
Link to post
Share on other sites