On Donnerstag, 22. Juni 2023 02:13:42 CEST Felix Miata wrote: [...]
Inxi also includes names experienced in X/xrandr: # inxi -Gaz inxi 3.3.27-00 (2023-05-07) Graphics: Device-1: Intel RocketLake-S GT1 [UHD Graphics 730] vendor: ASUSTeK driver: i915 v: kernel arch: Gen-12.1 process: Intel 10nm built: 2020-21 ports: active: DP-2,DP-3,HDMI-A-1 empty: DP-1,HDMI-A-2,HDMI-A-3 bus-ID: 00:02.0 chip-ID: 8086:4c8b class-ID: 0300 Display: x11 server: X.Org v: 21.1.8 driver: X: loaded: modesetting unloaded: fbdev,vesa alternate: intel dri: iris gpu: i915 display-ID: :0 screens: 1 Screen-1: 0 s-res: 5920x1440 s-dpi: 120 s-size: 1253x304mm (49.33x11.97") s-diag: 1289mm (50.76") Monitor-1: DP-2 mapped: DP-1-1 pos: left model: Dell P2213 serial: <filter> built: 2012 res: 1680x1050 hz: 60 dpi: 90 gamma: 1.2 size: 473x296mm (18.62x11.65") diag: 558mm (22") ratio: 16:10 modes: max: 1680x1050 min: 720x400 Monitor-2: DP-3 mapped: DP-1-2 pos: right model: Dell P2213 serial: <filter> built: 2013 res: 1680x1050 hz: 60 dpi: 90 gamma: 1.2 size: 473x296mm (18.62x11.65") diag: 558mm (22") ratio: 16:10 modes: max: 1680x1050 min: 720x400 Monitor-3: HDMI-A-1 mapped: HDMI-1 pos: primary,center model: Acer K272HUL serial: <filter> built: 2018 res: 2560x1440 hz: 60 dpi: 109 gamma: 1.2 size: 598x336mm (23.54x13.23") diag: 686mm (27") ratio: 16:9 modes: max: 2560x1440 min: 720x400 API: OpenGL v: 4.6 Mesa 23.0.3 renderer: Mesa Intel Graphics (RKL GT1) direct-render: Yes #
2nd PC, AMDGPU DDX driver instead of Modesetting DIX: First, the kernel names: # ls -1 /sys/class/drm card1 card1-DP-1 card1-DVI-D-1 card1-HDMI-A-1 card1-VGA-1 renderD128 # Inxi also includes names experienced in X/xrandr: # inxi -Gaz inxi 3.3.27-00 (2023-05-07) Graphics: Device-1: AMD Kaveri [Radeon R7 Graphics] vendor: ASRock driver: amdgpu v: kernel alternate: radeon arch: GCN-2 code: Sea Islands process: GF/TSMC 16-28nm built: 2013-17 ports: active: DP-1, DVI-D-1, HDMI-A-1, VGA-1 empty: none bus-ID: 00:01.0 chip-ID: 1002:130f class-ID: 0300 Display: x11 server: X.Org v: 21.1.8 driver: X: loaded: amdgpu unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1 Screen-1: 0 s-res: 3600x2640 s-dpi: 120 s-size: 760x557mm (29.92x21.93") s-diag: 942mm (37.1") Monitor-1: DVI-D-1 mapped: DVI-D-0 pos: top-right model: Dell P2213 serial: <filter> built: 2012 res: 1680x1050 hz: 60 dpi: 90 gamma: 1.2 size: 473x296mm (18.62x11.65") diag: 558mm (22") ratio: 16:10 modes: max: 1680x1050 min: 720x400 Monitor-2: DP-1 mapped: DisplayPort-0 pos: primary,bottom-l model: Acer K272HUL serial: <filter> built: 2018 res: 2560x1440 hz: 60 dpi: 109 gamma: 1.2 size: 598x336mm (23.54x13.23") diag: 686mm (27") ratio: 16:9 modes: max: 2560x1440 min: 720x400 Monitor-3: HDMI-A-1 mapped: HDMI-A-0 pos: top-left model: NEC EA243WM serial: <filter> built: 2011 res: 1920x1200 hz: 60 dpi: 94 gamma: 1.2 size: 519x324mm (20.43x12.76") diag: 612mm (24.1") ratio: 16:10 modes: max: 1920x1200 min: 640x480 Monitor-4: VGA-1 mapped: VGA-0 pos: middle-r model: Lenovo L2251x Wide serial: <filter> built: 2011 res: 1680x1050 hz: 60 dpi: 90 gamma: 1.2 size: 474x296mm (18.66x11.65") diag: 559mm (22") ratio: 16:10 modes: max: 1680x1050 min: 720x400 #
Names to expect to see from xrandr, as may have been noticed in inxi output above, and thus needed in individual xrandr scripts, may differ according to the DDX or DIX display driver in use. E.g. (FOSS drivers only): 1: using modesetting DIX, regardless of GPU, and on nouveau DDX: DP-1 HDMI-1 HDMI-2 2- using intel DDX: DP1 HDMI1 HDMI2 3- using amdgpu DDX or radeon DDX: DisplayPort-0 HDMI-0 HDMI-1
Great! I have to memorize that. I am an old school Linux guy, so inxi is "new" to me and I tend to forget its capabilites 8-| Bye. Michael.