LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-27-2014, 07:52 AM   #1
geirj
LQ Newbie
 
Registered: Jun 2014
Posts: 2

Rep: Reputation: Disabled
"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..

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 ..?

(Im running the latest version of Lubuntu)

I dont 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)
 
Old 06-27-2014, 01:03 PM   #2
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 972

Rep: Reputation: 117Reputation: 117
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... .
 
Old 06-28-2014, 06:59 AM   #3
geirj
LQ Newbie
 
Registered: Jun 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi Pearlseattle, thanks for your reply

You made me thinking, and heres 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 Im feeling like a linux guru ..

Writing this step by step incase someone else finds this thread down the line

Take Care !
 
Old 06-30-2014, 12:58 PM   #4
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 972

Rep: Reputation: 117Reputation: 117
Ah, that's cool, compliments
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] "/etc/init.d/apache2" start VS "apache2ctl start" with passenger module (ruby/rails) arond Linux - Server 1 12-13-2010 10:56 AM
Ubuntu wireless connected, pages won't load, says "can't find server" mrccc Linux - Wireless Networking 1 11-25-2010 05:30 AM
Occasionally-- "connected with self-assigned address," "deactivating device eth0" MaxIBoy Debian 4 10-04-2009 10:50 AM
LCD monitor: "out of scan range" won't load gui...how to add or configure peetkato Linux - Newbie 4 01-31-2006 06:29 AM
"X doesn't start when latop is connected to a video projector" prem0 Mandriva 2 09-14-2004 12:39 PM


All times are GMT -5. The time now is 09:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration