[Interest] QMessageBox not displayed when monitor is switched off

Patrick ZAJDA patrick at zajda.fr
Mon Dec 9 15:56:37 CET 2024


Hello,

I am blind and use the attached bash script to switch my screen off and 
back on when needed.
I use Debian Bookworm with Mate desktop, NVIDIA as my graphic card.

I notice when screen is off, QMessageBox are note displayed at all when 
it worked with QT5.
I tried both with PySide6 and, thanks to an IA, using C++ with the same 
result so the issue is not related to Python.

I am lost in QT procedure to report this kind of issue.
Could someone explain me where and how should I report this kind of 
issue and firstly, could it be considered as a QT issue?

Best regards,

-- 
Patrick ZAJDA
<https://certification.nvaccess.org/>Logo certification NVDA expert 2022
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20241209/9dbe0863/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NVDACertifiedExpert2022.png
Type: image/png
Size: 101758 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20241209/9dbe0863/attachment-0001.png>
-------------- next part --------------
#!/bin/bash
output=$(xrandr | grep ' connected ' | awk '{print $1}' | head -1)
echo $output > /tmp/montog
screenSize=$(xrandr | awk 'BEGIN {foundOutput=0}
   / '$output' / {foundOutput=1}
   /\*\+/ {print $1}
  /^[^ ]/ {if(foundOutput) exit 0}')
echo $screenSize >> /tmp/montog
if [ "$screenSize" != "" ]; then
   xrandr --output $output --fb $screenSize --off
   if [[ $LANG == fr* ]]; then
      MESSAGE="Écran éteint"
   else
       MESSAGE="Monitor Off Now"
   fi
else
   xrandr --output $output --auto
   if [[ $LANG == fr* ]]; then
      MESSAGE="Écran allumé"
   else
       MESSAGE="Monitor Back on"
   fi
fi
notify-send "$MESSAGE"


More information about the Interest mailing list