How To Get Monitor Serial Number In Linux
I helping out on an FOSS application which uses PyQt 5. It is a dual screen application, and I would like to track the monitors that get connected, and persist settings if they get disconnected.We're using for the info we need, and this is great, but on Windows and on Linux the 'serialNumber' property returns an empty string, as does the 'manufacturer' and 'model' properties. Import sysfrom PyQt5 import QtGuiapp = QtGui.QGuiApplication(sys.argv)print(repr(app.screens0.serialNumber))Any suggestions on how I can obtain the serial number?For Windows the snippet at works, but I have found no way of relating this information to the X & Y position of the monitor.
Lead #1: monitor-edidI'm not that up on EDID and monitors but I did find this tool, monitor-edid which might be of use to you here as well.Forgive me if it's off base, I'm trying to also learn more about this space, given the variety of questions you ask on the topic. $ monitor-edidEISA ID: LEN4036EDID version: 1.3EDID extension blocks: 0Screen size: 30.3 cm x 19.0 cm (14.08 inches, aspect ratio 16/10 = 1.59)Gamma: 2.2Digital signal# Monitor preferred modeline (60.0 Hz vsync, 55.8 kHz hsync, ratio 16/10, 120 dpi)ModeLine '1440x900' 1 1488 1520 2044 900 903 909 930 -hsync -vsync# Monitor supported modeline (50.0 Hz vsync, 51.8 kHz hsync, ratio 16/10, 120 dpi)ModeLine '1440x900' 1 1488 1520 2204 900 903 909 1035 -hsync -vsyncLead #2: ddcontrolThere was another tool that I came across called, which might be helpful in getting the information you're after. Lead #3: /sysFinally in poking through /sys I noticed that there were leaf nodes hanging off of the various video interfaces. If you happen to be using a x86 or powerpc arch, you could use read-edid. On debian this is available.Usage is simply (you need to be root): $ sudo get-edid /tmp/edidand then parse the structure: $ parse-edid.
Linux Hdd Serial Number
Feb 13, 2012. How do I find out my Dell server/deskop/laptop service tag using the command line option under a RHEL / Fedora / Red Hat / CentOS / Scientific Linux operating systems? How do I determine the serial number of a Dell laptop computer using the Fedora Linux operating system? You need to use the. Nov 25, 2014. I have seen a ton of scripts online for getting this information but cant seem to just get the output for local machine how I want it. All I am trying to get is Active monitors information. I dont want any boxes popping up just want to run it on a local machine and have output directed to a txt. I have the WQL.