Saturday 29 October 2011

Auto-Start Numlock (Mandriva 2011)

To start numlock on boot, first download the numlock package, then enable it in...

Configure Your Computer> Manage System Services by Enabling or Disabling Them
...by both starting numlock, and then checking "on boot".

Disabling Glitch-Free Mode (Mandriva 2011)

If your sound is choppy, distorted, or drops out when two or more programs are running at once, try disabling glitch-free mode (oh, the sweet irony!) by navigating to /etc/pulse/default.pa and, as root, adding tsched=0 to the end of the "load driver modules" commands. See below. (Bold text for illustrative purposes only.)
### Automatically load driver modules depending on the hardware available
.ifexists module-udev-detect.so
load-module module-udev-detect tsched=0
.else


Friday 28 October 2011

Backup xorg.conf (Mandriva 2011)

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 280.13  (mandrake@n3.mandriva.com)  Wed Aug 24 11:37:46 UTC 2011

Section "Monitor"
Identifier "Configured Monitor"
Vendorname "Generic LCD Display"
Modelname "LCD Panel 1280x1024"
Horizsync 24.0 - 80.0
Vertrefresh 50.0 - 75.0
modeline "640x480@60" 25.2 640 656 752 800 480 490 492 525 -vsync -hsync
modeline "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
modeline "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
modeline "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -vsync -hsync
modeline "1280x960@60" 102.1 1280 1360 1496 1712 960 961 964 994 -hsync +vsync
modeline "1280x1024@60" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
Gamma 1.0
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
Defaultdepth 24
SubSection "Display"
Depth 24
Virtual 1280 1024
Modes "1280x1024@60" "1280x960@60" "1024x768@60" "800x600@60" "800x600@56" "640x480@60"
EndSubSection
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Repositories for Mandriva 2011 (Including MIB)

Log into a terminal as root and then...
urpmi.removemedia -a  

urpmi.addmedia --mirrorlist 'http://api.mandriva.com/mirrors/basic.2011.0.i586.list' 'Main' 'media/main/release'  

urpmi.addmedia --mirrorlist 'http://api.mandriva.com/mirrors/basic.2011.0.i586.list' 'Contrib' 'media/contrib/release'   

urpmi.addmedia --mirrorlist 'http://api.mandriva.com/mirrors/basic.2011.0.i586.list' 'Non-free' 'media/non-free/release'   

urpmi.addmedia --update --mirrorlist 'http://api.mandriva.com/mirrors/basic.2011.0.i586.list' 'Main Updates' 'media/main/updates'   

urpmi.addmedia --update --mirrorlist 'http://api.mandriva.com/mirrors/basic.2011.0.i586.list' 'Contrib Updates' 'media/contrib/updates'   

urpmi.addmedia --update --mirrorlist 'http://api.mandriva.com/mirrors/basic.2011.0.i586.list' 'Non-free Updates' 'media/non-free/updates' 

urpmi.addmedia --update --mirrorlist 'http://api.mandriva.com/mirrors/basic.2011.0.i586.list' 'Main Backports' 'media/main/backports'   

urpmi.addmedia --update --mirrorlist 'http://api.mandriva.com/mirrors/basic.2011.0.i586.list' 'Contrib Backports' 'media/contrib/backports'   

urpmi.addmedia --update --mirrorlist 'http://api.mandriva.com/mirrors/basic.2011.0.i586.list' 'Non-free Backports' 'media/non-free/backports'   

urpmi.addmedia --update MDV-restricted_32 http://mirror.yandex.ru/mandriva/official/restricted/2011.0/i586/   

urpmi.addmedia --update MIB-basic http://mirror.pianetalinux.org/MIB/2011.0/32/basic/ 

urpmi.addmedia --update --raw MIB-experts http://mirror.pianetalinux.org/MIB/2011.0/32/experts/
Blue = Standard repos
Red = Backsports
Yellow = Community repos etc.

Friday 14 October 2011

Getting Real Player to Use Pulse Audio

Real Player does not have native pulseaudio compatibility; however, it's more than capable of handling Alsa streams. All we need to do is set Real Player to use Alsa.

To do this open Real Player, then Tools>Preferences>Hardware, select the Alsa driver, and edit the PCM device field to say "default" only. Restart Real Player.