Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 4205  / 3 Years ago, thu, may 20, 2021, 4:39:09

By default, if I connect an external display under Xfce, it is not activated until I choose to in xfce4-display-settings or lxrandr.



If set to use external display only and then restart with that monitor closed, the external-display setting is kept and I have no display at all; and have to start the external monitor in order to change the settings to use the internal display.



Is it possible to make the internal display default at startup (reset settings at startup)?



Or if the default Xfce display manager cannot have this setting, can I completely remove/replace it with Lxandr while I use Xfce?


More From » xfce

 Answers
5

I found a way to activate the internal monitor while no display is active.



Following instructions here and upgrading to Xfce 4.12, there is a new window for xfce4-display-settings -m which by default is already activated by pressing Superkey-P. (Logout and in after upgrade.)



enter image description here



Even if the monitor is still closed, press Tab (three times in my case), and then Enter, but pressing one or two times and Enter would still activate internal display.



Even easier: instead of Tab, use right-arrow multiple times and then Enter: the internal display is the last button to the right and it stays selected in this way.



But in fact this might have worked even before the upgrade with just the advanced window (xfce4-display-settings; before upgrade, adding -m displays the same window as far as I can tell) by pressing down-arrow key, then Tab (once) and Enter.



enter image description here



But the upgraded version is more interesting, more easy to use and has enhanced features (extended display).






After vasa1's answer to a different question, a solution emerged that in the end may be preferable, as it involves single, separate, clear shortcuts for each display configuration.



But this involves LXRandr, the LXDE default display manager, which can be installed from repos and used perfectly under the Xfce desktop. It is a GUI for xrandr and saves its configurations.




  • Save the desired configuration (the internal display in this case)
    `
    enter image description here


  • Use gedit or other text editor to open the saved file:





gedit ~/.config/autostart/lxrandr-autostart.desktop




  • Copy the executive command (it would be something like xrandr --output LVDS --mode 1680x1050 --rate 60.1 --output VGA-0 --off)


  • In Xfce, under Menu, Settings/Keyboard/Application shortcut, add this command and the shortcut.




This procedure can be repeated for the other two options (external monitor only, or mirror image - but there's no dual display in lxrandr).


[#32546] Thursday, May 20, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
itteast

Total Points: 291
Total Questions: 123
Total Answers: 104

Location: Tuvalu
Member since Wed, Mar 29, 2023
1 Year ago
;