Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
MajGenRelativity

Networked computers accessing each others screens

Question

I have two computers. Each one has a screen and keyboard on top of each, and the two cases, but not the screens, are connected by a network cable. When the computers start up, the text appears on one screen, then the default OS screen appears on the other screen. This ends up being really confusing! I tried writing an autorun script that told each computer to set its respective screen as the primary screen component, but it didn't work. If anybody could help me out, that would be great!

Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Do they need to use the same Components, or do you just want to "talk" to each other? 

 

If you don't need Access to the Components just place a Switch between the Computers!

Otherwise you can use this:

component.setPrimary("keyboard", "<-The Address of the keyboard->")
component.setPrimary("screen", "<-The Address of the screen->")

you can get the Address's by CTRL+RMB with the Analyzer and past it in with the MMB.

Link to post
Share on other sites
  • 0

If you're using the component.setPrimary() way, you'll also need to tell the gpu to draw on the right screen, i.e. component.gpu.bind("<Screen's address"),

your final code would look like that :

local component = require("component")
local screen = "<screen address>"

component.setPrimary("screen", screen)
component.gpu.bind(screen)

You can also enclose the two last lines in a function named start, and save that in the /etc/rc.d directory. Then edit rc.conf and add the file's name (minus the .lua) to the "enabled" table (Yes, rc.conf is a Lua file).

Link to post
Share on other sites

Join the conversation

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.