I'm using Lubunu 20.04 on a Lenovo X201 laptop. Suppose I do the following:
- Log in (to a GUI desktop session).
- Connect an external monitor via VGA
- Used
lxrandr
to only use the external monitor - Physically disconnect the VGA connector
At this point, the laptop's monitor is dark. Now, Lubuntu - as installed - does not recognize Fn+Monitor Switch keys / does not do anything useful with them. So, I switch to another VT with Ctrl+Alt+Fn (say F2).
I now want to use xrandr
to have the laptop display come back on when I switch VT's.
- Is that possible?
- When I try to make this work - and I'm no
xrandr
expert - I fail :-(
Specifically, I tried:
xrandr -d :0 --output LVDS-1 --primary
and it does nothing, and
xrandr -d :0 --output LVDS-1 --auto
gets me aBadMatch (invalid parameter attributes)
error. But I don't understand what that means exactly.
Related: