Author Topic: [SOLVED - Finally] Remastering defaults to onboard VGA  (Read 3634 times)

Offline wharfhouse

  • Full Member
  • ***
  • Posts: 158
[SOLVED - Finally] Remastering defaults to onboard VGA
« on: June 22, 2012, 10:27:58 AM »
Hi all!

Quirky one this and links to my previous thread http://www.pclinuxos.com/forum/index.php/topic,104683.0.html which has now evolved.

I've successfully made several LiveCD's but they all want to use the primary onboard VGA adapter rather than the PCI NVidia graphics card.  What I didn't realize when I started the thread (above) was what actually was going on was the video output was transferring from the NVidia during the boot process from my default monitor, to the onboard S3 Unichrome on the MSI motherboard.  It wasn't till I attached a second monitor to the mobo's VGA socket I realized this was going on!

Logging in (watching the second monitor) the desktop then appears on both monitors!!  Although quite impressive in itself as full functionality is on both, I just want to use one monitor only.  Now the thing is, the original LiveCD (I downloaded and installed from) doesn't do this.  So the question is (if anybody knows the answer  8)) how can I do a remaster to prevent this from happening?

The technical bit:
PCI graphics card - NVidia GeForce 2 - MX400
Mobo - MSI KM4-ML with S3 Unichrome VGA
Award BIOS - with "priority set to PCI VGA" set

I'm back to one monitor now, so blindly in the second part of the boot process when the screen goes black, I hit Enter at the point when the keyboard locale window would show, then when it goes quiet again, I put in my username which would be the login window.  The desktop then appears out of the "blackness"  ;D

Any ideas?  :)
« Last Edit: August 09, 2012, 03:49:04 PM by wharfhouse »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Remastering defaults to onboard VGA
« Reply #1 on: June 22, 2012, 06:16:12 PM »
Is your monitor connected to the nvidia card's connector? You will be using the onboard card, if you use the MB vga connector.     
Did you try disabling the onboard video in your system's bios?     

Offline wharfhouse

  • Full Member
  • ***
  • Posts: 158
Re: Remastering defaults to onboard VGA
« Reply #2 on: June 25, 2012, 05:57:50 AM »
Hi Neal  :D

Thanks for your reply...

Yes, my monitor is indeed connected to the NVidia graphics card.

The Award BIOS unfortunately doen't allow me to "disable" the onboard VGA, but only to place down the priority list.  Off the top of my head I think the wording is something like 'allow priority to PCI VGA' which is selectable; and that's as far as I can go.

I was experimenting last night and looked at the Xorg.conf file on the LiveCD and under "device" it stated "S3 Unichrome"!  No wonder it's defaulting to that onboard VGA then.  Somehow, luckily, it then picks up on the NVidia ouput to then as I say above, display on my default monitor.

So, what I don't understand, is why, as my system is setup using the NVidia driver (Nouveau) in X working through an NVidia card, doing a remaster LiveCD, it picks up the onboard S3 rather than the Nvidia  ???  Surely there's a way of preventing certain files from being written to the iso?  ;)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Remastering defaults to onboard VGA
« Reply #3 on: June 25, 2012, 08:06:12 AM »
As root, comment the "S3 Unichrome" part. --- Comment: add a # at the line start.     

Offline wharfhouse

  • Full Member
  • ***
  • Posts: 158
Re: Remastering defaults to onboard VGA
« Reply #4 on: June 25, 2012, 09:34:32 AM »
Sorry Neal... where does the comment go? You mean where I type "mylivecd" etc. ? :P

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 11054
  • MLUs Forever!
Re: Remastering defaults to onboard VGA
« Reply #5 on: June 25, 2012, 10:15:18 AM »
/etc/X11/xorg.conf   is one of the excluded files when creating a liveCD, IIRC.

MLUs rule the roost!

Linux XPS 3.4.48-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Remastering defaults to onboard VGA
« Reply #6 on: June 26, 2012, 12:28:49 AM »
Sorry Neal... where does the comment go? You mean where I type "mylivecd" etc. ? :P
     
 ::) No. xorg.conf. Comment and save the change.     

Offline wharfhouse

  • Full Member
  • ***
  • Posts: 158
Re: Remastering defaults to onboard VGA
« Reply #7 on: June 26, 2012, 01:46:55 AM »
/etc/X11/xorg.conf   is one of the excluded files when creating a liveCD, IIRC.


 ::) No. xorg.conf. Comment and save the change.     

That's not going to work then!  ::)  In any case, there's no entry for "S3 Unichrome" in my xorg.conf on my system which makes it even odder that it's generated into the iso when the LiveCD is produced!

Bummer  :-\

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Remastering defaults to onboard VGA
« Reply #8 on: June 26, 2012, 01:58:20 AM »
Uninstall the S3 Unichrome driver.     

Offline wharfhouse

  • Full Member
  • ***
  • Posts: 158
Re: Remastering defaults to onboard VGA
« Reply #9 on: June 26, 2012, 03:20:54 AM »
Mmmmmmmm...

Thought I did that.  I'll have another look and possibly another go...  I'll let you know how I get on.

There's no way it would pull in the driver from the repo's as the iso is being created is there? assuming hardware detection is going on behind the scenes?

Thanks  ;)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Remastering defaults to onboard VGA
« Reply #10 on: June 26, 2012, 04:09:35 PM »
Mmmmmmmm...

Thought I did that.  I'll have another look and possibly another go...  I'll let you know how I get on.

There's no way it would pull in the driver from the repo's as the iso is being created is there? assuming hardware detection is going on behind the scenes?

Thanks  ;)
     
No. RPMs are only installed at your behest.     

Offline wharfhouse

  • Full Member
  • ***
  • Posts: 158
