View previous topic :: View next topic |
Author |
Message |
BitJam Advocate
Joined: 12 Aug 2003 Posts: 2508 Location: Silver City, NM
|
Posted: Wed Jul 23, 2014 10:25 pm Post subject: Signal when console resolution changes (KMS)? |
|
|
On many systems the console resolution changes during boot when an KMS enabled video driver is used. Is there any way to get some sort of a signal or a script to run when this happens? The console resolution is usually given in /sys/class/graphics/fb0/virtual_size. So I would like to get a trigger when this file changes, although there may be other solutions. Is there a udev rule that will catch these changes? |
|
Back to top |
|
|
RK n00b
Joined: 07 Sep 2002 Posts: 8 Location: Zurich, Switzerland
|
Posted: Sun Jul 27, 2014 3:34 am Post subject: |
|
|
You can try SIGWINCH, which is normally ignored. It may or may not be available on your system. Try installing a signal handler with sigaction(). |
|
Back to top |
|
|
|