Help - Zoeken - Gebruikers - Kalender
Volledige versie: Making graphics settings permanent
MandrivaClub.NL > MCNLive > MCNLive: International
azenz2
I have succeeded in running Toronto on my new system with Intel GMA 3100 on-board graphics. The default screen is something like 640x480. In MCC I can then increase the monitor and screen resolution, select the Xorg vesa driver, restart KDE and I am at 1280x1024 where things should be. (Note: when I activate Metisse 3D things crash right away).

But then, when I remaster and reboot, the new master also still boots in the low screen resolution and I have to re-set things again manually. Any ideas what could be done as this is incredibly annoying.

By the way, I also have an Nvidia Geforce 8600 and installed the Mandriva non-free Nvidia 97xx drivers, and restarted KDE, the screen freezes right away.
mr rogers
Hi Azenz!
I have an idea, but i'm not sure if it will work.

Open /etc/X11/xorg.conf and search for this section:

CODE
Section "Screen"
    Identifier "screen1"
    Device "device1"
    Monitor "monitor1"
    DefaultColorDepth 16

    Subsection "Display"
        Depth 8
        Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
    EndSubsection

    Subsection "Display"
        Depth 15
        Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
    EndSubsection

    Subsection "Display"
        Depth 16
        Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
    EndSubsection

    Subsection "Display"
        Depth 24
        Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
    EndSubsection
EndSection


Now, edit the last 'subsection': delete all the resolutions you don't need.

For example:

CODE
    Subsection "Display"
        Depth 24
        Modes "1280x1024"
    EndSubsection


QUOTE
In MCC I can then increase the monitor and screen resolution, select the Xorg vesa driver,

So, it's not the vesa driver who's loaded?
If not, try to change the device section in xorg.conf.
Make sure that in the section "device", the driver is "vesa"

CODE
    Driver "vesa"


Like I said before, I'm not quite sure if this will work. But it's worth to try.
azenz2
Thanks, the issue was that the xorg.conf file somehow wasn't saved at reboot (I am using a live system). I resorted to adding a line to /etc/rc.d/rc.local that copies the correctly configured xorg.conf file to /etc/X11 at boot, but I still have to restart the X-server during the logon screen for the correct resolution to come up. Not ideal but it kind of works for the time being. Hopefully better solutions can be found in the future...
kris
The xorg.conf on a live system is configured dynamically on a live system, according to the automatic hardware detection.
It can't and should not stick, otherwise it would stop being a live system.
For the GMA 3100 card Toronto is too old for a good config with the Intel drivers. Only working driver is VESA, and Metisse does not run with vesa.

The rc.local script is executed too late. The xserver is already running.
You could try to make a copy of a working xorg.conf with a different name, xorg.adrian
And add some code to the file /etc/rc.d/rc.sysinit to copy it back to xorg.conf

if strstr "$cmdline" livecd ; then
cp -f /etc/X11/xorg.adrian /etc/X11/xorg.conf
fi

Note that this will break -after a remaster- the graphical boot on different systems.

Another workaround is booting to init 3 (just add: init 3 as a cheatcode when you start), login a s root, run XFdrake, logout, login as user, and type: startx

I can't help with the prorpr. nvidia stuff.
azenz2
Thanks, will give it a try. I got the Nvidia running by the way. The vesa driver for Intel GMA is way slow and you can't play high definition video, probably need to wait for 2008.
azenz2
Chris, I tried your solution and it unfortunately doesn't work. Firstly, it seems the xorg.conf is overwritten again by the time I reach the login window, when I go to console login and cat /etc/X11/xorg.conf it is the generic one again. Also, Nvidia, which I am now using again, requires a "modprobe nvidia" command. That one works fine when I put it into the rc.local, but it gives an error message when using it in the rc.sysinit.
kris
Yes, you are right Adrian. Sorry for that.
The service harddrake which does the hardware detection is run after executing rc.sysinit.

azenz2
Is there any way to insert this command after xorg.conf is generated and before the x-server is started, even if it breaks the general compatibility?
Dit is een "Print" versie van onze forums. Om de volledige versie met meer informatie, afbeeldingen en opmaakte bekijken, a.u.b. klik hier.