From 9589610848271187a59d3a6fffeb966f282fe6c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Sat, 22 Jun 2024 00:05:39 +0900 Subject: =?UTF-8?q?NetBSD:=20=E3=82=B9=E3=83=88=E3=83=AC=E3=83=BC=E3=82=B8?= =?UTF-8?q?=E3=81=A8GPU=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gpu.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gpu.c') diff --git a/src/gpu.c b/src/gpu.c index 3447ae9..56deabd 100644 --- a/src/gpu.c +++ b/src/gpu.c @@ -42,8 +42,10 @@ const char *display_gpu() { "elif [ \"$(dmesg | grep \"viadrmums.* at drm.*\")\" ]; " "then grep -i \"viadrmums.* at drm.*\"; " "else grep -i \"graphics\"; fi | " + "sed 's/^.*: //' | " "sed 's/^.* \"//' | " "sed 's/\".*$//' | head -1"); + // [ 1.018778] i915drmkms0 at pci0 dev 2 function 0: Intel HD Graphics 5500 (rev. 0x09) #elif defined(__FreeBSD__) || defined(__DragonFly__) return run_command_s("pciconf -lv | grep -B 4 -F \"VGA\" | " "grep -F \"device\" | sed 's/^.* device//' | " -- cgit v1.2.3