Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
厄介な小さな問題があります。要するに、x11の起動時に画面が接続されているかどうかを検出できますが(ログ-Xorg.0.logを確認することでこれを行います)、マシンの実行中に画面が切断されたとき(つまり、x11以降)の検出に問題があります。ブート)
誰かアイデアはありますか?
乾杯
xrandrは、画面のステータス(「接続済み」、「無効」、「切断済み」)を出力します。
編集:しかし、少なくとも私のbinary-nvidia-driverマシンでは、常に「接続済み」と報告されます。ただし、より優れたドライバー(Intel、Radeonなど)が機能する可能性があると思います。