Re: Remastering defaults to onboard VGA
« Reply #11 on: June 28, 2012, 02:40:20 AM »
Hi Neal/Just18,

I said at the beginning of the thread this was a quirky one... well it's just got a whole lot quirkier! ::)  I've been doing some "testing" and got some surprising results.  Here goes...

1)  I did check whether the S3 Unichrome driver was installed and yes, it was although I thought I had uninstalled it.  That was soon got rid of, but I noticed it also removed task-x11 and x11-driver-video.  I don't know if that's significant.  Well, that must have been my problem then... oh no!

2)  Checked my xorg.conf file...  Section Monitor: Berlinea... correct, Section Device: NVidia MX 400, driver: nouveau... correct.

3) Go for remaster LiveCD... successful. ;D

4) As it was then late, I didn't use it to boot up my machine, but took it to work next day to try on the works machine... LiveCD works perfectly... success! ;D ;D

5) Whilst it was running, I thought out of interest I would have a peek at etc/x11 folder... saw TWO xorg.confs (3 including xorg.old)!  One had xorg.conf-pclosxxxxxxxx (the x's are a row of numbers).  I had a look at that and found it to be a carbon copy of the xorg.conf on my host machine at home.  So what's the other?  Looked at it... difference was Monitor: generic, Device: intel... it had identified correctly the onboard vga of the Intel machine it was booted on.  How did it know that?  I looked at properties and found that the file had been created dynamically a few minutes earlier during the boot process!  Well that was a revelation. 8)  I didn't realize that.

6) OKAY, now try the disc on my home machine and just when it was looking promising... nope, same problem, no difference. :'(

7) After getting to my desktop using the unorthodox method stated in my first post, I looked at etc/x11 again and yes, same 2 (3) xorg.conf files.  Opened up the xorg.conf just created...  WHAT :o... Section "Monitor1": generic. (no other monitor is connected in any way here!). Section "Device": "S3 Unichrome".  Section "Monitor2": Berlinea.  Section "Device": "NVidia" etc!

Eight) Checked Synaptic on the LiveCD... nope! No S3 Unichrome driver installed. :-\

Well what do you make of that?!  Where is this Unichrome coming from?!  It's fascinating stuff and I'm sure a Unix software engineer could explain how & why... but no help in solving my problem!! ???

What do you reckon?
 :)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Remastering defaults to onboard VGA
« Reply #12 on: June 28, 2012, 04:51:15 AM »
During the boot up of the liveCD, a hardware scan is run. This scan detects what hardware your machine has/uses. Your onboard video is correctly found/identified. Therein lies the problem. It is not detected as non-use. It needs to be set as not used. This is done in BIOS. I have a dell with onboard intel plus an nvidia card. I deactivated the onboard intel nearly 3 years ago and have never had one moment of trouble with it. My advice here is to have a look around in your BIOS and see if you can find a way to deactivate the onboard video.     

Quote
I did check whether the S3 Unichrome driver was installed and yes, it was although I thought I had uninstalled it.  That was soon got rid of, but I noticed it also removed task-x11 and x11-driver-video.  I don't know if that's significant.
     
Each driver has its corresponding x11-video-driver. The task package is only a list of packages to install.     

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 11054
  • MLUs Forever!
Re: Remastering defaults to onboard VGA
« Reply #13 on: June 28, 2012, 05:06:40 AM »
This is my understanding ....

When creating the liveCD,  the curent xorg.conf is excluded.
That would not mean the exclusion of any backups to that file I suppose. ?

During boot of a liveCD, a lot of hardware detection takes place ....  including the graphics system.

So if the graphics card is present on a PC it *should* be detected. That applies to two graphics cards.
Both should be found.

So your SIS & Nvidia appear to be detected.

The only means, as far as I am aware, of preventing detection of the SIS card is to disable it.
For onboard graphics that is achieved through the BIOS.
If the BIOS for some quirky reason does not allow that, then you are stuck with the cards presence being known by the booting system.

Now, let me propose a theory ......

 there are two cards in your system when booting; both are found and recognised; how does the booting system know which one to use?
In a normal install, it is determined by the xorg-conf file, I believe.
But in the case of a live boot, the xorg-conf is generated during the boot, and its content is determined by the hardware detection. (true?)
The on-board detected card is given priority (or detected first). (true?)
There would come a time when the connection of a monitor to the graphics socket would be detected. That output should then be the primary output being used. (true?)
It might appear then that the monitor-connection detection is happening after the log in.
How about that for a theory?  :D

Quote
Well what do you make of that?!  Where is this Unichrome coming from?!

The card is detected during boot, because it is not disabled.

All the above, is of course, just musings.
It is a theory created to try to explain the facts  ;)

« Last Edit: June 28, 2012, 05:09:10 AM by Just18 »
MLUs rule the roost!

Linux XPS 3.4.48-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline wharfhouse

  • Full Member
  • ***
  • Posts: 158
Re: Remastering defaults to onboard VGA
« Reply #14 on: June 28, 2012, 09:48:04 AM »
Hi Guys and thanks for your thoughts.

It is not detected as non-use. It needs to be set as not used. This is done in BIOS. My advice here is to have a look around in your BIOS and see if you can find a way to deactivate the onboard video.


As I say, the Award BIOS doesn't allow deactivation... the only option given is to place it down the priority list, giving priority to "PCI VGA".

Quote
If the BIOS for some quirky reason does not allow that, then you are stuck with the cards presence being known by the booting system.


That looks like to be the case then Just18!  As for the rest of your 'musings' then someone much more qualified than me in all things Linux could comment!  ;D

Well, guess I'm stuck with having to boot-up in my unorthodox way... I can live with that, though not ideal!  ::)

Just one more thing I'm going to try tonight... I'll let you know tomorrow  ;)