alesya-h / zenbook-duo-2024-ux8406ma-linux

automatic screen on/off, brightness sync, battery limiter
BSD 2-Clause "Simplified" License
52 stars 13 forks source link

"duo toggle" works, but "duo watch-displays" has no effect on the lower screen #20

Open NaScha opened 1 month ago

NaScha commented 1 month ago

I upgraded to the recent script version. "duo toggle" works, but not the automatic way - "duo watch-displays" has no effect on the lower screen, i. e. it keeps its setting (on/off) and does not toggle. Console output is running:

$ duo watch-displays Setting up watches. Watches established. /dev/bus/usb/003/ ATTRIB 006 Setting up watches. Watches established. /dev/bus/usb/003/ ATTRIB 007 Setting up watches.

... but nothing happens.

I am with Ubuntu 24.10 and kernel 6.11.0-9.

NaScha commented 1 month ago

Sorted out the problem - seems to be related to an unknown external monitor, which is brought in by the newer kernels. If I comment out the external-monitor-handling from the watch-displays case in the duo script, auto screen toggling works: `case "$1" in watch-displays) while inotifywait -e attrib /dev/bus/usb/*/ ; do

if ! external-display-connected; then

    "$0" normal
  #fi
done
;;`