With this command, I don’t need a super user privileges like vbetool does. We had to make sure that DPMS is enabled in X. And then using xset command to configure DPMS like:
xset dpms force off I replace my old command in xbindkeysrc:
bowo@pcxthinkslack:~$ diff /tmp/xbindkeysrc ~/.xbindkeysrc 23c23,24 < "/usr/local/bin/toogle-lcd-state.sh" --- > #"/usr/local/bin/toogle-lcd-state.sh" > "/usr/bin/xset dpms force off" Update /etc/sudoers.d/01_bowo by commenting out this line %users ALL=NOPASSWD:/usr/sbin/vbetool and delete /usr/local/bin/toogle-lcd-state.
Sometimes I see some “– MARK –” message on my Plasma Desktop file watcher. This message is useless for me (at this time). Running custom command of syslogd is the solution. With the “-m 0″ parameter. It’s done by editing /etc/rc.d/rc.syslog
root@pcxthinkslack:~# diff /tmp/rc.syslog /etc/rc.d/rc.syslog 9,10c9,10 < echo -n "/usr/sbin/syslogd " < /usr/sbin/syslogd --- > echo -n "/usr/sbin/syslogd -m 0" > /usr/sbin/syslogd -m 0 Ref: /usr/share/doc/Linux-HOWTOs/Battery-Powered
=-=-=-=-=
Powered by Blogilo
Source: http://www.linuxquestions.org/questions/slackware-14/slackware-14-0-is-missing-run-in-prunepaths-in-etc-updatedb-conf-4175444138/
Just add /run to /etc/updatedb.conf I noticed that my Dolphin still using /media to mount external drive, I almost didn’t use Thunar.
=-=-=-=-=
Powered by Blogilo
Got this tricks from Arch guy somewhere on the internet. I did this thing because the default KDE shipped with Slackware does not do the automount job well, at least on my machine. This tricks uses udev. Here is my addition of udev rule:
bowo@pcxthinkslack:~$ cat /etc/udev/rules.d/10-my-media-automount.rules # /etc/udev/rules.d/10-my-media-automount.rules # start at sdb to ignore the system hard drive KERNEL!="sd[c-z]*", GOTO="my_media_automount_end" ACTION=="add", PROGRAM!="/sbin/blkid %N", GOTO="my_media_automount_end" # import some useful filesystem info as variables IMPORT{program}="/sbin/blkid -o udev -p %N" # get the label if present, otherwise assign one based on device/partition ENV{ID_FS_LABEL}!
Using bash sript that accept these arguments:
suspend = called when system is going to suspend to ram (sleep) freeze = called when system is going to suspend to disk (hibernate) resume = called when system is wake-up from sleep thaw = called when system is wake-up from hibernate Here is an example of mine!
root@pcxthinkslack:/home/bowo# cat /etc/pm/sleep.d/pcx.sh #!/bin/bash case $1 in suspend|freeze) #suspending to RAM logger "suspend/freeze in action" ;; resume|thaw) #resume from suspend #set default parameter of mic led that is muted logger "resume/thaw in action" sudo chmod o+w /sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute/brightness echo 1 > /sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute/brightness sudo chmod o-w /sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute/brightness #restore mixer settings alsactl restore ;; *) ;; esac =-=-=-=-=
The new looking of Oxygen font (v0.2) is quite different with the previous one. Just grab it from here and enjoy the power of open source.
A screenshot is worth thousand words: =-=-=-=-=
Powered by Blogilo
Running on Slackware64-current, mic mute button is not detected. Here is my solution.
Download and build thinkpad_acpi kernel module from ubuntu
Reinstall (replace) original thinkpad_acpi kernel module:
root@pcxthinkslack:/home/bowo/Build/tp_acpi# make make -C /lib/modules/3.7.10-zen-pcx/build M=/home/bowo/Build/tp_acpi modules make[1] : on entre dans le répertoire « /usr/src/zen-kernel-3.7-master » Building modules, stage 2. MODPOST 1 modules make[1] : on quitte le répertoire « /usr/src/zen-kernel-3.7-master » root@pcxthinkslack:/home/bowo/Build/tp_acpi# cp thinkpad_acpi.ko /lib/modules/3.7.10-zen-pcx/kernel/drivers/platform/x86/thinkpad_acpi.ko Remap keyboard
root@pcxthinkslack:/home/bowo# grep -nir mute /lib/udev/keymaps/module-lenovo 15:0x16 mute 17:0x1A f20 # Microphone mute root@pcxthinkslack:/home/bowo# grep -nir Mute /usr/share/X11/XKeysymDB 14:hpmute_acute :100000A8 15:hpmute_grave :100000A9 16:hpmute_asciicircum :100000AA 17:hpmute_diaeresis :100000AB 18:hpmute_asciitilde :100000AC 171:SunAudioMute :1005FF78 207:XF86AudioMute :1008FF12 355:XF86MicMute :1008FFAA root@pcxthinkslack:/home/bowo# grep -nir MicMute /etc/X11/xkb/symbols/inet 119: key <FK20> { [ XF86MicMute ] }; Bind keyboard event with xbindkeys
Berawal dari ketidak praktisan membuka url internet.tri.co.id, untuk melihat sisa quota internet, saya iseng2 membuat plasmoid widget (KDE4). Prinsip kerja plasmoid ini kira2 begini (bayangan awal saya)
Ambil url gambar sisa quota yang ada dihalaman internet.tri.co.id Buka url gambar tadi diplasmoid Sederhana..!
Plasmoid widget dapat dibuat dengan berbagai macam pilihan bahasa pemrograman, saya coba pake favorit saya, python. Algoritma nya kira2 begini:
Pertama, cari alamat url dari gambar yang ada di internet.
Hanya mengatur hint+/antialias font untuk keseluruhan system. Caranya create /etc/fonts/local.conf with this content
<?xml version='1.0'?> <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> <fontconfig> <match target="font" > <edit mode="assign" name="rgba" > <const>rgb</const> </edit> </match> <match target="font" > <edit mode="assign" name="hinting" > <bool>true</bool> </edit> </match> <match target="font" > <edit mode="assign" name="hintstyle" > <const>hintslight</const> </edit> </match> <match target="font" > <edit mode="assign" name="lcdfilter" > <const>lcddefault</const> </edit> </match> <selectfont> <rejectfont> <pattern> <patelt name="scalable" > <bool>false</bool> </patelt> </pattern> </rejectfont> </selectfont> <match target="font" > <edit mode="assign" name="antialias" > <bool>true</bool> </edit> </match> </fontconfig> Result: =-=-=-=-=
By default, tema cursor di kdm Slackware kurang menarik, ini konfigurasi saya biar tema-nya sama dengan punya KDE
bowo@pcxthinkslack:~$ v /usr/share/icons/ /usr/share/icons/: total 64 drwxr-xr-x 3 root root 4096 déc. 15 15:01 Oxygen_Black/ drwxr-xr-x 3 root root 4096 déc. 15 15:01 Oxygen_Blue/ drwxr-xr-x 3 root root 4096 déc. 15 15:01 Oxygen_White/ drwxr-xr-x 3 root root 4096 déc. 15 15:01 Oxygen_Yellow/ drwxr-xr-x 3 root root 4096 déc. 15 15:01 Oxygen_Zion/ drwxr-xr-x 7 root root 4096 déc.