Monday, April 29, 2024
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 150491  / 2 Years ago, fri, april 15, 2022, 9:11:04

I accidentally disabled my monitors, so when I log in I land on a blank, back-lit screen. I can open terminals with Ctrl+Alt+F#, so how do I enable the monitor from terminal?


I tried xrandr, but it can't open display. xset does not work either. I found this question which closely resembles my problem. The answer provides a script to be put in /etc/X11/Xreset.d.


Running it does not solve my problem (though it is likely I don't understand how to use it properly). I think I somehow made the new default to be "disable monitors".


Running Ubuntu Studio 13.10. I do not have nVidia drivers. I can't find an xorg.conf file to remove. Thankful for any and all input!



  • Output of command xrandr -d :0:


    Screen 0: minimum 320x200, current 1366 x 768, maximum 32767 x 32767
    LVDS1 connected 1366x768+-32768+-32768 (normal left inverted right x axis y axis) 344mm x 192mm
    1366x768 60.0*
    1360x768 59.8 60.0
    1024x768 60.0
    800x600 60.3 56.2
    640x480 59.9
    VGA1 disconnected (normal left inverted right x axis y axis)
    HDMI1 disconnected (normal left inverted right x axis y axis)
    DP1 disconnected (normal left inverted right x axis y axis)
    VIRTUAL1 disconnected (normal left inverted right x axis y axis)

    Still being a CLI beginner I fail to understand from man xrandr how to switch on (there is an off option) or enable displays.



  • Output of:


    xrandr --auto

    is:


    Can't open display


  • Output of xrandr -d :0 --auto:


    Configure crtc 0 failed

    Maybe I just have to reinstall X11?



  • Outputs of suggested commands / which xset commands I tried:


    $xrandr -d :0 output LVDS1 --auto
    configure crtc 0 failed

    xset q and xset dpms force on both return:


    unable to open display ''''



No difference for sudo commands.


More futile attempts and the potential discovery of a security issue:



  1. I've tried to reinstall Xorg and X11, then I ran:


    sudo apt-get install --reinstall xserver*

    which failed with this output:


    (many versions of this:)
    Note, selecting 'xserver-xorg-something' for regex 'xserver*'
    (next:)
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.

    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    xserver-xorg-input-mtrack : Conflicts: xserver-xorg-input-multitouch
    but 1.0~rc2+git20110312-2build4 is to be installed
    E: Unable to correct problems, you have held broken packages.


  2. Next I logged in as guest and logged in as myself through TTY Ctrl+Alt+F# and ran the same xrand commands as above, with the same output as far as I can see.



  3. Then I created a new user with full admin rights and repeated 4.2 via TTY.



  4. SECURITY ISSUE? No, just a need of awareness. Not related to this subject, details at launchpad.




It begins looking like a system reinstall is necessary.


More From » command-line

 Answers
1

  1. Figure out that the offending settings are stored in a file called displays.xml.



    I won't detail here how I guessed it, though the comment about deleting monitors.xml proved helpful. It also involved manual comparing of several .config subdirectories.



    Of course, what I should have done was ask my search engine "where does xubuntu store display settings" and find this thread at ubuntuforums...


  2. Log in to your blank display and use CTRL+ALT+F# to enter command line.


  3. sudo find . -type f -name "*displays*"


  4. mv ~/.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml ~/.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml.bak


  5. sudo reboot




I hope this quest may help somebody.


[#27472] Saturday, April 16, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
turhizz

Total Points: 82
Total Questions: 106
Total Answers: 96

Location: South Korea
Member since Mon, Dec 6, 2021
2 Years ago
turhizz questions
;