Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hs.screen.getInfo() always returns nil? #3696

Open
von opened this issue Sep 28, 2024 · 2 comments
Open

hs.screen.getInfo() always returns nil? #3696

von opened this issue Sep 28, 2024 · 2 comments

Comments

@von
Copy link
Contributor

von commented Sep 28, 2024

I've never seen hs.screen.getInfo() return anything but nil, e.g.

> hs.fnutils.each(hs.screen.allScreens(), function(s) hs.printf(hs.inspect(s:getInfo())) end)
2024-09-28 16:39:36: nil
@QuantumLibet
Copy link

QuantumLibet commented Sep 29, 2024

FWIW, it does work for me with an external Dell display on a Mac mini x86:

hs.fnutils.each(hs.screen.allScreens(), function(s) hs.printf(hs.inspect(s:getInfo())) end)
 
{
  DisplayBluePointX = 0.150390625,
  DisplayBluePointY = 0.0595703125,
  DisplayBrightnessAffectsGamma = true,
  DisplayGreenPointX = 0.2998046875,
  DisplayGreenPointY = 0.599609375,
  DisplayHorizontalImageSize = 800,
  DisplayProductID = 41210,
  DisplayProductName = {
    en_US = "Dell AW3418DW"
  },
  DisplayRedPointX = 0.6396484375,
  DisplayRedPointY = 0.330078125,
  DisplaySerialNumber = <removed>,
  DisplayVendorID = 4268,
  DisplayVerticalImageSize = 340,
  DisplayWeekManufacture = 35,
  DisplayWhiteGamma = 2.2000000476837,
  DisplayWhitePointX = 0.3125,
  DisplayWhitePointY = 0.3291015625,
  DisplayYearManufacture = 2017,
  IODisplayAttributes = "gatvsglfrloccdg???glfd",
  IODisplayConnectFlags = "",
  IODisplayEDID = '<removed_binary_stuff>',
  IODisplayIsDigital = true,
  IODisplayIsHDMISink = false,
  IODisplayLocation = "IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/IGPU@2/AppleIntelFramebuffer@0/display0/AppleDisplay",
  IODisplayPrefsKey = "IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/IGPU@2-10ac-a0fa-b98355869664b9b",
  IODisplayVSDB4B0400 = "",
  IOFBTransform = 0,

@von
Copy link
Contributor Author

von commented Sep 29, 2024

Thanks @QuantumLibet, I'll dig a little further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants