diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-07-07 18:07:47 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-07-07 18:07:47 +0000 |
commit | 9ff53f61bb9bdb6a5edae118ed067e3c636ecaac (patch) | |
tree | cb292e57d2a2d6d2180d121dc90411990a94ce6b | |
parent | a346bb966a66953049e2089625550f167ba3f7c7 (diff) | |
download | monitor-edid-9ff53f61bb9bdb6a5edae118ed067e3c636ecaac.tar monitor-edid-9ff53f61bb9bdb6a5edae118ed067e3c636ecaac.tar.gz monitor-edid-9ff53f61bb9bdb6a5edae118ed067e3c636ecaac.tar.bz2 monitor-edid-9ff53f61bb9bdb6a5edae118ed067e3c636ecaac.tar.xz monitor-edid-9ff53f61bb9bdb6a5edae118ed067e3c636ecaac.zip |
monitor-get-edid-using-vbe: fix checking the current vt
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | monitor-get-edid-using-vbe.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -1,6 +1,8 @@ - monitor-parse-edid: o compute and display the "dpi" of the preferred modelines o handle parsing of EDIDs found in "xrandr --prop" or Xorg.log +- monitor-get-edid-using-vbe: + o fix checking the current vt Version 2.0 - 8 April 2008 diff --git a/monitor-get-edid-using-vbe.c b/monitor-get-edid-using-vbe.c index 822820a..79fb0c3 100644 --- a/monitor-get-edid-using-vbe.c +++ b/monitor-get-edid-using-vbe.c @@ -54,7 +54,7 @@ int main(int argc, char **argv) int fd = open("/dev/console", O_RDWR); if (ioctl(fd, VT_GETSTATE, ¤t) == 0 && - current.v_state >= first_X_console && + current.v_active >= first_X_console && ioctl(fd, VT_ACTIVATE, non_X_console) == 0 && ioctl(fd, VT_WAITACTIVE, non_X_console) == 0) { /* retrying */ |