Still not having a lot of luck with this issue.
Found that running:
xrandr --output DP-1 --mode 1920x1080 --rate 60
from a remote terminal does make the session visible on the tv
But this also changes the sound (pulseaudio) from hdmi to analog and does not work.
I created a script called set_screen_resolution.sh
Code:
#!/bin/bash
xrandr --output DP-1 --mode 1920x1080 --rate 60
pactl set-card-profile 0 output:hdmi-surround
and running this after boot fixes both the display and the sound
I tried to automate this script using crontab -e including
Code:
@reboot sleep 90 && /home/chris/set_screen_resolution.sh
But it does not do anything and xrandr shows the wrong resolution
but if I do
Code:
$./set_screen_resolution.sh
it works fine.
Bookmarks