vendredi 20 avril 2007

Mandriva 2007.1 Spring on a DELL laptop Inspiron 6400

UPDATE WITH URPMI
ATI DRIVER
TURN OFF-ON SCREEN WHEN LID IS CLOSED-OPEN
INSTALLATION OF I8K MODULES (CONTROL OF FAN SPEED)
DRI (Missing XLIB Problem)
MULTIMEDIA HOTKEYS
SUSPEND

First, here are a few templates you will find in this page:

This is what you type in a console :

# This is what you type in a console as root

$ This is what you type in a console as user


This is the content of a file :

/location/of/the/file

This is the content of the file





UPDATE WITH URPMI at http://easyurpmi.zarb.org/

I first update all the packages
For that, you need to know your kernel. With the installation of the ATI driver, URPMI might ask you which kernel you are using. Do in a console :

# uname -a

The result on my computer is :
Linux localhost 2.6.17-13mdv #1 SMP Fri Mar 23 19:03:31 UTC 2007 i686 Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz GNU/Linux


With the installation of the ATI, urpmi might ask you your kernel name
Once you have all the lines from the webpage, the best is to copy them all in a file (ie update)

~update
urpmi.removemedia -a
urpmi.addmedia main ftp://ftp.u-strasbg.fr/pub/linux/distributions/Mandriva/official/2007.1/i586/media/main/release with media_info/hdlist.cz
urpmi.addmedia --update main_updates ftp://ftp.u-strasbg.fr/pub/linux/distributions/Mandriva/official/2007.1/i586/media/main/updates with media_info/hdlist.cz
urpmi.addmedia main_backports ftp://ftp.u-strasbg.fr/pub/linux/distributions/Mandriva/official/2007.1/i586/media/main/backports with media_info/hdlist.cz
urpmi.addmedia contrib ftp://ftp.u-strasbg.fr/pub/linux/distributions/Mandriva/official/2007.1/i586/media/contrib/release with media_info/hdlist.cz
urpmi.addmedia --update contrib_updates ftp://ftp.u-strasbg.fr/pub/linux/distributions/Mandriva/official/2007.1/i586/media/contrib/updates with media_info/hdlist.cz
urpmi.addmedia contrib_backports ftp://ftp.u-strasbg.fr/pub/linux/distributions/Mandriva/official/2007.1/i586/media/contrib/backports with media_info/hdlist.cz
urpmi.addmedia non-free ftp://ftp.u-strasbg.fr/pub/linux/distributions/Mandriva/official/2007.1/i586/media/non-free/release with media_info/hdlist.cz
urpmi.addmedia --update non-free_updates ftp://ftp.u-strasbg.fr/pub/linux/distributions/Mandriva/official/2007.1/i586/media/non-free/updates with media_info/hdlist.cz
urpmi.addmedia --update plf-free ftp://ftp.easynet.fr/plf/mandriva/2007.1/free/release/binary/i586/ with hdlist.cz
urpmi.addmedia plf-free_backports ftp://ftp.easynet.fr/plf/mandriva/2007.1/free/backports/binary/i586/ with hdlist.cz
urpmi.addmedia --update plf-nonfree ftp://ftp.easynet.fr/plf/mandriva/2007.1/non-free/release/binary/i586/ with hdlist.cz
urpmi.addmedia plf-nonfree_backports ftp://ftp.easynet.fr/plf/mandriva/2007.1/non-free/backports/binary/i586/ with hdlist.cz


urpmi.update -a
urpmi --auto-select --auto

Then run the file
# sh update


Then run I install the softwares to my needs
# urpmi speex flac vorbis-tools lame faac faad2 APE a52dec dtsdec x264 xvid win32-codecs ogmtools mkvtoolnix normalize dvdbackup normalize ffmpeg mplayer mplayer-gui mencoder real-codecs ati dkms-ati ati-kernel-2.6.17-13mdv libdvdcss2 wine kdeutils-superkaramba kwin-style-crystal kwin-style-crystalgl flash-player-plugin kdeutils-kedit mc yakuake acidrip avidemux xine-ui

