You are not logged in.

#1 2019-08-15 15:59:08

Asbestbrezel
Member
Registered: 2014-07-27
Posts: 67

refresh status of display-connections

Hello,

before changing the active display to my TV, using openbox-menu and xrandr, i ask about the state of connection of the display. So if,for example, the TV is switched off or the cable is not connected, it wont turn my desktop display off, but show an error message instead.
I do this, by reading this file: /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-HDMI-A-1/status

The problem is, sometimes after i turned the TV off, the status-file still says "connected".

What could be a lightweight command, to refresh those files?

Last edited by Asbestbrezel (2019-08-15 15:59:27)

Offline

#2 2019-08-15 16:22:10

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,093

Online

Board footer

Powered by FluxBB