събота, 28 февруари 2009 г.

KDE4 - GTK Font Fix Error was: "Gtk-WARNING **: Default font does not have a positive size"

Simply:

Must have: "Control the style and fonts used by GTK applications" in other words this: "gtk-kde4" - 74689-gtk-kde4v0.8.tar.gz

killall xfce-mcs-manager
killall gnome-settings-daemon

System Properties - System Panel - Fonts -> Choose Some Fonts NOW!. - important.
System Properties - System Panel - Use my KDE style in GTK Applications and Use my KDE Fonts
Can try different things.
RESTART APP.
If not help Repeat First step and restart again.

Cant use this for fine control: "gtk-chtheme"
Restart GTK app.

неделя, 15 февруари 2009 г.

acpi acpid and power menagement Slackware

Unfinished but if Power management troubles You it works now!

http://www.thinkwiki.org/wiki/How_to_make_use_of_Dynamic_Frequency_Scaling# - Read This

If hardly want to Read
http://www.acpica.org/downloads/index.php
http://www.lesswatts.org/projects/acpi/faq.php - can read it but it seems old

In kernel src
make menuconfig
Power management select all acpi options even is marked as depreciated

recompile restart with new kernel

acpid must be happy and started if not look at /etc/rc.d/rc.acpid and make it runnable +x

get "speedfreq" and compile

See the source below load all acpi modules
"speedstep_lib 6212 0
acpi_cpufreq 9676 0
cpufreq_userspace 3716 1
cpufreq_stats 4996 0
cpufreq_powersave 1792 0
cpufreq_ondemand 6988 0
freq_table 5376 3 acpi_cpufreq,cpufreq_stats,cpufreq_ondemand
cpufreq_conservative 6088 0
wmi 6568 0
video 16848 0
output 2880 1 video
rfkill 10828 0
input_polldev 3848 0
sbs 10568 0
sbshc 5312 1 sbs
pci_slot 4488 0
fan 4356 0
container 3392 0
battery 10052 0
ac "
This is what i load more of them are not need!

Here is mine bash function src :

### ACPI CPU
function acpi_cpu {

# ACPI & CPU modules
#
modules=`ls -q /lib/modules/2.6.28/kernel/drivers/acpi/; \
ls -q /lib/modules/2.6.28/kernel/drivers/cpufreq/; \
ls -q /lib/modules/2.6.28/kernel/arch/x86/kernel/cpu/cpufreq/;`;
for i in $modules; do
modprobe $(echo "$i"|cut -d"." -f 1);
done;
[ -x /usr/sbin/speedfreqd ] || { echo "/usr/sbin/speedfreqd - not found, exiting "; return; }
### [ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
speedfreqd -u # -u user can mod

echo "$? ACPI CPU FREQ Modules loaded. SpeedFreq Started";

} ### ACPI CPU END

P.S>
cpufreq - is not recommended yet - after start crash.

On most motherboards APM not work with Dual Core and etc processors if work he disable one of the cores!

see that file: /etc/acpi/acpi_handler.sh - it is ACPID default action you can change and add some functionalities.

And Now power button must PowerOff your computer.

неделя, 1 февруари 2009 г.

hunspell howto

install firefox ext dict for Your country or get dict's
find dict's.
in dir like "/home/YOURHOME/.mozilla/firefox/w8yjrjmg.default/extensions/bg-BG@dictionaries.addons.mozilla.org/dictionaries/"

become root and
copy *.aff .dic to -> /usr/share/myspell/dicts/
that's all

if see "error - iconv_open: UTF-8 -> microsoft-cp1251" after start hunspell!!!

change bg_BG.aff first line to something appropriate for iconv.
in my case:
SET windows-1251 - work fine
SET microsoft-cp1251 - don't work

Favorite MS Show by USA High Court

Main actor Bill Gates - defend IE

http://www.youtube.com/watch?v=0qNVe024RvI&feature=PlayList&p=A85534C3A9F65EC2&playnext=1&index=10