> ...if there isn't a way to do this... there is a workaround to know this > event for example reading a particular file or execute a shell command or in > some other way in any languages (c/c++...)!? You can read the status from /sys/devices