From Mageia wiki
Jump to: navigation, search


Drakconf multiflag.png
Other languages
Deutsch ; English ; Français ; Nederlands ;
Synopsis:
This page is aimed at newcomers not used to the command line.

It is easy to change a driver in graphic mode with the Mageia Control Center, except when the driver in question is the graphic one and that nothing can be seen any more ! This page explains how to change it in pure command line, thanks to a console (tty).

Method

If the graphic driver isn't correct, Mageia boot freezes and this kind of screen below doesn't progress any more, or sometimes the screen stay totally black, maybe with a blinking cursor.

[ OK ] Started Login Service.
[ OK ] Started Daemon for power management.
[ OK ] Started UDisks Daemon.
[ OK ] Started Avahi mDNS/DNS-SD Stack.
[ OK ] Started Authorization Manager.
[ OK ] Started LSB: Bring up/down networking.
Starting LSB: Wait for the hotplugged network to be up...
[ OK ] Started LSB: Wait for the hotplugged network to be up.
[ OK ] Reached target Network.
[ OK ] Reached target Host and Network Name Lookups.
Starting Shorewall IPv4 firewall...
Starting Shorewall IPv6 firewall...
Starting Set time via NTP...
[ FAILED ] Failed to start Shorewall IPv6 firewall.
See 'systemctl status shorewall6.srvice' for details.
[ OK ] Started Shorewall IPv4 firewall.
Starting LSB: Network monitoring Daemon...
[ OK ] Started LSB: Network monitoring Daemon.
[ OK ] Started Set time via NTP.
[ OK ] Reached target system Time Synchronized.
Starting Command Scheduler.
[ OK ] Started Command Scheduler.
Starting Network Time Service...
[ OK ] Started Network Time Service.
[ FAILED ] Failed to start Wait for Plymouth Boot Screen to Quit.
See 'systemctl status plymouth-quit-wait.service' for details.
[ OK ] Reached target Multi-User.
[ OK ] Reached target Graphical Interface.

Open a console (tty) typing simultaneously the keys Alt+Ctrl+F3

As login, enter root, then the password (it isn't displayed)

$ root
password: Last login: Tue Jan 10 17:39:33 on TTY2

[root@localhost~]#

Once connected as root -there is the # symbol- enter the command drakconf, the command line equivalent to the Mageia Control Center, and then press Enter. (You can equally use the short form "mcc" for drakconf, remember "Mageia Control Center".)

# drakconf

Here, use the key TAB to go from the list to OK, to Cancel, then to the list again. Inside the list, chose the item Display with the arrows keys up and down. Display is highlighted, type TAB to select OK and press Enter

Control Center
Choose the tool you want to use
3D Desktop effects
Auto Install
Boot loader
Display
Firewall
Internet connection sharing
Keyboard
Mouse
Network & Internet
Réseau & Internet
Partitions
Services
Users and groups
< OK > < Cancel >

Now, using the same keys as previously, select the item Graphic Card and press Enter

Graphic Card & Monitor Configuration
Graphic Card    < Custom >
Monitor         < Custom >
Resolution      < Automatic >
< Test >
< Options >
< Quit >

Select the right driver in the list. If you don't know it, choose the generic driver Xorg/Vesa

X server
Choose an X server
Vendor|ATI|FirePro M5750
Vendor|ATI|Mach 64-based cards
Vendor|ATI|Mach 64-based cards (no 3D acceleration)
Vendor|ATI|Radeon HD 4870 and earlier
Vendor|ATI|Radeon HD 5000 and later without free driver (vesa)
Vendor|ATI|Radeon HD 5000 to HD 6300 (radeon)
Vendor|ATI|Radeon HD 6400 and later (radeon)
< OK > < Cancel >

Don't change anything in this screen, it will always be possible to set the options later in the graphic mode.

Xorg Configuration
Global Options
[ ] Disable Ctrl-Alt-Backspace
Graphic card options
[X] Enable Translucency (Composite extension)
[ ] Use EXA instead of XAA (better performance for render and composite)
Graphical interphace at startup
[X] Automatically start the gaphical interface (Xorg) upon booting
< OK > < Cancel >

The chosen driver is now visible, if necessary, set alike the right configuration for the monitor.

Graphic Card & Monitor Configuration
Graphic Card    < ATI Radeon HD >
Monitor         < Custom >
Resolution      < Automatic >
< Test >
< Options >
< Quit >

When done, press TAB to select the button Quit and press Enter.

Configuration de la carte graphique
Graphic card    < ATI Radeon HD >
Moniteur        < Custom >
Résolution      < Automatic >
< Test >
< Option >
< Quit >

Select Yes and press Enter.

drakx11
Keep the changes?

The current configuration is:

Disable Ctrl-Alt-Backspace: No
3D hardware acceleration: No
Keyboard layout:
Mouse type:
Monitor:
Monitor HorizSync:
Monitor VertRefresh:
Graphic card: Advenced Micro Device, Inc. [AMD/ATI] ATI Radeon HD 6400 and

later (radeon)

Résolution: Automatic
Xorg driver: ati
< Yes > < No >

Just press Enter.

drakx11
You need to reboot for chanfes to take effect
< OK >

When back at the prompt, enter the command reboot to make the system shutdown and reboot.

# reboot

From now, the PC will start with the new driver and it will be possible to continue the neat configuration in graphic mode with the Mageia Control Center or whatever you are used to.

If it still do not work, try another driver. I.e for nvidia most works usably with nouveau or modesetting. Just to get it to desktop to work more easily, maybe try vesa, it have low resolution and performance but works with many GPU.

A help is available here: Setup the graphical server

Other obstacles

If using LUKS encrypted partitions: When booting in text mode, the question asking for password get scrolled away. Just start typing the password when scrolling have stopped.

Kernel version

It have happened that booting an elder kernel may work better. Example when a dkms operation failed for some reason, such as out of disk space or other interruption, or vendor not supporting the newer kernel.

-> Select an elder kernel in the boot menu, the line containing "Advanced".

Changing Display Manager

The program that present the graphical user login and desktop selection.

# drakdm

Make sure your system is updated

See Errata: Remedies.

Make sure your desktop system is complete

Make sure you have a task-* package for your favourite desktop installed. This ensures no needed packages for the desktop will be missing after the upgrade. Example: task-plasma5. If you don't need full Plasma set it is task-plasma5-minimal. Other desktops follow the same scheme, like task-gnome, task-xfce, etc, some have the "-minimal" variant too.

So as an exampe for minimal Plasma:

# urpmi task-plasma5-minimal

More tools

Several of the Mageia Control Centre tools works in "graphical emulating" text mode, most of them available, just launch MCC and select.

# mcc

And then there are all command line commands of course...