"X" won't start if no monitor is connected ..
Hi there. This is my first post in this community, hopefully some of you experienced users can help me out.. :rolleyes:
My problem is that if no TV/monitor is connected to my computer during startup, ´X´ does start up (by X I mean the desktop/graphical user interface..), and when trying to remote connect using TeamViewer, I just get a black screen. Is there any way of forcing ´X´ to start so that I can use teamviewer even when to screen is connected ..? :rolleyes: (I´m running the latest version of Lubuntu) I don´t know if this is of any help, but here is the output from xrandr and lspci xrandr (when the computer is connected to my tv, and "X" starts fine) Screen 0: minimum 320 x 200, current 1280 x 720, maximum 8192 x 8192 HDMI-0 connected 1280x720+0+0 (normal left inverted right x axis y axis) 1434mm x 806mm 1280x720 50.0*+ 60.0 59.9 1920x1080 60.0 50.0 50.0 59.9 1920x1080i 60.1 50.0 60.0 1440x576i 50.1 1440x480i 60.1 60.1 720x576 50.0 720x480 60.0 59.9 640x480 60.0 59.9 HDMI-1 disconnected (normal left inverted right x axis y axis) VGA-0 disconnected (normal left inverted right x axis y axis) lspci 00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Wrestler [Radeon HD 7340] 00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Wrestler HDMI Audio 00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 14h Processor Root Port 00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 03) 00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 40) 00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11) 00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11) 00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11) 00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11) 00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 14) 00:14.1 IDE interface: Advanced Micro Devices, Inc. [AMD] FCH IDE Controller 00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01) 00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11) 00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] FCH PCI Bridge (rev 40) 00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11) 00:15.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 0) 00:15.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 1) 00:15.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 3) 00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 0 (rev 43) 00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 1 00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 2 00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 3 00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 4 00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 6 00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 5 00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 12h/14h Processor Function 7 03:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01) 04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06) 05:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9172 SATA 6Gb/s Controller (rev 11) |
Hmmmm, it probably depends on what you want to do and what your exact requirements are.
Probably the main task of X is to display some UI on some kind of monitor => if such device is not present then it won't be able to set the basic settings that are needed (e.g. the screen size) => it won't therefore work. I have to admit that I'm not 100% sure that you can't just force X to run with some screen settings just by hardcoding them in xorg.conf and telling X to not check them and to use them blindly. Supporting my theory is I think the fact that if you tell X in xorg.conf to e.g. use as pointer /dev/input/mouse0, it will always refuse to start if it does not find in this case /dev/input/mouse0. Starting X usign a virtual display (e.g. a VNC server) wouldn't be ok for you? You could then still run your TeamViewer server within the virtual VNC server display... . |
Hi Pearlseattle, thank´s for your reply :)
You made me thinking, and here´s what i did. 1. Installed openssh-server on my lubuntu pc, and verified that X forwarding was enabled. 2. Installed XQuartz (http://xquartz.macosforge.org/landing/) on my Mac 3. I could now ssh to my lubuntu computer using the terminal on my Mac: ssh -X ipadress 4. After logging in, I can start any program from the terminal, and that would be forwarded to my Mac. Worked like a charm :) 5. Then I started thinking,- why do I even have to have the Desktop Manager enabled on my Lubuntu pc.. ? I could not find any reason :) , so I disabled it using 6. sudo sh -c "echo 'manual' > /etc/init/lightdm.override" , as described here. http://unix.stackexchange.com/questi...ical-interface So now I am running a real "headless" server, and I´m feeling like a linux guru .. :D Writing this step by step incase someone else finds this thread down the line :) Take Care ! |
Ah, that's cool, compliments :)
|
All times are GMT -5. The time now is 11:11 PM. |