====== Gnome and monitor ====== * [[linux:gnome|Gnome]] * [[linux:gnome-randr|gnome-randr]] * [[linux:hidpi|Linux HighDPI]] * [[linux:xrandr|XRandr]] * [[https://wiki.gnome.org/Attic/RandR|Attic/RandR - GNOME Wiki!]] * [[https://unix.stackexchange.com/questions/152586/what-do-the-tags-in-monitors-xml-do|gnome3 - What do the tags in `monitors.xml` do? - Unix & Linux Stack Exchange]] * Gnome 은 ''~/.config/monitors.xml'' 파일을 통해 모니터 설정을 저장하고, 그 저장된 결과를 [[linux:xrandr|XRandr]] 명령으로 수행한다. * [[https://wiki.ubuntu.com/X/Config/Resolution|X/Config/Resolution - Ubuntu Wiki]] ===== DBus 로 모니터 제어 ===== * [[linux:dbus|DBus]] 로 ''monitor.xml''을 제어할 수 있다. * [[https://wiki.gnome.org/Initiatives/Wayland/Gaps/DisplayConfig|Initiatives/Wayland/Gaps/DisplayConfig - GNOME Wiki!]] * [[https://gitlab.gnome.org/GNOME/mutter/-/blob/main/src/org.gnome.Mutter.DisplayConfig.xml|src/org.gnome.Mutter.DisplayConfig.xml]] * [[https://unix.stackexchange.com/questions/275327/configure-gnome-wayland-display-configuration-from-command-line|gnome3 - Configure GNOME/Wayland display configuration from command line - Unix & Linux Stack Exchange]] # example # 읽기 gdbus call \ --session \ --dest=org.gnome.Mutter.DisplayConfig \ --object-path /org/gnome/Mutter/DisplayConfig \ --method org.gnome.Mutter.DisplayConfig.GetResources # 쓰기 gdbus call \ --session \ --dest=org.gnome.Mutter.DisplayConfig \ --object-path /org/gnome/Mutter/DisplayConfig \ --method org.gnome.Mutter.DisplayConfig.ApplyMonitorsConfig \ 3 1 "[(0, 0, 1, 0, true, [('eDP-1', '1920x1080@59.810825347900391', [] )] )]" "[]" ===== 참조 ===== * [[https://itectec.com/ubuntu/ubuntu-how-change-display-scale-from-the-command-line-in-ubuntu-18-04-xorg/|Ubuntu – Changing UI scaling from command line – iTecTec]]