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:
lenovo thinkpad x201 (i5-m520, 4gb, i915)
) in my testing of Lubuntu (and some other flavors) and had no issues like you describe, however I would not have usedlxrandr
(it's a LXDE tool where Lubuntu has used LXQt for 5 releases now). In my own play I never had issues with the Fn keys not allowing me to switch between internal & external (my testing was QA only, which isn't the same as using it longer-term though) – guiverc Oct 30 '20 at 01:00lxrandr
is no longer a Lubuntu tool (not in releases post 18.04; it was ours till that release) so we don't test with it. The modern Lubuntu way is via LXQt tools, ie. the intended method is shown in the manual https://manual.lubuntu.me/stable/3/3.2/3.2.10/monitor_settings.html – guiverc Oct 30 '20 at 21:07lxrandr
writes; looking at https://packages.ubuntu.com/focal/lxrandr I see no problem with install. I don't know sorry. Most testing on the x201 was without external monitor, but it was tested with it & I used fn keys as I recall like other thinkpads (testing concentrates on provided tools, esp. LXQt tools as per manual etc) – guiverc Oct 30 '20 at 21:27DISPLAY
in the environment.xrandr
also takes a-d
switch. – einpoklum Oct 31 '20 at 07:55