Stefan Seyfried composed on 2018-02-26 15:49 (UTC+0100):
Felix Miata wrote:
# fbset
mode "1024x768-76" # D: 78.653 MHz, H: 59.949 kHz, V: 75.694 Hz geometry 1024 768 1024 768 16 timings 12714 128 32 16 4 128 4 rgba 5/11,6/5,5/0,0/0 endmode
All I'm after is the first line: mode 1024x768-76 but in addition I want rows and columns as inxi reports:
# inxi -G Graphics: Card: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller Display Server: X.org 1.18.3 drivers: modesetting (unloaded: fbdev,vesa) tty size: 189x52 Advanced Data: N/A for root
So, the best I can come up with as yet follows: # fbset | grep 'mode "' mode "1440x900" # inxi -G | grep tty tty size: 189x52 Advanced Data: N/A for root try these commands and extract your information from their output:
grep . /sys/class/graphics/fb0/* 2>/dev/null stty -a -F /dev/console
Probably /sys/class/graphics/fb0/virtual_size content is already enough for the first part.
While these do produce information desired, they are poorly suited to the context I failed to provide in my OP. I know how to and have installed fbset from rpms saved when they were available. My object though is helping someone in a forum, IRC or email who is asking for help that I'd like to provide: # fbset | grep 'mode "' # inxi -G | grep tty 44 bytes fairly memorable input for approximately 350 bytes of total output, containing roughly 30 bytes of relevant output. # grep . /sys/class/graphics/fb0/* 2>/dev/null # stty -a -F /dev/console 73 bytes less memorable input for approximately 1150 bytes of total output, containing roughly 30 bytes of relevant output. To help openSUSE users it's considerably more complicated for both helper and helpee than helping Fedora[1] & Debian users[2], where an identical and smaller response will get the job done, only because other major distros, and probably a big bunch of distros derived from them (or not[3][4]), include a useful utility that SLE devs inexplicably decided KMS made useful no longer: 134218 State:accepted By:coolo When:2013-05-16T10:11:27 ... Descr: Obsoleted by KMS and other modern tools Comment: about time ...suse/12.3 $ ls -gG fbset-2.1-9* -rw-r--r-- 1 41072 Jan 26 2013 fbset-2.1-938.1.1.i586.rpm -rw-r--r-- 1 41794 Jan 26 2013 fbset-2.1-938.1.1.x86_64.rpm :~( [1] https://mirrors.kernel.org/fedora/development/rawhide/Everything/x86_64/os/P... fbset-2.1-44.fc28.x86_64.rpm 07-Feb-2018 11:19 36K [2] http://mirrors.us.kernel.org/debian/pool/main/f/fbset/ fbset_2.1-30_amd64.deb 12-Nov-2017 00:13 121K [3] http://mirrors.us.kernel.org/gentoo/distfiles/ fbset-2.1.tar.gz 24-Mar-2003 16:23 27K [4] http://ftp5.gwdg.de/pub/linux/mageia/distrib/6/x86_64/media/core/release/ fbset-2.1-27.mga6.x86_64.rpm 02-Feb-2016 10:11 30230 -- "Wisdom is supreme; therefore get wisdom. Whatever else you get, get wisdom." Proverbs 4:7 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org