To be able to read movies encoded in real codecs, copy the libraries /usr/lib/real to /urs/lib/win32

# cp /usr/lib/real/* /usr/lib/win32/




ATI DRIVER
#################" no longer needed for Mandriva 2007.1 ##########################
For the Radeon X1400 installed on my laptop, I just type the following :

# aticonfig --initial

This will back-up your original xorg.conf file and modify it fit your graphic card





TURN OFF-ON SCREEN WHEN THE LID IS CLOSED-OPEN
#################" no longer needed for Mandriva 2007.1 ##########################
I just want the laptop to turn off the screen when I close the lid.
First install vbetool

# urpmi vbetool

Backup your /etc/acpi/actions/lm_lid.sh file in case something goes wrong

# cp /etc/acpi/actions/lm_lid.sh /etc/acpi/actions/lm_lid.sh_backup

Then write into lm_lid.sh :
/etc/acpi/actions/lm_lid.sh

#!/bin/sh
if grep -q open /proc/acpi/button/lid/*/state
then vbetool dpms on
else vbetool dpms off
fi




I8K MODULES
Install i8kutils :

# urpmi i8kutils


Now create the fileWith a root account, create a file /etc/init.d/i8k and write into it :

/etc/init.d/i8k

#!/bin/sh
modprobe i8k force=1



Make this file executable in a terminal as root :

# chmod 700 /etc/init.d/i8k

Make a link to make it start automatically :

# ln -s /etc/init.d/i8k /etc/rc5.d/S20i8k



When you reboot, all the infos can be now be seen in a terminal with :

# cat /proc/i8k


DRI
If your system complains that Xlib is missing, you might try to add the following at the end of your xorg.conf
file
/etc/X11/xorg.conf

........
Section "Extensions"
Option "Composite" "Disable"
EndSection




HOTKEYS
This chapter is for you if you want to use the multimedia keys on your keyboard. Xmms has to be installed first.
First install the hotkey and xmms package

# urpmi xmms hotkeys


Create a file in your home directory /home/your_account/.kde/Autostart

/home/your_account/.kde/Autostart/multimedia.sh

hotkeys -t dellinspiron

To make the hotkeys start at every logon, type : (replace your_account of course :) to make is executable
Image:Konsole.png
[utilisateur@ordi ~]$ chmod +x /home/your_account.kde/Autostart/multimedia.sh

Now type to this to use the hotkeys without starting

Image:Konsole.png
[utilisateur@ordi ~]$ sh /home/your_account.kde/Autostart/multimedia.sh


SUSPEND
#################" no longer needed for Mandriva 2007.1 ##########################
When using the suspend mode(FN+esc), the laptop goes into sleep -> no problem
When you power it on again (power button), you get a blank screen
You just have to modify your /etc/X11/xorg.conf file so and add Option "VBERestore" "true"
It should look something like :

/etc/X11/xorg.conf
Section "Device"
Identifier "device1"
Driver "ati"
Option "DPMS"
Option "XaaNoOffscreenPixmaps" "1"
Option "VBERestore" "true"
EndSection

Now, once X has been restarted (CTRL+ALT+BACKSPACE)
On my laptop, it takes about 20 secondes for the screen to return to life.





LOCKED URPMI DATABASE
If the urpmi database is locked, just remove the .lock and .rpmlock file found in /var/lib/urpmi
Image:Konsole.png
[root@ordi ~]# rm -f /var/lib/urpmi/.LOCK

Image:Konsole.png
[root@ordi ~]# rm -f /var/lib/urpmi/.RPMLOCK


5 commentaires:

Unknown a dit…

Hi

I am having some issues when installig Mandriva. I'm getting promted for a login name and password. It seems that this is because of some issues with the ATI x1400 GC? Can you please helm me?

Anonyme a dit…

I don't have any problems with Mandriva 2008 pwp.

Anonyme a dit…

Thanks for writing this.

Anonyme a dit…

Something at me personal messages do not send, a mistake what that

Anonyme a dit…

Completely I share your opinion. Thought excellent, it agree with you.