0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

fedoraでディスプレイサイズの取得(物理)

Last updated at Posted at 2025-03-26

3パターンある

xrandr

例)

tyano ~$ xrandr --verbose | grep -i connected
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 connected 1920x1080+0+0 (0x48) normal (normal left inverted right x axis y axis) 527mm x 296mm
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-3 disconnected (normal left inverted right x axis y axis)

hwinfo

例)

tyano ~$ hwinfo --monitor | grep -i size
  Size: 527x296 mm

edid-decode

例)

tyano ~$ cat /sys/class/drm/*/edid | edid-decode | grep DTD
    DTD 1:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz (527 mm x 296 mm)
    DTD 2:  1920x1080i  60.000000 Hz  16:9     33.750 kHz     74.250000 MHz (527 mm x 296 mm)
    DTD 3:  1280x720    60.000000 Hz  16:9     45.000 kHz     74.250000 MHz (527 mm x 296 mm)
    DTD 4:   720x480    59.940060 Hz   3:2     31.469 kHz     27.000000 MHz (527 mm x 296 mm)

計算

1inch = 25.4mmなので

https://www.wolframalpha.com/input?i==sqrt(527^2+296^2)/25.4

firefoxだとurlエンコードは勝手にやってくれる
ほかのブラウザだと分かりません

もしくはhttps://www.wolframalpha.com/にアクセスして以下のように入力

=sqrt(527^2+296^2)/25.4
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?